Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 2009 16:02:27 GMT
From:      Richard Tector <richard@tector.org.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/139760: www/squid31 fails to build without NIS/Kerberos
Message-ID:  <200910191602.n9JG2RZG094947@www.freebsd.org>
Resent-Message-ID: <200910191610.n9JGA5kX025290@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         139760
>Category:       ports
>Synopsis:       www/squid31 fails to build without NIS/Kerberos
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 19 16:10:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Richard Tector
>Release:        FreeBSD 7.2-STABLE
>Organization:
>Environment:
FreeBSD anubis.capl.local 7.2-STABLE FreeBSD 7.2-STABLE #0: Fri May 22 14:35:09 BST 2009     richard@anubis.capl.local:/usr/obj/usr/src/sys/ANUBIS  i386
>Description:
The www/squid31 port checks for {NO,WITHOUT}_{KERBEROS,NIS} declarations being set in make.conf. This, however, does not take into account WITHOUT_{KERBEROS,NIS} being set in src.conf.
>How-To-Repeat:
Build a FreeBSD base without NIS or Kerberos by setting the relevant variable in src.conf. Attempt to build the www/squid31 port.
>Fix:
The attached patch to the port Makefile adds two make config options that enable/disable building of the Kerberos and NIS helpers, as with the LDAP and SASL options.

Patch attached with submission follows:

--- Makefile.orig	2009-10-19 16:52:35.000000000 +0100
+++ Makefile	2009-10-19 16:54:17.000000000 +0100
@@ -110,7 +110,9 @@
 SUB_FILES+=	pkg-deinstall pkg-install pkg-message
 SUB_LIST+=	SQUID_UID=${SQUID_UID} SQUID_GID=${SQUID_GID}
 
-OPTIONS=	SQUID_LDAP_AUTH "Install LDAP authentication helpers" off \
+OPTIONS=	SQUID_KERB_AUTH "Install Kerberos authentication helpers" off \
+		SQUID_LDAP_AUTH "Install LDAP authentication helpers" off \
+		SQUID_NIS_AUTH "Install NIS authentication helpers" off \
 		SQUID_SASL_AUTH "Install SASL authentication helpers" off \
 		SQUID_IPV6 "Enable IPv6 support" on \
 		SQUID_DELAY_POOLS "Enable delay pools" off \
@@ -261,7 +263,7 @@
 basic_auth+=	SASL
 libexec+=	sasl_auth
 .endif
-.if !defined(NO_NIS) && !defined(WITHOUT_NIS)
+.if defined(WITH_SQUID_NIS_AUTH)
 basic_auth+=	YP
 libexec+=	yp_auth
 .endif
@@ -270,7 +272,7 @@
 			--enable-digest-auth-helpers="${digest_auth}" \
 			--enable-external-acl-helpers="${external_acl}" \
 			--enable-ntlm-auth-helpers="smb_lm"
-.if !defined(NO_KERBEROS) && !defined(WITHOUT_KERBEROS)
+.if defined(WITH_SQUID_KERB_AUTH)
 CONFIGURE_ARGS+=	--enable-negotiate-auth-helpers="squid_kerb_auth"
 libexec+=	negotiate_kerb_auth negotiate_kerb_auth_test \
 		squid_kerb_auth squid_kerb_auth_test


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910191602.n9JG2RZG094947>