59 lines
1.6 KiB
Bash
59 lines
1.6 KiB
Bash
# Template file for 'shorewall'
|
|
pkgname=shorewall
|
|
version=5.1.12.3
|
|
revision=1
|
|
_disturl="http://www.shorewall.net/pub/${pkgname}/${version:0:3}/${pkgname}-${version:0:6}"
|
|
distfiles="
|
|
${_disturl}/${pkgname}-${version}.tar.bz2
|
|
${_disturl}/${pkgname}6-${version}.tar.bz2
|
|
${_disturl}/${pkgname}-core-${version}.tar.bz2"
|
|
checksum="c1bdb6eef7059247737d74ffd9475b11a036253c2d8667d4fea296a1be0768bc
|
|
082a1c1baa2bb301c258cd3401a8aa6cdcde0f14fe67eb40f3009c4d3e4860f5
|
|
146c7fdae3f81a950182bc77e17d516a8885454d22351cb9cf90b562e985785a"
|
|
depends="shorewall-core perl"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.shorewall.net/"
|
|
license="GPL-2.0-or-later"
|
|
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
|
|
}
|
|
}
|