summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2023-04-04 20:44:29 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2023-04-04 21:06:12 +0200
commit794483bef5a046372e69458d01ae031fe059c2a7 (patch)
treee65f194612a59e917f2607b8daa720e851821d2b
parentkde-plasma/plasma-disks: 5.27.4 version bump (diff)
downloadgentoo-794483bef5a046372e69458d01ae031fe059c2a7.tar.gz
gentoo-794483bef5a046372e69458d01ae031fe059c2a7.tar.bz2
gentoo-794483bef5a046372e69458d01ae031fe059c2a7.zip
kde-plasma/plasma-firewall: 5.27.4 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--kde-plasma/plasma-firewall/Manifest1
-rw-r--r--kde-plasma/plasma-firewall/plasma-firewall-5.27.4.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/kde-plasma/plasma-firewall/Manifest b/kde-plasma/plasma-firewall/Manifest
index 0e1a51192839..0384bdc0d13e 100644
--- a/kde-plasma/plasma-firewall/Manifest
+++ b/kde-plasma/plasma-firewall/Manifest
@@ -1,2 +1,3 @@
DIST plasma-firewall-5.26.5.tar.xz 358560 BLAKE2B 5a5a15045414879bc155eafdec60941ba62559129cad5eb6b026e98973fa39ca7169e599190e04de5f9a7097727a98283e810f046265da122fd35f87c2be3659 SHA512 cd9ec0eef5511cab11211aac2ed14b593638386d41ce6e378053699418ac8c4698aa42d637763dae56668a794d1f877213a328dee86fe7777b909b3932bfb755
DIST plasma-firewall-5.27.3.tar.xz 361904 BLAKE2B 5561aebe26ff6173eca709ec1bcfc3ad48cb007b13207a89d68403d11aa0ca3cf1b8c5342f22600f30474c81f71444dea670f5193f411c378e077b4dc8d1754f SHA512 6a8a9507a6c819ad308c5e0eb91e5900243c65d8ba02494f857a88cd656ebc0196c88c551d7cfe9e860e93fddd878cd69011acfb08711e0f9b508a7e801c2499
+DIST plasma-firewall-5.27.4.tar.xz 361896 BLAKE2B b6690ebc12c1a768db56f8a5da5eb2a29efccbaff20e2048e2db791eeec3f81c40ff8282228b1570f3477157193df18b0ccf5bf45cbc89f00693175756280096 SHA512 22f1e7b631ac9c566730660815d6b3a6324e4ff9efd651dfa803164f7ab2e425a74ecf0b415820e0484b6e3f05ce2eb2ee257f5d5eb823d7852770de39188764
diff --git a/kde-plasma/plasma-firewall/plasma-firewall-5.27.4.ebuild b/kde-plasma/plasma-firewall/plasma-firewall-5.27.4.ebuild
new file mode 100644
index 000000000000..8d777543eabd
--- /dev/null
+++ b/kde-plasma/plasma-firewall/plasma-firewall-5.27.4.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_TEST="forceoptional"
+PYTHON_COMPAT=( python3_{9..11} )
+KFMIN=5.102.0
+QTMIN=5.15.7
+inherit ecm plasma.kde.org python-single-r1
+
+DESCRIPTION="Plasma frontend for Firewalld or UFW"
+HOMEPAGE="https://invent.kde.org/network/plasma-firewall"
+
+LICENSE="GPL-2+"
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="firewalld +ufw"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE} || ( firewalld ufw )"
+
+DEPEND="
+ >=dev-qt/qtdbus-${QTMIN}:5
+ >=dev-qt/qtdeclarative-${QTMIN}:5
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtnetwork-${QTMIN}:5
+ >=dev-qt/qtx11extras-${QTMIN}:5
+ >=dev-qt/qtxml-${QTMIN}:5
+ >=kde-frameworks/kauth-${KFMIN}:5
+ >=kde-frameworks/kcmutils-${KFMIN}:5
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kdeclarative-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+"
+RDEPEND="${DEPEND}
+ ${PYTHON_DEPS}
+ firewalld? ( net-firewall/firewalld )
+ ufw? ( net-firewall/ufw )
+"
+BDEPEND=">=kde-frameworks/kcmutils-${KFMIN}:5"
+
+src_prepare() {
+ ecm_src_prepare
+ # this kind of cmake magic doesn't work for us at all.
+ sed -e "1 s:^.*$:\#\!/usr/bin/env ${EPYTHON}:" \
+ -i kcm/backends/ufw/helper/kcm_ufw_helper.py.cmake || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_FIREWALLD_BACKEND=$(usex firewalld)
+ -DBUILD_UFW_BACKEND=$(usex ufw)
+ )
+ ecm_src_configure
+}
+
+pkg_postinst () {
+ ecm_pkg_postinst
+
+ if ! has_version sys-apps/systemd; then
+ ewarn "${PN} is not functional without sys-apps/systemd at this point."
+ ewarn "See also: https://bugs.gentoo.org/778527"
+ fi
+}