summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2015-08-15 00:54:30 +0200
committerJulian Ospald <hasufell@gentoo.org>2015-08-15 00:54:30 +0200
commit74f4ed02af534c06899286ca82e7cbf276b7b6bc (patch)
tree6f989d8dbf6ec704bc5398d9c790e122d24c0c9a /net-firewall
parentmedia-video/ffdiaporama: rm old (diff)
downloadgentoo-74f4ed02af534c06899286ca82e7cbf276b7b6bc.tar.gz
gentoo-74f4ed02af534c06899286ca82e7cbf276b7b6bc.tar.bz2
gentoo-74f4ed02af534c06899286ca82e7cbf276b7b6bc.zip
net-firewall/pglinux: rm old
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/pglinux/Manifest3
-rw-r--r--net-firewall/pglinux/files/0-pglinux-2.2.2-gentoo-init.patch61
-rw-r--r--net-firewall/pglinux/files/0-pglinux-2.2.2-systemd.patch42
-rw-r--r--net-firewall/pglinux/files/1-pglinux-2.2.2-gentoo-init.patch20
-rw-r--r--net-firewall/pglinux/files/1-pglinux-2.2.2-systemd.patch144
-rw-r--r--net-firewall/pglinux/files/2-pglinux-2.2.2-systemd.patch34
-rw-r--r--net-firewall/pglinux/files/3-pglinux-2.2.2-systemd.patch21
-rw-r--r--net-firewall/pglinux/files/4-pglinux-2.2.2-systemd.patch24
-rw-r--r--net-firewall/pglinux/files/5-pglinux-2.2.2-systemd.patch18
-rw-r--r--net-firewall/pglinux/files/6-pglinux-2.2.2-systemd.patch87
-rw-r--r--net-firewall/pglinux/files/pgl.gentoo.in55
-rw-r--r--net-firewall/pglinux/files/pglinux-2.2.2-path-variables.patch131
-rw-r--r--net-firewall/pglinux/pglinux-2.2.1_p20120711.ebuild91
-rw-r--r--net-firewall/pglinux/pglinux-2.2.2-r1.ebuild106
-rw-r--r--net-firewall/pglinux/pglinux-2.2.2.ebuild101
-rw-r--r--net-firewall/pglinux/pglinux-2.2.3.ebuild98
16 files changed, 0 insertions, 1036 deletions
diff --git a/net-firewall/pglinux/Manifest b/net-firewall/pglinux/Manifest
index 3295409ad296..07a835f9a5ee 100644
--- a/net-firewall/pglinux/Manifest
+++ b/net-firewall/pglinux/Manifest
@@ -1,4 +1 @@
-DIST pgl-2.2.1_p20120711.tar.xz 412840 SHA256 cc32046e4ae6b4441b5135a951091c5dc9603a6b89f8f16721f60200a600a434 SHA512 bbde8d990253db97093969aeddc0466e3c0a0c3b008a67f9779ae2a47436be939751522710a69bd7a7d7c299235a60c886f8a36e99ea8bffcfa319d697e0c20f WHIRLPOOL 6abe0f35b647890ea6cff8368060954b2e6fa52ff7d58e5976eecbde495c4e5e7695fe3a025ce357e7b4b68b437a37949046293e50f60e610b9265dca8b6db0f
-DIST pgl-2.2.2.tar.gz 590472 SHA256 4794ec5b16f5f901866811826d56091df7b5f6d9703cf97f95d3b15075aadb8e SHA512 bc59276b651d5998f2c4c752fc0575ad482455eb3f98d42bd66d9035f68d26d04273f63287b0ba52d8a5f678ee28f8ac7a2fa3e1b956252edc8318563b85043d WHIRLPOOL 22fa7e498ae0e0ac37bebb9ce5ebac0a6f8209f42f010660586b320f7b23cb310b64749a61b77657b63a69f6755e9eec957bb27cf519e3cde4cbafa15a58e88c
-DIST pgl-2.2.3.tar.gz 608243 SHA256 03627b54147894ca26b8a68829732910f15c9d4398fae5e461569b5625b77000 SHA512 51d34c23fc1cbfda047555d3527433d096d00255474b6b9b141eca990a3708aaa335bd1ad35e15ae5f0400802c49043ae5078bd0dcb95377501143c3a4089b6c WHIRLPOOL 867f552d402660968eb780cd6a6710f45d7b023b67ef15b87ff6f8fa44cc64ed15653036ef3a89fd30ea2569509e2d622c84de741bfc3ff615daed0ef86603bb
DIST pgl-2.2.4.tar.gz 608622 SHA256 26e91cb085a9da7faa643f9364192c0e3eeec64ccae56d0bb62de5174e185866 SHA512 d6daad259a904647917388e586d4bd7d6a73b078bf61974a5682b6eec2d8d2abb02760483838f23fefa13ae761b4bd40765ddb13e6d820d0b6e3ee65b0815f58 WHIRLPOOL 59de9ad6a3c95e2f9f553e7c311be948b488825bfe8db7e2fc78610d46d98c0cbef4ce4846a659b01b2a0b6548dfed13dde27c55ffc22cb37418b97cde0c0ca8
diff --git a/net-firewall/pglinux/files/0-pglinux-2.2.2-gentoo-init.patch b/net-firewall/pglinux/files/0-pglinux-2.2.2-gentoo-init.patch
deleted file mode 100644
index f3ae3cf85d17..000000000000
--- a/net-firewall/pglinux/files/0-pglinux-2.2.2-gentoo-init.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-diff --git a/pgl/pglcmd/init/pgl.gentoo.in b/pgl/pglcmd/init/pgl.gentoo.in
-new file mode 100644
-index 0000000..c94d978
---- /dev/null
-+++ b/pgl/pglcmd/init/pgl.gentoo.in
-@@ -0,0 +1,55 @@
-+#!/sbin/runscript
-+# Copyright 1999-2012 Gentoo Foundation
-+# Distributed under the terms of the GNU General Public License v2
-+
-+description="Daemon script for pglinux"
-+extra_commands="reload forcereload update"
-+
-+depend() {
-+ need net
-+}
-+
-+PIDFILE=@PID_DIR@/pgld.pid
-+PGLCMD=@PGLCMDPATH@
-+
-+start() {
-+ ebegin "Starting pglinux daemon"
-+
-+ if [ "${RC_CMD}" = "restart" ]; then
-+ sleep 3
-+ fi
-+
-+ $PGLCMD start
-+ eend $?
-+}
-+
-+stop() {
-+ ebegin "Stopping pglinux daemon"
-+ $PGLCMD stop_quick
-+ eend $?
-+}
-+
-+status() {
-+ ebegin "Checking status of pglinux daemon"
-+ $PGLCMD status
-+ eend $?
-+}
-+
-+reload() {
-+ ebegin "reload config"
-+ $PGLCMD reload
-+ eend $?
-+}
-+
-+forcereload() {
-+ ebegin "force config reload"
-+ $PGLCMD force-reload
-+ eend $?
-+}
-+
-+update() {
-+ ebegin "Force update of lists"
-+ $PGLCMD update
-+ eend $?
-+}
-+
diff --git a/net-firewall/pglinux/files/0-pglinux-2.2.2-systemd.patch b/net-firewall/pglinux/files/0-pglinux-2.2.2-systemd.patch
deleted file mode 100644
index 0c8d50b10dd0..000000000000
--- a/net-firewall/pglinux/files/0-pglinux-2.2.2-systemd.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-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
diff --git a/net-firewall/pglinux/files/1-pglinux-2.2.2-gentoo-init.patch b/net-firewall/pglinux/files/1-pglinux-2.2.2-gentoo-init.patch
deleted file mode 100644
index 63aecf506be2..000000000000
--- a/net-firewall/pglinux/files/1-pglinux-2.2.2-gentoo-init.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-commit a63052957b350adcf92e7c23aaad7b71450d8023
-Author: hasufell <julian.ospald@googlemail.com>
-Date: Sun Nov 25 13:44:34 2012 +0100
-
- fix make dist
-
- forgot to add pgl.gentoo.in :/
-
-diff --git a/pgl/pglcmd/Makefile.am b/pgl/pglcmd/Makefile.am
-index 147a66e..896b6bc 100644
---- a/pgl/pglcmd/Makefile.am
-+++ b/pgl/pglcmd/Makefile.am
-@@ -118,6 +118,7 @@ EXTRA_DIST = \
- pglcmd.wd.in \
- cron.daily/pglcmd.in \
- init/pgl.in \
-+ init/pgl.gentoo.in \
- networkmanager/20pglcmd.in \
- pglcmd.lib
-
diff --git a/net-firewall/pglinux/files/1-pglinux-2.2.2-systemd.patch b/net-firewall/pglinux/files/1-pglinux-2.2.2-systemd.patch
deleted file mode 100644
index ebcf3c44717c..000000000000
--- a/net-firewall/pglinux/files/1-pglinux-2.2.2-systemd.patch
+++ /dev/null
@@ -1,144 +0,0 @@
-commit dad29189eabd8aaee79fefd95bd9f8ff216d3bec
-Author: jre <jre-phoenix@users.sourceforge.net>
-Date: Sat May 18 10:13:49 2013 +0200
-
- integrated the systemd service file
-
- thanks again ARCH Linux guys, especially Pierre Buard
-
- 2.) Uninstall
-diff --git a/pgl/Makefile.am b/pgl/Makefile.am
-index b738fdd..a81c3ee 100644
---- a/pgl/Makefile.am
-+++ b/pgl/Makefile.am
-@@ -4,6 +4,10 @@ MASTER_BLOCKLIST_DIR = @MASTER_BLOCKLIST_DIR@
-
- ACLOCAL_AMFLAGS = -I m4
-
-+# Ensure that make distcheck continues to work
-+DISTCHECK_CONFIGURE_FLAGS = \
-+ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
-+
- SUBDIRS = \
- docs \
- pglcmd \
-diff --git a/pgl/configure.ac b/pgl/configure.ac
-index 213baa5..04e43cb 100644
---- a/pgl/configure.ac
-+++ b/pgl/configure.ac
-@@ -132,6 +132,17 @@ AC_ARG_WITH([gentoo-init],
-
- AM_CONDITIONAL(GENTOOINIT, [test "x$gentoo_init" = "xyes"])
-
-+# use systemd service file (yes, if user specifies a path)
-+# http://www.freedesktop.org/software/systemd/man/daemon.html
-+PKG_PROG_PKG_CONFIG
-+AC_ARG_WITH([systemdsystemunitdir],
-+ AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
-+ [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
-+if test "x$with_systemdsystemunitdir" != xno; then
-+ AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
-+fi
-+AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
-+
- # let user specify iconsdir
- AC_ARG_WITH([iconsdir],
- [AS_HELP_STRING([--with-iconsdir=DIR],
-@@ -311,6 +322,11 @@ else
- echo QT-gui....................................... : no
- fi
-
-+if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno; then
-+echo systemdsystemunitdir......................... : $systemdsystemunitdir
-+else
-+echo systemd...................................... : no
-+fi
- echo
- echo .............................................
- echo "Developer debug:"
-diff --git a/pgl/pglcmd/Makefile.am b/pgl/pglcmd/Makefile.am
-index 896b6bc..132a475 100644
---- a/pgl/pglcmd/Makefile.am
-+++ b/pgl/pglcmd/Makefile.am
-@@ -48,6 +48,9 @@ pgllib_DATA = \
- pglcmd.lib \
- pglcmd.main
-
-+systemdsystemunit_DATA = \
-+ init/pgl.service
-+
- # Don't update PATH here anymore, because on user's make it doesn't contain
- # [/usr]/sbin
- pglcmd.defaults:
-@@ -103,6 +106,15 @@ init/pgl:
- chmod +x init/pgl
- endif
-
-+init/pgl.service:
-+ sed \
-+ -e 's|@data_root_dir@|$(datarootdir)|g' \
-+ -e 's|@CONF_DIR@|$(sysconfdir)|g' \
-+ -e 's|@LIB_DIR@|$(libdir)|g' \
-+ -e 's|@BIN_DIR@|$(bindir)|g' \
-+ -e 's|@PID_DIR@|$(PIDDIR)|g' \
-+ < init/pgl.service.in > init/pgl.service
-+
- networkmanager/20pglcmd:
- $(do_subst) < networkmanager/20pglcmd.in > networkmanager/20pglcmd
- chmod +x networkmanager/20pglcmd
-@@ -119,6 +131,7 @@ EXTRA_DIST = \
- cron.daily/pglcmd.in \
- init/pgl.in \
- init/pgl.gentoo.in \
-+ init/pgl.service.in \
- networkmanager/20pglcmd.in \
- pglcmd.lib
-
-@@ -131,4 +144,5 @@ CLEANFILES = \
- pglcmd.wd \
- cron.daily/pglcmd \
- init/pgl \
-+ init/pgl.service \
- networkmanager/20pglcmd
-diff --git a/pgl/pglcmd/init/pgl.service.in b/pgl/pglcmd/init/pgl.service.in
-new file mode 100644
-index 0000000..55779bd
---- /dev/null
-+++ b/pgl/pglcmd/init/pgl.service.in
-@@ -0,0 +1,15 @@
-+[Unit]
-+Description=PeerGuardian Linux - an IP Blocker
-+Documentation=man:pgld(1) file://@data_root_dir@/doc/pgl/README.blocklists
-+After=network.target
-+ConditionPathExists=|@CONF_DIR@/pgl/blocklists.list
-+ConditionDirectoryNotEmpty=|@LIB_DIR@/pgl
-+
-+[Service]
-+BusName=org.netfilter.pgl
-+ExecStart=@BIN_DIR@/pglcmd start
-+ExecStop=@BIN_DIR@/pglcmd stop
-+PIDFile=@PID_DIR@/pgld.pid
-+
-+[Install]
-+WantedBy=multi-user.target
-diff --git a/pgl/pglcmd/init/service b/pgl/pglcmd/init/service
-deleted file mode 100644
-index 3f2f747..0000000
---- a/pgl/pglcmd/init/service
-+++ /dev/null
-@@ -1,15 +0,0 @@
--[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
diff --git a/net-firewall/pglinux/files/2-pglinux-2.2.2-systemd.patch b/net-firewall/pglinux/files/2-pglinux-2.2.2-systemd.patch
deleted file mode 100644
index 49bde436d947..000000000000
--- a/net-firewall/pglinux/files/2-pglinux-2.2.2-systemd.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-commit b1bbab1348f924635daba2739ab0882f7f976957
-Author: jre <jre-phoenix@users.sourceforge.net>
-Date: Mon May 20 14:39:29 2013 +0200
-
- systemd fixes: don't wait for pgl dbus, but fork instead
-
- necessary to prevent timeout, because on start pglcmd first downloads
- all missing blocklists (may take quite long) and then starts pgld,
- which just then registers with dbus
-
- editorial change
-
- Thanks again Pierre Buard
-
-diff --git a/pgl/pglcmd/init/pgl.service.in b/pgl/pglcmd/init/pgl.service.in
-index 55779bd..5279404 100644
---- a/pgl/pglcmd/init/pgl.service.in
-+++ b/pgl/pglcmd/init/pgl.service.in
-@@ -1,12 +1,13 @@
- [Unit]
- Description=PeerGuardian Linux - an IP Blocker
--Documentation=man:pgld(1) file://@data_root_dir@/doc/pgl/README.blocklists
-+Documentation=man:pgld(1)
-+Documentation=file://@data_root_dir@/doc/pgl/README.blocklists
- After=network.target
- ConditionPathExists=|@CONF_DIR@/pgl/blocklists.list
- ConditionDirectoryNotEmpty=|@LIB_DIR@/pgl
-
- [Service]
--BusName=org.netfilter.pgl
-+Type=forking
- ExecStart=@BIN_DIR@/pglcmd start
- ExecStop=@BIN_DIR@/pglcmd stop
- PIDFile=@PID_DIR@/pgld.pid
diff --git a/net-firewall/pglinux/files/3-pglinux-2.2.2-systemd.patch b/net-firewall/pglinux/files/3-pglinux-2.2.2-systemd.patch
deleted file mode 100644
index 347c9c836de4..000000000000
--- a/net-firewall/pglinux/files/3-pglinux-2.2.2-systemd.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-commit 459f460cfd4a166d5108c3e88c2cad294b32fb74
-Author: jre <jre-phoenix@users.sourceforge.net>
-Date: Mon May 20 19:26:25 2013 +0200
-
- fix: install systemd file only if configured
-
-diff --git a/pgl/pglcmd/Makefile.am b/pgl/pglcmd/Makefile.am
-index 132a475..c7f34a5 100644
---- a/pgl/pglcmd/Makefile.am
-+++ b/pgl/pglcmd/Makefile.am
-@@ -48,8 +48,10 @@ pgllib_DATA = \
- pglcmd.lib \
- pglcmd.main
-
-+if HAVE_SYSTEMD
- systemdsystemunit_DATA = \
- init/pgl.service
-+endif
-
- # Don't update PATH here anymore, because on user's make it doesn't contain
- # [/usr]/sbin
diff --git a/net-firewall/pglinux/files/4-pglinux-2.2.2-systemd.patch b/net-firewall/pglinux/files/4-pglinux-2.2.2-systemd.patch
deleted file mode 100644
index cc124ebe1ac8..000000000000
--- a/net-firewall/pglinux/files/4-pglinux-2.2.2-systemd.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-commit 53ac32c45e0a28bfaf42f32cd9b887ed1414ecae
-Author: jre <jre-phoenix@users.sourceforge.net>
-Date: Tue May 21 20:21:47 2013 +0200
-
- revised systemd targets
-
- thanks again Pierre Buard
-
-diff --git a/pgl/pglcmd/init/pgl.service.in b/pgl/pglcmd/init/pgl.service.in
-index 5279404..c8809d0 100644
---- a/pgl/pglcmd/init/pgl.service.in
-+++ b/pgl/pglcmd/init/pgl.service.in
-@@ -2,9 +2,8 @@
- Description=PeerGuardian Linux - an IP Blocker
- Documentation=man:pgld(1)
- Documentation=file://@data_root_dir@/doc/pgl/README.blocklists
--After=network.target
--ConditionPathExists=|@CONF_DIR@/pgl/blocklists.list
--ConditionDirectoryNotEmpty=|@LIB_DIR@/pgl
-+After=network.target syslog.target
-+After=firehol.service firestarter.service firewalld.service ufw.service
-
- [Service]
- Type=forking
diff --git a/net-firewall/pglinux/files/5-pglinux-2.2.2-systemd.patch b/net-firewall/pglinux/files/5-pglinux-2.2.2-systemd.patch
deleted file mode 100644
index 49fa35a64ed9..000000000000
--- a/net-firewall/pglinux/files/5-pglinux-2.2.2-systemd.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-commit fe6a60d6be7c611d0568042e5bdbdd9398f9a7e8
-Author: jre <jre-phoenix@users.sourceforge.net>
-Date: Tue Jun 11 22:42:21 2013 +0200
-
- add RemainAfterExit to prevent timeout during long blocklist downloads
-
-diff --git a/pgl/pglcmd/init/pgl.service.in b/pgl/pglcmd/init/pgl.service.in
-index c8809d0..64ee040 100644
---- a/pgl/pglcmd/init/pgl.service.in
-+++ b/pgl/pglcmd/init/pgl.service.in
-@@ -10,6 +10,7 @@ Type=forking
- ExecStart=@BIN_DIR@/pglcmd start
- ExecStop=@BIN_DIR@/pglcmd stop
- PIDFile=@PID_DIR@/pgld.pid
-+RemainAfterExit=yes
-
- [Install]
- WantedBy=multi-user.target
diff --git a/net-firewall/pglinux/files/6-pglinux-2.2.2-systemd.patch b/net-firewall/pglinux/files/6-pglinux-2.2.2-systemd.patch
deleted file mode 100644
index b1000cb5d4e8..000000000000
--- a/net-firewall/pglinux/files/6-pglinux-2.2.2-systemd.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-commit 6ed523649e296a16494c6b559ef22de04833cddc
-Author: hasufell <hasufell@posteo.de>
-Date: Mon Sep 23 23:57:48 2013 +0200
-
- BUILD: small cleanup to systemd bits
-
- * don't double check for pkg-config
- * use AS_IF
- * consistent variable naming
- * do not install systemd file when "--with-systemd" is omitted
-
-diff --git a/pgl/Makefile.am b/pgl/Makefile.am
-index a81c3ee..c5dd377 100644
---- a/pgl/Makefile.am
-+++ b/pgl/Makefile.am
-@@ -6,7 +6,7 @@ ACLOCAL_AMFLAGS = -I m4
-
- # Ensure that make distcheck continues to work
- DISTCHECK_CONFIGURE_FLAGS = \
-- --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
-+ --with-systemd=$$dc_install_base/$(SYSTEMDUNITDIR)
-
- SUBDIRS = \
- docs \
-diff --git a/pgl/configure.ac b/pgl/configure.ac
-index 63b443c..dd2086e 100644
---- a/pgl/configure.ac
-+++ b/pgl/configure.ac
-@@ -14,9 +14,7 @@
- AC_PROG_CC
- AC_PROG_INSTALL
- AC_PROG_LIBTOOL
--AC_PATH_PROG([PKGCONFIG], [pkg-config])
--AS_IF([test "x$PKGCONFIG" = "x"],
-- [AC_MSG_ERROR([pkg-config not found!])])
-+PKG_PROG_PKG_CONFIG
-
- # Checks for header files.
- AC_CHECK_HEADERS([arpa/inet.h inttypes.h limits.h netinet/in.h stdlib.h string.h sys/time.h syslog.h unistd.h])
-@@ -134,14 +132,14 @@
-
- # use systemd service file (yes, if user specifies a path)
- # http://www.freedesktop.org/software/systemd/man/daemon.html
--PKG_PROG_PKG_CONFIG
--AC_ARG_WITH([systemdsystemunitdir],
-- AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
-- [], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
--if test "x$with_systemdsystemunitdir" != xno; then
-- AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
--fi
--AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
-+AC_ARG_WITH([systemd],
-+ [AS_HELP_STRING([--with-systemd=UNITDIR], [install systemd unit file (into UNITDIR if given)])],
-+ [with_systemd="$withval"],
-+ [with_systemd="no"])
-+AS_IF([test "x$with_systemd" != xno],
-+ [AS_IF([test "$with_systemd" = yes], [with_systemd="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"])]
-+ [AC_SUBST([SYSTEMDUNITDIR], [$with_systemd])])
-+AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemd" -a "x$with_systemd" != xno ])
-
- # let user specify iconsdir
- AC_ARG_WITH([iconsdir],
-@@ -321,9 +319,9 @@
- else
- echo QT-gui....................................... : no
- fi
--
--if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno; then
--echo systemdsystemunitdir......................... : $systemdsystemunitdir
-+if test -n "$with_systemd" -a "x$with_systemd" != xno; then
-+echo systemd ..................................... : yes
-+echo systemd unit dir ............................ : $with_systemd
- else
- echo systemd...................................... : no
- fi
-diff --git a/pgl/pglcmd/Makefile.am b/pgl/pglcmd/Makefile.am
-index c7f34a5..d06871e 100644
---- a/pgl/pglcmd/Makefile.am
-+++ b/pgl/pglcmd/Makefile.am
-@@ -51,6 +51,7 @@ pgllib_DATA = \
- if HAVE_SYSTEMD
- systemdsystemunit_DATA = \
- init/pgl.service
-+systemdsystemunitdir = @SYSTEMDUNITDIR@
- endif
-
- # Don't update PATH here anymore, because on user's make it doesn't contain
diff --git a/net-firewall/pglinux/files/pgl.gentoo.in b/net-firewall/pglinux/files/pgl.gentoo.in
deleted file mode 100644
index c94d9784096e..000000000000
--- a/net-firewall/pglinux/files/pgl.gentoo.in
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-description="Daemon script for pglinux"
-extra_commands="reload forcereload update"
-
-depend() {
- need net
-}
-
-PIDFILE=@PID_DIR@/pgld.pid
-PGLCMD=@PGLCMDPATH@
-
-start() {
- ebegin "Starting pglinux daemon"
-
- if [ "${RC_CMD}" = "restart" ]; then
- sleep 3
- fi
-
- $PGLCMD start
- eend $?
-}
-
-stop() {
- ebegin "Stopping pglinux daemon"
- $PGLCMD stop_quick
- eend $?
-}
-
-status() {
- ebegin "Checking status of pglinux daemon"
- $PGLCMD status
- eend $?
-}
-
-reload() {
- ebegin "reload config"
- $PGLCMD reload
- eend $?
-}
-
-forcereload() {
- ebegin "force config reload"
- $PGLCMD force-reload
- eend $?
-}
-
-update() {
- ebegin "Force update of lists"
- $PGLCMD update
- eend $?
-}
-
diff --git a/net-firewall/pglinux/files/pglinux-2.2.2-path-variables.patch b/net-firewall/pglinux/files/pglinux-2.2.2-path-variables.patch
deleted file mode 100644
index 2d3693a98536..000000000000
--- a/net-firewall/pglinux/files/pglinux-2.2.2-path-variables.patch
+++ /dev/null
@@ -1,131 +0,0 @@
-commit 07b4b464e18c763bf095214a73d0bcfa32c4f933
-Author: hasufell <hasufell@posteo.de>
-Date: Sat Sep 7 00:33:42 2013 +0200
-
- BUILD: do not expand path variables in configure.ac
-
- it is bad form and could cause unexpected behavior
-
-diff --git a/pgl/configure.ac b/pgl/configure.ac
-index 213baa5..6160956 100644
---- a/pgl/configure.ac
-+++ b/pgl/configure.ac
-@@ -45,21 +45,21 @@ AC_ARG_WITH([initddir],
- [AS_HELP_STRING([--with-initddir=DIR],
- [path to init script directory (default: sysconfdir/init.d)])],
- [INITDDIR="$withval"],
-- [INITDDIR="$sysconfdir/init.d"])
-+ [INITDDIR='$(sysconfdir)/init.d'])
-
- # let user specify LOGDIR
- AC_ARG_WITH([logdir],
- [AS_HELP_STRING([--with-logdir=DIR],
- [path to log directory (default: localstatedir/log/pgl)])],
- [LOGDIR="$withval"],
-- [LOGDIR="$localstatedir/log/$PACKAGE"])
-+ [LOGDIR='$(localstatedir)/log/'$PACKAGE])
-
- # let user specify PIDDIR
- AC_ARG_WITH([piddir],
- [AS_HELP_STRING([--with-piddir=DIR],
- [path to PID directory (default: localstatedir/run)])],
- [PIDDIR="$withval"],
-- [PIDDIR="$localstatedir/run"])
-+ [PIDDIR='$(localstatedir)/run'])
-
- # let user specify TMPDIR
- AC_ARG_WITH([tmpdir],
-@@ -73,21 +73,21 @@ AC_ARG_WITH([blocklists],
- [AS_HELP_STRING([--with-blocklists=DIR],
- [path to blocklists directory (default: localstatedir/spool/pgl)])],
- [BLOCKLISTS_DIR="$withval"],
-- [BLOCKLISTS_DIR="$localstatedir/spool/$PACKAGE"])
-+ [BLOCKLISTS_DIR='$(localstatedir)/spool/'$PACKAGE])
-
- # let user specify LOCAL_BLOCKLIST_DIR
- AC_ARG_WITH([localblocklist],
- [AS_HELP_STRING([--with-localblocklist=DIR],
- [path to local blocklist directory (default: sysconfdir/pgl/blocklists.local)])],
- [LOCAL_BLOCKLIST_DIR="$withval"],
-- [LOCAL_BLOCKLIST_DIR="$sysconfdir/$PACKAGE/blocklists.local"])
-+ [LOCAL_BLOCKLIST_DIR='$(sysconfdir)'/$PACKAGE/blocklists.local])
-
- # let user specify MASTER_BLOCKLIST_DIR
- AC_ARG_WITH([masterblocklist],
- [AS_HELP_STRING([--with-masterblocklist=DIR],
- [path to master blocklist directory (default: localstatedir/lib/pgl)])],
- [MASTER_BLOCKLIST_DIR="$withval"],
-- [MASTER_BLOCKLIST_DIR="$localstatedir/lib/$PACKAGE"])
-+ [MASTER_BLOCKLIST_DIR='$(localstatedir)/lib/'$PACKAGE])
-
- # let user specify LSB
- AC_ARG_WITH([lsb],
-@@ -137,7 +137,7 @@ AC_ARG_WITH([iconsdir],
- [AS_HELP_STRING([--with-iconsdir=DIR],
- [path where icons get installed (default: datadir/pixmaps)])],
- [ICONSDIR="$withval"],
-- [ICONSDIR="$datadir/pixmaps"])
-+ [ICONSDIR='$(datadir)/pixmaps'])
-
-
-
-@@ -147,7 +147,7 @@ AC_ARG_WITH([iconsdir],
- # pkg-config module check, generates $1_LIBS and $1_CFLAGS vars
- PKG_CHECK_MODULES([libnetfilterqueue],[libnetfilter_queue])
- PGLD_CFLAGS=""
--PGLD_CPPFLAGS="$libnetfilterqueue_CFLAGS -DVERSION=\\\"$VERSION\\\" -DPACKAGE_NAME=\\\"$PACKAGE\\\" -DPIDFILE=\\\"${localstatedir}/run/${PACKAGE}d.pid\\\""
-+PGLD_CPPFLAGS="$libnetfilterqueue_CFLAGS -DVERSION=\\\"$VERSION\\\" -DPACKAGE_NAME=\\\"$PACKAGE\\\""
- PGLD_LDFLAGS=""
- PGLD_LIBS="$libnetfilterqueue_LIBS"
-
-@@ -180,7 +180,7 @@ AS_IF([test "x$enable_dbus" = "xyes"],
- [PKG_CHECK_MODULES([DBUS],
- [dbus-1])]
- [PGLD_CFLAGS="$PGLD_CFLAGS -fPIC"]
-- [PGLD_CPPFLAGS="$PGLD_CPPFLAGS $DBUS_CFLAGS -DHAVE_DBUS -DPLUGINDIR=\\\"${libdir}/$PACKAGE\\\""]
-+ [PGLD_CPPFLAGS="$PGLD_CPPFLAGS $DBUS_CFLAGS -DHAVE_DBUS"]
- [PGLD_LDFLAGS="-Wl,-export-dynamic"]
- [PGLD_LIBS="$PGLD_LIBS $DBUS_LIBS -ldl"])
-
-@@ -203,7 +203,7 @@ AS_IF([test "x$enable_lowmem" = "xyes"],
- ##
- # initial QT_flags
- QT_CXXFLAGS=""
--QT_CPPFLAGS="-DVERSION=\\\"$VERSION\\\" -DPGLCMDDEFAULTSPATH=\\\"${libdir}/${PACKAGE}/${PACKAGE}cmd.defaults\\\" -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED"
-+QT_CPPFLAGS="-DVERSION=\\\"$VERSION\\\" -D_REENTRANT -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED"
- QT_LDFLAGS=""
- QT_LIBS=""
-
-diff --git a/pgl/pgld/Makefile.am b/pgl/pgld/Makefile.am
-index ca7d509..91fc7db 100644
---- a/pgl/pgld/Makefile.am
-+++ b/pgl/pgld/Makefile.am
-@@ -1,6 +1,7 @@
- # flags
- AM_CFLAGS = @PGLD_CFLAGS@
--AM_CPPFLAGS = @PGLD_CPPFLAGS@
-+AM_CPPFLAGS = @PGLD_CPPFLAGS@ \
-+ -DPIDFILE=\"$(localstatedir)/run/${PACKAGE}d.pid\"
- AM_LDFLAGS = @PGLD_LDFLAGS@
-
- # sources for pgld binary
-@@ -14,6 +15,7 @@ sbin_PROGRAMS = pgld
-
- # build dbus library for --enable-dbus
- if DBUSMAKE
-+AM_CPPFLAGS += -DPLUGINDIR=\"$(libdir)/$(PACKAGE)\"
- libdbusdir = $(libdir)/$(PACKAGE_NAME)
- libdbus_LTLIBRARIES = libdbus.la
- libdbus_la_SOURCES = src/dbus.c src/dbus.h
-diff --git a/pgl/pglgui/Makefile.am b/pgl/pglgui/Makefile.am
-index 3a1757e..05c2a54 100644
---- a/pgl/pglgui/Makefile.am
-+++ b/pgl/pglgui/Makefile.am
-@@ -11,6 +11,7 @@ MOC = @MOC@
- AM_CXXFLAGS = @QT_CXXFLAGS@
- AM_CPPFLAGS = \
- @QT_CPPFLAGS@ \
-+ -DPGLCMDDEFAULTSPATH=\"$(libdir)/$(PACKAGE)/$(PACKAGE)cmd.defaults\" \
- -I./ui
- AM_LDFLAGS = @QT_LDFLAGS@
-
diff --git a/net-firewall/pglinux/pglinux-2.2.1_p20120711.ebuild b/net-firewall/pglinux/pglinux-2.2.1_p20120711.ebuild
deleted file mode 100644
index 662c2c283c94..000000000000
--- a/net-firewall/pglinux/pglinux-2.2.1_p20120711.ebuild
+++ /dev/null
@@ -1,91 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-
-inherit gnome2-utils linux-info
-
-MY_P="pgl-${PV}"
-
-DESCRIPTION="Privacy oriented firewall application"
-HOMEPAGE="https://sourceforge.net/projects/peerguardian/"
-SRC_URI="http://dev.gentoo.org/~hasufell/distfiles/${MY_P}.tar.xz"
-
-LICENSE="GPL-3"
-KEYWORDS="amd64 x86"
-SLOT="0"
-IUSE="cron dbus logrotate networkmanager qt4 zlib"
-
-COMMON_DEPEND="
- net-libs/libnetfilter_queue
- net-libs/libnfnetlink
- dbus? ( sys-apps/dbus )
- zlib? ( sys-libs/zlib )
- qt4? ( sys-auth/polkit-qt[qt4(+)]
- dev-qt/qtcore:4
- dev-qt/qtdbus:4
- dev-qt/qtgui:4
- || ( kde-apps/kdesu x11-libs/gksu x11-misc/ktsuss )
- )"
-DEPEND="${COMMON_DEPEND}
- virtual/pkgconfig
- sys-devel/libtool:2"
-RDEPEND="${COMMON_DEPEND}
- net-firewall/iptables
- sys-apps/sysvinit
- cron? ( virtual/cron )
- logrotate? ( app-admin/logrotate )
- networkmanager? ( net-misc/networkmanager )"
-
-REQUIRED_USE="qt4? ( dbus )"
-
-CONFIG_CHECK="~NETFILTER_NETLINK
- ~NETFILTER_NETLINK_QUEUE
- ~NETFILTER_XTABLES
- ~NETFILTER_XT_TARGET_NFQUEUE
- ~NETFILTER_XT_MATCH_IPRANGE
- ~NETFILTER_XT_MARK
- ~NETFILTER_XT_MATCH_MULTIPORT
- ~NETFILTER_XT_MATCH_STATE
- ~NF_CONNTRACK
- ~NF_CONNTRACK_IPV4
- ~NF_DEFRAG_IPV4
- ~IP_NF_FILTER
- ~IP_NF_IPTABLES
- ~IP_NF_TARGET_REJECT"
-
-S=${WORKDIR}/${MY_P}
-
-src_configure() {
- econf \
- --localstatedir=/var \
- --docdir=/usr/share/doc/${PF} \
- $(use_enable logrotate) \
- $(use_enable cron) \
- $(use_enable networkmanager) \
- $(use_enable zlib) \
- $(use_enable dbus) \
- --disable-lowmem \
- --with-iconsdir=/usr/share/icons/hicolor/128x128/apps \
- --with-gentoo-init \
- $(use_with qt4)
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- elog "optional dependencies:"
- elog " app-arch/p7zip (needed for blocklists packed as .7z)"
- elog " app-arch/unzip (needed for blocklists packed as .zip)"
- elog " virtual/mta (needed to send informational (blocklist updates) and"
- elog " warning mails (if pglcmd.wd detects a problem.))"
-
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
-}
diff --git a/net-firewall/pglinux/pglinux-2.2.2-r1.ebuild b/net-firewall/pglinux/pglinux-2.2.2-r1.ebuild
deleted file mode 100644
index 993efc239889..000000000000
--- a/net-firewall/pglinux/pglinux-2.2.2-r1.ebuild
+++ /dev/null
@@ -1,106 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit autotools eutils gnome2-utils linux-info systemd
-
-MY_P="pgl-${PV}"
-
-DESCRIPTION="Privacy oriented firewall application"
-HOMEPAGE="https://sourceforge.net/projects/peerguardian/"
-SRC_URI="mirror://sourceforge/peerguardian/${MY_P}.tar.gz"
-
-LICENSE="GPL-3"
-KEYWORDS="~amd64 ~x86"
-SLOT="0"
-IUSE="cron dbus logrotate networkmanager qt4 zlib"
-
-COMMON_DEPEND="
- net-libs/libnetfilter_queue
- net-libs/libnfnetlink
- dbus? ( sys-apps/dbus )
- zlib? ( sys-libs/zlib )
- qt4? ( sys-auth/polkit-qt[qt4(+)]
- dev-qt/qtcore:4
- dev-qt/qtdbus:4
- dev-qt/qtgui:4
- || ( kde-apps/kdesu x11-libs/gksu x11-misc/ktsuss )
- )"
-DEPEND="${COMMON_DEPEND}
- virtual/pkgconfig
- sys-devel/libtool:2"
-RDEPEND="${COMMON_DEPEND}
- net-firewall/iptables
- sys-apps/sysvinit
- cron? ( virtual/cron )
- logrotate? ( app-admin/logrotate )
- networkmanager? ( net-misc/networkmanager )"
-
-REQUIRED_USE="qt4? ( dbus )"
-
-CONFIG_CHECK="~NETFILTER_NETLINK
- ~NETFILTER_NETLINK_QUEUE
- ~NETFILTER_XTABLES
- ~NETFILTER_XT_TARGET_NFQUEUE
- ~NETFILTER_XT_MATCH_IPRANGE
- ~NETFILTER_XT_MARK
- ~NETFILTER_XT_MATCH_MULTIPORT
- ~NETFILTER_XT_MATCH_STATE
- ~NF_CONNTRACK
- ~NF_CONNTRACK_IPV4
- ~NF_DEFRAG_IPV4
- ~IP_NF_FILTER
- ~IP_NF_IPTABLES
- ~IP_NF_TARGET_REJECT"
-
-S=${WORKDIR}/${MY_P}
-
-src_prepare() {
- epatch -p2 "${FILESDIR}"/${P}-path-variables.patch \
- "${FILESDIR}"/{0,1}-${P}-gentoo-init.patch \
- "${FILESDIR}"/{0..6}-${P}-systemd.patch
-
- eautoreconf
-}
-
-src_configure() {
- econf \
- --localstatedir=/var \
- --docdir=/usr/share/doc/${PF} \
- $(use_enable logrotate) \
- $(use_enable cron) \
- $(use_enable networkmanager) \
- $(use_enable zlib) \
- $(use_enable dbus) \
- --disable-lowmem \
- --with-iconsdir=/usr/share/icons/hicolor/128x128/apps \
- --with-gentoo-init \
- $(use_with qt4) \
- --with-systemd="$(systemd_get_unitdir)"
-}
-
-src_install() {
- default
- keepdir /var/{lib,log,spool}/pgl
- rm -rf "${ED}"/tmp
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- elog "optional dependencies:"
- elog " app-arch/p7zip (needed for blocklists packed as .7z)"
- elog " app-arch/unzip (needed for blocklists packed as .zip)"
- elog " virtual/mta (needed to send informational (blocklist updates) and"
- elog " warning mails (if pglcmd.wd detects a problem.))"
-
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
-}
diff --git a/net-firewall/pglinux/pglinux-2.2.2.ebuild b/net-firewall/pglinux/pglinux-2.2.2.ebuild
deleted file mode 100644
index 5b334481664e..000000000000
--- a/net-firewall/pglinux/pglinux-2.2.2.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=4
-
-inherit gnome2-utils linux-info
-
-MY_P="pgl-${PV}"
-
-DESCRIPTION="Privacy oriented firewall application"
-HOMEPAGE="https://sourceforge.net/projects/peerguardian/"
-SRC_URI="mirror://sourceforge/peerguardian/${MY_P}.tar.gz"
-
-LICENSE="GPL-3"
-KEYWORDS="amd64 x86"
-SLOT="0"
-IUSE="cron dbus logrotate networkmanager qt4 zlib"
-
-COMMON_DEPEND="
- net-libs/libnetfilter_queue
- net-libs/libnfnetlink
- dbus? ( sys-apps/dbus )
- zlib? ( sys-libs/zlib )
- qt4? ( sys-auth/polkit-qt[qt4(+)]
- dev-qt/qtcore:4
- dev-qt/qtdbus:4
- dev-qt/qtgui:4
- || ( kde-apps/kdesu x11-libs/gksu x11-misc/ktsuss )
- )"
-DEPEND="${COMMON_DEPEND}
- virtual/pkgconfig
- sys-devel/libtool:2"
-RDEPEND="${COMMON_DEPEND}
- net-firewall/iptables
- sys-apps/sysvinit
- cron? ( virtual/cron )
- logrotate? ( app-admin/logrotate )
- networkmanager? ( net-misc/networkmanager )"
-
-REQUIRED_USE="qt4? ( dbus )"
-
-CONFIG_CHECK="~NETFILTER_NETLINK
- ~NETFILTER_NETLINK_QUEUE
- ~NETFILTER_XTABLES
- ~NETFILTER_XT_TARGET_NFQUEUE
- ~NETFILTER_XT_MATCH_IPRANGE
- ~NETFILTER_XT_MARK
- ~NETFILTER_XT_MATCH_MULTIPORT
- ~NETFILTER_XT_MATCH_STATE
- ~NF_CONNTRACK
- ~NF_CONNTRACK_IPV4
- ~NF_DEFRAG_IPV4
- ~IP_NF_FILTER
- ~IP_NF_IPTABLES
- ~IP_NF_TARGET_REJECT"
-
-S=${WORKDIR}/${MY_P}
-
-src_prepare() {
- cp "${FILESDIR}"/pgl.gentoo.in "${S}"/pglcmd/init || die "cp failed"
-}
-
-src_configure() {
- econf \
- --localstatedir=/var \
- --docdir=/usr/share/doc/${PF} \
- $(use_enable logrotate) \
- $(use_enable cron) \
- $(use_enable networkmanager) \
- $(use_enable zlib) \
- $(use_enable dbus) \
- --disable-lowmem \
- --with-iconsdir=/usr/share/icons/hicolor/128x128/apps \
- --with-gentoo-init \
- $(use_with qt4)
-}
-
-src_install() {
- default
- keepdir /var/{lib,log,spool}/pgl
- rm -rf "${ED}"/tmp
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- elog "optional dependencies:"
- elog " app-arch/p7zip (needed for blocklists packed as .7z)"
- elog " app-arch/unzip (needed for blocklists packed as .zip)"
- elog " virtual/mta (needed to send informational (blocklist updates) and"
- elog " warning mails (if pglcmd.wd detects a problem.))"
-
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
-}
diff --git a/net-firewall/pglinux/pglinux-2.2.3.ebuild b/net-firewall/pglinux/pglinux-2.2.3.ebuild
deleted file mode 100644
index 280cd890df69..000000000000
--- a/net-firewall/pglinux/pglinux-2.2.3.ebuild
+++ /dev/null
@@ -1,98 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit eutils gnome2-utils linux-info systemd
-
-MY_P="pgl-${PV}"
-
-DESCRIPTION="Privacy oriented firewall application"
-HOMEPAGE="https://sourceforge.net/projects/peerguardian/"
-SRC_URI="mirror://sourceforge/peerguardian/${MY_P}.tar.gz"
-
-LICENSE="GPL-3"
-KEYWORDS="~amd64 ~x86"
-SLOT="0"
-IUSE="cron dbus logrotate networkmanager qt4 zlib"
-
-COMMON_DEPEND="
- net-libs/libnetfilter_queue
- net-libs/libnfnetlink
- dbus? ( sys-apps/dbus )
- zlib? ( sys-libs/zlib )
- qt4? ( sys-auth/polkit-qt[qt4(+)]
- dev-qt/qtcore:4
- dev-qt/qtdbus:4
- dev-qt/qtgui:4
- || ( kde-apps/kdesu x11-libs/gksu x11-misc/ktsuss )
- )"
-DEPEND="${COMMON_DEPEND}
- virtual/pkgconfig
- sys-devel/libtool:2"
-RDEPEND="${COMMON_DEPEND}
- net-firewall/iptables
- sys-apps/sysvinit
- cron? ( virtual/cron )
- logrotate? ( app-admin/logrotate )
- networkmanager? ( net-misc/networkmanager )"
-
-REQUIRED_USE="qt4? ( dbus )"
-
-CONFIG_CHECK="~NETFILTER_NETLINK
- ~NETFILTER_NETLINK_QUEUE
- ~NETFILTER_XTABLES
- ~NETFILTER_XT_TARGET_NFQUEUE
- ~NETFILTER_XT_MATCH_IPRANGE
- ~NETFILTER_XT_MARK
- ~NETFILTER_XT_MATCH_MULTIPORT
- ~NETFILTER_XT_MATCH_STATE
- ~NF_CONNTRACK
- ~NF_CONNTRACK_IPV4
- ~NF_DEFRAG_IPV4
- ~IP_NF_FILTER
- ~IP_NF_IPTABLES
- ~IP_NF_TARGET_REJECT"
-
-S=${WORKDIR}/${MY_P}
-
-src_configure() {
- econf \
- --localstatedir=/var \
- --docdir=/usr/share/doc/${PF} \
- $(use_enable logrotate) \
- $(use_enable cron) \
- $(use_enable networkmanager) \
- $(use_enable zlib) \
- $(use_enable dbus) \
- --disable-lowmem \
- --with-iconsdir=/usr/share/icons/hicolor/128x128/apps \
- --with-gentoo-init \
- $(use_with qt4) \
- --with-systemd="$(systemd_get_unitdir)"
-}
-
-src_install() {
- default
- keepdir /var/{lib,log,spool}/pgl
- rm -rf "${ED}"/tmp
-}
-
-pkg_preinst() {
- gnome2_icon_savelist
-}
-
-pkg_postinst() {
- elog "optional dependencies:"
- elog " app-arch/p7zip (needed for blocklists packed as .7z)"
- elog " app-arch/unzip (needed for blocklists packed as .zip)"
- elog " virtual/mta (needed to send informational (blocklist updates) and"
- elog " warning mails (if pglcmd.wd detects a problem.))"
-
- gnome2_icon_cache_update
-}
-
-pkg_postrm() {
- gnome2_icon_cache_update
-}