updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / klinpopup / klinpopup.install
blobf1d5ec15efe48f393d82b23dfdbfca6677908feb
2 post_install() {
3   [ -d /var/lib/klinpopup ] || mkdir -vp -m 0777 /var/lib/klinpopup
4   [ -z "$(grep receivepopup.sh /etc/samba/smb.conf)" ] && cat << EOF
5 ==>
6 ==> For KLinPopup to work, you must configure Samba correctly.
7 ==>
8 ==> Add or change the line in /etc/samba/smb.conf:
9 ==> message command = sh -c '/opt/kde/bin/receivepopup.sh "%f" "%m" "%I" "%s"' &
10 ==>
11 EOF
14 post_upgrade() {
15   post_install $1
18 post_remove() {
19   cat << EOF
20 ==>
21 ==> You should remove the directory /var/lib/klinpopup
22 ==> if you no longer plan on using KLinPopup in the future.
23 ==>
24 EOF
27 op=$1
28 shift
29 $op $*