PKGBUILDs/aur/logmein-hamachi/logmein-hamachi.install

43 lines
857 B
Text
Raw Normal View History

2012-03-22 18:05:22 +00:00
# LogMeIn-Hamachi: Installer: Arch
# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
# arg 1: the new package version
post_install() {
/etc/rc.d/logmein-hamachi start
echo "To automatically start the LogMeIn Hamachi service when your system boots, add 'logmein-hamachi' to the DAEMONS array of your '/etc/rc.conf'."
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."
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install
}
pre_remove() {
/etc/rc.d/logmein-hamachi stop
#/bin/true
}
user_remove() {
#if [ -n ${SUDO_USER} ]
#then
#ifndef HOME
#HOME = ~$(USER)
# export HOME=/home/${USER}
#endif
#fi
/bin/true
}
post_remove() {
/bin/true
}
op=$1
shift
$op $*