diff options
author | cy <cy@FreeBSD.org> | 2016-04-15 22:19:49 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2016-04-15 22:19:49 +0800 |
commit | 18943831154e3f3252317f8ede8bd37468f9a38f (patch) | |
tree | fb3e43e7dc780aee8ea23e9cbdef1184977f4541 /security | |
parent | 46d0e755c139c99d001d5bb1ab240b289304c43c (diff) | |
download | freebsd-ports-gnome-18943831154e3f3252317f8ede8bd37468f9a38f.tar.gz freebsd-ports-gnome-18943831154e3f3252317f8ede8bd37468f9a38f.tar.zst freebsd-ports-gnome-18943831154e3f3252317f8ede8bd37468f9a38f.zip |
Revert r413343. The bulk of it was committed by mistake.
Diffstat (limited to 'security')
-rw-r--r-- | security/racoon2/Makefile | 80 | ||||
-rw-r--r-- | security/racoon2/pkg-plist | 2 |
2 files changed, 22 insertions, 60 deletions
diff --git a/security/racoon2/Makefile b/security/racoon2/Makefile index 73cec03e5f2f..837cce0387a7 100644 --- a/security/racoon2/Makefile +++ b/security/racoon2/Makefile @@ -3,7 +3,7 @@ PORTNAME= racoon2 PORTVERSION= 20100526a -PORTREVISION= 9 +PORTREVISION= 8 CATEGORIES= security net ipv6 MASTER_SITES= ftp://ftp.racoon2.wide.ad.jp/pub/racoon2/ @@ -13,79 +13,41 @@ COMMENT= Racoon2 IPsec daemon USES= perl5 tar:tgz USE_RC_SUBR= YES USE_OPENSSL= YES -CONFIGURE_ARGS+= --disable-kinkd -PLIST_SUB+= KINK="@comment " USE_AUTOTOOLS= autoconf GNU_CONFIGURE= yes CONFIGURE_ARGS+= --prefix=${STAGEDIR}${PREFIX} CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/racoon2 -CONFIGURE_ENV= YACC=/usr/bin/yacc perl_bindir=${LOCALBASE}/bin/perl5 - -OPTIONS_DEFINE= DOCS -OPTIONS_RADIO= KERBEROS -OPTIONS_RADIO_KERBEROS= KRB5 KRB5_112 KRB5_113 KRB5_114 \ - HEIMDAL_PORTS HEIMDAL_BASE -KRB5_DESC= Build with Kerberos (security/krb5) -KRB5_112_DESC= Build with Kerberos (security/krb5-112) -KRB5_113_DESC= Build with Kerberos (security/krb5-113) -KRB5_114_DESC= Build with Kerberos (security/krb5-114) -HEIM_AL_PORTS_DESC= Build with Heimdal in ports (security/heimdal) -HEIMDAL_BASE_DESC= Build with Heimdal in base - -KRB5_USES= gssapi:mit -KRB5_CONFIGURE_ON= --enable-kinkd -KRB5_MAKE_ENV= WITH_KINK=yes -KRB5_PLIST_SUB= KINK="" -KRB5_LIB_DEPENDS= libkrb5support.so:${PORTSDIR}/security/krb5 -KRB5_RUN_DEPENDS= kinit:${PORTSDIR}/security/krb5 -KRB5_VARS= KINK=yes - -KRB5_112_USES= gssapi:mit -KRB5_112_CONFIGURE_ON= --enable-kinkd -KRB5_112_MAKE_ENV= WITH_KINK=yes -KRB5_112_PLIST_SUB= KINK="" -KRB5_112_LIB_DEPENDS= libkrb5support.so:${PORTSDIR}/security/krb5-112 -KRB5_112_RUN_DEPENDS= kinit:${PORTSDIR}/security/krb5-112 -KRB5_112_VARS= KINK=yes - -KRB5_113_USES= gssapi:mit -KRB5_113_CONFIGURE_ON= --enable-kinkd -KRB5_113_MAKE_ENV= WITH_KINK=yes -KRB5_113_PLIST_SUB= KINK="" -KRB5_113_LIB_DEPENDS= libkrb5support.so:${PORTSDIR}/security/krb5-113 -KRB5_113_RUN_DEPENDS= kinit:${PORTSDIR}/security/krb5-113 -KRB5_113_VARS= KINK=yes - -KRB5_114_USES= gssapi:mit -KRB5_114_CONFIGURE_ON= --enable-kinkd -KRB5_114_MAKE_ENV= WITH_KINK=yes -KRB5_114_PLIST_SUB= KINK="" -KRB5_114_LIB_DEPENDS= libkrb5support.so:${PORTSDIR}/security/krb5-114 -KRB5_114_RUN_DEPENDS= kinit:${PORTSDIR}/security/krb5-113 -KRB5_114_VARS= KINK=yes - -HEIMDAL_PORT_USES= gssapi:heimdal -HEIMDAL_PORTS_CONFIGURE_ON= --enable-kinkd -HEIMDAL_PORTS_MAKE_ENV= WITH_KINK=yes -HEIMDAL_PORT_PLIST_SUB= KINK="" -HEIMDAL_PORT_VARS= KINK=yes +CONFIGURE_ENV= YACC=/usr/bin/yacc -HEIMDAL_BASE_USES= gssapi:base -HEIMDAL_BASE_CONFIGURE_ON= --enable-kinkd -HEIMDAL_BASE_MAKE_ENV= WITH_KINK=yes -HEIMDAL_BASE_PLIST_SUB= KINK="" -HEIMDAL_BASE_VARS= KINK=yes +OPTIONS_DEFINE= KINK DOCS +KINK_DESC= Enable KINK support .include <bsd.port.pre.mk> PLIST_SUB+= PFX=${PREFIX} +pre-configure: +.if ${PORT_OPTIONS:MKINK} +.if !exists(/usr/lib/libkrb5.a) + @${ECHO_MSG} 'Required Kerberos5 is not in this system. Disable KINK support.' +CONFIGURE_ARGS+= --disable-kinkd +PLIST_SUB+= KINK="@comment " +.else +CONFIGURE_ARGS+= --enable-kinkd +MAKE_ENV= WITH_KINK=yes +PLIST_SUB+= KINK="" +.endif +.else +CONFIGURE_ARGS+= --disable-kinkd +PLIST_SUB+= KINK="@comment " +.endif + .if ${PORT_OPTIONS:MDOCS} PORTDOCS+= INSTALL USAGE config-usage.ja.txt config-usage.txt PORTDOCS+= iked-memo.ja.txt libracoon.ja.txt specification.ja.txt PORTDOCS+= spmif.txt style.txt system-message.ja.txt -.if defined(KINK) +.if ${PORT_OPTIONS:MKINK} PORTDOCS+= kinkd-data-struct.obj kinkd-impl.ja.txt PORTDOCS+= kinkd-install.ja.txt kinkd-state-txn.obj .endif diff --git a/security/racoon2/pkg-plist b/security/racoon2/pkg-plist index 5c2d97b3cde0..5e43770451a2 100644 --- a/security/racoon2/pkg-plist +++ b/security/racoon2/pkg-plist @@ -44,6 +44,6 @@ man/man8/iked.8.gz @dir etc/racoon2/hook/child-rekey.d @dir etc/racoon2/hook/child-down.d @dir etc/racoon2/cert -@exec test -f %%PFX%%/etc/racoon2/spmd.pwd && mv %%PFX%%/etc/racoon2/spmd.pwd %%PFX%%/etc/racoon2/spmd.pwd.bak && %%PFX%%/sbin/pskgen -r -o %%PFX%%/etc/racoon2/spmd.pwd +@exec test -f %%PFX%%/etc/racoon2/spmd.pwd && mv %%PFX%%/etc/racoon2/spmd.pwd %%PFX%%/etc/racoon2/spmd.pwd.bak && %%PFX%%/pskgen -r -o %%PFX%%/etc/racoon2/spmd.pwd @unexec rm -f %%PFX/etc/racoon2/spmd.pwd @dir(root,wheel,700) /var/run/racoon2 |