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
commitd70ae8ffca71e5dd18e39f1ba1ab8635f6246e3e (patch)
treef70deee4328f79149f358508e143d0943dc4b489 /app-antivirus/bitdefender-console
parentVersion bump (Manifest recommit) (diff)
downloadgentoo-2-d70ae8ffca71e5dd18e39f1ba1ab8635f6246e3e.tar.gz
gentoo-2-d70ae8ffca71e5dd18e39f1ba1ab8635f6246e3e.tar.bz2
gentoo-2-d70ae8ffca71e5dd18e39f1ba1ab8635f6246e3e.zip
Using mrness' ebuild. See #62759.
Diffstat (limited to 'app-antivirus/bitdefender-console')
-rw-r--r--app-antivirus/bitdefender-console/ChangeLog5
-rw-r--r--app-antivirus/bitdefender-console/Manifest14
-rw-r--r--app-antivirus/bitdefender-console/bitdefender-console-7.0.1.ebuild68
-rw-r--r--app-antivirus/bitdefender-console/files/digest-bitdefender-console-7.0.12
4 files changed, 55 insertions, 34 deletions
diff --git a/app-antivirus/bitdefender-console/ChangeLog b/app-antivirus/bitdefender-console/ChangeLog
index 7950768b9602..ac32a20d489f 100644
--- a/app-antivirus/bitdefender-console/ChangeLog
+++ b/app-antivirus/bitdefender-console/ChangeLog
@@ -1,10 +1,11 @@
# ChangeLog for app-antivirus/bitdefender-console
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/bitdefender-console/ChangeLog,v 1.1 2004/11/20 15:41:44 ticho Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/bitdefender-console/ChangeLog,v 1.2 2004/11/20 15:53:30 ticho Exp $
*bitdefender-console-7.0.1 (20 Nov 2004)
20 Nov 2004; Andrej Kacian <ticho@gentoo.org> +metadata.xml,
+bitdefender-console-7.0.1.ebuild:
- Initial import.
+ Initial import. Ebuild submitted by Alin Nastac <mrness@gentoo.org>. Closes
+ #62759.
diff --git a/app-antivirus/bitdefender-console/Manifest b/app-antivirus/bitdefender-console/Manifest
index 092a0f03ef9c..58ecdcb93260 100644
--- a/app-antivirus/bitdefender-console/Manifest
+++ b/app-antivirus/bitdefender-console/Manifest
@@ -1,14 +1,4 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 86ab118598ee1e986500b8b86271476d ChangeLog 399
MD5 b799e6d40bbe29a415e5c3f80faca25a metadata.xml 376
-MD5 685de2c2bb035e6ba32cc5df2a2042db bitdefender-console-7.0.1.ebuild 1024
-MD5 7e4e23bd1430f971f5401f48594c69ea files/digest-bitdefender-console-7.0.1 104
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBn2Xd10xuJSrg3/sRArnEAJ95ikYD4wVsEYa/5QTQc4KlTUwqBwCfRzOa
-taeREUkbfEh5gRBlc3A8Edk=
-=NCMX
------END PGP SIGNATURE-----
+MD5 548dd9f3edd526cf74795db65bc24cdf bitdefender-console-7.0.1.ebuild 1420
+MD5 3956e0264dc3f7ec9cddc5cd82cdbb90 files/digest-bitdefender-console-7.0.1 104
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
+}
diff --git a/app-antivirus/bitdefender-console/files/digest-bitdefender-console-7.0.1 b/app-antivirus/bitdefender-console/files/digest-bitdefender-console-7.0.1
index 20badcff10a1..3f0a38ce97ac 100644
--- a/app-antivirus/bitdefender-console/files/digest-bitdefender-console-7.0.1
+++ b/app-antivirus/bitdefender-console/files/digest-bitdefender-console-7.0.1
@@ -1 +1 @@
-MD5 92051c18b5d571d7bd9078af3c78f6f0 BitDefender-Console-Antivirus-7.0.1-3.linux-gcc3x.i586.rpm 2351326
+MD5 ff101d6c1cd9388a932117a1c5f52f83 BitDefender-Console-Antivirus-7.0.1-3.linux-gcc3x.i586.run 2348482