From 018f946ee70600993c60a74046f417ca05bdb41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 20 Sep 2021 17:08:32 +0200 Subject: ArchLinux: Take a newer state of pkgbuilds from Michael Manley Clean old long-term not maintained pkgbuilds. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- arch/tde-core/tde-tdebase/trinity-tdebase.install | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 arch/tde-core/tde-tdebase/trinity-tdebase.install (limited to 'arch/tde-core/tde-tdebase/trinity-tdebase.install') diff --git a/arch/tde-core/tde-tdebase/trinity-tdebase.install b/arch/tde-core/tde-tdebase/trinity-tdebase.install new file mode 100644 index 000000000..8bdaa12ef --- /dev/null +++ b/arch/tde-core/tde-tdebase/trinity-tdebase.install @@ -0,0 +1,21 @@ +post_install() { + ldconfig &> /dev/null + [ "$TDEDIR" = "" ] && . /etc/profile.d/trinity.sh + [ -x "${TDEDIR}/bin/mkpamserv" ] && "${TDEDIR}/bin/mkpamserv" trinity || \ + echo "Warning: unable to run mkpamserv trinity, you will need to manually confirure pam" + echo "Please remember that you can change your kdesu backend from su to sudo" + echo "by adding following lines to your ~/.tde/share/kdesurc or to the" + echo "$TDEDIR/share/config/kdesurc:" + echo "[super-user-command]" + echo "super-user-command=sudo" +} + +post_upgrade() { + post_install +} + +post_remove() { + ldconfig &> /dev/null + rm /etc/pam.d/trinity +} + -- cgit v1.2.1