summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2006-01-09 22:24:08 +0000
committerAndrej Kacian <ticho@gentoo.org>2006-01-09 22:24:08 +0000
commitf0fb8e6ff2a41972e1c0ce74cff284249020e414 (patch)
tree2886394309d316798d7b6e3791a748e9a555e390 /app-antivirus/clamav
parentwhitespace (diff)
downloadhistorical-f0fb8e6ff2a41972e1c0ce74cff284249020e414.tar.gz
historical-f0fb8e6ff2a41972e1c0ce74cff284249020e414.tar.bz2
historical-f0fb8e6ff2a41972e1c0ce74cff284249020e414.zip
Version bump.
Package-Manager: portage-2.1_pre3-r1
Diffstat (limited to 'app-antivirus/clamav')
-rw-r--r--app-antivirus/clamav/ChangeLog9
-rw-r--r--app-antivirus/clamav/Manifest10
-rw-r--r--app-antivirus/clamav/clamav-0.88.ebuild113
-rw-r--r--app-antivirus/clamav/files/digest-clamav-0.881
4 files changed, 127 insertions, 6 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog
index 23a645a9c7dc..67c33e9dc446 100644
--- a/app-antivirus/clamav/ChangeLog
+++ b/app-antivirus/clamav/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-antivirus/clamav
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.122 2005/11/09 16:40:05 ticho Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.123 2006/01/09 22:24:08 ticho Exp $
+
+*clamav-0.88 (09 Jan 2006)
+
+ 09 Jan 2006; Andrej Kacian <ticho@gentoo.org> +clamav-0.88.ebuild:
+ Version bump.
09 Nov 2005; Andrej Kacian <ticho@gentoo.org> files/clamd.rc,
-files/clamd.rc.new, -clamav-0.86.2.ebuild, clamav-0.87.ebuild,
diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest
index 83116836c2e0..7e53733592a5 100644
--- a/app-antivirus/clamav/Manifest
+++ b/app-antivirus/clamav/Manifest
@@ -1,19 +1,21 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-MD5 3614ce5863cd4ca5b5ebf0e16e661dfd ChangeLog 21249
+MD5 c4cb28c4c9b5c6eb6d721b7e131bd92f ChangeLog 21363
MD5 c6afe12050619c04aa8c3d37eb3b4cbc clamav-0.87.1.ebuild 3685
MD5 ee939a755f330044fd5d41d798a896dc clamav-0.87.ebuild 3682
+MD5 3b5a7c2803008913947b56e123c5695d clamav-0.88.ebuild 3424
MD5 08f7b320461c04bbb88555e389c2e544 files/clamav-milter.README.gentoo 1124
MD5 e29ee77ca9bfe28ed18dbf67a9c90e75 files/clamd.conf 193
MD5 1906bcd8209370d0a03fb066161f6d59 files/clamd.rc 2033
MD5 17e487f0452933ea8ab559a404329cf2 files/digest-clamav-0.87 64
MD5 25387621d9eaf247726bf74459264749 files/digest-clamav-0.87.1 66
+MD5 262cbb9bc1b14af67f7a546d65aed16d files/digest-clamav-0.88 64
MD5 7e32edfd72887a57b16ecd73f0f7a1a0 metadata.xml 184
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
-iD8DBQFDciZ2QlM6RnzZP+IRAvOzAJ9iN15X8naKqGE6OVW/BUsKqSrU7ACfU+pA
-R6zaJgX5rGx0Cd+2EdIbbno=
-=DO0f
+iD8DBQFDwuKaQlM6RnzZP+IRAkzwAKCSGVfzSKPCBU8JDqQYiZlvbvkeuACgoWQw
+MGaaCixzlfoByvJXDkutdZI=
+=VDfK
-----END PGP SIGNATURE-----
diff --git a/app-antivirus/clamav/clamav-0.88.ebuild b/app-antivirus/clamav/clamav-0.88.ebuild
new file mode 100644
index 000000000000..2d255e4a2390
--- /dev/null
+++ b/app-antivirus/clamav/clamav-0.88.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.88.ebuild,v 1.1 2006/01/09 22:24:08 ticho Exp $
+
+inherit eutils flag-o-matic fixheadtails
+
+DESCRIPTION="Clam Anti-Virus Scanner"
+HOMEPAGE="http://www.clamav.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="crypt milter selinux mailwrapper"
+
+DEPEND="virtual/libc
+ crypt? ( >=dev-libs/gmp-4.1.2 )
+ milter? ( mail-mta/sendmail )
+ >=sys-libs/zlib-1.2.1-r3
+ >=net-misc/curl-7.10.0
+ net-dns/libidn
+ >=sys-apps/sed-4"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-clamav )
+ sys-apps/grep"
+PROVIDE="virtual/antivirus"
+
+pkg_setup() {
+ if use milter; then
+ if [ ! -e /usr/lib/libmilter.a ] ; then
+ ewarn "In order to enable milter support, clamav needs sendmail with enabled milter"
+ ewarn "USE flag. Either recompile sendmail with milter USE flag enabled, or disable"
+ ewarn "this flag for clamav as well to disable milter support."
+ die "need milter-enabled sendmail"
+ fi
+ fi
+ enewgroup clamav
+ enewuser clamav -1 -1 /dev/null clamav
+}
+
+src_compile() {
+ has_version =sys-libs/glibc-2.2* && filter-lfs-flags
+
+ local myconf
+
+ # we depend on fixed zlib, so we can disable this check to prevent redundant
+ # warning (bug #61749)
+ myconf="${myconf} --disable-zlib-vcheck"
+ # use id utility instead of /etc/passwd parsing (bug #72540)
+ myconf="${myconf} --enable-id-check"
+ use milter && {
+ myconf="${myconf} --enable-milter"
+ use mailwrapper && \
+ myconf="${myconf} --with-sendmail=/usr/sbin/sendmail.sendmail"
+ }
+
+ ht_fix_file configure
+ econf ${myconf} --with-dbdir=/var/lib/clamav || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc AUTHORS BUGS NEWS README ChangeLog FAQ INSTALL
+ newconfd ${FILESDIR}/clamd.conf clamd
+ newinitd ${FILESDIR}/clamd.rc clamd
+ dodoc ${FILESDIR}/clamav-milter.README.gentoo
+
+ dodir /var/run/clamav
+ keepdir /var/run/clamav
+ fowners clamav:clamav /var/run/clamav
+ dodir /var/log/clamav
+ keepdir /var/log/clamav
+ fowners clamav:clamav /var/log/clamav
+
+ # Change /etc/clamd.conf to be usable out of the box
+ sed -i -e "s:^\(Example\):\# \1:" \
+ -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \
+ -e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \
+ -e "s:.*\(User\) .*:\1 clamav:" \
+ -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \
+ -e "s:^\#\(LogTime\).*:\1:" \
+ ${D}/etc/clamd.conf
+
+ # Do the same for /etc/freshclam.conf
+ sed -i -e "s:^\(Example\):\# \1:" \
+ -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \
+ -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
+ -e "s:^\#\(LogFile\) .*:\1 /var/log/freshclam.log:" \
+ -e "s:^\#\(LogTime\).*:\1:" \
+ ${D}/etc/freshclam.conf
+
+ if use milter ; then
+ echo "START_MILTER=no" \
+ >> ${D}/etc/conf.d/clamd
+ echo "MILTER_SOCKET=\"/var/run/clamav/clmilter.sock\"" \
+ >>${D}/etc/conf.d/clamd
+ echo "MILTER_OPTS=\"-m 10 --timeout=0\"" \
+ >>${D}/etc/conf.d/clamd
+ fi
+}
+
+pkg_postinst() {
+ echo
+ ewarn "Warning: clamd and/or freshclam have not been restarted."
+ ewarn "You should restart them with: /etc/init.d/clamd restart"
+ echo
+ if use milter ; then
+ einfo "For simple instructions how to setup the clamav-milter type:"
+ echo " zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
+ echo
+ fi
+}
diff --git a/app-antivirus/clamav/files/digest-clamav-0.88 b/app-antivirus/clamav/files/digest-clamav-0.88
new file mode 100644
index 000000000000..3e6e7496744b
--- /dev/null
+++ b/app-antivirus/clamav/files/digest-clamav-0.88
@@ -0,0 +1 @@
+MD5 5d23205673c32e2b1b6db95000e6da74 clamav-0.88.tar.gz 4564473