Makefile 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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.0
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 22dae13782f493ec675d54b67d79a66d
  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. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  17. PKG_BUILDDEP+= openssl
  18. endif
  19. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GNUTLS},y)
  20. PKG_BUILDDEP+= gnutls
  21. endif
  22. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GMP},y)
  23. PKG_BUILDDEP+= gmp
  24. endif
  25. PKG_URL:= http://strongswan.org/index.htm
  26. PKG_SITES:= http://download.strongswan.org/
  27. PKG_CHOICES:= WITH_GMP WITH_OPENSSL WITH_GNUTLS
  28. PKGCD_WITH_GMP:= use GMP for crypto
  29. PKGCS_WITH_GMP:= libgmp
  30. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  31. PKGCS_WITH_OPENSSL:= libopenssl
  32. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  33. PKGCS_WITH_GNUTLS:= libgnutls
  34. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  35. CFLINE_STRONGSWAN:= select ADK_PACKAGE_OPENSSL_WITH_EC
  36. endif
  37. include $(TOPDIR)/mk/package.mk
  38. $(eval $(call PKG_template,STRONGSWAN,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  39. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  40. CONFIGURE_ARGS+= --enable-openssl \
  41. --disable-gcrypt \
  42. --disable-gmp
  43. endif
  44. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GNUTLS},y)
  45. CONFIGURE_ARGS+= --enable-gcrypt \
  46. --disable-openssl \
  47. --disable-gmp
  48. endif
  49. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GMP},y)
  50. CONFIGURE_ARGS+= --enable-gmp \
  51. --disable-openssl \
  52. --disable-gcrypt
  53. endif
  54. CONFIGURE_ARGS+= --disable-tools \
  55. --disable-fips-prf \
  56. --enable-kernel-pfkey
  57. post-install:
  58. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
  59. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
  60. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib
  61. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  62. touch $(IDIR_STRONGSWAN)/etc/ipsec.secrets
  63. $(CP) $(WRKINST)/usr/libexec/ipsec/plugins/*.so \
  64. $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  65. $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
  66. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \
  67. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  68. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_pluto_adns \
  69. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  70. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/starter \
  71. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  72. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown \
  73. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  74. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/whack \
  75. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  76. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_copyright \
  77. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  78. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/pluto \
  79. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  80. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \
  81. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  82. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \
  83. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  84. $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
  85. $(IDIR_STRONGSWAN)/usr/sbin
  86. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  87. $(IDIR_STRONGSWAN)/usr/lib
  88. include ${TOPDIR}/mk/pkg-bottom.mk