From ab8b0d3c153afeb3447963dcc4807fc41a288df6 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 31 Jul 2021 01:32:45 +0100 Subject: net-firewall/pglinux: [QA] unconditionally install logrotate files QA policy [0] says that we don't conditionalise installation of small files. It's a wasteful rebuild and inconsistent across packages for when users desire completions to be available. [0] https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0301 Signed-off-by: Sam James --- net-firewall/pglinux/metadata.xml | 1 - .../pglinux/pglinux-2.3.1_p20171006-r1.ebuild | 115 ++++++++++++++++++++ .../pglinux/pglinux-2.3.1_p20171006.ebuild | 116 --------------------- 3 files changed, 115 insertions(+), 117 deletions(-) create mode 100644 net-firewall/pglinux/pglinux-2.3.1_p20171006-r1.ebuild delete mode 100644 net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild (limited to 'net-firewall') diff --git a/net-firewall/pglinux/metadata.xml b/net-firewall/pglinux/metadata.xml index dcc75e5ecdcd..e2699e133a8b 100644 --- a/net-firewall/pglinux/metadata.xml +++ b/net-firewall/pglinux/metadata.xml @@ -10,7 +10,6 @@ Install cron script - Install logrotate.d file PeerGuardian Linux (pgl) is a privacy oriented firewall application. It blocks diff --git a/net-firewall/pglinux/pglinux-2.3.1_p20171006-r1.ebuild b/net-firewall/pglinux/pglinux-2.3.1_p20171006-r1.ebuild new file mode 100644 index 000000000000..c3893308ef37 --- /dev/null +++ b/net-firewall/pglinux/pglinux-2.3.1_p20171006-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2021 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 + || ( kde-plasma/kde-cli-tools[kdesu] x11-misc/ktsuss ) + ) + zlib? ( sys-libs/zlib ) +" +RDEPEND="${DEPEND} + net-firewall/iptables + sys-apps/sysvinit + cron? ( virtual/cron ) + networkmanager? ( net-misc/networkmanager:= ) +" +BDEPEND=" + app-arch/unzip + sys-devel/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 +} diff --git a/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild b/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild deleted file mode 100644 index 4c8bd3811e74..000000000000 --- a/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 1999-2021 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 logrotate 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 - || ( kde-plasma/kde-cli-tools[kdesu] x11-misc/ktsuss ) - ) - zlib? ( sys-libs/zlib ) -" -RDEPEND="${DEPEND} - net-firewall/iptables - sys-apps/sysvinit - cron? ( virtual/cron ) - logrotate? ( app-admin/logrotate ) - networkmanager? ( net-misc/networkmanager:= ) -" -BDEPEND=" - app-arch/unzip - sys-devel/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 - $(use_enable cron) - $(use_enable dbus) - $(use_enable logrotate) - $(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 -} -- cgit v1.2.3-65-gdbad