2013-11-12 23:33:15 +00:00
|
|
|
# Template file for 'shorewall'
|
|
|
|
pkgname=shorewall
|
2013-12-25 19:06:04 +00:00
|
|
|
version=4.5.21.5
|
2013-11-14 08:41:46 +00:00
|
|
|
revision=2
|
2013-11-12 23:33:15 +00:00
|
|
|
_disturl="http://www.shorewall.net/pub/${pkgname}/4.5/${pkgname}-4.5.21"
|
|
|
|
distfiles="
|
|
|
|
${_disturl}/${pkgname}-${version}.tar.bz2
|
2013-11-13 03:14:49 +00:00
|
|
|
${_disturl}/${pkgname}6-${version}.tar.bz2
|
|
|
|
${_disturl}/${pkgname}-core-${version}.tar.bz2"
|
2013-11-12 23:33:15 +00:00
|
|
|
checksum="
|
2013-12-25 19:06:04 +00:00
|
|
|
e40ff86c16ffb9793e08bfa25ee057bdf73ff302077e5e6006cda974ed74af11
|
|
|
|
90a1e5b210ec3a90a6bdcda19e13d02d444bd9aabe6a3521816b54711d7f1023
|
|
|
|
2e0422a0c41a645a95846f3b0b9b355c26d53aaadc11b986a204fd9b67db78f1"
|
2013-11-12 23:33:15 +00:00
|
|
|
maintainer="Steven R <strob AT styez DOT com>"
|
|
|
|
homepage="http://www.shorewall.net/"
|
|
|
|
license="GPL"
|
|
|
|
short_desc="An iptables-based firewall for Linux systems"
|
|
|
|
|
2013-11-14 08:41:46 +00:00
|
|
|
create_wrksrc=yes
|
2014-01-01 16:50:36 +00:00
|
|
|
noarch="yes"
|
|
|
|
conf_files="
|
|
|
|
/etc/shorewall/accounting
|
|
|
|
/etc/shorewall/actions
|
|
|
|
/etc/shorewall/blrules
|
|
|
|
/etc/shorewall/clear
|
|
|
|
/etc/shorewall/conntrack
|
|
|
|
/etc/shorewall/ecn
|
|
|
|
/etc/shorewall/findgw
|
|
|
|
/etc/shorewall/hosts
|
|
|
|
/etc/shorewall/init
|
|
|
|
/etc/shorewall/initdone
|
|
|
|
/etc/shorewall/interfaces
|
|
|
|
/etc/shorewall/lib.private
|
|
|
|
/etc/shorewall/maclist
|
|
|
|
/etc/shorewall/masq
|
|
|
|
/etc/shorewall/nat
|
|
|
|
/etc/shorewall/netmap
|
|
|
|
/etc/shorewall/params
|
|
|
|
/etc/shorewall/policy
|
|
|
|
/etc/shorewall/providers
|
|
|
|
/etc/shorewall/proxyarp
|
|
|
|
/etc/shorewall/refresh
|
|
|
|
/etc/shorewall/refreshed
|
|
|
|
/etc/shorewall/restored
|
|
|
|
/etc/shorewall/routes
|
|
|
|
/etc/shorewall/stoppedrules
|
|
|
|
/etc/shorewall/rtrules
|
|
|
|
/etc/shorewall/rules
|
|
|
|
/etc/shorewall/scfilter
|
|
|
|
/etc/shorewall/secmarks
|
|
|
|
/etc/shorewall/shorewall.conf
|
|
|
|
/etc/shorewall/start
|
|
|
|
/etc/shorewall/started
|
|
|
|
/etc/shorewall/stop
|
|
|
|
/etc/shorewall/stopped
|
|
|
|
/etc/shorewall/tcclasses
|
|
|
|
/etc/shorewall/tcclear
|
|
|
|
/etc/shorewall/tcdevices
|
|
|
|
/etc/shorewall/tcfilters
|
|
|
|
/etc/shorewall/tcinterfaces
|
|
|
|
/etc/shorewall/tcpri
|
|
|
|
/etc/shorewall/tcrules
|
|
|
|
/etc/shorewall/tos
|
|
|
|
/etc/shorewall/tunnels
|
|
|
|
/etc/shorewall/zones"
|
|
|
|
|
|
|
|
depends="shorewall-core perl"
|
|
|
|
systemd_services="${pkgname}.service off"
|
|
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
2013-11-13 03:14:49 +00:00
|
|
|
|
2013-11-12 23:33:15 +00:00
|
|
|
do_build(){
|
2013-11-14 08:41:46 +00:00
|
|
|
for product in ${pkgname}{-core,6,}-${version}; do
|
|
|
|
cd ${wrksrc}/${product}
|
|
|
|
./configure HOST=archlinux SBINDIR=/usr/bin
|
|
|
|
done
|
2013-11-12 23:33:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-01-01 16:50:36 +00:00
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
|
|
DESTDIR="${DESTDIR}" ./install.sh
|
|
|
|
vmkdir usr/share/doc/${pkgname}
|
|
|
|
cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
2013-11-12 23:33:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
shorewall-core_package() {
|
2013-11-13 15:52:41 +00:00
|
|
|
noarch="yes"
|
2013-11-12 23:33:15 +00:00
|
|
|
depends="iptables iproute2"
|
2013-11-13 15:52:41 +00:00
|
|
|
short_desc+=" - Core Shorewall libraries"
|
2013-11-12 23:33:15 +00:00
|
|
|
pkg_install() {
|
2013-11-14 08:41:46 +00:00
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
2013-11-13 15:52:41 +00:00
|
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
2013-11-12 23:33:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shorewall6_package() {
|
2013-11-14 00:30:00 +00:00
|
|
|
noarch="yes"
|
2013-11-12 23:33:15 +00:00
|
|
|
depends="shorewall"
|
2013-11-13 15:52:41 +00:00
|
|
|
short_desc+=" - IPv6 support"
|
2013-11-14 08:41:46 +00:00
|
|
|
systemd_services="${pkgname}.service off"
|
2013-11-13 15:52:41 +00:00
|
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
2013-11-12 23:33:15 +00:00
|
|
|
pkg_install() {
|
2013-11-14 08:41:46 +00:00
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
2013-11-13 15:52:41 +00:00
|
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
2013-11-12 23:33:15 +00:00
|
|
|
}
|
2013-11-14 08:41:46 +00:00
|
|
|
for f in ${PKGDESTDIR}/etc/${pkgname}/*; do
|
|
|
|
conf_files+="${f##${PKGDESTDIR}} "
|
|
|
|
done
|
2013-11-12 23:33:15 +00:00
|
|
|
}
|