Makefile 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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:= 5.1.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= f624ab041c306af0f5f57c927e9ea2e4
  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_LIBC_DEPENDS:= uclibc glibc
  19. PKG_CHOICES_STRONGSWAN:=WITH_GMP WITH_OPENSSL WITH_GNUTLS
  20. PKGCD_WITH_GMP:= use GMP for crypto
  21. PKGCS_WITH_GMP:= libgmp
  22. PKGCB_WITH_GMP:= gmp
  23. PKGCD_WITH_OPENSSL:= use OpenSSL for crypto
  24. PKGCS_WITH_OPENSSL:= libopenssl
  25. PKGCB_WITH_OPENSSL:= openssl
  26. PKGCD_WITH_GNUTLS:= use GnuTLS for crypto
  27. PKGCS_WITH_GNUTLS:= libgnutls
  28. PKGCB_WITH_GNUTLS:= gnutls
  29. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  30. PKG_CFLINE_STRONGSWAN:= select ADK_PACKAGE_LIBOPENSSL_WITH_EC
  31. endif
  32. include $(TOPDIR)/mk/package.mk
  33. $(eval $(call PKG_template,STRONGSWAN,strongswan,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  34. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  35. CONFIGURE_ARGS+= --enable-openssl \
  36. --disable-gcrypt \
  37. --disable-gmp
  38. endif
  39. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GNUTLS},y)
  40. CONFIGURE_ARGS+= --enable-gcrypt \
  41. --disable-openssl \
  42. --disable-gmp
  43. endif
  44. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GMP},y)
  45. CONFIGURE_ARGS+= --enable-gmp \
  46. --disable-openssl \
  47. --disable-gcrypt
  48. endif
  49. CONFIGURE_ARGS+= --disable-tools \
  50. --disable-fips-prf \
  51. --with-group=root \
  52. --enable-kernel-pfkey
  53. TARGET_LDFLAGS+= -Wl,-rpath -Wl,/usr/lib/ipsec
  54. strongswan-install:
  55. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
  56. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
  57. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  58. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib/ipsec/plugins
  59. touch $(IDIR_STRONGSWAN)/etc/ipsec.secrets
  60. $(CP) $(WRKINST)/usr/lib/ipsec/plugins/*.so \
  61. $(IDIR_STRONGSWAN)/usr/lib/ipsec/plugins
  62. $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
  63. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \
  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/_copyright \
  70. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  71. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \
  72. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  73. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \
  74. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  75. $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
  76. $(IDIR_STRONGSWAN)/usr/sbin
  77. $(CP) $(WRKINST)/usr/lib/ipsec/libcharon*.so* \
  78. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  79. $(CP) $(WRKINST)/usr/lib/ipsec/libhydra*.so* \
  80. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  81. $(CP) $(WRKINST)/usr/lib/ipsec/libstrongswan*.so* \
  82. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  83. include ${TOPDIR}/mk/pkg-bottom.mk