Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= openswan
  5. PKG_VERSION:= 2.6.41
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= f9ebb395cb0f717dc43942662ab65161035a99dbf8e680c1d1511d4de130d0fb
  8. PKG_DESCR:= ipsec software
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= ip libgmp libpthread
  11. PKG_BUILDDEP:= gmp
  12. PKG_URL:= http://www.openswan.org/
  13. PKG_SITES:= http://www.openswan.org/download/
  14. PKG_NOPARALLEL:= 1
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  16. # GLOB_BRACE usage
  17. PKG_LIBC_DEPENDS:= uclibc glibc
  18. include ${ADK_TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,OPENSWAN,openswan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. CONFIG_STYLE:= manual
  21. XAKE_FLAGS+= KERNELSRC="${LINUX_DIR}" \
  22. IPSECDIR="/usr/lib/ipsec" \
  23. INC_USRLOCAL="/usr" \
  24. MODPROBE="insmod" \
  25. OSDEP="linux" \
  26. WERROR="" \
  27. BUILDENV="linux"
  28. ALL_TARGET:= programs
  29. openswan-install:
  30. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/lib/ipsec
  31. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/libexec/ipsec
  32. ${INSTALL_DIR} ${IDIR_OPENSWAN}/etc/ipsec.d
  33. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/sbin
  34. ${INSTALL_DATA} ${WRKINST}/etc/ipsec.conf ${IDIR_OPENSWAN}/etc/
  35. ${CP} ${WRKINST}/etc/ipsec.d/* ${IDIR_OPENSWAN}/etc/ipsec.d
  36. ${CP} ${WRKINST}/usr/lib/ipsec/* ${IDIR_OPENSWAN}/usr/lib/ipsec
  37. ${CP} ${WRKINST}/usr/libexec/ipsec/* ${IDIR_OPENSWAN}/usr/libexec/ipsec
  38. rm ${IDIR_OPENSWAN}/usr/libexec/ipsec/setup
  39. ${INSTALL_BIN} ${WRKINST}/etc/rc.d/init.d/ipsec \
  40. ${IDIR_OPENSWAN}/usr/libexec/ipsec/setup
  41. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ipsec ${IDIR_OPENSWAN}/usr/sbin
  42. include ${ADK_TOPDIR}/mk/pkg-bottom.mk