blob: 8be0e107de585e5e87b32f7e95aeecb73e0b576b (
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
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-antivirus/f-prot/f-prot-4.6.0-r2.ebuild,v 1.4 2007/01/23 15:28:33 genone Exp $
inherit eutils
IUSE=""
MY_P="fp-linux-ws-${PV}"
S=${WORKDIR}/${PN}
DESCRIPTION="Frisk Software's f-prot virus scanner"
HOMEPAGE="http://www.f-prot.com/"
SRC_URI="ftp://ftp.f-prot.com/pub/linux/${MY_P}.tar.gz"
DEPEND=""
# unzip and perl are needed for the check-updates.pl script
RDEPEND=">=app-arch/unzip-5.42-r1
dev-lang/perl
dev-perl/libwww-perl
amd64? ( >=app-emulation/emul-linux-x86-baselibs-1.0 )"
PROVIDE="virtual/antivirus"
SLOT="0"
LICENSE="F-PROT"
KEYWORDS="~amd64 -ppc -sparc x86"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/check-updates.pl.diff || die "epatch failed"
}
src_install() {
cd ${S}
dobin ${FILESDIR}/f-prot.sh
dosym /usr/bin/f-prot.sh /usr/bin/f-prot
dodir /opt/f-prot/tools /var/tmp/f-prot
keepdir /var/tmp/f-prot
insinto /opt/f-prot
insopts -m 755
newins etc/f-prot.conf.default f-prot.conf
dodir /etc
dosym /opt/f-prot/f-prot.conf /etc/f-prot.conf
doins f-prot
insopts -m 644
doins *.DEF ENGLISH.TX0
doman man_pages/*
dodoc LICENSE* CHANGES README
dohtml doc_ws/*
insinto /opt/f-prot/tools
insopts -m 755
doins tools/check-updates.pl
}
pkg_postinst() {
elog
elog "Remember to run /opt/f-prot/tools/check-updates.pl regularly to keep virus"
elog "database up to date. Recommended method is to use cron. See manpages for"
elog "cron(8) and crontab(5) for more info."
elog "An example crontab entry, causing check-updates.pl to run every night at 4AM:"
elog
elog "0 4 * * * /opt/f-prot/tools/check-updates.pl >/dev/null"
elog
elog "For more examples, see /usr/share/doc/${PF}/html/auto_updt.html"
echo
ewarn "As of 4.5.4, the update script is installed correctly into directory designed"
ewarn "by upstream again. Check your crontab, so the path matches the one above."
echo
}
|