107 lines
2.7 KiB
Bash
107 lines
2.7 KiB
Bash
# Template file for 'shorewall'
|
|
pkgname=shorewall
|
|
version=5.0.2.1
|
|
revision=1
|
|
_disturl="http://www.shorewall.net/pub/${pkgname}/${version:0:3}/${pkgname}-${version%.*}"
|
|
distfiles="
|
|
${_disturl}/${pkgname}-${version}.tar.bz2
|
|
${_disturl}/${pkgname}6-${version}.tar.bz2
|
|
${_disturl}/${pkgname}-core-${version}.tar.bz2"
|
|
checksum="
|
|
10136cf586b620abdad1f3c716f03d1160cfa65c8461fba42d858fa1ab8d5856
|
|
ab8489662511990c5430e795803a01249e26e036f84c1079f08c45f52ef501fd
|
|
8be30270e527c7697c365c437bff07e6a41ccdcf28b7163b2866750158e5845d"
|
|
depends="shorewall-core perl"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.shorewall.net/"
|
|
license="GPL-2"
|
|
short_desc="An iptables-based firewall for Linux systems"
|
|
|
|
noarch=yes
|
|
create_wrksrc=yes
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
|
conf_files="
|
|
/etc/shorewall/accounting
|
|
/etc/shorewall/actions
|
|
/etc/shorewall/arprules
|
|
/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/mangle
|
|
/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/tunnels
|
|
/etc/shorewall/zones"
|
|
|
|
do_build() {
|
|
for product in ${pkgname}{-core,6,}-${version}; do
|
|
cd ${wrksrc}/${product}
|
|
./configure HOST=archlinux SBINDIR=/usr/bin SERVICEDIR=
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
DESTDIR="${DESTDIR}" ./install.sh
|
|
vmkdir usr/share/doc/${pkgname}
|
|
cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
|
vsv shorewall
|
|
}
|
|
|
|
shorewall-core_package() {
|
|
noarch=yes
|
|
depends="iptables iproute2"
|
|
short_desc+=" - Core Shorewall files"
|
|
pkg_install() {
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
|
}
|
|
}
|
|
shorewall6_package() {
|
|
noarch=yes
|
|
depends="shorewall"
|
|
short_desc+=" - IPv6 support"
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
|
pkg_install() {
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
|
vsv shorewall6
|
|
}
|
|
for f in ${PKGDESTDIR}/etc/${pkgname}/*; do
|
|
conf_files+="${f##${PKGDESTDIR}} "
|
|
done
|
|
}
|