summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstanze Hausner <constanze@gentoo.org>2013-06-02 10:48:06 +0000
committerConstanze Hausner <constanze@gentoo.org>2013-06-02 10:48:06 +0000
commitbd81dae1a2cdcccdbaef1287ac4c8f2cab3e1a85 (patch)
tree19fe3bcf24d310faa462f216422de304e05aa372 /net-firewall/shorewall-lite/files
parentCleanup; Version bump; Systemd support wrt bug 465950 (diff)
downloadgentoo-2-bd81dae1a2cdcccdbaef1287ac4c8f2cab3e1a85.tar.gz
gentoo-2-bd81dae1a2cdcccdbaef1287ac4c8f2cab3e1a85.tar.bz2
gentoo-2-bd81dae1a2cdcccdbaef1287ac4c8f2cab3e1a85.zip
Cleanup; Version bump; Systemd support wrt bug 465950
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key BB80F419010E3EC3)
Diffstat (limited to 'net-firewall/shorewall-lite/files')
-rw-r--r--net-firewall/shorewall-lite/files/shorewall-lite.systemd20
-rw-r--r--net-firewall/shorewall-lite/files/shorewallrc21
2 files changed, 20 insertions, 21 deletions
diff --git a/net-firewall/shorewall-lite/files/shorewall-lite.systemd b/net-firewall/shorewall-lite/files/shorewall-lite.systemd
new file mode 100644
index 000000000000..aeb89b5abccb
--- /dev/null
+++ b/net-firewall/shorewall-lite/files/shorewall-lite.systemd
@@ -0,0 +1,20 @@
+#
+# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.4
+#
+# Copyright 2011 Jonathan Underwood (jonathan.underwood@gmail.com)
+#
+[Unit]
+Description=Shorewall IPv4 firewall (lite)
+After=syslog.target
+After=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile=/etc/shorewall-lite
+StandardOutput=syslog
+ExecStart=/sbin/shorewall-lite $OPTIONS start
+ExecStop=/sbin/shorewall-lite $OPTIONS stop
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-firewall/shorewall-lite/files/shorewallrc b/net-firewall/shorewall-lite/files/shorewallrc
deleted file mode 100644
index 4f13769114a4..000000000000
--- a/net-firewall/shorewall-lite/files/shorewallrc
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Gentoo Shorewall 4.5 rc file
-#
-HOST=linux #Generic Linux
-BUILD= #Default is to detect the build system
-PREFIX=/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=/etc #Directory where subsystem configurations are installed
-SBINDIR=/sbin #Directory where system administration programs are installed
-MANDIR=${PREFIX}/share/man #Directory where manpages are installed.
-INITDIR=etc/init.d #Directory where SysV init scripts are installed.
-INITFILE=$PRODUCT #Name of the product's installed SysV init script
-INITSOURCE=init.sh #Name of the distributed file to be installed as the SysV init script
-ANNOTATED= #If non-zero, annotated configuration files are installed
-SYSTEMD= #Directory where .service files are installed (systems running systemd only)
-SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR
-SYSCONFDIR= #Directory where SysV init parameter files are installed
-SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR
-VARDIR=/var/lib #Directory where product variable data is stored.