From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D0395158066 for ; Wed, 4 Sep 2024 11:45:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 975812BC02F; Wed, 4 Sep 2024 11:45:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 819C62BC02F for ; Wed, 4 Sep 2024 11:45:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5DCD134301D for ; Wed, 4 Sep 2024 11:45:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E63981F3B for ; Wed, 4 Sep 2024 11:45:49 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1725450337.25e9a32357e8afd630d040f5fb8c0fbca9e52aaf.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/pglinux/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-firewall/pglinux/pglinux-2.3.1_p20171006-r2.ebuild X-VCS-Directories: net-firewall/pglinux/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 25e9a32357e8afd630d040f5fb8c0fbca9e52aaf X-VCS-Branch: master Date: Wed, 4 Sep 2024 11:45:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e5e0956c-fc61-457e-b8e3-a1a58b350ce0 X-Archives-Hash: 5c1a45aa4839d8622312b715a160525a commit: 25e9a32357e8afd630d040f5fb8c0fbca9e52aaf Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue Sep 3 17:43:52 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Sep 4 11:45:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25e9a323 net-firewall/pglinux: Use kde-plasma/kdesu-gui instead of kde-cli-tools Signed-off-by: Andreas Sturmlechner gentoo.org> .../pglinux/pglinux-2.3.1_p20171006-r2.ebuild | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/net-firewall/pglinux/pglinux-2.3.1_p20171006-r2.ebuild b/net-firewall/pglinux/pglinux-2.3.1_p20171006-r2.ebuild new file mode 100644 index 000000000000..4d46a3319fb3 --- /dev/null +++ b/net-firewall/pglinux/pglinux-2.3.1_p20171006-r2.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +COMMIT=9d91ab6a8e6bc2b41e985aa698eb5c1eb364fea8 +MY_PN="peerguardian" +MY_P="${MY_PN}-${PV}" +inherit autotools qmake-utils linux-info systemd xdg-utils + +DESCRIPTION="Privacy oriented firewall application" +HOMEPAGE="https://sourceforge.net/projects/peerguardian/" +SRC_URI="https://sourceforge.net/code-snapshots/git/p/pe/peerguardian/code.git/peerguardian-code-${COMMIT}.zip -> ${P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cron dbus networkmanager qt5 zlib" +REQUIRED_USE="qt5? ( dbus )" + +DEPEND=" + net-libs/libnetfilter_queue + net-libs/libnfnetlink + dbus? ( sys-apps/dbus ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + zlib? ( sys-libs/zlib ) +" +RDEPEND="${DEPEND} + net-firewall/iptables + sys-apps/sysvinit + cron? ( virtual/cron ) + networkmanager? ( net-misc/networkmanager:= ) + qt5? ( || ( + kde-plasma/kdesu-gui + x11-misc/ktsuss + ) ) +" +BDEPEND=" + app-arch/unzip + dev-build/libtool:2 + virtual/pkgconfig +" + +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" + +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) + +S="${WORKDIR}/${MY_PN}-code-${COMMIT}" + +src_prepare() { + default + sed -e 's:/sbin/runscript:/sbin/openrc-run:' \ + -i pglcmd/init/pgl.gentoo.in || die "Failed to convert to openrc-run" + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-lowmem + --with-iconsdir=/usr/share/icons/hicolor/128x128/apps + --with-gentoo-init + --localstatedir=/var + --enable-logrotate + $(use_enable cron) + $(use_enable dbus) + $(use_enable networkmanager) + $(use_with qt5) + LRELEASE=$(qt5_get_bindir)/lrelease + LUPDATE=$(qt5_get_bindir)/lupdate + MOC=$(qt5_get_bindir)/moc + QMAKE=$(qt5_get_bindir)/qmake + RCC=$(qt5_get_bindir)/rcc + UIC=$(qt5_get_bindir)/uic + $(use_enable zlib) + --with-systemd="$(systemd_get_systemunitdir)" + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + keepdir /var/{lib,log,spool}/pgl + rm -rf "${ED}"/tmp || die + find "${ED}" -name '*.la' -delete || die +} + +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.))" + + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}