summaryrefslogtreecommitdiff
path: root/package/tinc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-20 07:58:13 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-10-22 22:31:26 +0200
commit26e2aca4359bc7cff080c8446a67b838a5026d15 (patch)
tree404eafc8d39d46286fc41118e9d511f873b6ce8d /package/tinc
parent75114af47a5f090b59b80d511472493b93c2e2c6 (diff)
ssl: rework ssl support
Use libressl as default, where SSL is required. Allow to choose openssl. Disable SSL where not strictly required to build.
Diffstat (limited to 'package/tinc')
-rw-r--r--package/tinc/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/tinc/Makefile b/package/tinc/Makefile
index c562ed5e1..eb2ec673d 100644
--- a/package/tinc/Makefile
+++ b/package/tinc/Makefile
@@ -9,14 +9,22 @@ PKG_RELEASE:= 1
PKG_HASH:= bcf06bdf16ff903821e33fc1ce6219d6429971aa5acd70f4e8a35b4332442812
PKG_DESCR:= vpn tunnel daemon
PKG_SECTION:= net/security
-PKG_DEPENDS:= zlib liblzo libopenssl
-PKG_BUILDDEP:= zlib liblzo openssl
+PKG_DEPENDS:= zlib liblzo
+PKG_BUILDDEP:= zlib liblzo
PKG_URL:= http://www.tinc-vpn.org/
PKG_SITES:= http://www.tinc-vpn.org/packages/
PKG_CFLINE_TINC:= select ADK_KERNEL_TUN m
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+PKG_CHOICES_TINC:= WITH_LIBRESSL WITH_OPENSSL
+PKGCD_WITH_LIBRESSL:= use libressl for crypto
+PKGCB_WITH_LIBRESSL:= libressl
+PKGCS_WITH_LIBRESSL:= libressl
+PKGCD_WITH_OPENSSL:= use openssl for crypto
+PKGCB_WITH_OPENSSL:= openssl
+PKGCS_WITH_OPENSSL:= libopenssl
+
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,TINC,tinc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))