summaryrefslogtreecommitdiff
path: root/net/vpnc/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/vpnc/options.mk')
-rw-r--r--net/vpnc/options.mk14
1 files changed, 14 insertions, 0 deletions
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