Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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:= ipsec-tools
  5. PKG_VERSION:= 0.7.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 72861f005746ee27984b2ee715ecc629
  8. PKG_DESCR:= IPsec management tools
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= libopenssl
  11. PKG_BUILDDEP:= openssl
  12. PKG_URL:= http://ipsec-tools.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ipsec-tools/}
  14. PKG_CFLINE_IPSEC_TOOLS:=depends on !ADK_TOOLCHAIN_ONLY
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. PKG_FLAVOURS_IPSEC_TOOLS:= WITH_IPV6
  17. PKGFD_WITH_IPV6:= enable IPv6 support
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,IPSEC_TOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIGURE_ARGS+= --with-kernel-headers="${LINUX_DIR}/include" \
  21. --without-readline \
  22. --disable-security-context \
  23. --with-openssl="${STAGING_TARGET_DIR}/usr" \
  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. post-install:
  32. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/usr/sbin ${IDIR_IPSEC_TOOLS}/usr/lib
  33. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/etc
  34. ${INSTALL_DATA} ${WRKBUILD}/src/racoon/samples/racoon.conf \
  35. ${IDIR_IPSEC_TOOLS}/etc/
  36. ${CP} ${WRKINST}/usr/lib/libipsec.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libracoon.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  38. ${INSTALL_BIN} ${WRKINST}/usr/sbin/plainrsa-gen \
  39. ${IDIR_IPSEC_TOOLS}/usr/sbin/
  40. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoon ${IDIR_IPSEC_TOOLS}/usr/sbin
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoonctl \
  42. ${IDIR_IPSEC_TOOLS}/usr/sbin
  43. ${INSTALL_BIN} ${WRKINST}/usr/sbin/setkey ${IDIR_IPSEC_TOOLS}/usr/sbin
  44. include ${TOPDIR}/mk/pkg-bottom.mk