1
0

Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= strongswan
  5. PKG_VERSION:= 4.5.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 92b6419edb09935860b56fe0455ec037
  8. PKG_DESCR:= IPsec software
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= ip libpthread kmod-net-key kmod-xfrm-user
  11. PKG_DEPENDS+= kmod-inet-ah kmod-inet-esp
  12. PKG_DEPENDS+= kmod-inet-xfrm-mode-tunnel kmod-inet-xfrm-mode-transport
  13. PKG_DEPENDS+= kmod-crypto-sha1 kmod-crypto-md5
  14. PKG_DEPENDS+= kmod-crypto-null kmod-crypto-des kmod-crypto-aes
  15. PKG_DEPENDS+= kmod-crypto-hmac kmod-crypto-cbc kmod-crypto-authenc
  16. PKG_URL:= http://strongswan.org/index.htm
  17. PKG_SITES:= http://download.strongswan.org/
  18. PKG_CHOICES_STRONGSWAN:=WITH_GMP WITH_OPENSSL WITH_GNUTLS
  19. PKGCD_WITH_GMP:= use GMP for crypto
  20. PKGCS_WITH_GMP:= libgmp
  21. PKGCB_WITH_GMP:= gmp
  22. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  23. PKGCS_WITH_OPENSSL:= libopenssl
  24. PKGCB_WITH_OPENSSL:= openssl
  25. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  26. PKGCS_WITH_GNUTLS:= libgnutls
  27. PKGCB_WITH_GNUTLS:= gnutls
  28. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  29. PKG_CFLINE_STRONGSWAN:= select ADK_PACKAGE_OPENSSL_WITH_EC
  30. endif
  31. include $(TOPDIR)/mk/package.mk
  32. $(eval $(call PKG_template,STRONGSWAN,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  34. CONFIGURE_ARGS+= --enable-openssl \
  35. --disable-gcrypt \
  36. --disable-gmp
  37. endif
  38. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GNUTLS},y)
  39. CONFIGURE_ARGS+= --enable-gcrypt \
  40. --disable-openssl \
  41. --disable-gmp
  42. endif
  43. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GMP},y)
  44. CONFIGURE_ARGS+= --enable-gmp \
  45. --disable-openssl \
  46. --disable-gcrypt
  47. endif
  48. CONFIGURE_ARGS+= --disable-tools \
  49. --disable-fips-prf \
  50. --with-group=wheel \
  51. --enable-kernel-pfkey
  52. post-install:
  53. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
  54. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
  55. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib
  56. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  57. touch $(IDIR_STRONGSWAN)/etc/ipsec.secrets
  58. $(CP) $(WRKINST)/usr/libexec/ipsec/plugins/*.so \
  59. $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  60. $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
  61. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \
  62. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  63. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_pluto_adns \
  64. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  65. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/starter \
  66. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  67. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown \
  68. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  69. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/whack \
  70. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  71. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_copyright \
  72. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  73. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/pluto \
  74. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  75. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \
  76. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  77. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \
  78. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  79. $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
  80. $(IDIR_STRONGSWAN)/usr/sbin
  81. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  82. $(IDIR_STRONGSWAN)/usr/lib
  83. include ${TOPDIR}/mk/pkg-bottom.mk