| 1 |
# $FreeWRT$ |
| 2 |
#- |
| 3 |
# This file is part of the FreeWRT project. FreeWRT is copyrighted |
| 4 |
# material, please see the LICENCE file in the top-level directory |
| 5 |
# or at http://www.freewrt.org/licence for details. |
| 6 |
|
| 7 |
include $(TOPDIR)/rules.mk |
| 8 |
|
| 9 |
PKG_NAME:= shorewall |
| 10 |
PKG_VERSION:= 3.4.2 |
| 11 |
PKG_RELEASE:= 3 |
| 12 |
PKG_MD5SUM:= 6fe1a8e4bf552ade7fdc327be94f09f4 |
| 13 |
PKG_INIT:= 45 |
| 14 |
PKG_SOURCE_URL:= http://www1.shorewall.net/pub/$(PKG_NAME)/3.4/$(PKG_NAME)-$(PKG_VERSION) |
| 15 |
PKG_SOURCE:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 |
| 16 |
|
| 17 |
include $(TOPDIR)/mk/package.mk |
| 18 |
|
| 19 |
$(eval $(call PKG_template,SHOREWALL,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) |
| 20 |
|
| 21 |
$(WRKBUILD)/.built: |
| 22 |
PREFIX="$(WRKINST)" $(WRKBUILD)/install.sh -n |
| 23 |
|
| 24 |
# remove configfiles folder |
| 25 |
${RM} -R ${WRKINST}/usr/share/shorewall/configfiles |
| 26 |
|
| 27 |
ifeq ($(FWRT_PACKAGE_SHOREWALL_STRIPCONF),y) |
| 28 |
$(BASH) ./files/downstrip ${WRKINST}/etc/shorewall |
| 29 |
endif |
| 30 |
ifeq ($(FWRT_PACKAGE_SHOREWALL_STRIPSHARED),y) |
| 31 |
$(BASH) ./files/downstrip ${WRKINST}/usr/share/shorewall |
| 32 |
${BASH} ./files/downstrip ${WRKINST}/sbin |
| 33 |
gzip -9 ${WRKINST}/usr/share/shorewall/*.template |
| 34 |
endif |
| 35 |
touch $@ |
| 36 |
|
| 37 |
$(IPKG_SHOREWALL): |
| 38 |
install -d -m0755 ${IDIR_SHOREWALL}/etc/init.d |
| 39 |
install -d -m0755 ${IDIR_SHOREWALL}/etc/shorewall |
| 40 |
install -d -m0755 ${IDIR_SHOREWALL}/usr/share/shorewall |
| 41 |
install -d -m0755 ${IDIR_SHOREWALL}/sbin |
| 42 |
install -m0755 ./files/shorewall.init ${IDIR_SHOREWALL}/etc/init.d/S${PKG_INIT}${PKG_NAME} |
| 43 |
install -m0644 ${WRKINST}/etc/shorewall/* ${IDIR_SHOREWALL}/etc/shorewall/ |
| 44 |
install -m0644 ${WRKINST}/usr/share/shorewall/actions.std ${IDIR_SHOREWALL}/usr/share/shorewall |
| 45 |
install -m0644 ${WRKINST}/usr/share/shorewall/configpath ${IDIR_SHOREWALL}/usr/share/shorewall |
| 46 |
install -m0644 ${WRKINST}/usr/share/shorewall/modules ${IDIR_SHOREWALL}/usr/share/shorewall |
| 47 |
install -m0644 ${WRKINST}/usr/share/shorewall/rfc1918 ${IDIR_SHOREWALL}/usr/share/shorewall |
| 48 |
install -m0644 ${WRKINST}/usr/share/shorewall/version ${IDIR_SHOREWALL}/usr/share/shorewall |
| 49 |
install -m0644 ${WRKINST}/usr/share/shorewall/action.* ${IDIR_SHOREWALL}/usr/share/shorewall |
| 50 |
install -m0644 ${WRKINST}/usr/share/shorewall/macro.* ${IDIR_SHOREWALL}/usr/share/shorewall |
| 51 |
install -m0644 ${WRKINST}/usr/share/shorewall/prog.* ${IDIR_SHOREWALL}/usr/share/shorewall |
| 52 |
install -m0644 ${WRKINST}/usr/share/shorewall/lib.* ${IDIR_SHOREWALL}/usr/share/shorewall |
| 53 |
install -m0755 ${WRKINST}/usr/share/shorewall/compiler ${IDIR_SHOREWALL}/usr/share/shorewall |
| 54 |
install -m0755 ${WRKINST}/usr/share/shorewall/firewall ${IDIR_SHOREWALL}/usr/share/shorewall |
| 55 |
install -m0755 ${WRKINST}/usr/share/shorewall/functions ${IDIR_SHOREWALL}/usr/share/shorewall |
| 56 |
install -m0755 ${WRKINST}/usr/share/shorewall/wait4ifup ${IDIR_SHOREWALL}/usr/share/shorewall |
| 57 |
install -m0755 ${WRKINST}/sbin/shorewall ${IDIR_SHOREWALL}/sbin |
| 58 |
$(RSTRIP) $(IDIR_SHOREWALL) |
| 59 |
$(IPKG_BUILD) $(IDIR_SHOREWALL) $(PACKAGE_DIR) |
| 60 |
|