updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / gcaldaemon / gcaldaemon.install
blob070ca05189629a586fb817fb486069a5dd94c984
1 post_install() {
3 echo ""; echo ""; echo ""
4 echo -n "Adding gcal system group... "
5 groupadd gcal && echo "done."
7 chown root:gcal /opt/gcaldaemon/conf/*
8 chmod 664 /opt/gcaldaemon/conf/*
10 chown root:gcal /opt/gcaldaemon/work
11 chmod 775 /opt/gcaldaemon/work
13 cat << EOF
15 Please add yourself to the the "gcal" group :
16 $ sudo gpasswd -a <username> gcal
17 and then logout/login back.
19 For a graphical configuration, execute :
20 $ /opt/gcaldaemon/bin/config-editor.sh
22 For a manual configuration, first encrypt your
23 GMail account information by runnig this script :
24 $ /opt/gcaldaemon/bin/password-encoder.sh
25 Copy the result and then edit this file according
26 to the docs (see /opt/gcaldaemon/docs/index.html)
27 $ \$EDITOR /opt/gcaldaemon/conf/gcal-daemon.cfg
29 Add "gcaldaemon" to your DAEMON array in /etc/rc.conf
30 for automatic launch at boot.
32 Please see the docs:
33 Online - http://gcaldaemon.sourceforge.net/usage.html
34 Offline - /opt/gcaldaemon/docs/index.html
36 EOF
40 post_upgrade() {
41 /bin/true
44 pre_remove() {
45 echo -n -e "\nremoving gcal system group... "
46 groupdel gcal && echo "done."
49 op=$1
50 shift
52 $op $*