Makefile 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.4.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 8a86019326ad8d9d703f55c8cd4625e1
  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:= 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. --enable-kernel-pfkey
  51. post-install:
  52. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
  53. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
  54. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib
  55. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  56. touch $(IDIR_STRONGSWAN)/etc/ipsec.secrets
  57. $(CP) $(WRKINST)/usr/libexec/ipsec/plugins/*.so \
  58. $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  59. $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
  60. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \
  61. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  62. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_pluto_adns \
  63. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  64. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/starter \
  65. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  66. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown \
  67. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  68. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/whack \
  69. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  70. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_copyright \
  71. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  72. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/pluto \
  73. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  74. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \
  75. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  76. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \
  77. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  78. $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
  79. $(IDIR_STRONGSWAN)/usr/sbin
  80. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  81. $(IDIR_STRONGSWAN)/usr/lib
  82. include ${TOPDIR}/mk/pkg-bottom.mk