blob: 2c45fdd6ca0e4a2bf6e1ee98de1eb80100a15170 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= shorewall-common
PKG_VERSION:= 4.0.7
PKG_RELEASE:= 2
PKG_HASH:= bd392afff2bd4fd0488401d41192c6205f4694faaa7231065fed62fa03fc814c
PKG_DESCR:= high-level netfilter configuration tool
PKG_SECTION:= net/firewall
PKG_DEPENDS:= iptables
PKG_URL:= http://www.shorewall.net
PKG_SITES:= http://www1.shorewall.net/pub/shorewall/4.0/shorewall-${PKG_VERSION}/
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,SHOREWALL,shorewall,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIG_STYLE:= manual
BUILD_STYLE:= manual
INSTALL_STYLE:= manual
do-build:
PREFIX="${WRKINST}" ${WRKBUILD}/install.sh -n
# remove configfiles folder
${RM} -R ${WRKINST}/usr/share/shorewall/configfiles
ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPCONF),y)
${BASH} ./files/downstrip ${WRKINST}/etc/shorewall
endif
ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPSHARED),y)
${BASH} ./files/downstrip ${WRKINST}/usr/share/shorewall
${BASH} ./files/downstrip ${WRKINST}/sbin
gzip -9 ${WRKINST}/usr/share/shorewall/*.template
endif
do-install:
${INSTALL_DIR} ${IDIR_SHOREWALL}/etc/shorewall
${INSTALL_DIR} ${IDIR_SHOREWALL}/usr/share/shorewall
${INSTALL_DIR} ${IDIR_SHOREWALL}/usr/sbin
${INSTALL_DATA} ${WRKINST}/etc/shorewall/* \
${IDIR_SHOREWALL}/etc/shorewall/
${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/actions.std \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/configpath \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/modules \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/rfc1918 \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/version \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/action.* \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/macro.* \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_DATA} ${WRKINST}/usr/share/shorewall/lib.* \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/firewall \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/functions \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_BIN} ${WRKINST}/usr/share/shorewall/wait4ifup \
${IDIR_SHOREWALL}/usr/share/shorewall/
${INSTALL_BIN} ${WRKINST}/sbin/shorewall ${IDIR_SHOREWALL}/usr/sbin
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
|