updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / logmein-hamachi / logmein-hamachi.install
blobe6faf2d22d61872dc859a354d1b31489b30d20a2
1 # LogMeIn-Hamachi: Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
4 # arg 1:  the new package version
5 post_install() {
6         /etc/rc.d/logmein-hamachi start
8         echo "To automatically start the LogMeIn Hamachi service when your system boots, add 'logmein-hamachi' to the DAEMONS array of your '/etc/rc.conf'."
9         echo "To allow a standard user to control LogMeIn Hamachi, add 'Ipc.User <login name>' to '/var/lib/logmein-hamachi/h2-engine-override.cfg' and restart the service."
12 # arg 1:  the new package version
13 # arg 2:  the old package version
14 post_upgrade() {
15         post_install
18 pre_remove() {
19         /etc/rc.d/logmein-hamachi stop
20         #/bin/true
23 user_remove() {
24         #if [ -n ${SUDO_USER} ]
25         #then
26                 #ifndef HOME
27                         #HOME = ~$(USER)
28         #               export HOME=/home/${USER}
29                 #endif
30         #fi
32         /bin/true
35 post_remove() {
36         /bin/true
40 op=$1
41 shift
42 $op $*