void-packages/srcpkgs/shorewall/template
2019-01-23 14:54:16 -02:00

59 lines
1.6 KiB
Bash

# Template file for 'shorewall'
pkgname=shorewall
version=5.2.2
revision=1
noarch=yes
create_wrksrc=yes
depends="shorewall-core perl"
short_desc="Iptables-based firewall for Linux systems"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.shorewall.net/"
_disturl="http://www.shorewall.net/pub/${pkgname}/${version:0:3}/${pkgname}-${version:0:5}"
changelog="${_disturl}/releasenotes.txt"
distfiles="${_disturl}/${pkgname}-${version}.tar.bz2
${_disturl}/${pkgname}6-${version}.tar.bz2
${_disturl}/${pkgname}-core-${version}.tar.bz2"
checksum="1146344ec452dd569ce96b1e5a2f6d17571c7932d522962a2b61c0739729a80a
2705d8d792ae80ce217251a3e3b6f78d6692bc107c06ce0d59a3ec2837f41b3f
5fe99f1b073e39564ae8be17095038895468a74f40e9ee480195cce09ae904c6"
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
}
}