1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 MY_P="kav4fileservers-linux-${PV}"
8 S="${WORKDIR}/kav4fileservers-linux-install"
10 DESCRIPTION="Kaspersky File Server virus scanner"
11 HOMEPAGE="http://www.kaspersky.com/"
12 SRC_URI="ftp://ftp.kaspersky.com/products/release/english/businessoptimal/file_servers/kavlinuxserver/${MY_P}.tar.gz"
20 RDEPEND="virtual/cron"
21 PROVIDE="virtual/antivirus"
22 RESTRICT="mirror strip"
26 enewuser kluser -1 -1 /var/db/kav klusers
30 einfo "Nothing to compile, installing Kasperky AV for Fileservers..."
34 dodir /var/log/kav/5.5/kav4unix
35 dodir /var/db/kav/5.5/kav4unix/{bases,bases.backup,licenses,patches}
36 fowners kluser:klusers /var/log/kav/5.5/kav4unix
37 fowners kluser:klusers /var/db/kav/5.5/kav4unix/licenses
38 fperms 0770 /var/log/kav/5.5/kav4unix
39 fperms 0770 /var/db/kav/5.5/kav4unix/licenses
41 insinto /var/db/kav/5.5/kav4unix/bases
44 into /opt/kav/5.5/kav4unix
47 insinto /opt/kav/5.5/kav4unix/contrib
53 insinto /etc/kav/5.5/kav4unix
54 doins kav4unix/kav4unix.conf
56 # TODO: provide a gentooified initscript
57 doinitd "${S}/init.d/kavmonitor"
59 dodoc kav4unix/ChangeLog
64 ewarn "IMPORTANT!!! You must install a valid Kaspersky Lab license file"
65 ewarn "to use the application. Licenses should be installed into"
66 ewarn "/var/db/kav/5.5/kav4unix/licenses. To do this, run:"
68 ewarn " /opt/kav/5.5/kav4unix/bin/licensemanager -a <keyfile> "
70 ewarn "You need to download the latest anti-virus bases before using"
71 ewarn "this application. To do this, run:"
73 ewarn " /opt/kav/5.5/kav4unix/bin/keepup2date"
76 elog " To keep anti-virus bases up-to-date, create a cron job for KAV:"
78 elog " crontab -u kluser -e"
80 elog " and add the following line (change the frequency of update if required):"
82 elog " * */4 * * * /opt/kav/5.5/kav4unix/bin/keepup2date >/dev/null 2>&1"
84 elog "Configuration file was installed in /etc/kav/5.5/kav4unix/kav4unix.conf."
85 elog "See \"man 8 kav4unix.conf\" for detailed configuration info."
87 elog "If you want to use web interface to configure and use Kaspersky Anti-Virus"
88 elog "emerge app-admin/webmin and then install the module via webmin interface."
89 elog "Webmin module is located in /opt/kav/5.5/kav4unix/contrib/kavfs.wbm"