Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,IPSEC_TOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIGURE_ARGS+= --with-kernel-headers="${LINUX_DIR}/include" \
  18. --without-readline \
  19. --disable-security-context \
  20. --with-openssl="${STAGING_DIR}/usr" \
  21. --without-libradius \
  22. --without-libpam
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/usr/sbin ${IDIR_IPSEC_TOOLS}/usr/lib
  25. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/etc
  26. ${INSTALL_DATA} ${WRKBUILD}/src/racoon/samples/racoon.conf \
  27. ${IDIR_IPSEC_TOOLS}/etc/
  28. ${CP} ${WRKINST}/usr/lib/libipsec.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  29. ${CP} ${WRKINST}/usr/lib/libracoon.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  30. ${INSTALL_BIN} ${WRKINST}/usr/sbin/plainrsa-gen \
  31. ${IDIR_IPSEC_TOOLS}/usr/sbin/
  32. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoon ${IDIR_IPSEC_TOOLS}/usr/sbin
  33. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoonctl \
  34. ${IDIR_IPSEC_TOOLS}/usr/sbin
  35. ${INSTALL_BIN} ${WRKINST}/usr/sbin/setkey ${IDIR_IPSEC_TOOLS}/usr/sbin
  36. include ${TOPDIR}/mk/pkg-bottom.mk