1
0

Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.41
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= da2e8b02ecc30a408cc5766767fef84f
  8. PKG_DESCR:= IPsec software
  9. PKG_SECTION:= net/security
  10. PKG_DEPENDS:= ip libgmp libpthread kmod-net-key kmod-xfrm-user
  11. PKG_DEPENDS+= kmod-inet-ah kmod-inet-esp
  12. PKG_DEPENDS+= kmod-inet-xfrm-mode-tunnel kmod-inet-xfrm-mode-transport
  13. PKG_DEPENDS+= kmod-crypto-sha1 kmod-crypto-md5
  14. PKG_DEPENDS+= kmod-crypto-null kmod-crypto-des kmod-crypto-aes
  15. PKG_DEPENDS+= kmod-crypto-hmac kmod-crypto-cbc kmod-crypto-authenc
  16. PKG_BUILDDEP:= gmp
  17. PKG_URL:= http://www.openswan.org/
  18. PKG_SITES:= http://www.openswan.org/download/
  19. PKG_NOPARALLEL:= 1
  20. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  21. # GLOB_BRACE usage
  22. PKG_LIBC_DEPENDS:= uclibc glibc
  23. include ${TOPDIR}/mk/package.mk
  24. $(eval $(call PKG_template,OPENSWAN,openswan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  25. CONFIG_STYLE:= manual
  26. XAKE_FLAGS+= KERNELSRC="${LINUX_DIR}" \
  27. IPSECDIR="/usr/lib/ipsec" \
  28. INC_USRLOCAL="/usr" \
  29. MODPROBE="insmod" \
  30. OSDEP="linux" \
  31. WERROR="" \
  32. BUILDENV="linux"
  33. ALL_TARGET:= programs
  34. openswan-install:
  35. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/lib/ipsec
  36. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/libexec/ipsec
  37. ${INSTALL_DIR} ${IDIR_OPENSWAN}/etc/ipsec.d
  38. ${INSTALL_DIR} ${IDIR_OPENSWAN}/usr/sbin
  39. ${INSTALL_DATA} ${WRKINST}/etc/ipsec.conf ${IDIR_OPENSWAN}/etc/
  40. ${CP} ${WRKINST}/etc/ipsec.d/* ${IDIR_OPENSWAN}/etc/ipsec.d
  41. ${CP} ${WRKINST}/usr/lib/ipsec/* ${IDIR_OPENSWAN}/usr/lib/ipsec
  42. ${CP} ${WRKINST}/usr/libexec/ipsec/* ${IDIR_OPENSWAN}/usr/libexec/ipsec
  43. rm ${IDIR_OPENSWAN}/usr/libexec/ipsec/setup
  44. ${INSTALL_BIN} ${WRKINST}/etc/rc.d/init.d/ipsec \
  45. ${IDIR_OPENSWAN}/usr/libexec/ipsec/setup
  46. ${INSTALL_BIN} ${WRKINST}/usr/sbin/ipsec ${IDIR_OPENSWAN}/usr/sbin
  47. include ${TOPDIR}/mk/pkg-bottom.mk