summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2004-11-20 15:53:30 +0000
committerAndrej Kacian <ticho@gentoo.org>2004-11-20 15:53:30 +0000
commit2c5b5519351aba6a410cab45adb80a5e6e6cd34b (patch)
tree76cd3080cc084e1202090064752e20c350205d07 /app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild
parentVersion bump (diff)
downloadhistorical-2c5b5519351aba6a410cab45adb80a5e6e6cd34b.tar.gz
historical-2c5b5519351aba6a410cab45adb80a5e6e6cd34b.tar.bz2
historical-2c5b5519351aba6a410cab45adb80a5e6e6cd34b.zip
Using mrness' ebuild. See #62759.
Diffstat (limited to 'app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild')
-rw-r--r--app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild68
1 files changed, 49 insertions, 19 deletions
diff --git a/app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild b/app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild
index 857e56d8c801..beb3837c9133 100644
--- a/app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild
+++ b/app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild
@@ -1,35 +1,65 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild,v 1.1 2004/11/20 15:41:44 ticho Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild,v 1.2 2004/11/20 15:53:30 ticho Exp $
-inherit rpm
+IUSE=""
-DESCRIPTION="Complete virus defense solution designed for easy virus prevention on Linux systems."
-HOMEPAGE="http://www.bitdefender.com/bd/site/products.php?p_id=16"
-SRC_URI="ftp://ftp.bitdefender.com/pub/linux/free/bitdefender-console/en/BitDefender-Console-Antivirus-${PV}-3.linux-gcc3x.i586.rpm"
+MY_P=BitDefender-Console-Antivirus-${PV}-3.linux-gcc3x.i586.run
+S=${WORKDIR}/i386
+
+DESCRIPTION="BitDefender console antivirus"
+HOMEPAGE="http://www.bitdefender.com/"
+SRC_URI="ftp://ftp.bitdefender.com/pub/linux/free/bitdefender-console/en/${MY_P}"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND="virtual/libc"
+PROVIDE="virtual/antivirus"
-LICENSE="as-is"
SLOT="0"
+LICENSE="as-is"
KEYWORDS="~x86"
-IUSE=""
-DEPEND="app-arch/rpm2targz"
-
-src_unpack() {
- rpm_src_unpack ${DISTDIR}/${A} || die "Could not unpack RPM package"
+src_unpack () {
+ #Extract the tgz achive contained in MY_P
+ SKIP=`sed -n '/^\x1F/q;p' < ${DISTDIR}/${MY_P} | wc -c`
+ dd if=${DISTDIR}/${MY_P} ibs=1 skip=$SKIP 2> /dev/null | tar -xz || die "Failed to extract from archive"
}
-src_install() {
- dodir /opt/bdc
- cp -Rf ${WORKDIR}/opt/* ${D}/opt
+src_install ()
+{
+ cd ${S}
+
+ INSTALLDIR=/opt
+ QUARDIR=/var/bdc
+ INIFILE=bdc.ini
+
+ (
+ dodir ${QUARDIR} &&
+ dodir ${QUARDIR}/infected &&
+ dodir ${QUARDIR}/suspected
+ ) || die "Unable to create quarantine directories"
- # Create a symlink for bdc executable
+ cd opt/bdc
+ echo "InfectedFolder = ${QUARDIR}/infected" >> $INIFILE
+ echo "SuspectedFolder = ${QUARDIR}/suspected" >> $INIFILE
+
+ insinto /opt/bdc
+ insopts -m 755
+ doins bdc
dodir /usr/bin
dosym /opt/bdc/bdc /usr/bin/bdc
- # Install manpage correctly and remove it from /opt, where it's
- # useless
- doman ${WORKDIR}/opt/bdc/man/bdc.1
- rm -rf ${D}/opt/bdc/man
+ insopts -m 644
+ doins bdc.ini *.so
+ insinto /opt/bdc/Plugins
+ doins Plugins/*
+
+ doman man/*
+ dodoc doc/*
}
+pkg_postinst ()
+{
+ einfo You should upgrade virus database by running bdc --update
+}