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
  10. PKG_DEPENDS:= libopenssl
  11. PKG_URL:= http://ipsec-tools.sourceforge.net
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ipsec-tools/}
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,IPSEC_TOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_STYLE= gnu
  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. BUILD_STYLE= auto
  24. INSTALL_STYLE= auto
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/usr/sbin
  27. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/usr/lib/
  28. ${INSTALL_DIR} ${IDIR_IPSEC_TOOLS}/etc
  29. ${INSTALL_DATA} ${WRKBUILD}/src/racoon/samples/racoon.conf ${IDIR_IPSEC_TOOLS}/etc/
  30. ${CP} ${WRKINST}/usr/lib/libipsec.so.* ${IDIR_IPSEC_TOOLS}/usr/lib/
  31. ${CP} ${WRKINST}/usr/lib/libracoon.so.* ${IDIR_IPSEC_TOOLS}/usr/lib/
  32. ${INSTALL_BIN} ${WRKINST}/usr/sbin/plainrsa-gen ${IDIR_IPSEC_TOOLS}/usr/sbin/
  33. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoon ${IDIR_IPSEC_TOOLS}/usr/sbin/
  34. ${INSTALL_BIN} ${WRKINST}/usr/sbin/racoonctl ${IDIR_IPSEC_TOOLS}/usr/sbin/
  35. ${INSTALL_BIN} ${WRKINST}/usr/sbin/setkey ${IDIR_IPSEC_TOOLS}/usr/sbin/
  36. include ${TOPDIR}/mk/pkg-bottom.mk