You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-firewall/pglinux/files/0-pglinux-2.2.2-systemd.patch

43 lines
1.2 KiB

commit 5099e4f985db621465f6d5c91ddad877926322c8
Author: jre <jre-phoenix@users.sourceforge.net>
Date: Thu Feb 14 00:12:00 2013 +0100
added systemd file by Pierre Buard, Arch Linux
diff --git a/pgl/INSTALL b/pgl/INSTALL
index e0225a2..25f668e 100644
--- a/pgl/INSTALL
+++ b/pgl/INSTALL
@@ -278,9 +278,8 @@ http://forums.phoenixlabs.org/thread-15882-post-120482.html#pid120482
ARCH / AUR (Arch User Repo):
----------------------------
-PKGBUILD by Gilrain:
+PKGBUILD by Pierre Buard (Gilrain), Arch Linux maintainer
https://aur.archlinux.org/packages.php?ID=51839
-(Last Updated: Thu, 14 Jun 2012 08:52:59 +0000 for 2.2.0)
Gentoo:
diff --git a/pgl/pglcmd/init/service b/pgl/pglcmd/init/service
new file mode 100644
index 0000000..3f2f747
--- /dev/null
+++ b/pgl/pglcmd/init/service
@@ -0,0 +1,15 @@
+[Unit]
+Description=PeerGuardian Linux - an IP Blocker
+Documentation=man:pgld(1) file:///usr/share/doc/pgl/README.blocklists
+After=network.target
+ConditionPathExists=|/etc/pgl/blocklists.list
+ConditionDirectoryNotEmpty=|/usr/lib/pgl
+
+[Service]
+BusName=org.netfilter.pgl
+ExecStart=/usr/bin/pglcmd start
+ExecStop=/usr/bin/pglcmd stop
+PIDFile=/run/pgld.pid
+
+[Install]
+WantedBy=multi-user.target