summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-09-23 23:55:24 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-09-23 23:55:24 +0000
commit517f2f0304188dda853a9f6fcb2e85e6cd87d82f (patch)
tree8eb444f75ba2b2be80c5e99c7c94c7ed5b02854a /net-firewall/pglinux
parentVersion bump (diff)
downloadhistorical-517f2f0304188dda853a9f6fcb2e85e6cd87d82f.tar.gz
historical-517f2f0304188dda853a9f6fcb2e85e6cd87d82f.tar.bz2
historical-517f2f0304188dda853a9f6fcb2e85e6cd87d82f.zip
add systemd support wrt #485674
Package-Manager: portage-2.2.6/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'net-firewall/pglinux')
-rw-r--r--net-firewall/pglinux/ChangeLog14
-rw-r--r--net-firewall/pglinux/Manifest29
-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/pglinux-2.2.2-path-variables.patch131
-rw-r--r--net-firewall/pglinux/pglinux-2.2.2-r1.ebuild106
13 files changed, 721 insertions, 10 deletions
diff --git a/net-firewall/pglinux/ChangeLog b/net-firewall/pglinux/ChangeLog
index e3dae7ea764f..8c32e57012eb 100644
--- a/net-firewall/pglinux/ChangeLog
+++ b/net-firewall/pglinux/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for net-firewall/pglinux
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/pglinux/ChangeLog,v 1.14 2013/05/03 16:43:51 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/pglinux/ChangeLog,v 1.15 2013/09/23 23:55:18 hasufell Exp $
+
+*pglinux-2.2.2-r1 (23 Sep 2013)
+
+ 23 Sep 2013; Julian Ospald <hasufell@gentoo.org> +pglinux-2.2.2-r1.ebuild,
+ +files/0-pglinux-2.2.2-gentoo-init.patch,
+ +files/1-pglinux-2.2.2-gentoo-init.patch,
+ +files/pglinux-2.2.2-path-variables.patch,
+ +files/0-pglinux-2.2.2-systemd.patch, +files/1-pglinux-2.2.2-systemd.patch,
+ +files/2-pglinux-2.2.2-systemd.patch, +files/3-pglinux-2.2.2-systemd.patch,
+ +files/4-pglinux-2.2.2-systemd.patch, +files/5-pglinux-2.2.2-systemd.patch,
+ +files/6-pglinux-2.2.2-systemd.patch:
+ add systemd support wrt #485674
03 May 2013; Julian Ospald <hasufell@gentoo.org> pglinux-2.2.2.ebuild:
ensure that empty pgl specific dirs are not removed by PM
diff --git a/net-firewall/pglinux/Manifest b/net-firewall/pglinux/Manifest
index 047bab4bcfe4..cc0b3f0be062 100644
--- a/net-firewall/pglinux/Manifest
+++ b/net-firewall/pglinux/Manifest
@@ -1,21 +1,32 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
+AUX 0-pglinux-2.2.2-gentoo-init.patch 1020 SHA256 3b6e3410fcf6354b7dd15c734e26c5751dd7521ad1e78e62ef9ac604300707e3 SHA512 a26a8223f3122e048c4d109afbf4a2ce1433da7de0d4ea495db5add2acab449fe894a62d9c47cf4ea6e254bb57bc2dbd5de9c0a9661eaba0e5ceaf66601d7a04 WHIRLPOOL 25b079ac267547acad06194f97970956168743c79dd221889b607c0eab008b87d8feceff298cac6b40eee114c88d91d898945632f81c5f37eadf29669c8d67b9
+AUX 0-pglinux-2.2.2-systemd.patch 1221 SHA256 e2fdc965f65252299caa8792863f6ff67651099d7e0a2419756c90d69e332a60 SHA512 95905e9969ff48acf037f2e647061ae6562b5598d5f6d622d1530887125aed7bd7ab65a4546bf41032bfcad91dee5677ea389f396c3d1356adcf2ec1ff20cc2d WHIRLPOOL 6717d13c1468bac68dd9cd7970806404b2398ec43473d98a12762e8f266d3c29f0615e39de534d26fadb526325e503e3a31af6f06b98fd989a290c3bba337599
+AUX 1-pglinux-2.2.2-gentoo-init.patch 506 SHA256 a03f0479d8ed271931d0303d572dfca67073461caa61ff3926f5c2f5aa1fee44 SHA512 7e7fe13d2b566178634e1254f818765abc211aece66d22d45e707108d982d0152c3ed779bd91a6da3093da20bff59f2f0a8ad93b09be8031e12c789d2e9bc2d6 WHIRLPOOL 9a6df34d008fbd40d960c7a244548943e668bc430a4cc5c561d0ff017934aa7acee6abad9d5e9768a056389eeec34556198798c10f7263966f8bf7f104ddb084
+AUX 1-pglinux-2.2.2-systemd.patch 4318 SHA256 146298de1b9cdfc1788911d428504b0f8969cf4f2eacf1447303a34ff114d5b5 SHA512 cd23961f0b554eb994e0ee22eec2ed0a1d2a3613b470beef41904e0f66ec28d7526f8ea7288ae654dfb5a1803fb260f436aa21767f698aa16b8d4a60030950f5 WHIRLPOOL dbb09d20b4d09311045ee845e0b5d2fa6ada4f54a1a35a3253403d4423e679f5cc0b2286c6d39f1ef3d34228b1c0c18f72b53e4365a2c45b2f38e0a1582398f3
+AUX 2-pglinux-2.2.2-systemd.patch 1137 SHA256 7e6558cbf9ec8e8e2f82c13d3963907d04dd4d15774c60bfc36327d49f63d4ab SHA512 ae0eb5a1792bb70e2af5ddc727d1c2801be3a2eb4ce9bcbd6c81f9dc75a7901714e7b93ee0c392dca2035337d0b91f3b5da5586104973214d5d8370cd6dc0230 WHIRLPOOL a502a2d91e80be87edc187a4c05cacf301ab857163f097c7cdbe4e14060dc46fe00ad539594625a48ef73fe0c257475626feb39229e373327f268ef68a419951
+AUX 3-pglinux-2.2.2-systemd.patch 566 SHA256 4f2cda8c6b5222b62684e1c5639f0ca9451e50d4f4cd92deabb4b90b39e08a5c SHA512 dfd13ec8c40ca8beddb734edd546bbcbb22a81805920ffe614bc67f998bc0127f5cd25053caf05c02b1c2563bc133ef2e97a04ad5025e07a32177677f68f175d WHIRLPOOL ab20c88a970cf2251277bdf89cb7c9f258717b848624e4afde96b05a7eaec3329bfdc4d8db21b7f98dd1e261a6ea4f8514cba3c98565a3680d2d0ce36a2e0974
+AUX 4-pglinux-2.2.2-systemd.patch 790 SHA256 5d31af46b743b1ea84c3864e909f6c526ea11d082d817f48b565bacbb51f83bc SHA512 c97b5ae54754d1bb82ac84ed9c78cba50e0c780134c2e3b717501f4cf0a3104d16fcc2b2c215b9471d89db23e1010d3e5aee4a5d0f115019b02a6d4cb5621534 WHIRLPOOL 87ee601fc73d9aa8531e01830ea0c3c3308faf2694f5c4b0e411e7f5f74ee449de9d6b2b5e227c1e4f62897c49ff924e6457f8f1058a630a481a5ab49b836e79
+AUX 5-pglinux-2.2.2-systemd.patch 580 SHA256 e9e126e7f6f18477abf68ca6a7e1e2d0d4a1ace73537be757a619ca593298268 SHA512 70307bc186562a815cc73c899e2d98657b7567f71f625a96b8611495e4f1075842343d33b4fbf0d1dc591cda54e24bfc6b0324d186d5310864c53ba27796e530 WHIRLPOOL e2fcf8a2c32fdc17981b197d3f39d51ea7da0c16a1073a9e8f9ba5e4f1177887abfd81d9846b3c2c5379c38eaa340c6d8bfe650c5a68d48ab66f3cac8b4e6442
+AUX 6-pglinux-2.2.2-systemd.patch 3256 SHA256 2f43d70d8b4964a317d1f0d69518db07e85f79d454a9617db6a4012d6d0df554 SHA512 dd2b1727f375a13215ab243fa70acb36d0737f7a4812f4d926e001b21ccbdf30b0a7c405828546b4af4dfc3785d8fd99f03268a2d6e463e2a847cb7789b998ad WHIRLPOOL f9ea9ef020f5ecea25f91ca735f0141ec453e0f020e21c8576097cc4aba20c04c986991686fba0236d1aaef1b26fff348084e138175ae51cb9622ae9ba34134a
AUX pgl.gentoo.in 779 SHA256 f55b5f99662e36ac3f0eac21fcbc2673ca6ba485d9da1748f20ec3c8c371f512 SHA512 3e0a03b8b066faef0d64e61dafd51cb57561e56d5c8fd41bb62cc97d1248f664865c024cb18d8270205dac33a909ab41f85b9f0af1f8acd1fdd2af90da09e395 WHIRLPOOL 010f49bc08747092c9a8146039a62e7d9fef78648fded6de36bc634bdc8763f1bc3bb8251bcb2979256a882120b61fb8a7954d90737596fd1afe6de22cedd70f
+AUX pglinux-2.2.2-path-variables.patch 4939 SHA256 20c263fb94784533ac7dbcf51f50aac11a7641ec7708df731662ddff33cce0e6 SHA512 c5bbf55ffb49711766605b8b49b39e37929dd7ffd166acb29b85e2e2a2176a748b6718725d3def1ad518be3294930afdd377a3e4ae3ec9a2d008f926e33fae7e WHIRLPOOL 70bc08ce606d4e2310b7edc903b43a95ac64ad3d81f16ff1d9fa1e032b8c14c886fe9a792d2343e3882ba638d0f21524e277ae8961f6e95955817a42149b05c1
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
EBUILD pglinux-2.2.1_p20120711.ebuild 2209 SHA256 737658b83f803dc0d8020581a86643e88191560616f698758e719f26ef567ced SHA512 f325091acf3001e04f22bb2494bf28dd491b63029028f97374f0a64fb226863b2bd9ddf427a147246615c692c8e0275a1b5159b6835d13a429aedee5ffc974ae WHIRLPOOL 61cc7ed31b84e14aea9adbf59450f188f711ec76472578467ee17d348beee14b1b78b973168205cbbc9e4b1fea7b2e57b10f1939f7a873fe672350bb224c13fa
+EBUILD pglinux-2.2.2-r1.ebuild 2523 SHA256 f206174e05baa7ba6afb6bfdc6489071dfe6ae77b162ebffc596fb1cc1501178 SHA512 77c4815a5e8c9ecfd4f569c5c55eaa8be09f9697083d99f0df098c3cb06bb89107259e5025dbaefad0d4ea5478bb9a858d5ffac8d2936df821910397696f9530 WHIRLPOOL a4c56e25ff661976080104ffe05edf1ac55882d2f838ef3368fb151690d18894939a581ef4ed27cc2eb7487ca23bf11442b172db8fe22263c9072d68642ca270
EBUILD pglinux-2.2.2.ebuild 2362 SHA256 f4d24093027ce4e959bcf9c63924bec2ac007b65294f37c4432b1143de647199 SHA512 341b37248062a9ab351fa5579f20dbb23acd50d81ead8a1456003c123a0b219205b7a59dd91e1b2e25e8e2ee244b57e0f64ec67a0219a3032f4040dfe5856437 WHIRLPOOL 29d50b7b1011249a614145d78b59667ab55bed33c10c2138bd9eb499b332096acb37f680f321cf2046e1bd3760c337918a6388f872a778f275d9d9920601e555
-MISC ChangeLog 2213 SHA256 8d67c2bf5f0e43ccfd59e66071dac321c50db469f1c72213180b5e11d6e56237 SHA512 8aceaba05c9dbb5d4b903781c6f9da90f4aea4024c1838e46b81cd0a9aa7a29c213dc699a095e4130efc3ee5a9a404ee84aa9e8f0e92dbc197bc3a2a095e1098 WHIRLPOOL afdb2ff7f4581232a22483dd4eb07b935d610eeebcd0e6e5fa11505be566af5c6a5d7bbe0c0208f0574bea6421e8b76bf2a2840c1d68e359225ac38f8398c2e6
+MISC ChangeLog 2765 SHA256 45c243816584ecadf582a5add626b97419312f38a89aad13b7019cdcc3efb368 SHA512 1b4a512a491da6dfbd4bea5fcf95a88ca022375ba0eb780dad60c93d8143304e2d74658b6649c14b2b6503b342d8ff55cb666be7aaad65c78ba019ff6d0d0947 WHIRLPOOL 01b1e80e687a996f6d0a16bd725a971c7ced680cbd921a41f1ecc5b29950a4ece4df77c0e73a9b251110318d13ef92f7f5a3d8232cd0b8852896d13e16bfe75e
MISC metadata.xml 915 SHA256 0ef1b7936761cd46bb7ee814cf32008f027e70dde530864381406ab53622c038 SHA512 ae6f613e286cb8df3bdfff0657849a449ba97740155bd956894f436bb459293163f59414c76ad17e2d118a8cd929701c1e5f7ad946f63d5b13c6d6fd99c47936 WHIRLPOOL 69abacd370b80648b2cf320a107bb0804a2e6c0d6a041ae5eb0502bb5267e1db79f0b7efbeea48105ca04b19f9c401ce9e78e8e8ff6059fb90776b383bc611e7
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJRg+lKAAoJEFpvPKfnPDWzZqUH/AicQBworrCI4SsyXQvoVYaI
-gFyb4GsOoTceFZ+MLW9Gy12AIi46Z/USJLo7GKkuLbUEVTbb9tNAPzBswdT956i1
-rDHq1uNvK9lA+SPVHqsODomjNGvhgAMIk5iXHIyEMe3IgURGCra3geHDAVU/pHhY
-IN6EelVhCDFT8W8OCDD2i3ML7xyQDfNsTtvQ0GN5ggf2x4n5sci0QglQMK6YdLHv
-fNJGPp9jabLEnHSLtLAzdeiEpwnDjDY6QxYpFRtqhXJ/mu6RgXFduD6NH8d6r+Eg
-cWcHzAv3lxc2IIhPTDmijr7JPdIHx0nYSc2H1FGOd6wa1/3im87ivi9VXWB/ePM=
-=yHf8
+iQEcBAEBCAAGBQJSQNTtAAoJEFpvPKfnPDWzQbIH/jhWNpen7vLwrvgvQlTX+9Og
+7slcWJDn/p4vJjk0fai9baxYDgh/Xn5sYaJLcbzMCMJoH0wwecOUY/itcf2MYW4t
+cm4Q6S8upMFGXkEPoIbWVlalFP09SSjOdgNAbcvm9W6i/GsCRnPa1MpMfGnckxvi
+LasS9QCNx8P4IBrqogCTrjXgmiArZroyj3nBFCe1oWg7RxdLI5UPfQXI5XtKEUAS
+qeQ5/lxqLyLqxx228nj3biIiGDwd03tEtr3a2zYMRQlKN3ggxlO7zb8M2emeWw8T
+HkMlODZHpuBf/j53UUCMXK/489n9gUFAYrHPnHCzLAA2k65F2+gBopjj8rBInRc=
+=sXWs
-----END PGP SIGNATURE-----
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
new file mode 100644
index 000000000000..f3ae3cf85d17
--- /dev/null
+++ b/net-firewall/pglinux/files/0-pglinux-2.2.2-gentoo-init.patch
@@ -0,0 +1,61 @@
+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
new file mode 100644
index 000000000000..0c8d50b10dd0
--- /dev/null
+++ b/net-firewall/pglinux/files/0-pglinux-2.2.2-systemd.patch
@@ -0,0 +1,42 @@
+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
new file mode 100644
index 000000000000..63aecf506be2
--- /dev/null
+++ b/net-firewall/pglinux/files/1-pglinux-2.2.2-gentoo-init.patch
@@ -0,0 +1,20 @@
+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
new file mode 100644
index 000000000000..ebcf3c44717c
--- /dev/null
+++ b/net-firewall/pglinux/files/1-pglinux-2.2.2-systemd.patch
@@ -0,0 +1,144 @@
+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
new file mode 100644
index 000000000000..49bde436d947
--- /dev/null
+++ b/net-firewall/pglinux/files/2-pglinux-2.2.2-systemd.patch
@@ -0,0 +1,34 @@
+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
new file mode 100644
index 000000000000..347c9c836de4
--- /dev/null
+++ b/net-firewall/pglinux/files/3-pglinux-2.2.2-systemd.patch
@@ -0,0 +1,21 @@
+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
new file mode 100644
index 000000000000..cc124ebe1ac8
--- /dev/null
+++ b/net-firewall/pglinux/files/4-pglinux-2.2.2-systemd.patch
@@ -0,0 +1,24 @@
+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
new file mode 100644
index 000000000000..49fa35a64ed9
--- /dev/null
+++ b/net-firewall/pglinux/files/5-pglinux-2.2.2-systemd.patch
@@ -0,0 +1,18 @@
+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
new file mode 100644
index 000000000000..b1000cb5d4e8
--- /dev/null
+++ b/net-firewall/pglinux/files/6-pglinux-2.2.2-systemd.patch
@@ -0,0 +1,87 @@
+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/pglinux-2.2.2-path-variables.patch b/net-firewall/pglinux/files/pglinux-2.2.2-path-variables.patch
new file mode 100644
index 000000000000..2d3693a98536
--- /dev/null
+++ b/net-firewall/pglinux/files/pglinux-2.2.2-path-variables.patch
@@ -0,0 +1,131 @@
+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.2-r1.ebuild b/net-firewall/pglinux/pglinux-2.2.2-r1.ebuild
new file mode 100644
index 000000000000..ab046b47c195
--- /dev/null
+++ b/net-firewall/pglinux/pglinux-2.2.2-r1.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/pglinux/pglinux-2.2.2-r1.ebuild,v 1.1 2013/09/23 23:55:18 hasufell Exp $
+
+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
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ || ( kde-base/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
+}