Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_BUILDDEP+= openssl
  8. PKG_MD5SUM:= 72861f005746ee27984b2ee715ecc629
  9. PKG_DESCR:= IPsec management tools
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= libopenssl
  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_STYLE= gnu
  18. CONFIGURE_ARGS+= --with-kernel-headers="${LINUX_DIR}/include" \
  19. --without-readline \
  20. --disable-security-context \
  21. --with-openssl="${STAGING_DIR}/usr" \
  22. --without-libradius \
  23. --without-libpam
  24. BUILD_STYLE= auto
  25. INSTALL_STYLE= auto
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/usr/sbin ${IDIR_IPSEC_TOOLS}/usr/lib
  28. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/etc
  29. ${INSTALL_DATA} ${WRKBUILD}/src/racoon/samples/racoon.conf \
  30. ${IDIR_IPSEC_TOOLS}/etc/
  31. ${CP} ${WRKINST}/usr/lib/libipsec.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  32. ${CP} ${WRKINST}/usr/lib/libracoon.so.* ${IDIR_IPSEC_TOOLS}/usr/lib
  33. ${INSTALL_BIN} ${WRKINST}/usr/sbin/plainrsa-gen \
  34. ${IDIR_IPSEC_TOOLS}/usr/sbin/
  35. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoon ${IDIR_IPSEC_TOOLS}/usr/sbin
  36. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoonctl ${IDIR_IPSEC_TOOLS}/usr/sbin
  37. ${INSTALL_BIN} ${WRKINST}/usr/sbin/setkey ${IDIR_IPSEC_TOOLS}/usr/sbin
  38. include ${TOPDIR}/mk/pkg-bottom.mk