1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.21
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ba9da6c90e0f5fe856767d7510ce371f
  8. PKG_DESCR:= IPSec software
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= ip libgmp
  11. PKG_URL:= http://www.openswan.org
  12. PKG_SITES:= http://www.openswan.org/download/ \
  13. ftp://ftp.openswan.org/openswan/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,OPENSWAN,openswan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. FLAGS:= ${TCFLAGS} ${TCPPFLAGS} ${TLDFLAGS}
  17. do-build:
  18. ${MAKE} -C ${WRKBUILD} \
  19. ${TARGET_CONFIGURE_OPTS} \
  20. KERNELSRC="${LINUX_DIR}" \
  21. ARCH="${ARCH}" \
  22. USERCOMPILE="${FLAGS}" \
  23. EXTRA_INCLUDE="${TCPPFLAGS}" \
  24. EXTRA_LIBS="${TLDFLAGS}" \
  25. IPSECDIR="/usr/lib/ipsec" \
  26. INC_USRLOCAL="/usr" \
  27. MODPROBE="insmod" \
  28. programs
  29. do-install:
  30. ${MAKE} -C ${WRKBUILD} \
  31. ${TARGET_CONFIGURE_OPTS} \
  32. DESTDIR="${IDIR_OPENSWAN}" \
  33. KERNELSRC="${LINUX_DIR}" \
  34. ARCH="${ARCH}" \
  35. USERCOMPILE="${FLAGS}" \
  36. IPSECDIR="/usr/lib/ipsec" \
  37. INC_USRLOCAL="/usr" \
  38. MODPROBE="insmod" \
  39. install
  40. rm -rf ${IDIR_OPENSWAN}/usr/share
  41. rm -rf ${IDIR_OPENSWAN}/usr/man
  42. rm -rf ${IDIR_OPENSWAN}/var
  43. mv ${IDIR_OPENSWAN}/etc/rc.d/init.d/ipsec \
  44. ${IDIR_OPENSWAN}/usr/libexec/ipsec/setup
  45. rm -rf ${IDIR_OPENSWAN}/etc/rc*.d
  46. find ${IDIR_OPENSWAN} -name \*.old -print0 | xargs -0 rm -rf
  47. include ${TOPDIR}/mk/pkg-bottom.mk