summaryrefslogtreecommitdiff
path: root/net-firewall/pglinux
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-firewall/pglinux
reinit the tree, so we can have metadata
Diffstat (limited to 'net-firewall/pglinux')
-rw-r--r--net-firewall/pglinux/Manifest5
-rw-r--r--net-firewall/pglinux/metadata.xml21
-rw-r--r--net-firewall/pglinux/pglinux-2.3.1.ebuild103
3 files changed, 129 insertions, 0 deletions
diff --git a/net-firewall/pglinux/Manifest b/net-firewall/pglinux/Manifest
new file mode 100644
index 000000000000..991afd7eaa13
--- /dev/null
+++ b/net-firewall/pglinux/Manifest
@@ -0,0 +1,5 @@
+DIST pgl-2.3.1.tar.gz 605656 SHA256 1b5c6d233baa943b42254c95ed2853d036f3f246feaebc073e3c91c05a4c98b4 SHA512 f23d44ad6448814ba0a2c90292ff4a933d31fed942886d63c50bb62fb56e1af70df72e09070ad3cd27c878f322576326040c330fbdbda63128ad304375b02a1e WHIRLPOOL f36f2d740f2b760d70e90de2e8004932289130b76119af80e478b0e8136d0dffb167c941b54b602a6f1857c9a3f8df1e7b4c6ed5c02099c008bec601ab967e2b
+EBUILD pglinux-2.3.1.ebuild 2364 SHA256 814fe04bbc33e3663225b7adea87de21d100f81de1262b67bbf0bf99b676fb63 SHA512 5cec196b62f8654d4da1d03732ecbb63aa263118277c998c127b7f69a4e594d432a93e6e04c9bf51af2af0202b451167c6ee583ec6d17cd51eccbc93d053511d WHIRLPOOL 8f9affd84cac40cace1700d7a14b197e80c16c8427469452647ac63de5a79be5a4eaf35f758c33afd9c35d8a5850415c31f072a04d0e41d00604c6d5310be766
+MISC ChangeLog 4805 SHA256 badfc3708b18786eaef537aaf802c137b169adda8bd7fc1e5d69b9fda20b83cc SHA512 4f13586b8082e5ed7c57b07340fa91c05db235920b021c7636639bdc4d4214d825ce93bf080108e7ac9e850742ece5222f508ede1f298697c873541383770a55 WHIRLPOOL 28f47f823ee6c0baf5096575f03e3c0958a0904fed295cbdf6c18ba6a1bda2475cf28a885417473770384f1f5f2677f5d47ccd2f142cd52afcd05217ba852a73
+MISC ChangeLog-2015 3668 SHA256 cf247c113d334dd230fd44602a780bd2b2b237edabfabce07243879539e6f46c SHA512 edf54b955f83610f16b49a4ddb0bf683f280627515ed83ec0bd33bac584fdc70ac9e46f3514d725131ddf20071d80bc3fc9f0c80996bdfa3840db7bb805ed256 WHIRLPOOL 96bdd353e8a30873c73e8dd7a58e90b0947ace53129f181ddb85d38c6e142a2ea322a3c328a6fc55f2531ac87a5bf1822b29c918731f08caccb8513c0c4a0ea6
+MISC metadata.xml 882 SHA256 3df0fb92322d2e78d34ded34757164f79618cdd76e384bda33cd4a39ec54dcfe SHA512 34297f9b8e083798fedc61991300cb4d9a2eb5fff8065656590a51d732e2d4e187f05db08b336ace3b24982362e1aa3b0b18b6eebc8ddf9a72e81f27be424672 WHIRLPOOL 095dcdf6b37396f792e7c2cde112a637cc65a4a7f734edc8199d5877108db921f08e05f1dc29fa729016eb2057442d09288362886a2292c369c23698b022ca05
diff --git a/net-firewall/pglinux/metadata.xml b/net-firewall/pglinux/metadata.xml
new file mode 100644
index 000000000000..cd9a336cff52
--- /dev/null
+++ b/net-firewall/pglinux/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <changelog>https://sourceforge.net/news/?group_id=131687</changelog>
+ <doc lang="en">https://sourceforge.net/projects/peerguardian/support</doc>
+ <bugs-to>https://sourceforge.net/tracker/?group_id=131687</bugs-to>
+ <remote-id type="sourceforge">peerguardian</remote-id>
+ </upstream>
+ <use>
+ <flag name="cron">Install cron script</flag>
+ <flag name="logrotate">Install logrotate.d file</flag>
+ </use>
+ <longdescription lang="en">
+ PeerGuardian Linux (pgl) is a privacy oriented firewall application. It blocks
+ connections to and from hosts specified in huge blocklists (thousands or
+ millions of IP ranges). pgl is based on the Linux kernel netfilter framework
+ and iptables.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-firewall/pglinux/pglinux-2.3.1.ebuild b/net-firewall/pglinux/pglinux-2.3.1.ebuild
new file mode 100644
index 000000000000..e524edf5a018
--- /dev/null
+++ b/net-firewall/pglinux/pglinux-2.3.1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+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"
+REQUIRED_USE="qt4? ( dbus )"
+
+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-plasma/kde-cli-tools[kdesu] kde-apps/kdesu 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:= )
+"
+
+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() {
+ default
+ sed -i -e 's:/sbin/runscript:/sbin/openrc-run:' pglcmd/init/pgl.gentoo.in || die
+}
+
+src_configure() {
+ econf \
+ --localstatedir=/var \
+ $(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_systemunitdir)"
+}
+
+src_install() {
+ default
+ keepdir /var/{lib,log,spool}/pgl
+ rm -rf "${ED%/}"/tmp || die
+ prune_libtool_files --modules
+}
+
+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
+}