PKGBUILDs/community/shorewall/PKGBUILD

35 lines
1.3 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 1859 2009-09-05 19:34:41Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: FUBAR <mrfubar@gmail.com>
pkgname=shorewall
pkgver=4.4.1.2
pkgrel=2
pkgdesc="An iptables-based firewall for Linux systems"
arch=('i686' 'x86_64')
url="http://www.shorewall.net"
backup=(etc/shorewall/{shorewall.conf,zones,functions,policy,interfaces,ipsec,hosts,rules,nat,netmap,params,proxyarp,routestopped,maclist,masq,modules,tcclasses,tcdevices,tcfilters,tcrules,whitelist})
license=('GPL')
depends=('iptables' 'iproute2')
replaces=('shorewall-perl')
source=(http://downloads.sourceforge.net/${pkgname}/$pkgname4/4.4.1/$pkgname-$pkgver.tar.bz2)
md5sums=('f04e8546450aa289580c3999f70f1fd2')
build() {
cd ${srcdir}/$pkgname-$pkgver
sed -e 's!LOGFILE=/var/log/messages!LOGFILE=/var/log/messages.log!' -i shorewall.conf
sed -e 's!LOGFILE=/var/log/messages!LOGFILE=/var/log/messages.log!' -i shorewall
mv init.archlinux.sh init.sh
DEST=/etc/rc.d INIT=shorewall PREFIX=${pkgdir} ./install.sh
cp -rv ${srcdir}/$pkgname-$pkgver/Samples ${pkgdir}/usr/share/shorewall
sed -e 's!/subsys!!' -i ${pkgdir}/etc/shorewall/shorewall.conf
for file in ${pkgdir}/etc/shorewall/*; do
chmod 644 ${pkgdir}/etc/shorewall/$(basename $file)
done
chmod 644 ${pkgdir}/usr/share/shorewall/modules
}