108 lines
2.8 KiB
Text
108 lines
2.8 KiB
Text
# Template file for 'shorewall'
|
|
pkgname=shorewall
|
|
version=4.6.2.5
|
|
revision=1
|
|
_disturl="http://www.shorewall.net/pub/${pkgname}/4.6/${pkgname}-4.6.2"
|
|
distfiles="
|
|
${_disturl}/${pkgname}-${version}.tar.bz2
|
|
${_disturl}/${pkgname}6-${version}.tar.bz2
|
|
${_disturl}/${pkgname}-core-${version}.tar.bz2"
|
|
checksum="
|
|
a97ca9c19d0d8a6d2dd5823937697550744f6fea9321400e7764ef5ef8a0cbf0
|
|
a4c7ecbec83b286abf9cfd21a94313e9072373f00c4e6183b42cdc8ca4b236ae
|
|
dfb5905f0693f15f7879715586620c68195a17eff4a1fd077b431a8adbe59150"
|
|
depends="shorewall-core perl"
|
|
maintainer="Steven R <dev@styez.com>"
|
|
homepage="http://www.shorewall.net/"
|
|
license="GPL"
|
|
short_desc="An iptables-based firewall for Linux systems"
|
|
|
|
noarch="yes"
|
|
create_wrksrc="yes"
|
|
systemd_services="${pkgname}.service off"
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
|
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"
|
|
|
|
|
|
do_build(){
|
|
for product in ${pkgname}{-core,6,}-${version}; do
|
|
cd ${wrksrc}/${product}
|
|
./configure HOST=archlinux SBINDIR=/usr/bin
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
DESTDIR="${DESTDIR}" ./install.sh
|
|
vmkdir usr/share/doc/${pkgname}
|
|
cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
|
}
|
|
|
|
shorewall-core_package() {
|
|
noarch="yes"
|
|
depends="iptables iproute2"
|
|
short_desc+=" - Core Shorewall libraries"
|
|
pkg_install() {
|
|
cd ${wrksrc}/${pkgname}-${version}
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
|
}
|
|
}
|
|
|
|
shorewall6_package() {
|
|
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
|
|
}
|