Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= openswan
  5. PKG_VERSION:= 2.6.22
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= gmp
  8. PKG_MD5SUM:= 9a30009bade8a1b09fba27680c87cf72
  9. PKG_DESCR:= IPSec software
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= ip libgmp
  12. PKG_URL:= http://www.openswan.org
  13. PKG_SITES:= http://www.openswan.org/download/ \
  14. ftp://ftp.openswan.org/openswan/
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,OPENSWAN,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. #ifeq ($(ADK_COMPILE_OPENSWAN_WITH_NETKEY),y)
  18. #XAKE_FLAGS+= USE_KLIPS=false USE_NETKEY=true
  19. #endif
  20. #ifeq ($(ADK_COMPILE_OPENSWAN_WITH_KLIPS),y)
  21. #XAKE_FLAGS+= USE_KLIPS=true USE_NETKEY=false
  22. #endif
  23. XAKE_FLAGS+= KERNELSRC="${LINUX_DIR}" \
  24. IPSECDIR="/usr/lib/ipsec" \
  25. INC_USRLOCAL="/usr" \
  26. MODPROBE="insmod" \
  27. OSDEP="linux" \
  28. BUILDENV="linux"
  29. BUILD_STYLE:= auto
  30. INSTALL_STYLE:= auto
  31. ALL_TARGET:= programs
  32. post-install:
  33. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/lib/ipsec
  34. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/libexec/ipsec
  35. ${INSTALL_DIR} ${IDIR_OPENSWAN}/etc/ipsec.d
  36. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/sbin
  37. ${CP} ${WRKINST}/etc/ipsec.conf ${IDIR_OPENSWAN}/etc/
  38. ${CP} ${WRKINST}/etc/ipsec.d/* ${IDIR_OPENSWAN}/etc/ipsec.d
  39. ${CP} ${WRKINST}/usr/lib/ipsec/* ${IDIR_OPENSWAN}/usr/lib/ipsec
  40. ${CP} ${WRKINST}/usr/libexec/ipsec/* ${IDIR_OPENSWAN}/usr/libexec/ipsec
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ipsec ${IDIR_OPENSWAN}/usr/sbin
  42. include ${TOPDIR}/mk/pkg-bottom.mk