summaryrefslogtreecommitdiff
path: root/pcr/timekpr/timekpr.install
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-02-06 11:55:48 -0200
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-02-06 11:55:48 -0200
commitce15c219696194cd6826205cb630e64cfb9c1c5b (patch)
treed59fd775358e09bf90d842203d3f751c97b1f75a /pcr/timekpr/timekpr.install
parent387a6ac962ce6a21ccb27fa2cc494ea6e3d2b8cd (diff)
parentc1bff90faaaca75404032580f2ad5213ec76e893 (diff)
Merge ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/timekpr/timekpr.install')
-rw-r--r--pcr/timekpr/timekpr.install24
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/timekpr/timekpr.install b/pcr/timekpr/timekpr.install
new file mode 100644
index 000000000..b01769c48
--- /dev/null
+++ b/pcr/timekpr/timekpr.install
@@ -0,0 +1,24 @@
+
+post_install() {
+ /usr/bin/timekpr.postinst
+
+ echo "Your su command (gksu|gksudo|kdesu|kdesudo etc) for starting timekpr-gui as root: "
+ read su_command;
+ sed -i "s/gksu/${su_command}/" "/usr/share/applications/timekpr.desktop"
+
+ echo
+ echo "Start the timekpr daemon with '/etc/rc.d/timekprd start'"
+ echo "For permanent use put 'timekprd' into your DAEMONS array."
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ /usr/bin/timekpr.postrm purge
+}
+
+post_remove() {
+ echo "Remove the timekprd entry from your DAEMONS array."
+}