# Template file for 'shorewall' pkgname=shorewall version=5.0.8.2 revision=1 _disturl="http://www.shorewall.net/pub/${pkgname}/${version:0:3}/${pkgname}-${version:0:5}" distfiles=" ${_disturl}/${pkgname}-${version}.tar.bz2 ${_disturl}/${pkgname}6-${version}.tar.bz2 ${_disturl}/${pkgname}-core-${version}.tar.bz2" checksum="3efb344091ea4be9e06014c9edc2cbadcc1abab63b48bd0a3ae5a52305e605a0 2139b274a1ce358c83042b1135260a0583cd4b96fb9cbea321ddd0e38b3f286f ede4d7a69dc2c38cf6c44c87b013cb4292748dfd77812ec91078aa139ce1789e" depends="shorewall-core perl" maintainer="Juan RP " 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/$pkgname/*" 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" conf_files="/etc/$pkgname/*" short_desc+=" - IPv6 support" pkg_install() { cd ${wrksrc}/${pkgname}-${version} DESTDIR="${PKGDESTDIR}" ./install.sh vsv shorewall6 } }