Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-aes kmod-crypto-md5
  14. PKG_DEPENDS+= kmod-crypto-des kmod-crypto-hmac
  15. PKG_DEPENDS+= kmod-crypto-null kmod-crypto-cbc
  16. PKG_BUILDDEP+= gmp
  17. PKG_URL:= http://strongswan.org/index.htm
  18. PKG_SITES:= http://download.strongswan.org/
  19. include $(TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,STRONGSWAN,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. CONFIGURE_ARGS+= --disable-tools \
  22. --disable-sha2
  23. post-install:
  24. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc
  25. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin
  26. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib
  27. $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  28. $(CP) $(WRKINST)/usr/libexec/ipsec/plugins/*.so \
  29. $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins
  30. $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc
  31. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \
  32. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  33. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_pluto_adns \
  34. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  35. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/starter \
  36. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  37. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown \
  38. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  39. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/whack \
  40. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  41. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_copyright \
  42. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  43. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/pluto \
  44. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  45. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \
  46. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  47. $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \
  48. $(IDIR_STRONGSWAN)/usr/libexec/ipsec
  49. $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \
  50. $(IDIR_STRONGSWAN)/usr/sbin
  51. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  52. $(IDIR_STRONGSWAN)/usr/lib
  53. include ${TOPDIR}/mk/pkg-bottom.mk