updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / antivir-resident / antivir-resident.install
blob18f330aab34466226df0cc1811018bad09a48278
1 AVIR_PATH=/usr/lib/AntiVir
3 post_install() {
4   groupadd antivir &> /dev/null
5   chown -R root:antivir $AVIR_PATH &> /dev/null
6   [ -d "$AVIR_PATH/gui" ] && \
7     chmod 4710 $AVIR_PATH/gui/bin/antivir_start.real &> /dev/null
9   echo -e "\n  -----------------------------------------------------------------"
10   echo    "  IMPORTANT:"
11   echo    "   The license is located here: /usr/share/licenses/antivir/LICENSE"
12   echo    "   If you do not accept its terms, remove this package immediately."
13   echo -e "  -----------------------------------------------------------------\n"
14   echo    "  CONFIGURATION:"
15   echo    "   1. Join the 'antivir' group:"
16   echo    "       # gpasswd -a USERNAME antivir"
17   echo    "   2. Register AntiVir with RSBAC's Dazuko interface:"
18   echo    "       $ su - secoff"
19   echo    "       $ attr_set_file_dir FD $AVIR_PATH/antivir daz_scanner 1"
20   echo    "   3. Add the updater and AvGuard daemons:"
21   echo -e "       place 'avupd' and 'avgrd' in the /etc/rc.conf DAEMONS array\n"
22   echo    "  USAGE:"
23   echo    "   - CLI manual vdf update............... antivir --update"
24   echo    "   - CLI basic system scan............... antivir --allfiles -s -z /"
25   echo    "   - CLI detailed usage.................. antivir --help"
26   [ -f "$AVIR_PATH/antivir-gui" ] && \
27     echo    "   - GUI Java front-end.................. antivir-gui"
28   echo -e "   - Full documentation.................. /usr/share/doc/antivir\n"
31 post_upgrade() {
32   post_install $1
35 pre_remove() {
36   [ -f "$AVIR_PATH/avupdater" ] && $AVIR_PATH/avudater stop &> /dev/null
37   [ -f "$AVIR_PATH/avguard" ] && $AVIR_PATH/avguard stop &> /dev/null
38   killall antivir &> /dev/null
41 post_remove() {
42   # Purge remnants
43   rm -rf $AVIR_PATH
44   groupdel antivir &> /dev/null