Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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:= 2
  7. PKG_MD5SUM:= b79aae3055a51f8de5c0f1b8ca6cf619
  8. PKG_DESCR:= IPsec management tools
  9. PKG_SECTION:= net/security
  10. PKG_BUILDDEP:= openssl flex
  11. PKG_DEPENDS:= libopenssl
  12. PKG_URL:= http://ipsec-tools.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ipsec-tools/}
  14. PKG_LIBC_DEPENDS:= uclibc glibc
  15. PKG_CFLINE_IPSEC_TOOLS:=depends on !ADK_TOOLCHAIN_ONLY
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  17. PKG_FLAVOURS_IPSEC_TOOLS:= WITH_IPV6
  18. PKGFD_WITH_IPV6:= enable IPv6 support
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,IPSEC_TOOLS,ipsec-tools,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  22. CONFIGURE_ARGS+= --with-kernel-headers="${LINUX_DIR}/include" \
  23. --without-readline \
  24. --disable-security-context \
  25. --with-openssl="${STAGING_TARGET_DIR}/usr" \
  26. --without-libradius \
  27. --without-libpam
  28. ifneq (${ADK_PACKAGE_IPSEC_TOOLS_WITH_IPV6},)
  29. CONFIGURE_ARGS+= --enable-ipv6
  30. else
  31. CONFIGURE_ARGS+= --disable-ipv6
  32. endif
  33. ipsec-tools-install:
  34. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/usr/sbin ${IDIR_IPSEC_TOOLS}/usr/lib
  35. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/etc
  36. ${INSTALL_DATA} ${WRKBUILD}/src/racoon/samples/racoon.conf \
  37. ${IDIR_IPSEC_TOOLS}/etc/
  38. ${CP} ${WRKINST}/usr/lib/libipsec.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  39. ${CP} ${WRKINST}/usr/lib/libracoon.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  40. ${INSTALL_BIN} ${WRKINST}/usr/sbin/plainrsa-gen \
  41. ${IDIR_IPSEC_TOOLS}/usr/sbin/
  42. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoon ${IDIR_IPSEC_TOOLS}/usr/sbin
  43. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoonctl \
  44. ${IDIR_IPSEC_TOOLS}/usr/sbin
  45. ${INSTALL_BIN} ${WRKINST}/usr/sbin/setkey ${IDIR_IPSEC_TOOLS}/usr/sbin
  46. include ${TOPDIR}/mk/pkg-bottom.mk