diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2008-09-05 19:51:08 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2008-09-05 19:51:08 +0000 |
commit | ffa6f0fedb1d1e1b8ff8f1ef4c5b80f00a11675f (patch) | |
tree | 326ba8612e9a891b2119cbd69afbcfa8b56c5031 /app-antivirus/clamav | |
parent | Version bump, #236665 (diff) | |
download | gentoo-2-ffa6f0fedb1d1e1b8ff8f1ef4c5b80f00a11675f.tar.gz gentoo-2-ffa6f0fedb1d1e1b8ff8f1ef4c5b80f00a11675f.tar.bz2 gentoo-2-ffa6f0fedb1d1e1b8ff8f1ef4c5b80f00a11675f.zip |
Cleanup
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'app-antivirus/clamav')
-rw-r--r-- | app-antivirus/clamav/ChangeLog | 11 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.91.2-r1.ebuild | 143 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.91.2.ebuild | 140 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.92.1-r1.ebuild | 141 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.92.1.ebuild | 139 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.92.ebuild | 139 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.93.1.ebuild | 145 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.93.ebuild | 145 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.90-compat.patch | 11 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.90-nls.patch | 73 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-5759.patch | 52 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-6336.patch | 21 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-6337.patch | 24 |
13 files changed, 10 insertions, 1174 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog index fe5d306d5ae0..4617f8540abd 100644 --- a/app-antivirus/clamav/ChangeLog +++ b/app-antivirus/clamav/ChangeLog @@ -1,6 +1,15 @@ # 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.298 2008/09/05 19:44:47 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.299 2008/09/05 19:51:07 dertobi123 Exp $ + + 05 Sep 2008; Tobias Scherbaum <dertobi123@gentoo.org> + -files/clamav-0.90-compat.patch, -files/clamav-0.90-nls.patch, + -files/clamav-0.91.2-CVE-2007-5759.patch, + -files/clamav-0.91.2-CVE-2007-6336.patch, + -files/clamav-0.91.2-CVE-2007-6337.patch, -clamav-0.91.2.ebuild, + -clamav-0.91.2-r1.ebuild, -clamav-0.92.ebuild, -clamav-0.92.1.ebuild, + -clamav-0.92.1-r1.ebuild, -clamav-0.93.ebuild, -clamav-0.93.1.ebuild: + Cleanup *clamav-0.94 (05 Sep 2008) diff --git a/app-antivirus/clamav/clamav-0.91.2-r1.ebuild b/app-antivirus/clamav/clamav-0.91.2-r1.ebuild deleted file mode 100644 index adab121e5af5..000000000000 --- a/app-antivirus/clamav/clamav-0.91.2-r1.ebuild +++ /dev/null @@ -1,143 +0,0 @@ -# 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.91.2-r1.ebuild,v 1.8 2008/02/11 22:58:32 ticho Exp $ - -inherit autotools 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="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/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_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-0.90-compat.patch - epatch "${FILESDIR}"/${PN}-0.90-nls.patch - epatch "${FILESDIR}"/${P}-CVE-2007-5759.patch - epatch "${FILESDIR}"/${P}-CVE-2007-6336.patch - epatch "${FILESDIR}"/${P}-CVE-2007-6337.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: clamd and/or freshclam have not been restarted." - ewarn "You should restart them to start using new version: /etc/init.d/clamd restart" - echo - ewarn "The soname for libclamav has changed after clamav-0.90." - ewarn "If you have upgraded from that or earlier version, it is recommended to run:" - ewarn - ewarn "revdep-rebuild --library libclamav.so.1" - ewarn - ewarn "This will fix linking errors caused by this change." - echo -} diff --git a/app-antivirus/clamav/clamav-0.91.2.ebuild b/app-antivirus/clamav/clamav-0.91.2.ebuild deleted file mode 100644 index 5bbb6455970b..000000000000 --- a/app-antivirus/clamav/clamav-0.91.2.ebuild +++ /dev/null @@ -1,140 +0,0 @@ -# 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.91.2.ebuild,v 1.10 2008/02/11 22:58:32 ticho Exp $ - -inherit autotools 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="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/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_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-0.90-compat.patch - 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: clamd and/or freshclam have not been restarted." - ewarn "You should restart them to start using new version: /etc/init.d/clamd restart" - echo - ewarn "The soname for libclamav has changed after clamav-0.90." - ewarn "If you have upgraded from that or earlier version, it is recommended to run:" - ewarn - ewarn "revdep-rebuild --library libclamav.so.1" - ewarn - ewarn "This will fix linking errors caused by this change." - echo -} diff --git a/app-antivirus/clamav/clamav-0.92.1-r1.ebuild b/app-antivirus/clamav/clamav-0.92.1-r1.ebuild deleted file mode 100644 index 2df688d52d62..000000000000 --- a/app-antivirus/clamav/clamav-0.92.1-r1.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# 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-r1.ebuild,v 1.1 2008/02/29 23:46:46 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:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\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:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${D}"/etc/freshclam.conf - - if use milter ; then - echo " -START_MILTER=no -MILTER_NICELEVEL=19" \ - >> "${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 -} diff --git a/app-antivirus/clamav/clamav-0.92.1.ebuild b/app-antivirus/clamav/clamav-0.92.1.ebuild deleted file mode 100644 index b03556373b2a..000000000000 --- a/app-antivirus/clamav/clamav-0.92.1.ebuild +++ /dev/null @@ -1,139 +0,0 @@ -# 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.8 2008/02/23 22:37:23 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:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\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:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\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 -} diff --git a/app-antivirus/clamav/clamav-0.92.ebuild b/app-antivirus/clamav/clamav-0.92.ebuild deleted file mode 100644 index 17656e04c609..000000000000 --- a/app-antivirus/clamav/clamav-0.92.ebuild +++ /dev/null @@ -1,139 +0,0 @@ -# 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.ebuild,v 1.9 2008/02/13 10:50:06 jer 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-compat.patch - 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: clamd and/or freshclam have not been restarted." - ewarn "You should restart them to start using new version: /etc/init.d/clamd restart" - 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 - ewarn "revdep-rebuild --library libclamav.so.2" - ewarn - ewarn "This will fix linking errors caused by this change." - echo -} diff --git a/app-antivirus/clamav/clamav-0.93.1.ebuild b/app-antivirus/clamav/clamav-0.93.1.ebuild deleted file mode 100644 index ae901d0986eb..000000000000 --- a/app-antivirus/clamav/clamav-0.93.1.ebuild +++ /dev/null @@ -1,145 +0,0 @@ -# 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.93.1.ebuild,v 1.1 2008/06/11 12:58:06 falco 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 iconv 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 ) ) - iconv? ( virtual/libiconv ) - 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.93-buildfix.patch - epatch "${FILESDIR}"/${PN}-0.93-nls.patch - - # If nls flag is disabled, gettext may not be available, but eautoreconf - # needs this file (bug #218892). - use nls || cp "${FILESDIR}"/lib-ld.m4 m4/ - - AT_M4DIR="m4" 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) \ - $(use_with iconv) \ - --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:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\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:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${D}"/etc/freshclam.conf - - if use milter ; then - echo " -START_MILTER=no -MILTER_NICELEVEL=19" \ - >> "${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 "The soname for libclamav has changed in clamav-0.93." - ewarn "If you have upgraded from that or earlier version, it is" - ewarn "recommended to run revdep-rebuild, in order to fix anything" - ewarn "that links against libclamav.so library." - echo -} diff --git a/app-antivirus/clamav/clamav-0.93.ebuild b/app-antivirus/clamav/clamav-0.93.ebuild deleted file mode 100644 index 1be939ca6ccd..000000000000 --- a/app-antivirus/clamav/clamav-0.93.ebuild +++ /dev/null @@ -1,145 +0,0 @@ -# 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.93.ebuild,v 1.8 2008/05/11 11:35:39 dertobi123 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 iconv 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 ) ) - iconv? ( virtual/libiconv ) - 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}"/${P}-buildfix.patch - epatch "${FILESDIR}"/${P}-nls.patch - - # If nls flag is disabled, gettext may not be available, but eautoreconf - # needs this file (bug #218892). - use nls || cp "${FILESDIR}"/lib-ld.m4 m4/ - - AT_M4DIR="m4" 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) \ - $(use_with iconv) \ - --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:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\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:" \ - -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \ - "${D}"/etc/freshclam.conf - - if use milter ; then - echo " -START_MILTER=no -MILTER_NICELEVEL=19" \ - >> "${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 "The soname for libclamav has changed in clamav-0.93." - ewarn "If you have upgraded from that or earlier version, it is" - ewarn "recommended to run revdep-rebuild, in order to fix anything" - ewarn "that links against libclamav.so library." - echo -} diff --git a/app-antivirus/clamav/files/clamav-0.90-compat.patch b/app-antivirus/clamav/files/clamav-0.90-compat.patch deleted file mode 100644 index 601e2df9a169..000000000000 --- a/app-antivirus/clamav/files/clamav-0.90-compat.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -bur clamav-0.90.orig/libclamav/clamav.h clamav-0.90/libclamav/clamav.h ---- clamav-0.90.orig/libclamav/clamav.h 2007-02-25 11:56:29.000000000 +0100 -+++ clamav-0.90/libclamav/clamav.h 2007-02-25 11:57:42.000000000 +0100 -@@ -234,6 +234,7 @@ - /* database handling */ - extern int cl_load(const char *path, struct cl_engine **engine, unsigned int *signo, unsigned int options); - extern const char *cl_retdbdir(void); -+extern int cl_loaddbdir(const char *dirname, struct cl_engine **engine, unsigned int *signo); - - /* engine handling */ - extern int cl_build(struct cl_engine *engine); diff --git a/app-antivirus/clamav/files/clamav-0.90-nls.patch b/app-antivirus/clamav/files/clamav-0.90-nls.patch deleted file mode 100644 index 7349f32ea20b..000000000000 --- a/app-antivirus/clamav/files/clamav-0.90-nls.patch +++ /dev/null @@ -1,73 +0,0 @@ -diff -bur clamav-0.90.2/clamav-milter/clamav-milter.c clamav-0.90.2-nls/clamav-milter/clamav-milter.c ---- clamav-0.90.2/clamav-milter/clamav-milter.c 2007-04-12 18:35:17.000000000 +0200 -+++ clamav-0.90.2-nls/clamav-milter/clamav-milter.c 2007-04-16 15:33:40.000000000 +0200 -@@ -110,6 +110,7 @@ - - #ifdef C_LINUX - #include <sys/sendfile.h> /* FIXME: use sendfile on BSD not Linux */ -+#ifdef ENABLE_NLS - #include <libintl.h> - #include <locale.h> - -@@ -122,7 +123,8 @@ - #define _(s) s - #define N_(s) s - --#endif -+#endif /* ENABLE_NLS */ -+#endif /* C_LINUX */ - - #ifdef USE_SYSLOG - #include <syslog.h> -@@ -664,7 +666,7 @@ - else - progname = "clamav-milter"; - --#ifdef C_LINUX -+#ifdef ENABLE_NLS - setlocale(LC_ALL, ""); - bindtextdomain(progname, DATADIR"/clamav-milter/locale"); - textdomain(progname); -diff -bur clamav-0.90.2/configure.in clamav-0.90.2-nls/configure.in ---- clamav-0.90.2/configure.in 2007-04-13 01:10:37.000000000 +0200 -+++ clamav-0.90.2-nls/configure.in 2007-04-16 15:33:40.000000000 +0200 -@@ -160,6 +160,15 @@ - AC_CHECK_HEADER(dlfcn.h,[LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -ldl" ; AC_DEFINE(HAVE_NCORE,1,Support for NodalCore acceleration)], AC_MSG_WARN([****** NodalCore support disabled (no support for dlopen)])) - fi - -+AC_ARG_ENABLE(nls, -+ AC_HELP_STRING([--disable-nls], [disable nls support]), -+ [want_nls=$enableval], [want_nls=yes] -+) -+ -+if test $want_nls = yes; then -+ CPPFLAGS="$CPPFLAGS -DENABLE_NLS" -+fi -+ - AC_ARG_ENABLE(dns, - AC_HELP_STRING([--disable-dns], [disable support for database verification through DNS]), - [want_dns=$enableval], [want_dns=yes] -diff -bur clamav-0.90.2/shared/getopt.c clamav-0.90.2-nls/shared/getopt.c ---- clamav-0.90.2/shared/getopt.c 2007-02-28 02:08:59.000000000 +0100 -+++ clamav-0.90.2-nls/shared/getopt.c 2007-04-16 15:33:40.000000000 +0200 -@@ -82,7 +82,7 @@ - - #ifndef _ - /* This is for other GNU distributions with internationalized messages. */ --# if defined HAVE_LIBINTL_H || defined _LIBC -+# if (defined(HAVE_LIBINTL_H) || defined(_LIBC)) && defined(ENABLE_NLS) - # include <libintl.h> - # ifndef _ - # define _(msgid) gettext (msgid) -diff -bur clamav-0.90.2/shared/output.c clamav-0.90.2-nls/shared/output.c ---- clamav-0.90.2/shared/output.c 2007-03-02 01:43:18.000000000 +0100 -+++ clamav-0.90.2-nls/shared/output.c 2007-04-16 15:33:40.000000000 +0200 -@@ -61,7 +61,7 @@ - pthread_mutex_t logg_mutex = PTHREAD_MUTEX_INITIALIZER; - #endif - --#ifdef C_LINUX -+#if defined(C_LINUX) && defined(ENABLE_NLS) - #include <libintl.h> - #include <locale.h> - diff --git a/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-5759.patch b/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-5759.patch deleted file mode 100644 index d879eb7f65be..000000000000 --- a/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-5759.patch +++ /dev/null @@ -1,52 +0,0 @@ -Thu Dec 6 15:22:27 CET 2007 (tk) ---------------------------------- - * libclamav/pe.c: fix possible integer overflow in MEW related code - Reported by iDefense [IDEF2842] - - Backported by <sgran@debian.org> - - SVN r3376 - -Index: clamav-0.91.2/libclamav/pe.c -=================================================================== ---- clamav-0.91.2.orig/libclamav/pe.c -+++ clamav-0.91.2/libclamav/pe.c -@@ -80,6 +80,18 @@ - #define PEALIGN(o,a) (((a))?(((o)/(a))*(a)):(o)) - #define PESALIGN(o,a) (((a))?(((o)/(a)+((o)%(a)!=0))*(a)):(o)) - -+#define CLI_UNPSIZELIMITS(NAME,CHK) \ -+if(ctx->limits && ctx->limits->maxfilesize && (CHK) > ctx->limits->maxfilesize) { \ -+ cli_dbgmsg(NAME": Sizes exceeded (%lu > %lu)\n", (CHK), ctx->limits->maxfilesize); \ -+ free(exe_sections); \ -+ if(BLOCKMAX) { \ -+ *ctx->virname = "PE."NAME".ExceededFileSize"; \ -+ return CL_VIRUS; \ -+ } else { \ -+ return CL_CLEAN; \ -+ } \ -+} -+ - extern short cli_leavetemps_flag; - - struct offset_list { -@@ -1153,16 +1165,9 @@ int cli_scanpe(int desc, cli_ctx *ctx) - dsize = exe_sections[i].vsz; - - cli_dbgmsg("MEW: ssize %08x dsize %08x offdiff: %08x\n", ssize, dsize, offdiff); -- if(ctx->limits && ctx->limits->maxfilesize && (ssize + dsize > ctx->limits->maxfilesize || exe_sections[i + 1].rsz > ctx->limits->maxfilesize)) { -- cli_dbgmsg("MEW: Sizes exceeded (ssize: %u, dsize: %u, max: %lu)\n", ssize, dsize , ctx->limits->maxfilesize); -- free(exe_sections); -- if(BLOCKMAX) { -- *ctx->virname = "PE.MEW.ExceededFileSize"; -- return CL_VIRUS; -- } else { -- return CL_CLEAN; -- } -- } -+ -+ CLI_UNPSIZELIMITS("MEW", MAX(ssize, dsize)); -+ CLI_UNPSIZELIMITS("MEW", MAX(ssize + dsize, exe_sections[i + 1].rsz)); - - /* allocate needed buffer */ - if (!(src = cli_calloc (ssize + dsize, sizeof(char)))) { diff --git a/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-6336.patch b/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-6336.patch deleted file mode 100644 index 41cc474888c2..000000000000 --- a/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-6336.patch +++ /dev/null @@ -1,21 +0,0 @@ -Thu Dec 6 15:15:45 CET 2007 (tk) ---------------------------------- - * libclamav/mspack.c: fix off-by-one error in LZX_READ_HUFFSYM() (bb#663) - - https://wwws.clamav.net/bugzilla/show_bug.cgi?id=663 - - SVN r3374 - -Index: clamav-0.91.2/libclamav/mspack.c -=================================================================== ---- clamav-0.91.2.orig/libclamav/mspack.c -+++ clamav-0.91.2/libclamav/mspack.c -@@ -734,7 +734,7 @@ void mszip_free(struct mszip_stream *zip - - #define LZX_ENSURE_BITS(nbits) \ - while (bits_left < (nbits)) { \ -- if (i_ptr >= i_end) { \ -+ if (i_ptr + 1 >= i_end) { \ - if (lzx_read_input(lzx)) return lzx->error; \ - i_ptr = lzx->i_ptr; \ - i_end = lzx->i_end; \ diff --git a/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-6337.patch b/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-6337.patch deleted file mode 100644 index 71edc47c61c3..000000000000 --- a/app-antivirus/clamav/files/clamav-0.91.2-CVE-2007-6337.patch +++ /dev/null @@ -1,24 +0,0 @@ -Mon Dec 10 15:54:20 CET 2007 (tk) ---------------------------------- - * libclamav/nsis/bzlib_private.h: fix bzlib bug (aCaB) - - SVN r3387 - -Index: clamav-0.91.2/libclamav/nsis/bzlib_private.h -=================================================================== ---- clamav-0.91.2.orig/libclamav/nsis/bzlib_private.h -+++ clamav-0.91.2/libclamav/nsis/bzlib_private.h -@@ -422,11 +422,13 @@ typedef - /*-- Macros for decompression. --*/ - - #define BZ_GET_FAST(cccc) \ -+ if (s->tPos >= s->blockSize100k * 100000) return True; \ - s->tPos = s->tt[s->tPos]; \ - cccc = (UChar)(s->tPos & 0xff); \ - s->tPos >>= 8; - - #define BZ_GET_FAST_C(cccc) \ -+ if (c_tPos >= s->blockSize100k * 100000) return True; \ - c_tPos = c_tt[c_tPos]; \ - cccc = (UChar)(c_tPos & 0xff); \ - c_tPos >>= 8; |