2013-11-13 00:33:15 +01:00
|
|
|
# Template file for 'shorewall'
|
|
|
|
pkgname=shorewall
|
|
|
|
version=4.5.21.3
|
2013-11-14 09:41:46 +01:00
|
|
|
revision=2
|
2013-11-13 00:33:15 +01:00
|
|
|
_disturl="http://www.shorewall.net/pub/${pkgname}/4.5/${pkgname}-4.5.21"
|
|
|
|
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="
|
|
|
|
dd1160c077112264094478ee81d83c2757d6d72d0d8e7fe6bf000427282a8356
|
|
|
|
2eccf072ffb83733e73697f425cfd832de91ec70cb19231bb9f88a461790c0da
|
|
|
|
220725caf825ff0df7c7cf8e78866ec80c847e8b9160cdb8fbc19613248bdc2a"
|
|
|
|
maintainer="Steven R <strob AT styez DOT com>"
|
|
|
|
homepage="http://www.shorewall.net/"
|
|
|
|
license="GPL"
|
|
|
|
short_desc="An iptables-based firewall for Linux systems"
|
|
|
|
|
2013-11-14 09:41:46 +01:00
|
|
|
create_wrksrc=yes
|
2013-11-13 04:14:49 +01:00
|
|
|
|
2013-11-13 00:33:15 +01:00
|
|
|
do_build(){
|
2013-11-14 09:41:46 +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() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
shorewall_package() {
|
2013-11-13 16:52:41 +01:00
|
|
|
noarch="yes"
|
2013-11-13 00:33:15 +01:00
|
|
|
depends="shorewall-core perl"
|
2013-11-14 09:41:46 +01:00
|
|
|
systemd_services="${pkgname}.service off"
|
2013-11-13 04:14:49 +01:00
|
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
2013-11-13 00:33:15 +01:00
|
|
|
pkg_install() {
|
2013-11-14 09:41:46 +01:00
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
2013-11-13 16:52:41 +01:00
|
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
2013-11-14 09:41:46 +01:00
|
|
|
vmkdir usr/share/doc/${pkgname}
|
|
|
|
cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname}
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|
2013-11-14 09:41:46 +01:00
|
|
|
for f in ${PKGDESTDIR}/etc/${pkgname}/*; do
|
|
|
|
conf_files+="${f##${PKGDESTDIR}} "
|
|
|
|
done
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
shorewall-core_package() {
|
2013-11-13 16:52:41 +01:00
|
|
|
noarch="yes"
|
2013-11-13 00:33:15 +01:00
|
|
|
depends="iptables iproute2"
|
2013-11-13 16:52:41 +01:00
|
|
|
short_desc+=" - Core Shorewall libraries"
|
2013-11-13 00:33:15 +01:00
|
|
|
pkg_install() {
|
2013-11-14 09:41:46 +01:00
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
2013-11-13 16:52:41 +01:00
|
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shorewall6_package() {
|
2013-11-14 01:30:00 +01:00
|
|
|
noarch="yes"
|
2013-11-13 00:33:15 +01:00
|
|
|
depends="shorewall"
|
2013-11-13 16:52:41 +01:00
|
|
|
short_desc+=" - IPv6 support"
|
2013-11-14 09:41:46 +01:00
|
|
|
systemd_services="${pkgname}.service off"
|
2013-11-13 16:52:41 +01:00
|
|
|
make_dirs="/var/lib/${pkgname} 0755 0 0"
|
2013-11-13 00:33:15 +01:00
|
|
|
pkg_install() {
|
2013-11-14 09:41:46 +01:00
|
|
|
cd ${wrksrc}/${pkgname}-${version}
|
2013-11-13 16:52:41 +01:00
|
|
|
DESTDIR="${PKGDESTDIR}" ./install.sh
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|
2013-11-14 09:41:46 +01:00
|
|
|
for f in ${PKGDESTDIR}/etc/${pkgname}/*; do
|
|
|
|
conf_files+="${f##${PKGDESTDIR}} "
|
|
|
|
done
|
2013-11-13 00:33:15 +01:00
|
|
|
}
|