summaryrefslogtreecommitdiff
path: root/security/kf5-kdesu
diff options
context:
space:
mode:
authorDima Panov <fluffy@FreeBSD.org>2023-12-11 19:55:29 +0300
committerDima Panov <fluffy@FreeBSD.org>2023-12-11 19:57:56 +0300
commit1bbec47225cc2bc88d5285f3da4b6f629d2c3afe (patch)
treef61b87330913d979e2efe2e7bd183e2c9eaa64d7 /security/kf5-kdesu
parentsysutils/cpu-microcode-rc: Fix a typo in a warning in the rc script (diff)
security/kf5-kdesu: allow kdesu to use sudo or doas instead su (+)
KDESU can use sudo and doas (but only one!) as privilegies upscale engine instead su. Allow users to select preffered engine via options. Keep SU as default to mimic previous behaviour. Sponsored by: Serenity Cybersecurity, LLC
Diffstat (limited to 'security/kf5-kdesu')
-rw-r--r--security/kf5-kdesu/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/security/kf5-kdesu/Makefile b/security/kf5-kdesu/Makefile
index d85704214a54..51012a563221 100644
--- a/security/kf5-kdesu/Makefile
+++ b/security/kf5-kdesu/Makefile
@@ -1,5 +1,6 @@
PORTNAME= kdesu
DISTVERSION= ${KDE_FRAMEWORKS_VERSION}
+PORTREVISION= 1
CATEGORIES= security kde kde-frameworks
MAINTAINER= kde@FreeBSD.org
@@ -12,4 +13,22 @@ USE_QT= core \
buildtools:build qmake:build
USE_XORG= ice sm x11 xext
+OPTIONS_DEFAULT= SU
+OPTIONS_RADIO= BACKEND
+OPTIONS_RADIO_BACKEND= SU SUDO DOAS
+
+SU_DESC= Using su as default
+SUDO_DESC= Use sudo instead of su
+DOAS_DESC= Use doas instead of su and sudo
+
+SUDO_CMAKE_BOOL= KDESU_USE_SUDO_DEFAULT
+SUDO_BUILD_DEPENDS= sudo:security/sudo
+SUDO_RUN_DEPENDS= sudo:security/sudo
+
+DOAS_CMAKE_BOOL= KDESU_USE_DOAS_DEFAULT
+DOAS_BUILD_DEPENDS= doas:security/doas
+DOAS_RUN_DEPENDS= doas:security/doas
+
+OPTIONS_SUB= yes
+
.include <bsd.port.mk>