This adds an OpenSSL flavour to vpnc. Without OpenSSL, it is pretty
useless for many people in Germany because most VPN Gateways at our
universities use hybrid auth. (And vpnc is the only possibility to get a
connection on *BSD at all.)
The problem is: It is a GPL violation to distribute a GPL-licensed
program linked to OpenSSL. Compiling your own binary is completely fine,
but it is indistributable. So, is it possible to set PERMIT_PACKAGE_*
conditionally?
Also, the man page looks fine with mandoc.
--- Makefile.orig Sun Dec 26 20:24:00 2010
+++ Makefile Sun Dec 26 20:24:44 2010
@@ -19,8 +19,16 @@
LIB_DEPENDS= security/libgcrypt>=1.2
USE_GMAKE= Yes
-USE_GROFF = Yes
NO_REGRESS= Yes
+
+FLAVORS = ssl
+FLAVOR ?=
+.if ${FLAVOR:L:Mssl}
+CFLAGS += -DOPENSSL_GPL_VIOLATION
+MAKE_ENV = OPENSSLLIBS=-lcrypto
+PERMIT_PACKAGE_CDROM= GPL violation
+PERMIT_PACKAGE_FTP= GPL violation
+.endif
do-configure:
@perl -pi -e "s,/etc,${SYSCONFDIR},g"
${WRKSRC}/{README,config.c}