Makefile 2.5 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:= shorewall-common
  5. PKG_VERSION:= 4.0.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 2df43356b1fdbc91920d48c5595aa101
  8. PKG_DESCR:= high-level netfilter configuration tool
  9. PKG_SECTION:= net
  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 ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,SHOREWALL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. do-install:
  17. PREFIX="${WRKINST}" ${WRKBUILD}/install.sh -n
  18. # remove configfiles folder
  19. ${RM} -R ${WRKINST}/usr/share/shorewall/configfiles
  20. ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPCONF),y)
  21. ${BASH} ./files/downstrip ${WRKINST}/etc/shorewall
  22. endif
  23. ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPSHARED),y)
  24. ${BASH} ./files/downstrip ${WRKINST}/usr/share/shorewall
  25. ${BASH} ./files/downstrip ${WRKINST}/sbin
  26. gzip -9 ${WRKINST}/usr/share/shorewall/*.template
  27. endif
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_SHOREWALL}/etc/shorewall
  30. ${INSTALL_DIR} ${IDIR_SHOREWALL}/usr/share/shorewall
  31. ${INSTALL_DIR} ${IDIR_SHOREWALL}/sbin
  32. ${INSTALL_DATA} ${WRKINST}/etc/shorewall/* ${IDIR_SHOREWALL}/etc/shorewall/
  33. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/actions.std ${IDIR_SHOREWALL}/usr/share/shorewall/
  34. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/configpath ${IDIR_SHOREWALL}/usr/share/shorewall/
  35. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/modules ${IDIR_SHOREWALL}/usr/share/shorewall/
  36. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/rfc1918 ${IDIR_SHOREWALL}/usr/share/shorewall/
  37. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/version ${IDIR_SHOREWALL}/usr/share/shorewall/
  38. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/action.* ${IDIR_SHOREWALL}/usr/share/shorewall/
  39. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/macro.* ${IDIR_SHOREWALL}/usr/share/shorewall/
  40. ${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/lib.* ${IDIR_SHOREWALL}/usr/share/shorewall/
  41. ${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/firewall ${IDIR_SHOREWALL}/usr/share/shorewall/
  42. ${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/functions ${IDIR_SHOREWALL}/usr/share/shorewall/
  43. ${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/wait4ifup ${IDIR_SHOREWALL}/usr/share/shorewall/
  44. ${INSTALL_BIN} ${WRKINST}/sbin/shorewall ${IDIR_SHOREWALL}/sbin
  45. include ${TOPDIR}/mk/pkg-bottom.mk