Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  15. PKG_FLAVOURS:= WITH_IPV6
  16. PKGFD_WITH_IPV6:= enable IPv6 support
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,IPSEC_TOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. CONFIGURE_ARGS+= --with-kernel-headers="${LINUX_DIR}/include" \
  20. --without-readline \
  21. --disable-security-context \
  22. --with-openssl="${STAGING_TARGET_DIR}/usr" \
  23. --without-libradius \
  24. --without-libpam
  25. ifneq (${ADK_PACKAGE_IPSEC_TOOLS_WITH_IPV6},)
  26. CONFIGURE_ARGS+= --enable-ipv6
  27. else
  28. CONFIGURE_ARGS+= --disable-ipv6
  29. endif
  30. post-install:
  31. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/usr/sbin ${IDIR_IPSEC_TOOLS}/usr/lib
  32. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/etc
  33. ${INSTALL_DATA} ${WRKBUILD}/src/racoon/samples/racoon.conf \
  34. ${IDIR_IPSEC_TOOLS}/etc/
  35. ${CP} ${WRKINST}/usr/lib/libipsec.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libracoon.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  37. ${INSTALL_BIN} ${WRKINST}/usr/sbin/plainrsa-gen \
  38. ${IDIR_IPSEC_TOOLS}/usr/sbin/
  39. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoon ${IDIR_IPSEC_TOOLS}/usr/sbin
  40. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoonctl \
  41. ${IDIR_IPSEC_TOOLS}/usr/sbin
  42. ${INSTALL_BIN} ${WRKINST}/usr/sbin/setkey ${IDIR_IPSEC_TOOLS}/usr/sbin
  43. include ${TOPDIR}/mk/pkg-bottom.mk