summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2026-01-26 21:48:53 +0300
committerAlexander Golubev <fatzer2@gmail.com>2026-01-26 21:48:53 +0300
commit7889b8b10995d94916bf29634ad6fc16c12a7b06 (patch)
tree7d4c422b2d0aba225a96ff7580b22887d0b030a0
parentfd100b9ec42006eea266eaf8f816d3bd34834109 (diff)
downloadtde-packaging-gentoo-master.tar.gz
tde-packaging-gentoo-master.zip
trinity-base/tdesu: add USE=kdesu-symlinkHEADmaster
Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging-gentoo/issues/457#issuecomment-81655 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rw-r--r--trinity-base/tdesu/metadata.xml4
-rw-r--r--trinity-base/tdesu/tdesu-14.1.2.ebuild17
-rw-r--r--trinity-base/tdesu/tdesu-14.1.4.ebuild17
-rw-r--r--trinity-base/tdesu/tdesu-9999.ebuild17
4 files changed, 49 insertions, 6 deletions
diff --git a/trinity-base/tdesu/metadata.xml b/trinity-base/tdesu/metadata.xml
index d0d502e8..ba839161 100644
--- a/trinity-base/tdesu/metadata.xml
+++ b/trinity-base/tdesu/metadata.xml
@@ -8,5 +8,9 @@
<use>
<flag name="sudo"> Use <pkg>app-admin/sudo</pkg> as a default program to
obtain root privileges.</flag>
+ <flag name="kdesu-symlink">
+ Create a kdesu symlink for tdesu to be able to use it in
+ third-party apps, which are aware only of existence of kdesu.
+ </flag>
</use>
</pkgmetadata>
diff --git a/trinity-base/tdesu/tdesu-14.1.2.ebuild b/trinity-base/tdesu/tdesu-14.1.2.ebuild
index dca73912..2bca4daa 100644
--- a/trinity-base/tdesu/tdesu-14.1.2.ebuild
+++ b/trinity-base/tdesu/tdesu-14.1.2.ebuild
@@ -1,5 +1,5 @@
# Copyright 1999-2024 Gentoo Authors
-# Copyright 2020-2024 The Trinity Desktop Project
+# Copyright 2020-2026 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
@@ -12,7 +12,7 @@ DESCRIPTION="Trinity gui for su(1) or sudo"
if [[ ${PV} != *9999* ]] ; then
KEYWORDS="~amd64 ~arm64 ~x86"
fi
-IUSE="sudo"
+IUSE="sudo kdesu-symlink"
DEPEND="sudo? ( app-admin/sudo )"
RDEPEND="${DEPEND}"
@@ -26,6 +26,11 @@ src_configure () {
trinity-meta-2_src_configure
}
+src_install () {
+ trinity-meta-2_src_install
+ use kdesu-symlink && dosym tdesu "${TDEDIR}/bin/kdesu"
+}
+
pkg_postinst () {
if use sudo; then
einfo "Remember that the sudo use flag sets only the default superuser command."
@@ -35,4 +40,12 @@ pkg_postinst () {
einfo "to the kdeglobals config file, which is usually"
einfo "located in the ~/.trinity/share/config/ directory."
fi
+
+ if use kdesu-symlink; then
+ einfo
+ einfo "Note that with USE=\"kdesu-symlink\" you may still have"
+ einfo "kde-frameworks/kdesu installed alongside tdesu. In such a case"
+ einfo "tdesu will be prioritized to be used instead of it inside a TDE"
+ einfo "session and KDE's kdesu will be used when running other DEs."
+ fi
}
diff --git a/trinity-base/tdesu/tdesu-14.1.4.ebuild b/trinity-base/tdesu/tdesu-14.1.4.ebuild
index 4eba7358..73523318 100644
--- a/trinity-base/tdesu/tdesu-14.1.4.ebuild
+++ b/trinity-base/tdesu/tdesu-14.1.4.ebuild
@@ -1,5 +1,5 @@
# Copyright 1999-2020 Gentoo Authors
-# Copyright 2020-2025 The Trinity Desktop Project
+# Copyright 2020-2026 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
@@ -12,7 +12,7 @@ DESCRIPTION="Trinity gui for su(1) or sudo"
if [[ ${PV} != *9999* ]] ; then
KEYWORDS="~amd64 ~arm64 ~x86"
fi
-IUSE="sudo"
+IUSE="sudo kdesu-symlink"
DEPEND="sudo? ( app-admin/sudo )"
RDEPEND="${DEPEND}"
@@ -26,6 +26,11 @@ src_configure () {
trinity-meta-2_src_configure
}
+src_install () {
+ trinity-meta-2_src_install
+ use kdesu-symlink && dosym tdesu "${TDEDIR}/bin/kdesu"
+}
+
pkg_postinst () {
if use sudo; then
einfo "Remember that the sudo use flag sets only the default superuser command."
@@ -35,4 +40,12 @@ pkg_postinst () {
einfo "to the kdeglobals config file, which is usually"
einfo "located in the ~/.trinity/share/config/ directory."
fi
+
+ if use kdesu-symlink; then
+ einfo
+ einfo "Note that with USE=\"kdesu-symlink\" you may still have"
+ einfo "kde-frameworks/kdesu installed alongside tdesu. In such a case"
+ einfo "tdesu will be prioritized to be used instead of it inside a TDE"
+ einfo "session and KDE's kdesu will be used when running other DEs."
+ fi
}
diff --git a/trinity-base/tdesu/tdesu-9999.ebuild b/trinity-base/tdesu/tdesu-9999.ebuild
index 4eba7358..73523318 100644
--- a/trinity-base/tdesu/tdesu-9999.ebuild
+++ b/trinity-base/tdesu/tdesu-9999.ebuild
@@ -1,5 +1,5 @@
# Copyright 1999-2020 Gentoo Authors
-# Copyright 2020-2025 The Trinity Desktop Project
+# Copyright 2020-2026 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
@@ -12,7 +12,7 @@ DESCRIPTION="Trinity gui for su(1) or sudo"
if [[ ${PV} != *9999* ]] ; then
KEYWORDS="~amd64 ~arm64 ~x86"
fi
-IUSE="sudo"
+IUSE="sudo kdesu-symlink"
DEPEND="sudo? ( app-admin/sudo )"
RDEPEND="${DEPEND}"
@@ -26,6 +26,11 @@ src_configure () {
trinity-meta-2_src_configure
}
+src_install () {
+ trinity-meta-2_src_install
+ use kdesu-symlink && dosym tdesu "${TDEDIR}/bin/kdesu"
+}
+
pkg_postinst () {
if use sudo; then
einfo "Remember that the sudo use flag sets only the default superuser command."
@@ -35,4 +40,12 @@ pkg_postinst () {
einfo "to the kdeglobals config file, which is usually"
einfo "located in the ~/.trinity/share/config/ directory."
fi
+
+ if use kdesu-symlink; then
+ einfo
+ einfo "Note that with USE=\"kdesu-symlink\" you may still have"
+ einfo "kde-frameworks/kdesu installed alongside tdesu. In such a case"
+ einfo "tdesu will be prioritized to be used instead of it inside a TDE"
+ einfo "session and KDE's kdesu will be used when running other DEs."
+ fi
}