From nobody Mon Dec 11 16:58:11 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Spnxb6tlMz53qd2; Mon, 11 Dec 2023 16:58:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Spnxb4hjDz4PJv; Mon, 11 Dec 2023 16:58:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702313891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h+0g2BQvdLGjM2U6eXPIwmBm745lZzWlrnK0WO2/qOc=; b=XGBoShqsONiFMDL5xW6n6xOrP+aVJ6QI4gl4vL9CST5mlPNBOplHo6C0pY2Pl4uYMuULvJ Nf4LLesuqJPqazFLPpJrTtjPf8q0bN5UpVQ8vVaKU//Gf/sEzp8OeG3JNGSjeuZwXSdg52 bO9v8sdyNVQI/sHWv1/eEsNEBv+oJH1eDIjeEVzGd/v3oWliZiOc6Dw54PqREor2I8TmP9 K6o03AuCyTVIURS/1vk0XUloWX7trA3qnrlPDDTBsM2KOdiOcdlt41hXNT0Cq19KxLFjgq NajQ0hWYVK8Q9z80R/GKj57/DSYu6hkJCBSvNCqMlQ3yl1PKaiBxtxeQNNrJuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702313891; a=rsa-sha256; cv=none; b=SK5auhsF1CMs2CUALMuXOPRbsPL4L1Xg78SqWPj/ilKK6LLBHjyi2LabFfFgmXsallwv96 3CBl5AvfOQvrrwwCYZ1fVWt/Lu8vc5u+Qmd+yqVyZsT5ZE7N9dKrLSHdj2J+ktO+PGyDS+ F0ZYz18k17cGAU281ND8ZCoq0hlLoHyPaetIyiaUjkjSbnj/JB4xPHetaRadNbl0kD/5SM RDPCNof2cJlh6e68OecTKShJiuWkLfC6N7iO50V/w5+LsuyLzgVjgAImQ/A+Bkj2TaF+Ul IamaArcx3ddBtKllRWpFTMxPFRfB7+fwRPgi5IHSp+SwNEOeVsJIHBimD89PpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702313891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h+0g2BQvdLGjM2U6eXPIwmBm745lZzWlrnK0WO2/qOc=; b=fAwItWtX9F8SWqvTn7SvYfA9UnKik8L6yhIj3x0uaqd5XhjrLgv3Hq8ptsGooqu03gTFpj woP/HvEib1ZmDZ0Kb+xYeqFzZ4jcCEb/kzYA8NIr5Vf4ZD5watOpgaDPwMCDFOMNyU07to f9W2ZE/PACOkrE5U5GhOJU114I1J+J0KPJTWjmt1mOK/6gu7/XYOk1zGaNU79Mgcr3SSvB Hiaxzmvv56RQj/nFqv0/WFALgg8XN8Y16N76IgnNyxXJDy5hipsGpPDUNhVzh61T2xO2A9 D+D7nXwLAcRc92FBtfFy7xRqtl0Y3ivsUskuNeIx/Y0Q7n6PU5GdLVePgilwZg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Spnxb3ntfzfbp; Mon, 11 Dec 2023 16:58:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BBGwBxt039309; Mon, 11 Dec 2023 16:58:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BBGwB2j039306; Mon, 11 Dec 2023 16:58:11 GMT (envelope-from git) Date: Mon, 11 Dec 2023 16:58:11 GMT Message-Id: <202312111658.3BBGwB2j039306@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dima Panov Subject: git: e5daa0cbadb3 - main - security/kf6-kdesu: allow kdesu to use sudo or doas instead su (+) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fluffy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e5daa0cbadb3bdfe5ae50f116d55c2e019f22edd Auto-Submitted: auto-generated The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=e5daa0cbadb3bdfe5ae50f116d55c2e019f22edd commit e5daa0cbadb3bdfe5ae50f116d55c2e019f22edd Author: Dima Panov AuthorDate: 2023-12-11 16:57:17 +0000 Commit: Dima Panov CommitDate: 2023-12-11 16:57:56 +0000 security/kf6-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 --- security/kf6-kdesu/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/security/kf6-kdesu/Makefile b/security/kf6-kdesu/Makefile index 67f405d56cb1..734f2b0649ee 100644 --- a/security/kf6-kdesu/Makefile +++ b/security/kf6-kdesu/Makefile @@ -1,5 +1,6 @@ PORTNAME= kdesu DISTVERSION= ${KDE_FRAMEWORKS_VERSION} +PORTREVISION= 1 CATEGORIES= security kde kde-frameworks COMMENT= User interface for running shell commands with root privileges @@ -11,4 +12,22 @@ USE_KDE= config coreaddons i18n pty \ USE_QT= base 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