summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmb <smb>2008-07-13 22:46:48 +0000
committersmb <smb>2008-07-13 22:46:48 +0000
commit31f9d024104ad0bb08e209db98afa7f5500457d5 (patch)
tree86b289645217f617cb6e6748987c51887a6426d9
parent438bd6c557a75c5b03da606b4075c413fece81f7 (diff)
downloadpkgsrc-31f9d024104ad0bb08e209db98afa7f5500457d5.tar.gz
Added option to permit use of ssl with the package. By default, it's
disabled because of a (perceived?) conflict between the openssl license and the GPL.
-rw-r--r--net/vpnc/Makefile6
-rw-r--r--net/vpnc/options.mk14
2 files changed, 19 insertions, 1 deletions
diff --git a/net/vpnc/Makefile b/net/vpnc/Makefile
index 431d54f81e8..9da8a38acb9 100644
--- a/net/vpnc/Makefile
+++ b/net/vpnc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2008/05/29 20:50:31 sketch Exp $
+# $NetBSD: Makefile,v 1.23 2008/07/13 22:46:48 smb Exp $
#
DISTNAME= vpnc-0.5.1
@@ -14,6 +14,7 @@ PKG_DESTDIR_SUPPORT= user-destdir
NOT_FOR_PLATFORM= Interix-*-*
+
USE_TOOLS+= gmake
USE_TOOLS+= perl
INSTALLATION_DIRS= bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 \
@@ -31,6 +32,7 @@ SUBST_SED.paths+= -e 's|@VARBASE@|${VARBASE}|g'
SUBST_SED.paths+= -e 's|@PERL5@|${PERL5}|g'
SUBST_SED.paths+= -e 's|@SH@|${SH}|g'
+
BUILD_DEFS+= VARBASE
EGDIR= ${PREFIX}/share/examples/vpnc
@@ -50,5 +52,7 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/cisco-decrypt.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/vpnc
+.include "options.mk"
+
.include "../../security/libgcrypt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/vpnc/options.mk b/net/vpnc/options.mk
new file mode 100644
index 00000000000..3d0d19f8bf4
--- /dev/null
+++ b/net/vpnc/options.mk
@@ -0,0 +1,14 @@
+PKG_OPTIONS_VAR= PKG_OPTIONS.openvpnc
+PKG_SUPPORTED_OPTIONS= openssl # off by default
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Mopenssl)
+SUBST_CLASSES+= openssl
+SUBST_MESSAGE.openssl= adding openssl option
+SUBST_STAGE.openssl= post-patch
+SUBST_FILES.openssl= Makefile
+SUBST_SED.openssl= -e 's/^.OPENSSL_GPL_VIOLATION/OPENSSL_GPL_VIOLATION/'
+SUBST_SED.openssl+= -e 's/^.OPENSSLLIBS/OPENSSLLIBS/'
+.endif