diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2009-06-21 09:50:09 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2009-06-21 09:50:09 +0000 |
commit | 6d50dde84e0d0576c31d7773bcbd8972212f01b2 (patch) | |
tree | 60478c914c2f7964afdcc9c63bfb292250695b1f /app-antivirus | |
parent | Version bump, incorporating patches from #273668 by Bernd Lommerzheim, securi... (diff) | |
download | gentoo-2-6d50dde84e0d0576c31d7773bcbd8972212f01b2.tar.gz gentoo-2-6d50dde84e0d0576c31d7773bcbd8972212f01b2.tar.bz2 gentoo-2-6d50dde84e0d0576c31d7773bcbd8972212f01b2.zip |
Housekeeping, Sir
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'app-antivirus')
-rw-r--r-- | app-antivirus/clamav/ChangeLog | 8 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.94.1.ebuild | 166 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.94.2.ebuild | 166 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.95.ebuild | 147 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.94-nls.patch | 72 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamav-0.94.1-buildfix.patch | 21 | ||||
-rw-r--r-- | app-antivirus/clamav/files/lib-ld.m4 | 110 |
7 files changed, 7 insertions, 683 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog index 3471dbd7c78d..42a3204ddc66 100644 --- a/app-antivirus/clamav/ChangeLog +++ b/app-antivirus/clamav/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-antivirus/clamav # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.334 2009/06/21 09:46:11 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.335 2009/06/21 09:50:09 dertobi123 Exp $ + + 21 Jun 2009; Tobias Scherbaum <dertobi123@gentoo.org> + -files/clamav-0.94.1-buildfix.patch, -files/clamav-0.94-nls.patch, + -files/lib-ld.m4, -clamav-0.94.1.ebuild, -clamav-0.94.2.ebuild, + -clamav-0.95.ebuild: + Housekeeping, Sir *clamav-0.95.2 (21 Jun 2009) diff --git a/app-antivirus/clamav/clamav-0.94.1.ebuild b/app-antivirus/clamav/clamav-0.94.1.ebuild deleted file mode 100644 index 170a26cf1340..000000000000 --- a/app-antivirus/clamav/clamav-0.94.1.ebuild +++ /dev/null @@ -1,166 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.94.1.ebuild,v 1.8 2009/04/16 14:39:05 lordvan Exp $ - -inherit autotools eutils flag-o-matic fixheadtails multilib versionator - -# for when rc1 is appended to release candidates: -MY_PV=$(replace_version_separator 3 ''); -MY_P="${PN}-${MY_PV}" -S="${WORKDIR}/${MY_P}" - -DESCRIPTION="Clam Anti-Virus Scanner" -HOMEPAGE="http://www.clamav.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_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 ipv6" - -COMMON_DEPEND="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" - -DEPEND="${COMMON_DEPEND} - >=dev-util/pkgconfig-0.20" - -RDEPEND="${COMMON_DEPEND} - selinux? ( sec-policy/selinux-clamav ) - sys-apps/grep" - -PROVIDE="virtual/antivirus" - -RESTRICT="test" - -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}" - # This newer version of ClamAV packages libtool.m4 and lt*.m4 in m4, - # while previous versions did not. - # Since autoreconf invokes libtoolize, a different version of ltmain.sh that doesn't - # match up with the version of the *.m4 files gets thrown into this directory. - # This problem showed up for me in the packages libtool's use of $ECHO while my - # system's libtool's instead used $echo internally, and the .m4 file provides the value of - # $echo or $ECHO. - einfo "removing possibly incompatible libtool-related m4 files" - rm m4/libtool.m4 m4/lt*.m4 || die "unable to remove possibly incompatible libtool-related m4 files" - epatch "${FILESDIR}"/${MY_P}-buildfix.patch - epatch "${FILESDIR}"/${PN}-0.94-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_enable ipv6) \ - $(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 the clamav-milter.README.gentoo in /usr/share/doc/${PF}" - echo - fi - ewarn "The soname for libclamav has changed in clamav-0.94." - 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.94.2.ebuild b/app-antivirus/clamav/clamav-0.94.2.ebuild deleted file mode 100644 index 074eb4222304..000000000000 --- a/app-antivirus/clamav/clamav-0.94.2.ebuild +++ /dev/null @@ -1,166 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.94.2.ebuild,v 1.7 2009/04/16 14:39:05 lordvan Exp $ - -inherit autotools eutils flag-o-matic fixheadtails multilib versionator - -# for when rc1 is appended to release candidates: -MY_PV=$(replace_version_separator 3 ''); -MY_P="${PN}-${MY_PV}" -S="${WORKDIR}/${MY_P}" - -DESCRIPTION="Clam Anti-Virus Scanner" -HOMEPAGE="http://www.clamav.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_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 ipv6" - -COMMON_DEPEND="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" - -DEPEND="${COMMON_DEPEND} - >=dev-util/pkgconfig-0.20" - -RDEPEND="${COMMON_DEPEND} - selinux? ( sec-policy/selinux-clamav ) - sys-apps/grep" - -PROVIDE="virtual/antivirus" - -RESTRICT="test" - -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}" - # This newer version of ClamAV packages libtool.m4 and lt*.m4 in m4, - # while previous versions did not. - # Since autoreconf invokes libtoolize, a different version of ltmain.sh that doesn't - # match up with the version of the *.m4 files gets thrown into this directory. - # This problem showed up for me in the packages libtool's use of $ECHO while my - # system's libtool's instead used $echo internally, and the .m4 file provides the value of - # $echo or $ECHO. - einfo "removing possibly incompatible libtool-related m4 files" - rm m4/libtool.m4 m4/lt*.m4 || die "unable to remove possibly incompatible libtool-related m4 files" - epatch "${FILESDIR}"/${PN}-0.94.1-buildfix.patch - epatch "${FILESDIR}"/${PN}-0.94-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_enable ipv6) \ - $(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 the clamav-milter.README.gentoo in /usr/share/doc/${PF}" - echo - fi - ewarn "The soname for libclamav has changed in clamav-0.94." - 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.95.ebuild b/app-antivirus/clamav/clamav-0.95.ebuild deleted file mode 100644 index a09dd43ec1db..000000000000 --- a/app-antivirus/clamav/clamav-0.95.ebuild +++ /dev/null @@ -1,147 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.95.ebuild,v 1.5 2009/04/16 14:39:05 lordvan Exp $ - -inherit autotools eutils flag-o-matic fixheadtails multilib versionator - -# for when rc1 is appended to release candidates: -MY_PV=$(replace_version_separator 3 ''); -MY_P="${PN}-${MY_PV}" -S="${WORKDIR}/${MY_P}" - -DESCRIPTION="Clam Anti-Virus Scanner" -HOMEPAGE="http://www.clamav.net/" -SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="bzip2 clamdtop crypt iconv milter selinux ipv6" - -COMMON_DEPEND="bzip2? ( app-arch/bzip2 ) - crypt? ( >=dev-libs/gmp-4.1.2 ) - milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) - iconv? ( virtual/libiconv ) - clamdtop? ( sys-libs/ncurses ) - >=sys-libs/zlib-1.2.1-r3 - >=sys-apps/sed-4" - -DEPEND="${COMMON_DEPEND} - >=dev-util/pkgconfig-0.20" - -RDEPEND="${COMMON_DEPEND} - selinux? ( sec-policy/selinux-clamav ) - sys-apps/grep" - -PROVIDE="virtual/antivirus" - -RESTRICT="test" - -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}-nls.patch" -} - -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" - } - - ht_fix_file configure - econf ${myconf} \ - $(use_enable bzip2) \ - $(use_enable ipv6) \ - $(use_enable clamdtop) \ - $(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 the clamav-milter.README.gentoo in /usr/share/doc/${PF}" - echo - fi - ewarn "The soname for libclamav has changed in clamav-0.95." - 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.94-nls.patch b/app-antivirus/clamav/files/clamav-0.94-nls.patch deleted file mode 100644 index d1b78d099094..000000000000 --- a/app-antivirus/clamav/files/clamav-0.94-nls.patch +++ /dev/null @@ -1,72 +0,0 @@ -diff -Naur clamav-0.94.orig/clamav-milter/clamav-milter.c clamav-0.94/clamav-milter/clamav-milter.c ---- clamav-0.94.orig/clamav-milter/clamav-milter.c 2008-09-01 19:19:44.000000000 +0200 -+++ clamav-0.94/clamav-milter/clamav-milter.c 2008-09-05 21:16:03.507610741 +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> -@@ -771,7 +773,7 @@ - else - progname = "clamav-milter"; - --#ifdef C_LINUX -+#ifdef ENABLE_NLS - setlocale(LC_ALL, ""); - bindtextdomain(progname, DATADIR"/clamav-milter/locale"); - textdomain(progname); -diff -Naur clamav-0.94.orig/configure.in clamav-0.94/configure.in ---- clamav-0.94.orig/configure.in 2008-09-05 21:11:13.672860000 +0200 -+++ clamav-0.94/configure.in 2008-09-05 21:14:46.199611070 +0200 -@@ -490,6 +490,14 @@ - [ --disable-unrar don't build libclamunrar and libclamunrar_iface ], - want_unrar=$enableval, want_unrar="yes") - -+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([ipv6], - [ --disable-ipv6 disable IPv6 support], - want_ipv6=$enableval, want_ipv6="yes") -diff -Naur clamav-0.94.orig/shared/getopt.c clamav-0.94/shared/getopt.c ---- clamav-0.94.orig/shared/getopt.c 2008-08-16 19:18:00.000000000 +0200 -+++ clamav-0.94/shared/getopt.c 2008-09-05 21:17:31.723611661 +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 -Naur clamav-0.94.orig/shared/output.c clamav-0.94/shared/output.c ---- clamav-0.94.orig/shared/output.c 2008-08-16 19:18:00.000000000 +0200 -+++ clamav-0.94/shared/output.c 2008-09-05 21:13:17.334852520 +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.94.1-buildfix.patch b/app-antivirus/clamav/files/clamav-0.94.1-buildfix.patch deleted file mode 100644 index 86b5be769062..000000000000 --- a/app-antivirus/clamav/files/clamav-0.94.1-buildfix.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -Naur clamav-0.94.orig/configure.in clamav-0.94.1rc1/configure.in ---- clamav-0.94.orig/configure.in 2008-09-01 20:41:06.000000000 +0200 -+++ clamav-0.94.1/configure.in 2008-09-05 21:09:41.201851168 +0200 -@@ -556,7 +556,7 @@ - - case "$ac_cv_c_cve_2008_1372" in - ok|bugged|linkfailed) -- LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBBZ2" -+ LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lbz2" - AC_DEFINE([HAVE_BZLIB_H],1,[have bzip2]) - ;; - *) -@@ -566,7 +566,7 @@ - dnl we don't need to check for __gmpz_init and mpz_init, - dnl since we are not checking directly for symbols - if test "$HAVE_LIBGMP" = "yes"; then -- LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS $LTLIBGMP"; -+ LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lgmp"; - else - AC_MSG_WARN([****** GNU MP 2 or newer NOT FOUND - digital signature support will be disabled !]); - want_dsig="no"; diff --git a/app-antivirus/clamav/files/lib-ld.m4 b/app-antivirus/clamav/files/lib-ld.m4 deleted file mode 100644 index 96c4e2c3396c..000000000000 --- a/app-antivirus/clamav/files/lib-ld.m4 +++ /dev/null @@ -1,110 +0,0 @@ -# lib-ld.m4 serial 3 (gettext-0.13) -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 </dev/null` in -*GNU* | *'with BFD'*) - acl_cv_prog_gnu_ld=yes ;; -*) - acl_cv_prog_gnu_ld=no ;; -esac]) -with_gnu_ld=$acl_cv_prog_gnu_ld -]) - -dnl From libtool-1.4. Sets the variable LD. -AC_DEFUN([AC_LIB_PROG_LD], -[AC_ARG_WITH(gnu-ld, -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) |