60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
# Template file for 'shorewall'
|
|
pkgname=shorewall
|
|
version=5.2.1.4
|
|
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="420ba5a66b348990388131cdc3821f79d87f00fd1266c904a701b8a5823756e0
|
|
eaf6b55c8e9801c89114371dbda37f635ad95cba35519b94b7536c1c7ecb53fa
|
|
48195c9e4f9ecd75014a36219e4c7b8c15bff36d149284bc6ac29696b475971d"
|
|
|
|
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
|
|
}
|
|
}
|