updated on Sat Jan 14 16:01:55 UTC 2012
[aur-mirror.git] / antivir / antivir.install
blobc43c702fe5fad9a9e1a9e9fc70cf77e7f20c713c
1 avdir=/usr/lib/AntiVir
3 post_install() {
4   groupadd antivir &> /dev/null
5   chown -R root:antivir $avdir/agent $avdir/guard &> /dev/null
6   chmod 4750 $avdir/guard/gui/bin/antivir_start.real &> /dev/null
8   useradd -m -d /home/quarantine -g antivir -s /bin/bash antivir &> /dev/null
9   chmod -R 770 /home/quarantine &> /dev/null
11   echo -e "\n --- IMPORTANT ---"
12   echo    "  By using this software, you accept the Avira GmbH EULA:"
13   echo    "   /usr/share/licenses/antivir/LICENSE"
14   echo -e "\n --- CONFIG ---"
15   echo    "  Join the 'antivir' group and relog:"
16   echo    "   # gpasswd -a USERNAME antivir"
17   echo    "  Start the guard daemon:"
18   echo    "   # /etc/rc.d/antivird start"
19   echo    "  To automatically start it at boot time, edit rc.conf:"
20   echo    "   place 'antivird' in the DAEMONS array of /etc/rc.conf"
21   echo -e "\n --- USAGE ---"
22   echo    "  Update............... avupdate-guard -h"
23   echo    "  Scan................. avscan -h"
24   echo -e "  Docs................. /usr/share/doc/antivir/\n"
27 post_upgrade() {
28   post_install $1
31 pre_remove() {
32   etc/rc.d/antivird stop &> /dev/null
35 post_remove() {
36   rm -rf $avdir
37   userdel -r antivir &> /dev/null
38   groupdel antivir &> /dev/null