1
0

Makefile 3.0 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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= strongswan
  5. PKG_VERSION:= 5.1.3
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 88438e5fd07fa6dbcd69954101cb300fc9a357495580a1fd1924bd8c49c7add1
  8. PKG_DESCR:= ipsec software
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= ip libpthread
  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_LIBC_DEPENDS:= uclibc glibc
  15. PKG_CHOICES_STRONGSWAN:=WITH_GNUTLS WITH_OPENSSL WITH_GMP
  16. PKGCD_WITH_GMP:= use gmp for crypto
  17. PKGCS_WITH_GMP:= libgmp
  18. PKGCB_WITH_GMP:= gmp
  19. PKGCD_WITH_OPENSSL:= use openssl for crypto
  20. PKGCS_WITH_OPENSSL:= libopenssl
  21. PKGCB_WITH_OPENSSL:= openssl
  22. PKGCD_WITH_GNUTLS:= use gnutls for crypto
  23. PKGCS_WITH_GNUTLS:= libgnutls
  24. PKGCB_WITH_GNUTLS:= gnutls
  25. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  26. PKG_CFLINE_STRONGSWAN:= select ADK_PACKAGE_LIBOPENSSL_WITH_EC
  27. endif
  28. include $(ADK_TOPDIR)/mk/package.mk
  29. $(eval $(call PKG_template,STRONGSWAN,strongswan,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  30. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_OPENSSL},y)
  31. CONFIGURE_ARGS+= --enable-openssl \
  32. --disable-gcrypt \
  33. --disable-gmp
  34. endif
  35. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GNUTLS},y)
  36. CONFIGURE_ARGS+= --enable-gcrypt \
  37. --disable-openssl \
  38. --disable-gmp
  39. endif
  40. ifeq (${ADK_PACKAGE_STRONGSWAN_WITH_GMP},y)
  41. CONFIGURE_ARGS+= --enable-gmp \
  42. --disable-openssl \
  43. --disable-gcrypt
  44. endif
  45. CONFIGURE_ARGS+= --disable-tools \
  46. --disable-fips-prf \
  47. --with-group=root \
  48. --enable-kernel-pfkey
  49. TARGET_LDFLAGS+= -Wl,-rpath -Wl,/usr/lib/ipsec
  50. strongswan-install:
  51. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
  52. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
  53. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  54. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib/ipsec/plugins
  55. touch $(IDIR_STRONGSWAN)/etc/ipsec.secrets
  56. $(CP) $(WRKINST)/usr/lib/ipsec/plugins/*.so \
  57. $(IDIR_STRONGSWAN)/usr/lib/ipsec/plugins
  58. $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
  59. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \
  60. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  61. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/starter \
  62. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  63. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown \
  64. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  65. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_copyright \
  66. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  67. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \
  68. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  69. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \
  70. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  71. $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
  72. $(IDIR_STRONGSWAN)/usr/sbin
  73. $(CP) $(WRKINST)/usr/lib/ipsec/libcharon*.so* \
  74. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  75. $(CP) $(WRKINST)/usr/lib/ipsec/libhydra*.so* \
  76. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  77. $(CP) $(WRKINST)/usr/lib/ipsec/libstrongswan*.so* \
  78. $(IDIR_STRONGSWAN)/usr/lib/ipsec/
  79. include ${ADK_TOPDIR}/mk/pkg-bottom.mk