void-packages/srcpkgs/shorewall/template
2020-01-10 09:20:36 +01:00

59 lines
1.6 KiB
Bash

# Template file for 'shorewall'
pkgname=shorewall
version=5.2.3.4
revision=1
archs=noarch
create_wrksrc=yes
depends="shorewall-core perl"
short_desc="Iptables-based firewall for Linux systems"
maintainer="Orphaned <orphan@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="a6e1a1a6b20ea37695fe12d36233dacd461548ac67665664c8de3a99cf7aa23b
c1fc1244bd68710aecd504841965ac7fbbb05fa7fb1b857b1ad43659bd81877b
8fdc6e326d0c07df2a636634c510630e99f7a3ab70bb60fb735dd92a0d33d500"
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() {
archs=noarch
depends="iptables iproute2"
short_desc+=" - Core Shorewall files"
pkg_install() {
cd ${wrksrc}/${pkgname}-${version}
DESTDIR="${PKGDESTDIR}" ./install.sh
}
}
shorewall6_package() {
archs=noarch
depends="shorewall"
conf_files="/etc/$pkgname/*"
short_desc+=" - IPv6 support"
pkg_install() {
cd ${wrksrc}/${pkgname}-${version}
DESTDIR="${PKGDESTDIR}" ./install.sh
vsv shorewall6
}
}