2013-11-13 00:33:15 +01:00
|
|
|
# Template file for 'shorewall'
|
|
|
|
pkgname=shorewall
|
2014-05-20 18:45:42 +02:00
|
|
|
version=4.6.0.1
|
2014-04-18 17:15:03 +02:00
|
|
|
revision=1
|
2014-05-20 18:45:42 +02:00
|
|
|
_disturl="http://www.shorewall.net/pub/${pkgname}/4.6/${pkgname}-4.6.0"
|
2013-11-13 00:33:15 +01:00
|
|
|
distfiles="
|
|
|
|
${_disturl}/${pkgname}-${version}.tar.bz2
|
2013-11-13 04:14:49 +01:00
|
|
|
${_disturl}/${pkgname}6-${version}.tar.bz2
|
|
|
|
${_disturl}/${pkgname}-core-${version}.tar.bz2"
|
2013-11-13 00:33:15 +01:00
|
|
|
checksum="
|
2014-05-20 18:45:42 +02:00
|
|
|
1070f448866d2f6e6388ac6d5d92a79399f05722a7c6baa16162bd47323b34d3
|
|
|
|
ec39e8878856f498ec43d195e85fb78e16e7cfecdebe21473e7bba48383312ff
|
|
|
|
4d1552ab3cec846cdf5de0f4958e405e5f0d2b677d9f8a90a4598dfa9f2652a3"
|
2014-02-23 00:06:31 +01:00
|
|
|
depends="shorewall-core perl"
|
|
|
|
maintainer="Steven R <dev@styez.com>"
|
2013-11-13 00:33:15 +01:00
|
|
|
homepage="http://www.shorewall.net/"
|
|
|
|
license="GPL"
|
|
|
|
short_desc="An iptables-based firewall for Linux systems"
|
|
|
|
|
2014-01-01 17:50:36 +01:00
|
|
|
noarch="yes"
|
2014-02-23 00:06:31 +01:00
|
|
|
create_wrksrc="yes"
|
|
|
|
systemd_services="${pkgname}.service off"
|
|
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
2014-01-01 17:50:36 +01:00
|
|
|
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"
|
|
|
|
|
2013-11-13 04:14:49 +01:00
|
|
|
|
2013-11-13 00:33:15 +01:00
|
|
|
do_build(){
|
2014-02-23 00:44:16 +01:00
|
|
|
for product in ${pkgname}{-core,6,}-${version}; do
|
|
|
|
cd ${wrksrc}/${product}
|
|
|
|
./configure HOST=archlinux SBINDIR=/usr/bin
|
|
|
|
done
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-02-23 00:44:16 +01:00
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
|
|
DESTDIR="${DESTDIR}" ./install.sh
|
|
|
|
vmkdir usr/share/doc/${pkgname}
|
|
|
|
cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
shorewall-core_package() {
|
2014-02-23 00:44:16 +01:00
|
|
|
noarch="yes"
|
|
|
|
depends="iptables iproute2"
|
|
|
|
short_desc+=" - Core Shorewall libraries"
|
|
|
|
pkg_install() {
|
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
|
|
|
}
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
shorewall6_package() {
|
2014-02-23 00:44:16 +01:00
|
|
|
noarch="yes"
|
|
|
|
depends="shorewall"
|
|
|
|
short_desc+=" - IPv6 support"
|
|
|
|
systemd_services="${pkgname}.service off"
|
|
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
|
|
|
pkg_install() {
|
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
|
|
|
}
|
|
|
|
for f in ${PKGDESTDIR}/etc/${pkgname}/*; do
|
|
|
|
conf_files+="${f##${PKGDESTDIR}} "
|
|
|
|
done
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|