summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2009-06-21 09:50:09 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2009-06-21 09:50:09 +0000
commit15fe75e03bc1a87f4c08d7f6db866608248fb111 (patch)
tree74c49f703f2cc7bde62f7b4a2b626a3ce0c9393a /app-antivirus
parentVersion bump, incorporating patches from #273668 by Bernd Lommerzheim, securi... (diff)
downloadhistorical-15fe75e03bc1a87f4c08d7f6db866608248fb111.tar.gz
historical-15fe75e03bc1a87f4c08d7f6db866608248fb111.tar.bz2
historical-15fe75e03bc1a87f4c08d7f6db866608248fb111.zip
Housekeeping, Sir
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'app-antivirus')
-rw-r--r--app-antivirus/clamav/ChangeLog8
-rw-r--r--app-antivirus/clamav/Manifest11
-rw-r--r--app-antivirus/clamav/clamav-0.94.1.ebuild166
-rw-r--r--app-antivirus/clamav/clamav-0.94.2.ebuild166
-rw-r--r--app-antivirus/clamav/clamav-0.95.ebuild147
-rw-r--r--app-antivirus/clamav/files/clamav-0.94-nls.patch72
-rw-r--r--app-antivirus/clamav/files/clamav-0.94.1-buildfix.patch21
-rw-r--r--app-antivirus/clamav/files/lib-ld.m4110
8 files changed, 8 insertions, 693 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/Manifest b/app-antivirus/clamav/Manifest
index 58915f1f15eb..3eeb07995f3d 100644
--- a/app-antivirus/clamav/Manifest
+++ b/app-antivirus/clamav/Manifest
@@ -1,21 +1,12 @@
-AUX clamav-0.94-nls.patch 2399 RMD160 96434fbaf7a2da8e54a19bd4a855d959482a40af SHA1 447dd66820b50836c8c9d709c369e54be49d9edb SHA256 c81ff834f49ac8039e8d0339049e750445a74c162418c75ba5b4d9663c97d34b
-AUX clamav-0.94.1-buildfix.patch 845 RMD160 c3b0b524fc5822bb5b50057238e6efdac65efc23 SHA1 890a629a392ed12bad773c2e87c2c043a07048cc SHA256 2e5c90a4ec9f0a0d8667fda620184d336100895c4ef89157ad7e304c6419a214
AUX clamav-0.95-nls.patch 315 RMD160 d446e489cd3e27c4624467d920baedb554dd1b6b SHA1 8ea2c9580ac04cfcf7daf181e9dc65daefd4c836 SHA256 516828587dbef6a569a06f7d85be807aa18155d709722ca94b98a043caf4925d
AUX clamav-0.95.1-nls.patch 319 RMD160 403558e6e71e620da2092f80d1d5b450281cb468 SHA1 2ae10843856aa6d7fd9a42e92b8685a6e9e14fbf SHA256 7bba0e938ae577b2b338f1b48f0173a8ec7e3b6785893319fd044d77847d03ba
AUX clamav-milter.README.gentoo 1124 RMD160 4fb1e2d9b444874838bcea1071969ca6862fb15b SHA1 0b9b86a0e7732eaaf7f880859265754f7a4efd3a SHA256 5e7b142b68964bc3463b077e5698fa77cace45ea9612258b1e1849cee944dd11
AUX clamav.logrotate 355 RMD160 f59cd8ce96da8210aa858ee59ee3b6940e3253a6 SHA1 5fbd9364997400681d5a93cb50cac8a0f188e56f SHA256 ab91f784d5098d2162be9277e3a006bdb392d9d89975838ad4ac7dfd8b418170
AUX clamd.conf 234 RMD160 b517b05e587637cbdd443f7ca3625d582e32722f SHA1 564b1e2f6cf85567f69f2e20cbc942967fa6304b SHA256 17bf4fe3596dc5b145e4163d85181e2edcaa214df3cf9072d852ba0e7a569891
AUX clamd.rc 2839 RMD160 3dae59c683e5c3566ab0c8c14e20c1da64646054 SHA1 ed542b9c1259ccaff12ba8949c375e012225bbdd SHA256 0508ad290f20e5a785fb932ee6c5d7e4413cc068ece3dcd1f4dd5b2d3cce01c9
-AUX lib-ld.m4 3417 RMD160 7b412510e7ef9966f70ed29937e3556283128a9b SHA1 8b72b8f5f76e41e4ca0f2521c06c568490894a84 SHA256 18c4c458009da32c9daf0ea332a539e5edc82ba009b6c2faac004626313f00e5
-DIST clamav-0.94.1.tar.gz 21817818 RMD160 268d3b4b00c208f8a9aa3bfaa430eb8d22a4bf33 SHA1 8eed11eb68dc6cb15d4bb12de034a4252dc09373 SHA256 15cd3f5ed349f736b9926dd118d0b8edda7d58fe1f73118d4ffd21b3016f5dea
-DIST clamav-0.94.2.tar.gz 22107637 RMD160 ae75e5f546f96b7fd0f76dcf9f4977ec95ba4dba SHA1 82373d25db8b836fd88b2414df43bb0c7192cced SHA256 1aec7fecff375958d067aceeb9782d3ff0be7c13bed0eecf6240fb089f8d268c
DIST clamav-0.95.1.tar.gz 24260964 RMD160 80769c09ca15c864a578206feabe9cc4a3d985b4 SHA1 a469b0128cf5e9d18392a0385417fc5e4575bfc7 SHA256 6161a0ffa988166cfe3c2afb3056b791f3f70285fc87f547612427bd57f63b7d
DIST clamav-0.95.2.tar.gz 25137010 RMD160 83cab51c224251316288e4c3189ba91f640e9f82 SHA1 7544b39d84f2233b984a9c2ce3ef74d407add483 SHA256 f5f2a5a9984fd1ade69a7c2cc78da2f5dc0c505f94ab58fb2aa6613399ab1c56
-DIST clamav-0.95.tar.gz 24104169 RMD160 bd2431d12f3bb740a2cf535da4be512aa9ba2c14 SHA1 8550b79dc6a6e9a0782ee5bd029bbd107f9e085a SHA256 4f126ecfd20086c452f25aeb6757a200f68e87da82aa39542520435e2f7d31a7
-EBUILD clamav-0.94.1.ebuild 5168 RMD160 c225fc1a079e0c5daae53a818f2fe3d06384e512 SHA1 d80ff17f45f6672e8e79571e0442bba5ea9fd53e SHA256 764474bd8a2247327dd95ff08c646a34b88062a5290c1c8dab14394350c682e5
-EBUILD clamav-0.94.2.ebuild 5173 RMD160 2d53302f78b2213a445e0647270571561010d44c SHA1 4146e3d3d9a885386e20881f3a40a25d5ddeb862 SHA256 d7afa38dc52ca70135557eec310a1c4c8c8e8fbd6f1c397135b335a394511cf0
EBUILD clamav-0.95.1.ebuild 4861 RMD160 b4c08a433d3ef4066130364ea06233f584faefd6 SHA1 b976b56cc6ee6c243621a4c493baf5e4f38611b7 SHA256 0be407a40735c414e7de21860a18bbef51d2c4d3e2d722f203a7f8d689eed8a3
EBUILD clamav-0.95.2.ebuild 4123 RMD160 f9dcf1952cb7a3a1ec4e59c058225728c89d0802 SHA1 a4e374d6b003fcdba7fbb980dfc069b57e3fe74a SHA256 512d1fabce3f5fec224c3ebf91e3fa9ac8e4be2d1fd5fa88fce199094216487f
-EBUILD clamav-0.95.ebuild 4221 RMD160 744c6e36ba7980112f77193fdb53a899ddb6285a SHA1 6a889e5a8db5c7cd7df8cc1622404d8e1368bc81 SHA256 475bf36edf0752d63470baf744867c68f0c32cae033b1c213b4065205bbe60ce
-MISC ChangeLog 50914 RMD160 544d26310745e72ae20d11457ee8abb18feb4a5c SHA1 9320a85074d0f488f433cc63c77e6895213bff55 SHA256 6a67049df31eb1a1660e812842426bb45e1b1f3ab4725e63b767bd34c18299eb
+MISC ChangeLog 51149 RMD160 9aac9daa4400809b35eef30317cf76821971a127 SHA1 259f007f3036ec4752e64396c1077ae6ebcc1b3b SHA256 6d33e068942844227b44ad50b23fdf1da45cf8d890dcc0bf9adb68c470288fc9
MISC metadata.xml 320 RMD160 3546393e30d87f0b0a2fb17e2f15f57dd8c19661 SHA1 b959e38933418e6fc818ed40cd9a4921b8c66102 SHA256 e2a8c4c8bedbffe50a126c1c7395a4d92652c2d95347b9496d54aea1f230a22d
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
-])