diff options
author | Andrej Kacian <ticho@gentoo.org> | 2008-02-11 23:42:29 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2008-02-11 23:42:29 +0000 |
commit | d9538bb48e9f3295dbda9edda6999b6b0c2ab53d (patch) | |
tree | 4326ea1076160ed463a6fb2e98e86ef8bbd82016 /app-antivirus | |
parent | Fix libmilter check for 64bit systems and mention libmilter package as anothe... (diff) | |
download | historical-d9538bb48e9f3295dbda9edda6999b6b0c2ab53d.tar.gz historical-d9538bb48e9f3295dbda9edda6999b6b0c2ab53d.tar.bz2 historical-d9538bb48e9f3295dbda9edda6999b6b0c2ab53d.zip |
Version bump. Dropped compatibility patch to keep cl_loaddbdir() exposed.
Package-Manager: portage-2.1.4.3
Diffstat (limited to 'app-antivirus')
-rw-r--r-- | app-antivirus/clamav/ChangeLog | 7 | ||||
-rw-r--r-- | app-antivirus/clamav/Manifest | 10 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.92.1.ebuild | 137 |
3 files changed, 149 insertions, 5 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog index fb815a3540de..db0ee9f2bec4 100644 --- a/app-antivirus/clamav/ChangeLog +++ b/app-antivirus/clamav/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-antivirus/clamav # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.272 2008/02/11 22:58:32 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.273 2008/02/11 23:42:29 ticho Exp $ + +*clamav-0.92.1 (11 Feb 2008) + + 11 Feb 2008; Andrej Kacian <ticho@gentoo.org> +clamav-0.92.1.ebuild: + Version bump. Dropped compatibility patch to keep cl_loaddbdir() exposed. 11 Feb 2008; Andrej Kacian <ticho@gentoo.org> clamav-0.91.2.ebuild, clamav-0.91.2-r1.ebuild, clamav-0.92.ebuild: diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest index d05970a4d776..99956b5db4ce 100644 --- a/app-antivirus/clamav/Manifest +++ b/app-antivirus/clamav/Manifest @@ -11,16 +11,18 @@ AUX clamav.logrotate 355 RMD160 f59cd8ce96da8210aa858ee59ee3b6940e3253a6 SHA1 5f AUX clamd.conf 193 RMD160 abebb5e1607e6819859b51e1a41b583c8266c6df SHA1 5b27737aecf3bd90277988fc60526ede7d4be636 SHA256 cd867dc66af694282584fa2cfd40a662ac2a7c25d6f2288b9afdc657a07226e3 AUX clamd.rc 3565 RMD160 704da4f51a69f01524ca68ebe379736c9b0597ce SHA1 d087a49aa492e46e059ddde8b70dc7df8e19d020 SHA256 50ca2c25f796bb3554b5aa08f9e1bbe043ced62f58f2295f6cf33403d7c23dd8 DIST clamav-0.91.2.tar.gz 13394538 RMD160 9e181a7a4fd08377ff47663aed27f8cc97249a21 SHA1 f18007c3045a1d78967adad805c6934d46ca6419 SHA256 dac9de86dff5ef4c9a6e4962da24988e1aa74948a21b7fb7b7fed17867ddf2a0 +DIST clamav-0.92.1.tar.gz 15284752 RMD160 5cf4b36a665dba6be366e94d02b6c8112048d647 SHA1 6ee4fa5a1c5f71eecc99beb17bc5f3c5a3b580ec SHA256 e08a63adb3eda3dfc190d7a8b3fa55c881b1632583fbdf67327d3767d6966581 DIST clamav-0.92.tar.gz 14300798 RMD160 37f0450b9b3c6fc863f94811ae372ece1677d791 SHA1 b6573acd9a7bb6bf3bd4b39a0102ce0be764c5bc SHA256 d3c8c1e2e0025a354663b330d69c8848c7a5c9d7248204c69362c2924366025e EBUILD clamav-0.91.2-r1.ebuild 4378 RMD160 0e6be1ff7e473b515e2362f1de934866d3fba12f SHA1 e3b13d2e1545a1d9bb37848d17f835628330f288 SHA256 adef8794ef1de7dabaf2ab1ad18886fc5a353ca2ba53dc56355846ea212c4d50 EBUILD clamav-0.91.2.ebuild 4235 RMD160 1b50e9d66a1f75306ae8117ff8e2cb2ed86df1d4 SHA1 ba43a4bf6031fda6f254e5f56a76e663e00825ee SHA256 c0427934b1d9dfcdae76d6bfbcd3edc2ae385b18d4e33abfe9f2db45aabc55a0 +EBUILD clamav-0.92.1.ebuild 4140 RMD160 39be3b159772093385e9082aab1a002b20520908 SHA1 bcf8dd21307a03609dc7522b0ed88f787b58069b SHA256 5b2ed4c2d4bd43ca3d5829e1f5d3ed8515fbb69c40ff8c945d6cfb07d5a3e0b4 EBUILD clamav-0.92.ebuild 4112 RMD160 0a0a7c1856901284375490a869d630237dbeade1 SHA1 60fe07671d3f7c681a1ac578ec17aabc64308dd1 SHA256 5c244a874c3f82121235e6422b0768dd9c3b515051addd1828c55beacf3cf1bc -MISC ChangeLog 41621 RMD160 932474a36558b2607d069b85806c55769bd89fe0 SHA1 1b7972f1a52bbf4ee61ead89fe4391f87357af1f SHA256 a31945c9327522592da2bbd44ddd9a62eb6676fa406a6637942ca6f1f89378b9 +MISC ChangeLog 41799 RMD160 43e9cad8b1fd6ff583485d335f08705836efe536 SHA1 de1a0ec568e46bb60163a11bd35bc1c80ac3f6ea SHA256 f8c7950178e4c7be793399bf5ac412f265f9558644d537670acf784dcf5dc97f MISC metadata.xml 184 RMD160 c37bff1fc1cd7139c91dae9b0fa5082e1d81f153 SHA1 cc0a188d9ad2411e78747326c62dd046bd5413c8 SHA256 d51011aa837db802ef539a1321a4af0a4a00879d475b92fd58f3c01df7320b58 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) -iD8DBQFHsNMhQlM6RnzZP+IRAiwWAKCE9yazEAvsrQK7VuMMbGZPWLukiACfRkt1 -B/3qXQfK9okWlxStiTOo2WE= -=gVPM +iD8DBQFHsN1vQlM6RnzZP+IRAtEfAJwLib188jwaiZPBRfpnE0wZd9YqMACfbT1F +oObqtO9ZgyVug02jCzvXBio= +=LZMu -----END PGP SIGNATURE----- diff --git a/app-antivirus/clamav/clamav-0.92.1.ebuild b/app-antivirus/clamav/clamav-0.92.1.ebuild new file mode 100644 index 000000000000..e6b57ea4ac8f --- /dev/null +++ b/app-antivirus/clamav/clamav-0.92.1.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.92.1.ebuild,v 1.1 2008/02/11 23:42:29 ticho Exp $ + +inherit autotools eutils flag-o-matic fixheadtails multilib + +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="bzip2 crypt mailwrapper milter nls selinux" + +DEPEND="virtual/libc + bzip2? ( app-arch/bzip2 ) + crypt? ( >=dev-libs/gmp-4.1.2 ) + milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) + nls? ( sys-devel/gettext ) + dev-libs/gmp + >=sys-libs/zlib-1.2.1-r3 + >=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/$(get_libdir)/libmilter.a ] ; then + ewarn "In order to enable milter support, clamav needs sendmail with enabled milter" + ewarn "USE flag, or mail-filter/libmilter package." + fi + fi + + enewgroup clamav + enewuser clamav -1 -1 /dev/null clamav +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-0.90-nls.patch + eautoreconf +} + +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 bzip2) \ + $(use_enable nls) \ + --disable-experimental \ + --with-dbdir=/var/lib/clamav || die + emake || die +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc AUTHORS BUGS NEWS README ChangeLog FAQ + 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 yes:" \ + "${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:^\#\(UpdateLogFile\) .*:\1 /var/log/clamav/freshclam.log:" \ + -e "s:^\#\(NotifyClamd\).*:\1 /etc/clamd.conf:" \ + -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \ + "${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 + + diropts "" + dodir /etc/logrotate.d + insopts -m0644 + insinto /etc/logrotate.d + newins "${FILESDIR}"/${PN}.logrotate ${PN} +} + +pkg_postinst() { + echo + if use milter ; then + elog "For simple instructions how to setup the clamav-milter" + elog "read /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz" + echo + fi + ewarn "WARNING: In 0.92.1, the logic in the scanner limits have been reworked. This" + ewarn "results in different command line options to clamscan, different config" + ewarn "options to clamd and, overall, a different behaviour." + echo + ewarn "The soname for libclamav has changed in clamav-0.92." + ewarn "If you have upgraded from that or earlier version, it is recommended to run:" + ewarn "\trevdep-rebuild --library libclamav.so.2" + ewarn "This will fix linking errors caused by this change." + echo +} |