diff options
author | Andrej Kacian <ticho@gentoo.org> | 2005-11-09 16:40:05 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2005-11-09 16:40:05 +0000 |
commit | 8819376e99eb2fde07b0a784910795e876133490 (patch) | |
tree | 007bef0afde4cc27e13e15cf610e5bfff7007178 | |
parent | new version (#110772) (diff) | |
download | gentoo-2-8819376e99eb2fde07b0a784910795e876133490.tar.gz gentoo-2-8819376e99eb2fde07b0a784910795e876133490.tar.bz2 gentoo-2-8819376e99eb2fde07b0a784910795e876133490.zip |
Removed older ebuild.
(Portage version: 2.0.53_rc7)
-rw-r--r-- | app-antivirus/clamav/ChangeLog | 7 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.86.2.ebuild | 117 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.87.1.ebuild | 4 | ||||
-rw-r--r-- | app-antivirus/clamav/clamav-0.87.ebuild | 4 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamd.rc | 8 | ||||
-rw-r--r-- | app-antivirus/clamav/files/clamd.rc.new | 71 | ||||
-rw-r--r-- | app-antivirus/clamav/files/digest-clamav-0.86.2 | 1 |
7 files changed, 14 insertions, 198 deletions
diff --git a/app-antivirus/clamav/ChangeLog b/app-antivirus/clamav/ChangeLog index 09e598259e78..23a645a9c7dc 100644 --- a/app-antivirus/clamav/ChangeLog +++ b/app-antivirus/clamav/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-antivirus/clamav # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.121 2005/11/06 11:06:24 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/ChangeLog,v 1.122 2005/11/09 16:40:05 ticho Exp $ + + 09 Nov 2005; Andrej Kacian <ticho@gentoo.org> files/clamd.rc, + -files/clamd.rc.new, -clamav-0.86.2.ebuild, clamav-0.87.ebuild, + clamav-0.87.1.ebuild: + Removed older ebuild. 06 Nov 2005; Simon Stelling <blubb@gentoo.org> clamav-0.87.1.ebuild: stable on amd64 wrt bug 109213 diff --git a/app-antivirus/clamav/clamav-0.86.2.ebuild b/app-antivirus/clamav/clamav-0.86.2.ebuild deleted file mode 100644 index a2b01c1ad31f..000000000000 --- a/app-antivirus/clamav/clamav-0.86.2.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.86.2.ebuild,v 1.13 2005/09/29 11:54:42 ticho Exp $ - -inherit eutils flag-o-matic fixheadtails - -DESCRIPTION="Clam Anti-Virus Scanner" -HOMEPAGE="http://www.clamav.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" -IUSE="crypt milter selinux mailwrapper" - -DEPEND="virtual/libc - crypt? ( >=dev-libs/gmp-4.1.2 ) - milter? ( mail-mta/sendmail ) - >=sys-libs/zlib-1.2.1-r3 - >=net-misc/curl-7.10.0 - net-dns/libidn - >=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_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} --with-dbdir=/var/lib/clamav || die - emake || die -} - -src_install() { - make DESTDIR=${D} install || die - dodoc AUTHORS BUGS NEWS README ChangeLog FAQ INSTALL - newconfd ${FILESDIR}/clamd.conf clamd - newinitd ${FILESDIR}/clamd.rc clamd - dodoc ${FILESDIR}/clamav-milter.README.gentoo - - dodir /var/run/clamav - keepdir /var/run/clamav - fowners clamav:clamav /var/run/clamav - dodir /var/log/clamav - keepdir /var/log/clamav - fowners clamav:clamav /var/log/clamav - - # Change /etc/clamd.conf to be usable out of the box - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/clamd.pid:" \ - -e "s:.*\(LocalSocket\) .*:\1 /var/run/clamav/clamd.sock:" \ - -e "s:.*\(User\) .*:\1 clamav:" \ - -e "s:^\#\(LogFile\) .*:\1 /var/log/clamav/clamd.log:" \ - -e "s:^\#\(LogTime\).*:\1:" \ - ${D}/etc/clamd.conf - - # Do the same for /etc/freshclam.conf - sed -i -e "s:^\(Example\):\# \1:" \ - -e "s:.*\(PidFile\) .*:\1 /var/run/clamav/freshclam.pid:" \ - -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \ - -e "s:^\#\(LogFile\) .*:\1 /var/log/freshclam.log:" \ - -e "s:^\#\(LogTime\).*:\1:" \ - ${D}/etc/freshclam.conf - - if use milter ; then - echo "START_MILTER=no" \ - >> ${D}/etc/conf.d/clamd - echo "MILTER_SOCKET=\"/var/run/clamav/clmilter.sock\"" \ - >>${D}/etc/conf.d/clamd - echo "MILTER_OPTS=\"-m 10 --timeout=0\"" \ - >>${D}/etc/conf.d/clamd - fi -} - -pkg_postinst() { - echo - ewarn "As of 0.85-r1, all settings from /etc/conf.d/clamd are ignored, except for" - ewarn "START_CLAMD, START_FRESHCLAM and MILTER related options. All settings are" - ewarn "read from /etc/clamd.conf and /etc/freshclam.conf, so double-check these two files." - echo - ewarn "Warning: clamd and/or freshclam have not been restarted." - ewarn "You should restart them with: /etc/init.d/clamd restart" - echo - if use milter ; then - einfo "For simple instructions how to setup the clamav-milter type:" - echo " zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz" - echo - fi -} diff --git a/app-antivirus/clamav/clamav-0.87.1.ebuild b/app-antivirus/clamav/clamav-0.87.1.ebuild index 78fb782bf2ae..a8f28b317b35 100644 --- a/app-antivirus/clamav/clamav-0.87.1.ebuild +++ b/app-antivirus/clamav/clamav-0.87.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.87.1.ebuild,v 1.7 2005/11/06 11:06:24 blubb Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.87.1.ebuild,v 1.8 2005/11/09 16:40:05 ticho Exp $ inherit eutils flag-o-matic fixheadtails @@ -63,7 +63,7 @@ src_install() { make DESTDIR=${D} install || die dodoc AUTHORS BUGS NEWS README ChangeLog FAQ INSTALL newconfd ${FILESDIR}/clamd.conf clamd - newinitd ${FILESDIR}/clamd.rc.new clamd + newinitd ${FILESDIR}/clamd.rc clamd dodoc ${FILESDIR}/clamav-milter.README.gentoo dodir /var/run/clamav diff --git a/app-antivirus/clamav/clamav-0.87.ebuild b/app-antivirus/clamav/clamav-0.87.ebuild index df53b359bce8..16c3bbff57ac 100644 --- a/app-antivirus/clamav/clamav-0.87.ebuild +++ b/app-antivirus/clamav/clamav-0.87.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.87.ebuild,v 1.7 2005/10/02 11:06:05 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.87.ebuild,v 1.8 2005/11/09 16:40:05 ticho Exp $ inherit eutils flag-o-matic fixheadtails @@ -63,7 +63,7 @@ src_install() { make DESTDIR=${D} install || die dodoc AUTHORS BUGS NEWS README ChangeLog FAQ INSTALL newconfd ${FILESDIR}/clamd.conf clamd - newinitd ${FILESDIR}/clamd.rc.new clamd + newinitd ${FILESDIR}/clamd.rc clamd dodoc ${FILESDIR}/clamav-milter.README.gentoo dodir /var/run/clamav diff --git a/app-antivirus/clamav/files/clamd.rc b/app-antivirus/clamav/files/clamd.rc index 305626ff7d97..f6a3fc0f0db2 100644 --- a/app-antivirus/clamav/files/clamd.rc +++ b/app-antivirus/clamav/files/clamd.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc,v 1.7 2005/09/29 11:54:42 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc,v 1.8 2005/11/09 16:40:05 ticho Exp $ depend() { use net @@ -9,7 +9,7 @@ depend() { } start() { - local clamd_socket=`grep ^LocalSocket /etc/clamd.conf | cut -d\ -f 2` + local clamd_socket=`awk '$1 == "LocalSocket" { print $2 }' /etc/clamd.conf` if [ "${START_CLAMD}" = "yes" ]; then if [ -S "${clamd_socket:-/tmp/clamd}" ]; then rm -f ${clamd_socket:-/tmp/clamd} @@ -36,8 +36,8 @@ start() { rm -f ${MILTER_SOCKET} fi - local logfile=`grep -e "^LogFile" /etc/clamd.conf | cut -d\ -f 2` - local clamav_user=`grep -e "^User" /etc/clamd.conf | cut -d\ -f 2` + local logfile=`awk '$1 == "LogFile" { print $2 }' /etc/clamd.conf` + local clamav_user=`awk '$1 == "User" { print $2 }' /etc/clamd.conf` if [[ -n "${logfile}" && -n "${clamav_user}" ]]; then if [ ! -f "${logfile}" ]; then touch ${logfile} diff --git a/app-antivirus/clamav/files/clamd.rc.new b/app-antivirus/clamav/files/clamd.rc.new deleted file mode 100644 index ab8994f63d61..000000000000 --- a/app-antivirus/clamav/files/clamd.rc.new +++ /dev/null @@ -1,71 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.rc.new,v 1.4 2005/09/29 11:54:42 ticho Exp $ - -depend() { - use net - provide antivirus -} - -start() { - local clamd_socket=`awk '$1 == "LocalSocket" { print $2 }' /etc/clamd.conf` - if [ "${START_CLAMD}" = "yes" ]; then - if [ -S "${clamd_socket:-/tmp/clamd}" ]; then - rm -f ${clamd_socket:-/tmp/clamd} - fi - ebegin "Starting clamd" - start-stop-daemon --start --quiet \ - --exec /usr/sbin/clamd - eend $? "Failed to start clamd" - fi - if [ "${START_FRESHCLAM}" = "yes" ]; then - ebegin "Starting freshclam" - start-stop-daemon --start --quiet \ - --exec /usr/bin/freshclam -- -d - retcode=$? - if [ ${retcode} = 1 ]; then - eend 0 - einfo "Virus databases are already up to date." - else - eend ${retcode} "Failed to start freshclam" - fi - fi - if [ "${START_MILTER}" = "yes" ]; then - if [ -S "${MILTER_SOCKET}" ]; then - rm -f ${MILTER_SOCKET} - fi - - local logfile=`awk '$1 == "LogFile" { print $2 }' /etc/clamd.conf` - local clamav_user=`awk '$1 == "User" { print $2 }' /etc/clamd.conf` - if [[ -n "${logfile}" && -n "${clamav_user}" ]]; then - if [ ! -f "${logfile}" ]; then - touch ${logfile} - fi - chown ${clamav_user} ${logfile} - fi - - ebegin "Starting clamav-milter" - start-stop-daemon --start --quiet \ - --exec /usr/sbin/clamav-milter -- ${MILTER_OPTS} ${MILTER_SOCKET} - eend $? "Failed to start clamav-milter" - fi -} - -stop() { - if [ "${START_CLAMD}" = "yes" ]; then - ebegin "Stopping clamd" - start-stop-daemon --stop --quiet --name clamd - eend $? "Failed to stop clamd" - fi - if [ "${START_FRESHCLAM}" = "yes" ]; then - ebegin "Stopping freshclam" - start-stop-daemon --stop --quiet --name freshclam - eend $? "Failed to stop freshclam" - fi - if [ "${START_MILTER}" = "yes" ]; then - ebegin "Stopping clamav-milter" - start-stop-daemon --stop --quiet --name clamav-milter - eend $? "Failed to stop clamav-milter" - fi -} diff --git a/app-antivirus/clamav/files/digest-clamav-0.86.2 b/app-antivirus/clamav/files/digest-clamav-0.86.2 deleted file mode 100644 index 6e827b7d2783..000000000000 --- a/app-antivirus/clamav/files/digest-clamav-0.86.2 +++ /dev/null @@ -1 +0,0 @@ -MD5 870de14ba123d6e9cba9850498c49f5d clamav-0.86.2.tar.gz 4094829 |