Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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:= 1
  7. PKG_MD5SUM:= 22dae13782f493ec675d54b67d79a66d
  8. PKG_DESCR:= IPsec software
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= libgmp ip libpthread kmod-net-key kmod-xfrm-user
  11. PKG_DEPENDS+= kmod-inet-ah kmod-inet-esp kmod-inet-ipcomp
  12. PKG_DEPENDS+= kmod-inet-xfrm-mode-tunnel kmod-inet-xfrm-mode-transport
  13. PKG_DEPENDS+= kmod-crypto-sha1 kmod-crypto-sha256 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_DEPENDS+= kmod-crypto-deflate
  17. PKG_BUILDDEP+= gmp
  18. PKG_URL:= http://strongswan.org/index.htm
  19. PKG_SITES:= http://download.strongswan.org/
  20. include $(TOPDIR)/mk/package.mk
  21. $(eval $(call PKG_template,STRONGSWAN,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. CONFIGURE_ARGS+= --disable-tools \
  23. --disable-fips-prf \
  24. --enable-kernel-pfkey \
  25. --disable-xcbc
  26. post-install:
  27. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
  28. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
  29. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib
  30. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  31. touch $(IDIR_STRONGSWAN)/etc/ipsec.secrets
  32. $(CP) $(WRKINST)/usr/libexec/ipsec/plugins/*.so \
  33. $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  34. $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
  35. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \
  36. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  37. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_pluto_adns \
  38. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  39. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/starter \
  40. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  41. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown \
  42. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  43. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/whack \
  44. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  45. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_copyright \
  46. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  47. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/pluto \
  48. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  49. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \
  50. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  51. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \
  52. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  53. $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
  54. $(IDIR_STRONGSWAN)/usr/sbin
  55. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  56. $(IDIR_STRONGSWAN)/usr/lib
  57. include ${TOPDIR}/mk/pkg-bottom.mk