blob: 28dccc417d576528fe27e46de47ab030e0042011 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
S="${WORKDIR}"
DESCRIPTION="Panda Antivirus for Linux"
HOMEPAGE="http://www.pandasoftware.com/download/linux/linux.asp"
SRC_URI="http://shareware.pandasoftware.com/shareware/pavcl_linux.tgz"
SLOT="0"
LICENSE="Panda-Freeware"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND=""
PROVIDE="virtual/antivirus"
RESTRICT="mirror strip"
QA_TEXTRELS_x86="opt/pavcl/usr/lib/libPsk*.so.*"
src_install() {
cd "${S}"
cp -r . "${D}"
dodir /etc/env.d
echo "PATH=\"/opt/pavcl/usr/bin\"" >> "${D}"/etc/env.d/90panda
echo "MANPATH=\"/opt/pavcl/usr/man\"" >> "${D}"/etc/env.d/90panda
}
pkg_postinst() {
elog "See \"man pavcl\" for usage instructions."
elog
elog "Updated virus definitions are not available for free."
elog "You need a username and password to download them"
elog "from http://acs.pandasoftware.com/software/basevirus/"
}
pkg_prerm() {
einfo "Removing stale logdir..."
[[ -d "${ROOT}/opt/pavcl/var/log/panda" ]] && rm -rf "${ROOT}/opt/pavcl/var/log/panda"
}
|