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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sat Feb 13 18:49:20 2010 UTC (9 years, 8 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Remove masked package.

1 # Copyright 1999-2009 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-r1.ebuild,v 1.13 2009/10/12 16:22:03 halcy0n Exp $
4
5 inherit pax-utils
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="http://download.bitdefender.com/unices/old/linux/free/bitdefender-console/en/${MY_P}"
13
14 DEPEND="app-arch/tar
15 app-arch/gzip"
16 RDEPEND="amd64? (
17 >=app-emulation/emul-linux-x86-baselibs-1.0
18 app-emulation/emul-linux-x86-compat )
19 x86? ( ~virtual/libstdc++-3.3 )"
20 PROVIDE="virtual/antivirus"
21
22 SLOT="0"
23 LICENSE="as-is"
24 KEYWORDS="-* -amd64 x86"
25 IUSE=""
26
27 src_unpack () {
28 #Extract the tgz achive contained in MY_P
29 SKIP=`sed -n '/^\x1F/q;p' < "${DISTDIR}"/${MY_P} | wc -c`
30 dd if="${DISTDIR}"/${MY_P} ibs=1 skip=$SKIP 2> /dev/null | tar -xz || die "Failed to extract from archive"
31 }
32
33 src_install ()
34 {
35 cd "${S}"
36
37 INSTALLDIR=/opt
38 QUARDIR=/var/bdc
39 INIFILE=bdc.ini
40
41 (
42 dodir ${QUARDIR} &&
43 dodir ${QUARDIR}/infected &&
44 dodir ${QUARDIR}/suspected
45 ) || die "Unable to create quarantine directories"
46
47 cd opt/bdc
48 echo "InfectedFolder = ${QUARDIR}/infected" >> $INIFILE
49 echo "SuspectedFolder = ${QUARDIR}/suspected" >> $INIFILE
50
51 insinto /opt/bdc
52 insopts -m 755
53 doins bdc
54
55 pax-mark -msp "${D}"/opt/bdc/bdc
56
57 dodir /usr/bin
58 dosym /opt/bdc/bdc /usr/bin/bdc
59
60 dodir /var/bdc
61 dodir /var/bdc/infected
62 keepdir /var/bdc/infected
63 dodir /var/bdc/suspected
64 keepdir /var/bdc/suspected
65
66 insopts -m 644
67 doins bdc.ini *.so
68 insinto /opt/bdc/Plugins
69 doins Plugins/*
70
71 doman man/*
72 dodoc doc/*
73 }
74
75 pkg_postinst ()
76 {
77 elog "You should upgrade virus database by running bdc --update"
78 }

  ViewVC Help
Powered by ViewVC 1.1.20