1
0

Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:= ipsec-tools
  5. PKG_VERSION:= 0.8.2
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= 8eb6b38716e2f3a8a72f1f549c9444c2bc28d52c9536792690564c74fe722f2d
  8. PKG_DESCR:= ipsec management tools
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= libressl
  11. PKG_BUILDDEP:= flex libressl
  12. PKG_KDEPENDS:= net-key
  13. PKG_URL:= http://ipsec-tools.sourceforge.net/
  14. PKG_SITES:= $(MASTER_SITE_SOURCEFORGE:=ipsec-tools/)
  15. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. PKG_FLAVOURS_IPSEC_TOOLS:= WITH_IPV6
  17. PKGFD_WITH_IPV6:= enable ipv6 support
  18. include $(ADK_TOPDIR)/mk/package.mk
  19. $(eval $(call PKG_template,IPSEC_TOOLS,ipsec-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  20. CONFIGURE_ARGS+= --with-kernel-headers="$(LINUX_DIR)/include" \
  21. --with-openssl="$(STAGING_TARGET_DIR)/usr" \
  22. --without-readline \
  23. --disable-security-context \
  24. --without-libradius \
  25. --without-libpam
  26. ifneq ($(ADK_PACKAGE_IPSEC_TOOLS_WITH_IPV6),)
  27. CONFIGURE_ARGS+= --enable-ipv6
  28. else
  29. CONFIGURE_ARGS+= --disable-ipv6
  30. endif
  31. ipsec-tools-install:
  32. $(INSTALL_DIR) $(IDIR_IPSEC_TOOLS)/etc
  33. $(INSTALL_DIR) $(IDIR_IPSEC_TOOLS)/usr/lib
  34. $(INSTALL_DIR) $(IDIR_IPSEC_TOOLS)/usr/sbin
  35. $(INSTALL_DATA) $(WRKBUILD)/src/racoon/samples/racoon.conf \
  36. $(IDIR_IPSEC_TOOLS)/etc
  37. $(CP) $(WRKINST)/usr/lib/lib{racoon,ipsec}.so.* \
  38. $(IDIR_IPSEC_TOOLS)/usr/lib
  39. $(INSTALL_BIN) $(WRKINST)/usr/sbin/{racoon,racoonctl,setkey,plainrsa-gen} \
  40. $(IDIR_IPSEC_TOOLS)/usr/sbin
  41. include $(ADK_TOPDIR)/mk/pkg-bottom.mk