Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Aug 2014 12:36:01 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r365726 - head/www/squid33
Message-ID:  <201408231236.s7NCa1Gb095514@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Aug 23 12:36:01 2014
New Revision: 365726
URL: http://svnweb.freebsd.org/changeset/ports/365726
QAT: https://qat.redports.org/buildarchive/r365726/

Log:
  www/squid33: Support Kerberos on DragonFly
  
  DragonFly does not have Kerberos in the base system as this port assumes.
  In order to build squid33, DF has a dependency on krb5 packages.  Morever,
  the configure check assumes Kerberos is in the base system, so it fails
  to configure.  Disable the check completely as it's guaranteed to pass on
  FreeBSD and the sought headers are installed with krb5.

Modified:
  head/www/squid33/Makefile

Modified: head/www/squid33/Makefile
==============================================================================
--- head/www/squid33/Makefile	Sat Aug 23 12:31:36 2014	(r365725)
+++ head/www/squid33/Makefile	Sat Aug 23 12:36:01 2014	(r365726)
@@ -207,6 +207,9 @@ basic_auth+=	NIS
 # POLA: allow the old global make.conf(5) (pre src.conf(5)) defines, too:
 .if ${PORT_OPTIONS:MAUTH_KERB} && !defined(NO_KERBEROS) && !defined(WITHOUT_KERBEROS)
 negotiate_auth=	kerberos wrapper
+.  if ${OPSYS} == DragonFly
+LIB_DEPENDS+=	libkrb5.so:${PORTSDIR}/security/krb5
+.  endif
 # the kerberos_ldap_group external helper depends on LDAP and SASL:
 .if ${PORT_OPTIONS:MAUTH_LDAP} && ${PORT_OPTIONS:MAUTH_SASL}
 external_acl+=	kerberos_ldap_group
@@ -311,6 +314,12 @@ post-patch:
 		-e'/tcp_outgoing_address 2001:db8::1/d'\
 		${WRKSRC}/src/cf.data.pre
 .endif
+#	The kerberos auth helper check is harded for /usr/gssapi/gssapi.h, but
+#	kerberos authorization happily uses gssapi located at $LOCALBASE.  Make
+#	the config test always pass because it's guaranteed to pass on FreeBSD
+#	and DragonFly installs it with the krb5 package.
+	@${REINPLACE_CMD} -e 's|exit 1|exit 0|' \
+		${WRKSRC}/helpers/negotiate_auth/kerberos/config.test
 
 post-install:
 .if ${PORT_OPTIONS:MEXAMPLES}



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