void-packages/srcpkgs/shorewall/template

60 lines
1.6 KiB
Bash

# Template file for 'shorewall'
pkgname=shorewall
version=5.2.1.2
revision=1
noarch=yes
create_wrksrc=yes
depends="shorewall-core perl"
short_desc="An 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="07a914270d169261deff6cc835a031ec187de2575c5476e3bd55224a4855fc64
4f6fc8e9a3494ee6b67ee47e327fccfb8e56b392ea9f7f65344d1b8adaa38018
f84852b86c82487f270172f2d00d13b83255dc05eee9be1e8b76fe7b600021b5"
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
}
}