From: Andrej Kacian Date: Tue, 19 Dec 2006 02:34:45 +0000 (+0000) Subject: Add support for clamuko - on-access file scanning using dazuko kernel module. Closes... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b4a2b14f4e9241b528ce6fe9a1bcee18e3c841d6;p=gentoo.git Add support for clamuko - on-access file scanning using dazuko kernel module. Closes bug #99992 by Alon Bar-Lev . Package-Manager: portage-2.1.2_rc3-r5 --- diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog index 01ad6c13a475..8f58f443f5e5 100644 --- a/app-antivirus/clamav/ChangeLog +++ b/app-antivirus/clamav/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-antivirus/clamav # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.189 2006/12/17 21:17:08 killerfox Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.190 2006/12/19 02:34:45 ticho Exp $ + +*clamav-0.88.7-r1 (19 Dec 2006) + + 19 Dec 2006; Andrej Kacian +clamav-0.88.7-r1.ebuild: + Add support for clamuko - on-access file scanning using dazuko kernel + module. Closes bug #99992 by Alon Bar-Lev . 17 Dec 2006; René Nussbaumer clamav-0.88.7.ebuild: Stable on hppa. See bug #157698. diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest index 06da11351f17..e2c9b0e11d4e 100644 --- a/app-antivirus/clamav/Manifest +++ b/app-antivirus/clamav/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX clamav-milter.README.gentoo 1124 RMD160 4fb1e2d9b444874838bcea1071969ca6862fb15b SHA1 0b9b86a0e7732eaaf7f880859265754f7a4efd3a SHA256 5e7b142b68964bc3463b077e5698fa77cace45ea9612258b1e1849cee944dd11 MD5 08f7b320461c04bbb88555e389c2e544 files/clamav-milter.README.gentoo 1124 RMD160 4fb1e2d9b444874838bcea1071969ca6862fb15b files/clamav-milter.README.gentoo 1124 @@ -23,6 +26,10 @@ EBUILD clamav-0.88.6.ebuild 3449 RMD160 76f3a7eb45cc5a6d25fa80812bee7090dddc735c MD5 c5e7ae3e04204a7dc16592bd1c68902b clamav-0.88.6.ebuild 3449 RMD160 76f3a7eb45cc5a6d25fa80812bee7090dddc735c clamav-0.88.6.ebuild 3449 SHA256 12406e5ba2cf2560cb94fc288508b7790ae7fe4ef71d889d0aa969653cb36699 clamav-0.88.6.ebuild 3449 +EBUILD clamav-0.88.7-r1.ebuild 3793 RMD160 ff7ee18a3ed9b1697bef1da6891c811490cf66fa SHA1 ce3cbe2c193dfe45581acd7e4a1bd37e0343c231 SHA256 86f0071340015644510270875ed9b9f7aa24146a0a9e4635a8e0680d8c9db30a +MD5 014a80fe85e80a02aad32160211b67cf clamav-0.88.7-r1.ebuild 3793 +RMD160 ff7ee18a3ed9b1697bef1da6891c811490cf66fa clamav-0.88.7-r1.ebuild 3793 +SHA256 86f0071340015644510270875ed9b9f7aa24146a0a9e4635a8e0680d8c9db30a clamav-0.88.7-r1.ebuild 3793 EBUILD clamav-0.88.7.ebuild 3445 RMD160 1ac10a261c1bf5140e4e4559c1771ea484fb8877 SHA1 b9c4da3875d68abaaa57c8a4ed656bf6933aa626 SHA256 933faa93edca04dcf56707c74fd8c3902b179996909af9f2c9a1e271c2a00675 MD5 93a0c8dc7110cb091742a0410be75a05 clamav-0.88.7.ebuild 3445 RMD160 1ac10a261c1bf5140e4e4559c1771ea484fb8877 clamav-0.88.7.ebuild 3445 @@ -35,10 +42,10 @@ EBUILD clamav-0.90_rc2.ebuild 3623 RMD160 21b2e5d24d5c9e3e46897d8b189f3696d23893 MD5 1bdb66e62df38fc1fdc34c5cb9a9243b clamav-0.90_rc2.ebuild 3623 RMD160 21b2e5d24d5c9e3e46897d8b189f3696d23893a3 clamav-0.90_rc2.ebuild 3623 SHA256 707351666a355341ca524b624a677f8e1185a520fdf09ab30582cec324a03e10 clamav-0.90_rc2.ebuild 3623 -MISC ChangeLog 29378 RMD160 f18298777681659a29ded72a495991d70b86d75e SHA1 d68d712b458f60636b764b042b4d57cfd6a5b150 SHA256 de79d2076d5a90b756208920707f62b023837b0fd1cb4cf8e6c72aefda110111 -MD5 4d7e315b46b0013a5702d7cd9f6cb151 ChangeLog 29378 -RMD160 f18298777681659a29ded72a495991d70b86d75e ChangeLog 29378 -SHA256 de79d2076d5a90b756208920707f62b023837b0fd1cb4cf8e6c72aefda110111 ChangeLog 29378 +MISC ChangeLog 29622 RMD160 365f9dac55c756e9d631bda5d0be3700eadcc1f0 SHA1 870808399eea5f6f89a60e878ef690d8809d1530 SHA256 8cdc2023e64e413e1af31c4fae55345b4b4c219dbf103ae92ffb06d6a8df02c1 +MD5 e597df2c021ad86977a8642641ec1070 ChangeLog 29622 +RMD160 365f9dac55c756e9d631bda5d0be3700eadcc1f0 ChangeLog 29622 +SHA256 8cdc2023e64e413e1af31c4fae55345b4b4c219dbf103ae92ffb06d6a8df02c1 ChangeLog 29622 MISC metadata.xml 184 RMD160 c37bff1fc1cd7139c91dae9b0fa5082e1d81f153 SHA1 cc0a188d9ad2411e78747326c62dd046bd5413c8 SHA256 d51011aa837db802ef539a1321a4af0a4a00879d475b92fd58f3c01df7320b58 MD5 7e32edfd72887a57b16ecd73f0f7a1a0 metadata.xml 184 RMD160 c37bff1fc1cd7139c91dae9b0fa5082e1d81f153 metadata.xml 184 @@ -52,9 +59,19 @@ SHA256 68ed32f50d9252b826a618a0b2f5d55d8655b480059ae039bddcd5f0e2f37b57 files/di MD5 bccf90d7043a4dcf5e63ebfb791fba03 files/digest-clamav-0.88.7 244 RMD160 5da87304d411960a91d80f102be4c2d4937479b6 files/digest-clamav-0.88.7 244 SHA256 2e2d87de95403702c16fdcf253ab8f6faaec955053a2eabd917b097e50322d9e files/digest-clamav-0.88.7 244 +MD5 bccf90d7043a4dcf5e63ebfb791fba03 files/digest-clamav-0.88.7-r1 244 +RMD160 5da87304d411960a91d80f102be4c2d4937479b6 files/digest-clamav-0.88.7-r1 244 +SHA256 2e2d87de95403702c16fdcf253ab8f6faaec955053a2eabd917b097e50322d9e files/digest-clamav-0.88.7-r1 244 MD5 fa7e303f8f99e4693beb43a0a2b0e0b9 files/digest-clamav-0.90_rc1 253 RMD160 ee5645616db2626c6cf87c99f2ea0177f5a4c149 files/digest-clamav-0.90_rc1 253 SHA256 68559c554b8fc8afa9ea0d2b7c3f5db41d19cdf15a8d115d6d83fa27aede0d74 files/digest-clamav-0.90_rc1 253 MD5 9fc9dd79c51ed6e46836c21abe6521e0 files/digest-clamav-0.90_rc2 247 RMD160 d2538b5e59b8246b686bda02443ae560310b5802 files/digest-clamav-0.90_rc2 247 SHA256 c0187965a68f4423a6d8937f911dde49a724751f436f51741c150f4ac5ee16b6 files/digest-clamav-0.90_rc2 247 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.5 (GNU/Linux) + +iD8DBQFFh0/aQlM6RnzZP+IRAmMDAKCmOgHZ2E4rRSVAjRuuiyGeQUqzMACeIx9M +mS4HFAT2JB8ToJn/MsorNT8= +=3Xb4 +-----END PGP SIGNATURE----- diff --git a/app-antivirus/clamav/clamav-0.88.7-r1.ebuild b/app-antivirus/clamav/clamav-0.88.7-r1.ebuild new file mode 100644 index 000000000000..44f83bd44143 --- /dev/null +++ b/app-antivirus/clamav/clamav-0.88.7-r1.ebuild @@ -0,0 +1,126 @@ +# 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.7-r1.ebuild,v 1.1 2006/12/19 02:34:45 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 ~x86-fbsd" +IUSE="crypt milter selinux mailwrapper onaccess" + +DEPEND="virtual/libc + crypt? ( >=dev-libs/gmp-4.1.2 ) + milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) + onaccess? ( sys-fs/dazuko ) + >=sys-libs/zlib-1.2.1-r3 + >=net-misc/curl-7.10.0 + >=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 + if use onaccess ; then + echo + ewarn "Warning: On access scan support is experimental!" + echo + 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} \ + $(use_enable dazuko clamuko) \ + --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 + + if use onaccess ; then + dodir /etc/udev/rules.d + echo "KERNEL==\"dazuko\", NAME=\"%k\", GROUP=\"clamav\", MODE=\"0660\"" \ + >${D}/etc/udev/rules.d/60-dazuko.rules + 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.7-r1 b/app-antivirus/clamav/files/digest-clamav-0.88.7-r1 new file mode 100644 index 000000000000..766a04de5f01 --- /dev/null +++ b/app-antivirus/clamav/files/digest-clamav-0.88.7-r1 @@ -0,0 +1,3 @@ +MD5 34a9d58cf5bcb04dbe3eb32b5367a3f8 clamav-0.88.7.tar.gz 9510548 +RMD160 14d7c6255df618b16b704fc1cb5ce2b1385fa0e8 clamav-0.88.7.tar.gz 9510548 +SHA256 702cb5928bff3d0e647a4a6b505d434e3a0f10f2af74bddac5239a200b92d1e2 clamav-0.88.7.tar.gz 9510548