Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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:= shorewall-common
  5. PKG_VERSION:= 4.0.7
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 2df43356b1fdbc91920d48c5595aa101
  8. PKG_DESCR:= high-level netfilter configuration tool
  9. PKG_SECTION:= net/firewall
  10. PKG_DEPENDS:= iptables
  11. PKG_URL:= http://www.shorewall.net
  12. PKG_SITES:= http://www1.shorewall.net/pub/shorewall/4.0/shorewall-${PKG_VERSION}/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include ${ADK_TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,SHOREWALL,shorewall,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. do-build:
  20. PREFIX="${WRKINST}" ${WRKBUILD}/install.sh -n
  21. # remove configfiles folder
  22. ${RM} -R ${WRKINST}/usr/share/shorewall/configfiles
  23. ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPCONF),y)
  24. ${BASH} ./files/downstrip ${WRKINST}/etc/shorewall
  25. endif
  26. ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPSHARED),y)
  27. ${BASH} ./files/downstrip ${WRKINST}/usr/share/shorewall
  28. ${BASH} ./files/downstrip ${WRKINST}/sbin
  29. gzip -9 ${WRKINST}/usr/share/shorewall/*.template
  30. endif
  31. do-install:
  32. ${INSTALL_DIR} ${IDIR_SHOREWALL}/etc/shorewall
  33. ${INSTALL_DIR} ${IDIR_SHOREWALL}/usr/share/shorewall
  34. ${INSTALL_DIR} ${IDIR_SHOREWALL}/usr/sbin
  35. ${INSTALL_DATA} ${WRKINST}/etc/shorewall/* \
  36. ${IDIR_SHOREWALL}/etc/shorewall/
  37. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/actions.std \
  38. ${IDIR_SHOREWALL}/usr/share/shorewall/
  39. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/configpath \
  40. ${IDIR_SHOREWALL}/usr/share/shorewall/
  41. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/modules \
  42. ${IDIR_SHOREWALL}/usr/share/shorewall/
  43. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/rfc1918 \
  44. ${IDIR_SHOREWALL}/usr/share/shorewall/
  45. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/version \
  46. ${IDIR_SHOREWALL}/usr/share/shorewall/
  47. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/action.* \
  48. ${IDIR_SHOREWALL}/usr/share/shorewall/
  49. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/macro.* \
  50. ${IDIR_SHOREWALL}/usr/share/shorewall/
  51. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/lib.* \
  52. ${IDIR_SHOREWALL}/usr/share/shorewall/
  53. ${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/firewall \
  54. ${IDIR_SHOREWALL}/usr/share/shorewall/
  55. ${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/functions \
  56. ${IDIR_SHOREWALL}/usr/share/shorewall/
  57. ${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/wait4ifup \
  58. ${IDIR_SHOREWALL}/usr/share/shorewall/
  59. ${INSTALL_BIN} ${WRKINST}/sbin/shorewall ${IDIR_SHOREWALL}/usr/sbin
  60. include ${ADK_TOPDIR}/mk/pkg-bottom.mk