Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.8.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b79aae3055a51f8de5c0f1b8ca6cf619
  8. PKG_DESCR:= IPsec management tools
  9. PKG_SECTION:= net/security
  10. PKG_BUILDDEP:= openssl
  11. PKG_DEPENDS:= libopenssl
  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. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. CONFIGURE_ARGS+= --with-kernel-headers="${LINUX_DIR}/include" \
  22. --without-readline \
  23. --disable-security-context \
  24. --with-openssl="${STAGING_TARGET_DIR}/usr" \
  25. --without-libradius \
  26. --without-libpam
  27. ifneq (${ADK_PACKAGE_IPSEC_TOOLS_WITH_IPV6},)
  28. CONFIGURE_ARGS+= --enable-ipv6
  29. else
  30. CONFIGURE_ARGS+= --disable-ipv6
  31. endif
  32. post-install:
  33. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/usr/sbin ${IDIR_IPSEC_TOOLS}/usr/lib
  34. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/etc
  35. ${INSTALL_DATA} ${WRKBUILD}/src/racoon/samples/racoon.conf \
  36. ${IDIR_IPSEC_TOOLS}/etc/
  37. ${CP} ${WRKINST}/usr/lib/libipsec.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  38. ${CP} ${WRKINST}/usr/lib/libracoon.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  39. ${INSTALL_BIN} ${WRKINST}/usr/sbin/plainrsa-gen \
  40. ${IDIR_IPSEC_TOOLS}/usr/sbin/
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoon ${IDIR_IPSEC_TOOLS}/usr/sbin
  42. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoonctl \
  43. ${IDIR_IPSEC_TOOLS}/usr/sbin
  44. ${INSTALL_BIN} ${WRKINST}/usr/sbin/setkey ${IDIR_IPSEC_TOOLS}/usr/sbin
  45. include ${TOPDIR}/mk/pkg-bottom.mk