summaryrefslogtreecommitdiffstats
path: root/arch/tde-core/tde-tdebase/trinity-tdebase.install
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2021-09-20 17:08:32 +0200
committerSlávek Banko <[email protected]>2021-09-29 09:27:25 +0200
commit0ac2945504b4df71d0ac6777b2c956cd4921ad08 (patch)
tree301eb3b41ae6f4e78a8b5611040ba8d9c13af6dd /arch/tde-core/tde-tdebase/trinity-tdebase.install
parent318e997cf4d25c5d2e7b4261a6017b653c1fa93c (diff)
downloadtde-packaging-0ac2945504b4df71d0ac6777b2c956cd4921ad08.tar.gz
tde-packaging-0ac2945504b4df71d0ac6777b2c956cd4921ad08.zip
ArchLinux: Take a newer state of pkgbuilds from Michael Manley
Clean old long-term not maintained pkgbuilds. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 018f946ee70600993c60a74046f417ca05bdb41b)
Diffstat (limited to 'arch/tde-core/tde-tdebase/trinity-tdebase.install')
-rw-r--r--arch/tde-core/tde-tdebase/trinity-tdebase.install21
1 files changed, 21 insertions, 0 deletions
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
+}
+