summaryrefslogtreecommitdiff
path: root/package/opensips
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/opensips
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/opensips')
-rw-r--r--package/opensips/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/package/opensips/Makefile b/package/opensips/Makefile
index 2ea4a6c64..8cee902ad 100644
--- a/package/opensips/Makefile
+++ b/package/opensips/Makefile
@@ -9,11 +9,20 @@ PKG_RELEASE:= 1
PKG_HASH:= bcacc9bc273fd2002c16a5cb846fe2478dacded9ea7b52a04afb1f54bb2aa3f4
PKG_DESCR:= high-performance, configurable, free sip server
PKG_SECTION:= net/voip
-PKG_DEPENDS:= libopenssl
-PKG_BUILDDEP:= openssl
PKG_URL:= http://opensips.org/
PKG_SITES:= http://opensips.org/pub/opensips/$(PKG_VERSION)/src/
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION)_src.tar.gz
+WRKDIST= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)-tls
+
+PKG_CHOICES_OPENSIPS:= 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
+
PKG_SUBPKGS:= OPENSIPS OPENSIPS_MOD_ACCOUNTING OPENSIPS_MOD_AUTH
PKG_SUBPKGS+= OPENSIPS_MOD_AUTH_DB OPENSIPS_MOD_AVPOPS OPENSIPS_MOD_DISPATCHER
PKG_SUBPKGS+= OPENSIPS_MOD_DIVERSION OPENSIPS_MOD_FLATSTORE OPENSIPS_MOD_GFLAGS
@@ -63,9 +72,6 @@ PKGSN_OPENSIPS_MOD_UAC_REDIRECT:= opensips
PKGSD_OPENSIPS_MOD_URI:= uri support
PKGSN_OPENSIPS_MOD_URI:= opensips
-DISTFILES:= $(PKG_NAME)-$(PKG_VERSION)_src.tar.gz
-WRKDIST= ${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)-tls
-
include $(ADK_TOPDIR)/mk/package.mk
define PKG_mod_template