aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-antivirus/clamav/Manifest8
-rw-r--r--app-antivirus/clamav/clamav-0.97.8-r99.ebuild124
-rw-r--r--app-antivirus/clamav/files/clamav-0.97-nls.patch11
-rw-r--r--app-antivirus/clamav/files/clamav-milter.README.gentoo44
-rw-r--r--app-antivirus/clamav/files/clamav.logrotate15
-rw-r--r--app-antivirus/clamav/files/clamd.conf9
-rwxr-xr-xapp-antivirus/clamav/files/clamd.initd-r5126
-rw-r--r--app-antivirus/clamav/metadata.xml9
8 files changed, 0 insertions, 346 deletions
diff --git a/app-antivirus/clamav/Manifest b/app-antivirus/clamav/Manifest
deleted file mode 100644
index 32b312ee..00000000
--- a/app-antivirus/clamav/Manifest
+++ /dev/null
@@ -1,8 +0,0 @@
-AUX clamav-0.97-nls.patch 269 SHA256 088b9edcdb678ce9c072042cf51266e061ab5f5ab0e8e42bd953242138c64fd1 SHA512 a0508590353c699d62d203398e4b84ea134348567fa5530e5c9c7ce850a9eeca106544e641ce011cc0a5097313dea780490e7db6fdda1ec2ab61dd6474e31458 WHIRLPOOL 95ce0a012bbb8d0cde2c255d7f15ab8eb24d412cd7b664ce2e7dc6ea887c608252076e45f7f4a007edda455f07b62884002a6d914b25b889da2682140d31f20c
-AUX clamav-milter.README.gentoo 1124 SHA256 5e7b142b68964bc3463b077e5698fa77cace45ea9612258b1e1849cee944dd11 SHA512 1c6160e48eddd28f83ec5f24757f788781cef55789d1934dfccc12c7c5e5635a226d26b0983cab7344c142f5a2f1db172640b1d0e6c840a6fa83abed9be1211a WHIRLPOOL f85b17448fd93205e2f38d024b96410cc8d143d077201e0a1b8f4cda95ae2447a70eded4cb90968a593ad2637229300fa04bfe5dba96d3d68c2d09c105ee3f16
-AUX clamav.logrotate 355 SHA256 ab91f784d5098d2162be9277e3a006bdb392d9d89975838ad4ac7dfd8b418170 SHA512 39e8027db4cb2cf1b45dac6777dbd922640b41f47deb34199d910560d56431051432b68ab387101542d8f98069253c85bb2ab39c274eb99c2db26c5967abf512 WHIRLPOOL 0d201d6909d309e22526ed0d40da588602d0b34367b9e7d54b42d6626c7b7bac1150c1671740cead5d900baa8a6a098feaeb1127251d9a45eb35203016197193
-AUX clamd.conf 234 SHA256 17bf4fe3596dc5b145e4163d85181e2edcaa214df3cf9072d852ba0e7a569891 SHA512 ec069cf7aaf10b42a701938b57e1fde1ee15afd1d4af928edfa7e5d505ba8b3edaaceac449da0f4ac6beea09a3fb73453526ba0cd3a04e13259c1a2720f42f78 WHIRLPOOL 667ad1567bb398a20785096f2c2c7c72be4853ee3b0674c4fcc20eb2c9123815c273f40938961e348252e3376c4402a3f952b2a72d3bb3f0907aadb7ab77b8ed
-AUX clamd.initd-r5 3267 SHA256 be51b60549925ef9fa81d71405c9d4ecbcededa746137c7ac90d23a203881bc3 SHA512 5db7ec5374881ca4342e4fcdb58584a73d6f96e3900161ff4ba48792d3168ec4a786def808f17a2f0c3c30649d13c49a60495539d40bbc3e445f3d47a160b3a4 WHIRLPOOL 62e8b9dd6115ba16d810a1f438813ad6c212bc7b0e99c69bdeb8d1dec6276dfaae3bb45bceca2ca847ca0507b5acdc123a077b23f0bc3a28d038bf1fbe1f7b08
-DIST clamav-0.97.8.tar.gz 14609966 SHA256 d872bdfd692d440bc2ade2f4e5a7befc37feb8885cd81adfb6346a8214aafc12 SHA512 e3a80bbfc90922f7f49521d1ab53ec63fb948a42d448ecaa933023cbb256f35e5b695305bd2d56480ee1f94ac93703d10aa4193566c521a1fa62f2c0e1019fda WHIRLPOOL b0ddc29edd096007abc0183400f2b3ee54cf87f13bb2eab2388c444f038fab33eb25b6b5d678449d49da2258017a630ff2e6b36c27028557038a033b415b026c
-EBUILD clamav-0.97.8-r99.ebuild 3749 SHA256 a36bdb9706c6d78c5509f671b3c04ec0a03778f882bdffef2f5163e3e578eb60 SHA512 e214dcfb62eaf77adb31e7fd4bee3610b59f97e9c7828ee71b2db5be4fa76d69470d4107f8681bc70c0431ef977cc3cf008c397abfb567500bdbc8df25ca6fac WHIRLPOOL 71c5ebd2fb09cd910d842523ba590793805a91b3f74ad263dccd0ecee3c292df4acc52b27774241d2b7d7cf0d6a59d3e793c1a5c6c127172f8454e2cda635d97
-MISC metadata.xml 320 SHA256 e2a8c4c8bedbffe50a126c1c7395a4d92652c2d95347b9496d54aea1f230a22d SHA512 c5bb20c993b91112d9c9e0b7bb6c116ac7f711c769084eaaacc28bc7eeb54db09c9794c6ef057747d80a08cf1502f0f688cdefc741423a38da55b2deaebd6476 WHIRLPOOL 741ff80258dee2c145d08f72f10982bd5c1fcba44ed84054cd1a33787864a7d8821b432c3246ad5a04ce11edde7d045f3eb6e056200e3bd2e8505eeea3d7277d
diff --git a/app-antivirus/clamav/clamav-0.97.8-r99.ebuild b/app-antivirus/clamav/clamav-0.97.8-r99.ebuild
deleted file mode 100644
index d681cac3..00000000
--- a/app-antivirus/clamav/clamav-0.97.8-r99.ebuild
+++ /dev/null
@@ -1,124 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/clamav-0.97.8.ebuild,v 1.1 2013/04/23 18:02:01 lordvan Exp $
-
-EAPI=5
-
-inherit eutils flag-o-matic user 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="amd64 arm ~mips ppc x86"
-IUSE="bzip2 clamdtop iconv ipv6 milter selinux static-libs uclibc"
-
-CDEPEND="bzip2? ( app-arch/bzip2 )
- clamdtop? ( sys-libs/ncurses )
- iconv? ( virtual/libiconv )
- milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
- dev-libs/libtommath
- >=sys-libs/zlib-1.2.2
- sys-devel/libtool"
-DEPEND="${CDEPEND}
- virtual/pkgconfig"
-RDEPEND="${CDEPEND}
- selinux? ( sec-policy/selinux-clamav )"
-
-RESTRICT="test"
-
-DOCS=( AUTHORS BUGS ChangeLog FAQ INSTALL NEWS README UPGRADE )
-
-PATCHES=(
- "${FILESDIR}"/${PN}-0.97-nls.patch
-)
-
-pkg_setup() {
- enewgroup clamav
- enewuser clamav -1 -1 /dev/null clamav
-}
-
-src_prepare() {
- use ppc64 && append-flags -mminimal-toic
- use uclibc && export ac_cv_type_error_t=yes
-}
-
-src_configure() {
- econf \
- --libdir=/usr/$(get_libdir) \
- --disable-experimental \
- --enable-id-check \
- --with-dbdir="${EPREFIX}"/var/lib/clamav \
- --with-system-tommath \
- --with-zlib="${EPREFIX}"/usr \
- $(use_enable bzip2) \
- $(use_enable clamdtop) \
- $(use_enable ipv6) \
- $(use_enable milter) \
- $(use_enable static-libs static) \
- $(use_with iconv)
-}
-
-src_install() {
- default
-
- rm -rf "${ED}"/var/lib/clamav
- newinitd "${FILESDIR}"/clamd.initd-r5 clamd
- newconfd "${FILESDIR}"/clamd.conf clamd
-
- keepdir /var/lib/clamav
- fowners clamav:clamav /var/lib/clamav
- keepdir /var/log/clamav
- fowners clamav:clamav /var/log/clamav
-
- dodir /etc/logrotate.d
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/clamav.logrotate clamav
-
- # Modify /etc/{clamd,freshclam}.conf to be usable out of the box
- sed -i -e "s:^\(Example\):\# \1:" \
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.pid:" \
- -e "s:.*\(LocalSocket\) .*:\1 ${EPREFIX}/var/run/clamav/clamd.sock:" \
- -e "s:.*\(User\) .*:\1 clamav:" \
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
- -e "s:^\#\(LogTime\).*:\1 yes:" \
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
- "${ED}"/etc/clamd.conf
- sed -i -e "s:^\(Example\):\# \1:" \
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/freshclam.pid:" \
- -e "s:.*\(DatabaseOwner\) .*:\1 clamav:" \
- -e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
- -e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamd.conf:" \
- -e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
- "${ED}"/etc/freshclam.conf
-
- if use milter ; then
- # MilterSocket one to include ' /' because there is a 2nd line for
- # inet: which we want to leave
- dodoc "${FILESDIR}"/clamav-milter.README.gentoo
- sed -i -e "s:^\(Example\):\# \1:" \
- -e "s:.*\(PidFile\) .*:\1 ${EPREFIX}/var/run/clamav/clamav-milter.pid:" \
- -e "s+^\#\(ClamdSocket\) .*+\1 unix:${EPREFIX}/var/run/clamav/clamd.sock+" \
- -e "s:.*\(User\) .*:\1 clamav:" \
- -e "s+^\#\(MilterSocket\) /.*+\1 unix:${EPREFIX}/var/run/clamav/clamav-milter.sock+" \
- -e "s:^\#\(AllowSupplementaryGroups\).*:\1 yes:" \
- -e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
- "${ED}"/etc/clamav-milter.conf
- cat > "${ED}"/etc/conf.d/clamd <<-EOF
- MILTER_NICELEVEL=19
- START_MILTER=no
- EOF
- fi
-
- prune_libtool_files --all
-}
-
-pkg_postinst() {
- if use milter ; then
- elog "For simple instructions how to setup the clamav-milter read the"
- elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
- fi
-}
diff --git a/app-antivirus/clamav/files/clamav-0.97-nls.patch b/app-antivirus/clamav/files/clamav-0.97-nls.patch
deleted file mode 100644
index 6ca0c0e9..00000000
--- a/app-antivirus/clamav/files/clamav-0.97-nls.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- clamav-0.97/shared/output.c.orig
-+++ clamav-0.97/shared/output.c
-@@ -63,7 +63,7 @@
- pthread_mutex_t mdprintf_mutex = PTHREAD_MUTEX_INITIALIZER;
- #endif
-
--#ifdef C_LINUX
-+#if defined(C_LINUX) && defined(HAVE_LIBINTL_H)
- #include <libintl.h>
- #include <locale.h>
-
diff --git a/app-antivirus/clamav/files/clamav-milter.README.gentoo b/app-antivirus/clamav/files/clamav-milter.README.gentoo
deleted file mode 100644
index 17e9ba62..00000000
--- a/app-antivirus/clamav/files/clamav-milter.README.gentoo
+++ /dev/null
@@ -1,44 +0,0 @@
-Nick Hadaway <raker@gentoo.org>
-Updated by Andrea Barisani <lcars@gentoo.org>
-18/05/2004
-
-Setting up clamav-milter on Gentoo Linux
-
-Step 1 - Configure clamd
-
-Check /etc/clamd.conf, default values should work out of the box but
-read and understand all the options especially if you are going to
-use it on production boxes.
-
-Step 2 - Tell the init script to start clamd as well as freshclam and the
- milter itself.
-
- nano -w /etc/conf.d/clamd
-
- START_CLAMD=yes
- START_FRESHCLAM=yes
- START_MILTER=yes
-
-Step 3 - Edit sendmail.mc
-
- Add these lines to sendmail.mc before any any other
- INPUT_MAIL_FILTER lines and before MAILER(local)
- NOTE: ANY INPUT_MAIL_FILTER definitions put before these lines
- will be discarded due to the use of confINPUT_MAIL_FILTERS
- Make this your first mail filter. :)
-
- INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=, T=S:4m;R:4m')dnl
- define(`confINPUT_MAIL_FILTERS', `clmilter')dnl
-
-Step 4 - Rebuild sendmail.cf
-
- cd /etc/mail
- m4 sendmail.mc > sendmail.cf
-
-Step 5 - Start clamad
-
- /etc/init.d/clamd start
-
-Step 6 - Restart sendmail
-
- /etc/init.d/sendmail restart
diff --git a/app-antivirus/clamav/files/clamav.logrotate b/app-antivirus/clamav/files/clamav.logrotate
deleted file mode 100644
index 12c77e02..00000000
--- a/app-antivirus/clamav/files/clamav.logrotate
+++ /dev/null
@@ -1,15 +0,0 @@
-/var/log/clamav/clamd.log {
- missingok
- postrotate
- /etc/init.d/clamd logfix
- /bin/kill -HUP `cat /var/run/clamav/clamd.pid 2> /dev/null` 2>/dev/null || true
- endscript
-}
-
-/var/log/clamav/freshclam.log {
- missingok
- postrotate
- /etc/init.d/clamd logfix
- /bin/kill -HUP `cat /var/run/clamav/freshclam.pid 2> /dev/null` 2>/dev/null || true
- endscript
-}
diff --git a/app-antivirus/clamav/files/clamd.conf b/app-antivirus/clamav/files/clamd.conf
deleted file mode 100644
index ee055138..00000000
--- a/app-antivirus/clamav/files/clamd.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-# Config file for /etc/init.d/clamd
-
-# NOTICE: Since clamav-0.85-r1, only START_CLAMD and START_FRESHCLAM settings
-# are used, other are silently ignored
-
-START_CLAMD=yes
-START_FRESHCLAM=yes
-CLAMD_NICELEVEL=3
-FRESHCLAM_NICELEVEL=19
diff --git a/app-antivirus/clamav/files/clamd.initd-r5 b/app-antivirus/clamav/files/clamd.initd-r5
deleted file mode 100755
index fbe2432b..00000000
--- a/app-antivirus/clamav/files/clamd.initd-r5
+++ /dev/null
@@ -1,126 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-antivirus/clamav/files/clamd.initd-r5,v 1.2 2013/04/16 05:52:39 eras Exp $
-
-daemon_clamd="/usr/sbin/clamd"
-daemon_freshclam="/usr/bin/freshclam"
-daemon_milter="/usr/sbin/clamav-milter"
-
-extra_commands="logfix"
-
-depend() {
- use net
- provide antivirus
-}
-
-get_config() {
- clamconf | sed 's/["=]//g' | \
- awk "{
- if(\$0==\"Config file: $1.conf\") S=1
- if(S==1&&\$0==\"\") {
- print \"$3\"
- exit
- }
- if(S==1&&\$1~\"^$2\$\") {
- print \$2!=\"disabled\"?\$2:\"$3\"
- exit
- }
- }"
-}
-
-start() {
- # populate variables and fix log file permissions
- logfix
-
- if [ "${START_CLAMD}" = "yes" ]; then
- checkpath --quiet --mode 755 \
- --owner "${clamd_user}":"${clamd_user}" \
- --directory `dirname ${clamd_socket}`
- if [ -S "${clamd_socket}" ]; then
- rm -f ${clamd_socket}
- fi
- ebegin "Starting clamd"
- start-stop-daemon --start --quiet \
- --nicelevel ${CLAMD_NICELEVEL:-0} \
- --exec ${daemon_clamd}
- eend $? "Failed to start clamd"
- fi
-
- if [ "${START_FRESHCLAM}" = "yes" ]; then
- checkpath --quiet --mode 755 \
- --owner "${clamd_user}":"${clamd_user}" \
- --directory `dirname ${clamd_socket}`
- ebegin "Starting freshclam"
- start-stop-daemon --start --quiet \
- --nicelevel ${FRESHCLAM_NICELEVEL:-0} \
- --exec ${daemon_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 [ -z "${MILTER_CONF_FILE}" ]; then
- MILTER_CONF_FILE="/etc/clamav-milter.conf"
- fi
-
- ebegin "Starting clamav-milter"
- start-stop-daemon --start --quiet \
- --nicelevel ${MILTER_NICELEVEL:-0} \
- --exec ${daemon_milter} -- -c ${MILTER_CONF_FILE}
- 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
-}
-
-logfix() {
- clamd_socket=$(get_config clamd LocalSocket /run/clamav/clamd.sock)
- clamd_user=$(get_config clamd User clamav)
- freshclam_user=$(get_config freshclam DatabaseOwner clamav)
-
- if [ "${START_CLAMD}" = "yes" ]; then
- # fix clamd log permissions
- # (might be clobbered by logrotate or something)
- local logfile=$(get_config clamd LogFile)
- if [ -n "${logfile}" ]; then
- checkpath --quiet \
- --owner "${clamd_user}":"${clamd_user}" \
- --mode 640 \
- --file ${logfile}
- fi
- fi
-
- if [ "${START_FRESHCLAM}" = "yes" ]; then
- # fix freshclam log permissions
- # (might be clobbered by logrotate or something)
- local logfile=$(get_config freshclam UpdateLogFile)
- if [ -n "${logfile}" ]; then
- checkpath --quiet \
- --owner "${freshclam_user}":"${freshclam_user}" \
- --mode 640 \
- --file ${logfile}
- fi
- fi
-}
diff --git a/app-antivirus/clamav/metadata.xml b/app-antivirus/clamav/metadata.xml
deleted file mode 100644
index e2cc2031..00000000
--- a/app-antivirus/clamav/metadata.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>net-mail</herd>
- <herd>antivirus</herd>
- <use>
- <flag name="clamdtop">A Top like tool which shows what clamd is currently scanning amongst other things</flag>
- </use>
-</pkgmetadata>