/[gentoo-x86]/app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild
Gentoo

Contents of /app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sun Apr 8 20:58:05 2007 UTC (12 years, 6 months ago) by ticho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Removed 7.0.1 ebuild.
(Portage version: 2.1.2.3)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild,v 1.13 2007/01/23 15:15:18 genone Exp $
4
5 IUSE=""
6
7 MY_P=BitDefender-Console-Antivirus-${PV}-3.linux-gcc3x.i586.run
8 S=${WORKDIR}/i386
9
10 DESCRIPTION="BitDefender console antivirus"
11 HOMEPAGE="http://www.bitdefender.com/"
12 SRC_URI="ftp://ftp.bitdefender.com/pub/linux/free/bitdefender-console/en/${MY_P}"
13
14 DEPEND="app-arch/tar
15 app-arch/gzip"
16 RDEPEND="virtual/libc
17 amd64? ( >=app-emulation/emul-linux-x86-baselibs-1.0 )"
18 PROVIDE="virtual/antivirus"
19
20 SLOT="0"
21 LICENSE="as-is"
22 KEYWORDS="-* -amd64 x86"
23
24 src_unpack () {
25 #Extract the tgz achive contained in MY_P
26 SKIP=`sed -n '/^\x1F/q;p' < ${DISTDIR}/${MY_P} | wc -c`
27 dd if=${DISTDIR}/${MY_P} ibs=1 skip=$SKIP 2> /dev/null | tar -xz || die "Failed to extract from archive"
28 }
29
30 src_install ()
31 {
32 cd ${S}
33
34 INSTALLDIR=/opt
35 QUARDIR=/var/bdc
36 INIFILE=bdc.ini
37
38 (
39 dodir ${QUARDIR} &&
40 dodir ${QUARDIR}/infected &&
41 dodir ${QUARDIR}/suspected
42 ) || die "Unable to create quarantine directories"
43
44 cd opt/bdc
45 echo "InfectedFolder = ${QUARDIR}/infected" >> $INIFILE
46 echo "SuspectedFolder = ${QUARDIR}/suspected" >> $INIFILE
47
48 insinto /opt/bdc
49 insopts -m 755
50 doins bdc
51 dodir /usr/bin
52 dosym /opt/bdc/bdc /usr/bin/bdc
53
54 dodir /var/bdc
55 dodir /var/bdc/infected
56 keepdir /var/bdc/infected
57 dodir /var/bdc/suspected
58 keepdir /var/bdc/suspected
59
60 insopts -m 644
61 doins bdc.ini *.so
62 insinto /opt/bdc/Plugins
63 doins Plugins/*
64
65 doman man/*
66 dodoc doc/*
67 }
68
69 pkg_postinst ()
70 {
71 elog You should upgrade virus database by running bdc --update
72 }

  ViewVC Help
Powered by ViewVC 1.1.20