svn commit: r393259 - in head/security/p5-GSSAPI: . files
Jung-uk Kim
jkim at FreeBSD.org
Thu Jul 30 19:10:45 UTC 2015
Author: jkim
Date: Thu Jul 30 19:10:44 2015
New Revision: 393259
URL: https://svnweb.freebsd.org/changeset/ports/393259
Log:
Convert to USES=gssapi.
Added:
head/security/p5-GSSAPI/files/
head/security/p5-GSSAPI/files/patch-Makefile.PL (contents, props changed)
Modified:
head/security/p5-GSSAPI/Makefile
Modified: head/security/p5-GSSAPI/Makefile
==============================================================================
--- head/security/p5-GSSAPI/Makefile Thu Jul 30 18:50:18 2015 (r393258)
+++ head/security/p5-GSSAPI/Makefile Thu Jul 30 19:10:44 2015 (r393259)
@@ -14,4 +14,24 @@ COMMENT= Perl extension providing access
USES= perl5
USE_PERL5= configure
+OPTIONS_DEFAULT= GSSAPI_BASE
+OPTIONS_SINGLE= GSSAPI
+OPTIONS_SINGLE_GSSAPI= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
+
+GSSAPI_BASE_USES= gssapi
+GSSAPI_HEIMDAL_USES= gssapi:heimdal
+GSSAPI_MIT_USES= gssapi:mit
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGSSAPI_MIT}
+KRB5CONF= ${KRB5_HOME}/bin/krb5-config
+.else
+KRB5CONF= ${HEIMDAL_HOME}/bin/krb5-config
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%KRB5CONF%%|${KRB5CONF}|g' \
+ ${WRKSRC}/Makefile.PL
+
.include <bsd.port.mk>
Added: head/security/p5-GSSAPI/files/patch-Makefile.PL
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/p5-GSSAPI/files/patch-Makefile.PL Thu Jul 30 19:10:44 2015 (r393259)
@@ -0,0 +1,12 @@
+--- Makefile.PL.orig 2010-04-24 12:37:38 UTC
++++ Makefile.PL
+@@ -12,8 +12,7 @@ my @whichcand = qw(/bin/which /usr/bin/w
+
+ my @KRB5_CONFIG_TRIES = (
+
+- '/usr/kerberos/bin/krb5-config', # for use with CentOS, as suggested by Mark Hedges in https://rt.cpan.org/Ticket/Display.html?id=48732
+- '/usr/bin/krb5-config', # always worth a try ;-)
++ '%%KRB5CONF%%', # for use with FreeBSD
+
+ );
+
More information about the svn-ports-all
mailing list