From 2c8e55226e33c5bdf9b2bfc553a632e5a4faf512 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 14 Nov 2013 09:41:46 +0100 Subject: [PATCH] shorewall: fix conf_files pathname expansion; misc fixes. --- srcpkgs/shorewall/template | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/srcpkgs/shorewall/template b/srcpkgs/shorewall/template index 3ff04e3e637..885699465ed 100644 --- a/srcpkgs/shorewall/template +++ b/srcpkgs/shorewall/template @@ -1,7 +1,7 @@ # Template file for 'shorewall' pkgname=shorewall version=4.5.21.3 -revision=1 +revision=2 _disturl="http://www.shorewall.net/pub/${pkgname}/4.5/${pkgname}-4.5.21" distfiles=" ${_disturl}/${pkgname}-${version}.tar.bz2 @@ -16,12 +16,13 @@ homepage="http://www.shorewall.net/" license="GPL" short_desc="An iptables-based firewall for Linux systems" +create_wrksrc=yes do_build(){ -for product in ${pkgname}{-core,6,}; do - cd ${wrksrc} - ./configure HOST=archlinux SBINDIR=/usr/bin -done + for product in ${pkgname}{-core,6,}-${version}; do + cd ${wrksrc}/${product} + ./configure HOST=archlinux SBINDIR=/usr/bin + done } do_install() { @@ -31,15 +32,17 @@ do_install() { shorewall_package() { noarch="yes" depends="shorewall-core perl" - systemd_services="shorewall.service off" + systemd_services="${pkgname}.service off" make_dirs="/var/lib/${pkgname} 0755 0 0" - conf_files="/etc/${pkgname}/{accounting,actions,blrules,clear,conntrack,ecn,findgw,hosts,init,initdone,interfaces,lib.private,maclist,masq,nat,netmap,params,policy,providers,proxyarp,refresh,refreshed,restored,routes,stoppedrules,rtrules,rules,scfilter,secmarks,shorewall.conf,start,started,stop,stopped,tcclasses,tcclear,tcdevices,tcfilters,tcinterfaces,tcpri,tcrules,tos,tunnels,zones}" pkg_install() { - cd ${wrksrc} + cd ${wrksrc}/${pkgname}-${version} DESTDIR="${PKGDESTDIR}" ./install.sh - install -d "${PKGDESTDIR}/usr/share/doc/${pkgname}/" - cp -r Samples "${PKGDESTDIR}/usr/share/doc/${pkgname}/" + vmkdir usr/share/doc/${pkgname} + cp -r Samples ${PKGDESTDIR}/usr/share/doc/${pkgname} } + for f in ${PKGDESTDIR}/etc/${pkgname}/*; do + conf_files+="${f##${PKGDESTDIR}} " + done } shorewall-core_package() { @@ -47,7 +50,7 @@ shorewall-core_package() { depends="iptables iproute2" short_desc+=" - Core Shorewall libraries" pkg_install() { - cd ${wrksrc} + cd ${wrksrc}/${pkgname}-${version} DESTDIR="${PKGDESTDIR}" ./install.sh } } @@ -56,11 +59,13 @@ shorewall6_package() { noarch="yes" depends="shorewall" short_desc+=" - IPv6 support" - systemd_services="shorewall6.service off" + systemd_services="${pkgname}.service off" make_dirs="/var/lib/${pkgname} 0755 0 0" - conf_files="/etc/${pkgname}/{accounting,actions,blrules,clear,conntrack,ecn,findgw,hosts,init,initdone,interfaces,lib.private,maclist,masq,nat,netmap,params,policy,providers,proxyarp,refresh,refreshed,restored,routes,stoppedrules,rtrules,rules,scfilter,secmarks,shorewall.conf,start,started,stop,stopped,tcclasses,tcclear,tcdevices,tcfilters,tcinterfaces,tcpri,tcrules,tos,tunnels,zones}" pkg_install() { - cd ${wrksrc} + cd ${wrksrc}/${pkgname}-${version} DESTDIR="${PKGDESTDIR}" ./install.sh } + for f in ${PKGDESTDIR}/etc/${pkgname}/*; do + conf_files+="${f##${PKGDESTDIR}} " + done }