net-firewall/shorewall: Rev bump to support systemd's...
authorThomas Deutschmann <whissi@gentoo.org>
Fri, 30 Mar 2018 23:39:31 +0000 (01:39 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Fri, 30 Mar 2018 23:39:31 +0000 (01:39 +0200)
...changed rootprefix

Package-Manager: Portage-2.3.26, Repoman-2.3.7
RepoMan-Options: --force

net-firewall/shorewall/files/shorewallrc-r2 [new file with mode: 0644]
net-firewall/shorewall/shorewall-5.1.12.3-r1.ebuild [moved from net-firewall/shorewall/shorewall-5.1.12.3.ebuild with 98% similarity]

diff --git a/net-firewall/shorewall/files/shorewallrc-r2 b/net-firewall/shorewall/files/shorewallrc-r2
new file mode 100644 (file)
index 0000000..ecc21a2
--- /dev/null
@@ -0,0 +1,24 @@
+#
+# Gentoo Shorewall 5.1 rc file
+#
+BUILD=gentoo                            #Default is to detect the build system
+HOST=gentoo                             #Gentoo GNU Linux
+PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr                             #Top-level directory for shared files, libraries, etc.
+SHAREDIR=${PREFIX}/share                #Directory for arch-neutral files.
+LIBEXECDIR=${PREFIX}/share              #Directory for executable scripts.
+PERLLIBDIR=${PREFIX}/share/shorewall    #Directory to install Shorewall Perl module directory
+CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc                            #Directory where subsystem configurations are installed
+SBINDIR=${PREFIX}/sbin                  #Directory where system administration programs are installed
+MANDIR=${PREFIX}/share/man              #Directory where manpages are installed.
+INITDIR=${CONFDIR}/init.d               #Directory where SysV init scripts are installed.
+INITFILE=${PRODUCT}                     #Name of the product's installed SysV init script
+INITSOURCE=init.gentoo.sh               #Name of the distributed file to be installed as the SysV init script
+ANNOTATED=                              #If non-zero, annotated configuration files are installed
+SERVICEDIR=tbs          #Directory where .service files are installed (systems running systemd only)
+SERVICEFILE=gentoo.service              #Name of the distributed file to be installed as systemd service file
+SYSCONFFILE=default.gentoo              #Name of the distributed file to be installed in $SYSCONFDIR
+SYSCONFDIR=${CONFDIR}/conf.d            #Directory where SysV init parameter files are installed
+SPARSE=                                 #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR
+VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib                         #Directory where product variable data is stored.
+VARDIR=${VARLIB}/${PRODUCT}             #Directory where product variable data is stored.
+DEFAULT_PAGER=${PAGER}                  #Pager to use if none specified in shorewall[6].conf
similarity index 98%
rename from net-firewall/shorewall/shorewall-5.1.12.3.ebuild
rename to net-firewall/shorewall/shorewall-5.1.12.3-r1.ebuild
index 0f6140661fb1e130d2fb3fd094e9ac4a0da5c6a1..d7c5285f28b0902c9ab8d756b94ee41648afb2aa 100644 (file)
@@ -156,8 +156,11 @@ src_prepare() {
        # This allows us to use patches from upstream and keeps epatch_user working
 
        einfo "Preparing shorewallrc ..."
-       cp "${FILESDIR}"/shorewallrc-r1 "${S}"/shorewallrc.gentoo || die "Copying shorewallrc failed"
+       cp "${FILESDIR}"/shorewallrc-r2 "${S}"/shorewallrc.gentoo || die "Copying shorewallrc failed"
        eprefixify "${S}"/shorewallrc.gentoo
+       sed -i \
+               -e "s|SERVICEDIR=tbs|SERVICEDIR=$(systemd_get_systemunitdir)|" \
+               "${S}"/shorewallrc.gentoo || die "Failed to update shorewallrc"
 
        # shorewall-core
        mv "${S}"/${MY_P_CORE} "${S}"/${MY_PN_CORE} || die "Failed to move '${S}/${MY_P_CORE}' to '${S}/${MY_PN_CORE}'"