1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include $(TOPDIR)/rules.mk
- PKG_NAME:= strongswan
- PKG_VERSION:= 5.1.1
- PKG_RELEASE:= 1
- PKG_MD5SUM:= f624ab041c306af0f5f57c927e9ea2e4
- PKG_DESCR:= IPsec software
- PKG_SECTION:= net/security
- PKG_DEPENDS:= ip libpthread
- PKG_URL:= http://strongswan.org/index.htm
- PKG_SITES:= http://download.strongswan.org/
- DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
- PKG_LIBC_DEPENDS:= uclibc glibc
- PKG_CHOICES_STRONGSWAN:=WITH_GNUTLS WITH_OPENSSL WITH_GMP
- PKGCD_WITH_GMP:= use GMP for crypto
- PKGCS_WITH_GMP:= libgmp
- PKGCB_WITH_GMP:= gmp
- PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
- PKGCS_WITH_OPENSSL:= libopenssl
- PKGCB_WITH_OPENSSL:= openssl
- PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
- PKGCS_WITH_GNUTLS:= libgnutls
- PKGCB_WITH_GNUTLS:= gnutls
- ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
- PKG_CFLINE_STRONGSWAN:= select ADK_PACKAGE_LIBOPENSSL_WITH_EC
- endif
- include $(TOPDIR)/mk/package.mk
- $(eval $(call PKG_template,STRONGSWAN,strongswan,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
- CONFIGURE_ARGS+= --enable-openssl \
- --disable-gcrypt \
- --disable-gmp
- endif
- ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GNUTLS},y)
- CONFIGURE_ARGS+= --enable-gcrypt \
- --disable-openssl \
- --disable-gmp
- endif
- ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GMP},y)
- CONFIGURE_ARGS+= --enable-gmp \
- --disable-openssl \
- --disable-gcrypt
- endif
- CONFIGURE_ARGS+= --disable-tools \
- --disable-fips-prf \
- --with-group=root \
- --enable-kernel-pfkey
- TARGET_LDFLAGS+= -Wl,-rpath -Wl,/usr/lib/ipsec
- strongswan-install:
- $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
- $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
- $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec
- $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib/ipsec/plugins
- touch $(IDIR_STRONGSWAN)/etc/ipsec.secrets
- $(CP) $(WRKINST)/usr/lib/ipsec/plugins/*.so \
- $(IDIR_STRONGSWAN)/usr/lib/ipsec/plugins
- $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
- $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \
- $(IDIR_STRONGSWAN)/usr/libexec/ipsec
- $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/starter \
- $(IDIR_STRONGSWAN)/usr/libexec/ipsec
- $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown \
- $(IDIR_STRONGSWAN)/usr/libexec/ipsec
- $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_copyright \
- $(IDIR_STRONGSWAN)/usr/libexec/ipsec
- $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \
- $(IDIR_STRONGSWAN)/usr/libexec/ipsec
- $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \
- $(IDIR_STRONGSWAN)/usr/libexec/ipsec
- $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
- $(IDIR_STRONGSWAN)/usr/sbin
- $(CP) $(WRKINST)/usr/lib/ipsec/libcharon*.so* \
- $(IDIR_STRONGSWAN)/usr/lib/ipsec/
- $(CP) $(WRKINST)/usr/lib/ipsec/libhydra*.so* \
- $(IDIR_STRONGSWAN)/usr/lib/ipsec/
- $(CP) $(WRKINST)/usr/lib/ipsec/libstrongswan*.so* \
- $(IDIR_STRONGSWAN)/usr/lib/ipsec/
- include ${TOPDIR}/mk/pkg-bottom.mk
|