Makefile 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= shorewall-common
  7. PKG_VERSION:= 4.0.7
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 2df43356b1fdbc91920d48c5595aa101
  10. MASTER_SITES:= http://www1.shorewall.net/pub/shorewall/4.0/shorewall-${PKG_VERSION}/
  11. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,SHOREWALL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE}))
  14. do-install:
  15. PREFIX="${WRKINST}" ${WRKBUILD}/install.sh -n
  16. # remove configfiles folder
  17. ${RM} -R ${WRKINST}/usr/share/shorewall/configfiles
  18. ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPCONF),y)
  19. ${BASH} ./files/downstrip ${WRKINST}/etc/shorewall
  20. endif
  21. ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPSHARED),y)
  22. ${BASH} ./files/downstrip ${WRKINST}/usr/share/shorewall
  23. ${BASH} ./files/downstrip ${WRKINST}/sbin
  24. gzip -9 ${WRKINST}/usr/share/shorewall/*.template
  25. endif
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_SHOREWALL}/etc/init.d
  28. ${INSTALL_DIR} ${IDIR_SHOREWALL}/etc/shorewall
  29. ${INSTALL_DIR} ${IDIR_SHOREWALL}/usr/share/shorewall
  30. ${INSTALL_DIR} ${IDIR_SHOREWALL}/sbin
  31. ${INSTALL_BIN} ./files/shorewall.init ${IDIR_SHOREWALL}/etc/init.d/shorewall
  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