Makefile 1.6 KB

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