blob: 37e03eb66120584ae2e93c51c62c445646ede8b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-antivirus/vlnx/vlnx-432e-r2.ebuild,v 1.7 2005/08/13 19:30:29 ticho Exp $
MY_P="${P/-/}"
S="${WORKDIR}"
DESCRIPTION="McAfee VirusScanner for Unix/Linux(Shareware)"
SRC_URI="http://download.nai.com/products/evaluation/virusscan/english/cmdline/linux/v4.32/intel/${MY_P}.tar.Z
ftp://kane.evendata.net/pub/${PN}/check-updates.sh.gz"
HOMEPAGE="http://www.mcafeeb2b.com/"
SLOT="0"
LICENSE="VirusScan"
KEYWORDS="~amd64 x86"
IUSE=""
DEPEND=""
RDEPEND=" || ( sys-libs/lib-compat
app-emulation/emul-linux-x86-compat )
amd64? ( app-emulation/emul-linux-x86-baselibs )
net-misc/wget
dev-lang/perl
app-arch/unzip"
PROVIDE="virtual/antivirus"
RESTRICT="nostrip nomirror"
src_install() {
insinto /opt/vlnx
doins ${FILESDIR}/uvscan.cron
doins liblnxfv.so.4
dosym liblnxfv.so.4 /opt/vlnx/liblnxfv.so
doins messages.dat license.dat
insopts -m0755
doins uvscan
doins check-updates.sh
insinto /opt/bin
newins ${FILESDIR}/uvscan.sh uvscan
dodoc *.{pdf,txt}
doman uvscan.1
insopts -m0644
insinto /etc/env.d
newins ${FILESDIR}/vlnx-${PV}-envd 40vlnx
insinto /etc
doins ${FILESDIR}/uvscan.conf
}
pkg_postinst() {
/opt/vlnx/check-updates.sh
echo
einfo "Recommended amavisd-new command line:"
einfo " '--secure --mime --program --mailbox -rv --summary --noboot --timeout 180'"
echo
einfo "If you wish to have your filesystem scanned for malware daily, put file"
einfo "/opt/vlnx/uvscan.cron into /etc/cron.daily/"
einfo "Note that this script is set to remove infected files silently."
echo
}
|