Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= strongswan
  5. PKG_VERSION:= 5.5.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 062b33e05a78315666759a60cc34891ad461b362ddc63f5a54f9c64a788afa8d
  8. PKG_DESCR:= ipsec vpn software
  9. PKG_SECTION:= net/security
  10. PKG_NEEDS:= threads
  11. PKG_URL:= http://strongswan.org/index.htm
  12. PKG_SITES:= http://download.strongswan.org/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. PKG_CHOICES_STRONGSWAN:=WITH_LIBRESSL WITH_GNUTLS WITH_GMP
  15. PKGCD_WITH_GMP:= use gmp for crypto
  16. PKGCS_WITH_GMP:= libgmp
  17. PKGCB_WITH_GMP:= gmp
  18. PKGCD_WITH_LIBRESSL:= use libressl for crypto
  19. PKGCS_WITH_LIBRESSL:= libressl
  20. PKGCB_WITH_LIBRESSL:= libressl
  21. PKGCD_WITH_GNUTLS:= use gnutls for crypto
  22. PKGCS_WITH_GNUTLS:= libgnutls
  23. PKGCB_WITH_GNUTLS:= gnutls
  24. include $(ADK_TOPDIR)/mk/package.mk
  25. $(eval $(call PKG_template,STRONGSWAN,strongswan,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  26. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_LIBRESSL},y)
  27. CONFIGURE_ARGS+= --enable-openssl \
  28. --disable-gcrypt \
  29. --disable-gmp
  30. endif
  31. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GNUTLS},y)
  32. CONFIGURE_ARGS+= --enable-gcrypt \
  33. --disable-openssl \
  34. --disable-gmp
  35. endif
  36. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GMP},y)
  37. CONFIGURE_ARGS+= --enable-gmp \
  38. --disable-openssl \
  39. --disable-gcrypt
  40. endif
  41. CONFIGURE_ARGS+= --disable-tools \
  42. --disable-fips-prf \
  43. --with-group=root \
  44. --enable-kernel-pfkey
  45. TARGET_LDFLAGS+= -Wl,-rpath -Wl,/usr/lib/ipsec
  46. strongswan-install:
  47. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
  48. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
  49. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  50. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib/ipsec/plugins
  51. touch $(IDIR_STRONGSWAN)/etc/ipsec.secrets
  52. $(CP) $(WRKINST)/usr/lib/ipsec/plugins/*.so \
  53. $(IDIR_STRONGSWAN)/usr/lib/ipsec/plugins
  54. $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
  55. $(CP) $(WRKINST)/usr/libexec/ipsec/* \
  56. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  57. $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
  58. $(IDIR_STRONGSWAN)/usr/sbin
  59. $(CP) $(WRKINST)/usr/lib/ipsec/libvici*.so* \
  60. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  61. $(CP) $(WRKINST)/usr/lib/ipsec/libcharon*.so* \
  62. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  63. $(CP) $(WRKINST)/usr/lib/ipsec/libstrongswan*.so* \
  64. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  65. include ${ADK_TOPDIR}/mk/pkg-bottom.mk