summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-04-22 19:15:12 +0000
committerAlin Năstac <mrness@gentoo.org>2005-04-22 19:15:12 +0000
commited2d2be3dbcac3bde000f4d89f3ae5836cd53b93 (patch)
treeea35ca7703e69b2f955232964f66c73b9338e847 /net-proxy/dansguardian-dgav
parentAdding pcmcia flag. Closes #90025, Cheers Georgi (diff)
downloadgentoo-2-ed2d2be3dbcac3bde000f4d89f3ae5836cd53b93.tar.gz
gentoo-2-ed2d2be3dbcac3bde000f4d89f3ae5836cd53b93.tar.bz2
gentoo-2-ed2d2be3dbcac3bde000f4d89f3ae5836cd53b93.zip
www-proxy -> net-proxy
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-proxy/dansguardian-dgav')
-rw-r--r--net-proxy/dansguardian-dgav/ChangeLog25
-rw-r--r--net-proxy/dansguardian-dgav/Manifest7
-rw-r--r--net-proxy/dansguardian-dgav/dansguardian-dgav-6.3.8.ebuild64
-rw-r--r--net-proxy/dansguardian-dgav/files/dansguardian-xnaughty-2.7.6-1.diff50
-rw-r--r--net-proxy/dansguardian-dgav/files/dansguardian.init22
-rw-r--r--net-proxy/dansguardian-dgav/files/dgav-6.3.8-virus-response.patch28
-rw-r--r--net-proxy/dansguardian-dgav/files/digest-dansguardian-dgav-6.3.82
-rw-r--r--net-proxy/dansguardian-dgav/metadata.xml6
8 files changed, 204 insertions, 0 deletions
diff --git a/net-proxy/dansguardian-dgav/ChangeLog b/net-proxy/dansguardian-dgav/ChangeLog
new file mode 100644
index 000000000000..deeffb16906c
--- /dev/null
+++ b/net-proxy/dansguardian-dgav/ChangeLog
@@ -0,0 +1,25 @@
+# ChangeLog for www-proxy/dansguardian-dgav
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian-dgav/ChangeLog,v 1.1 2005/04/22 19:15:11 mrness Exp $
+
+ 22 Apr 2005; Alin Nastac <mrness@gentoo.org> dansguardian-dgav-6.3.8.ebuild:
+ Rename category & herd www-proxy to net-proxy. Demote ebuild to unstable (#89948).
+
+ 06 Apr 2005; Alin Nastac <mrness@gentoo.org>
+ dansguardian-dgav-6.3.8.ebuild:
+ Stable on x86
+
+ 11 Mar 2005; Alin Nastac <mrness@gentoo.org>
+ dansguardian-dgav-6.3.8.ebuild:
+ Fix mode of init.d script.
+
+ 10 Mar 2005; Alin Nastac <mrness@gentoo.org> dansguardian-dgav-6.3.8.ebuild:
+ Always link with pthread lib (needed by libesmtp).
+
+*dansguardian-dgav-6.3.8 (08 Mar 2005)
+
+ 08 Mar 2005; Alin Nastac <mrness@gentoo.org> +metadata.xml,
+ +files/dansguardian-xnaughty-2.7.6-1.diff, +files/dansguardian.init,
+ +files/dgav-6.3.8-virus-response.patch, +dansguardian-dgav-6.3.8.ebuild:
+ Initial import from bug #60093, thanks to Francisco Javier <ffelix@sshinf.com>.
+
diff --git a/net-proxy/dansguardian-dgav/Manifest b/net-proxy/dansguardian-dgav/Manifest
new file mode 100644
index 000000000000..410339a15f8a
--- /dev/null
+++ b/net-proxy/dansguardian-dgav/Manifest
@@ -0,0 +1,7 @@
+MD5 7bd2b3b9dcd6caf2946431c8eee91696 dansguardian-dgav-6.3.8.ebuild 1669
+MD5 e41a4a43828ce20aec5b3155eac1e299 ChangeLog 1065
+MD5 775fe3a71382d0807bfddb0235f35f30 metadata.xml 233
+MD5 50f8def5997a7e9daeefd0789bc56434 files/dansguardian.init 576
+MD5 dd34bc7952c9d271a3b5b25605afaafc files/digest-dansguardian-dgav-6.3.8 169
+MD5 6313b934a33da7e4308812e834494074 files/dansguardian-xnaughty-2.7.6-1.diff 2325
+MD5 0fab1970b596ce0eb39925955884fa17 files/dgav-6.3.8-virus-response.patch 1083
diff --git a/net-proxy/dansguardian-dgav/dansguardian-dgav-6.3.8.ebuild b/net-proxy/dansguardian-dgav/dansguardian-dgav-6.3.8.ebuild
new file mode 100644
index 000000000000..6e579e47652e
--- /dev/null
+++ b/net-proxy/dansguardian-dgav/dansguardian-dgav-6.3.8.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian-dgav/dansguardian-dgav-6.3.8.ebuild,v 1.1 2005/04/22 19:15:11 mrness Exp $
+
+inherit eutils
+
+DG_PN=${PN/-*/}
+AV_PN=${PN/*-/}
+DG_PV=2.8.0.3
+
+DESCRIPTION="DansGuardian with Anti-Virus plugin"
+HOMEPAGE="http://sourceforge.net/projects/dgav/"
+SRC_URI="http://mirror.dansguardian.org/downloads/2/Stable/${DG_PN}-${DG_PV}.source.tar.gz
+ mirror://sourceforge/${AV_PN}/${DG_PN}-${DG_PV}-antivirus-${PV}.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~sparc ~ppc"
+IUSE=""
+DEPEND="!net-proxy/dansguardian
+ virtual/libc
+ net-libs/libesmtp
+ app-antivirus/clamav"
+
+S="${WORKDIR}/${DG_PN}-${DG_PV}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S} || die "source dir not found"
+ epatch ${FILESDIR}/dansguardian-xnaughty-2.7.6-1.diff
+ epatch ../${DG_PN}-${DG_PV}-antivirus-${PV}.patch
+ epatch ${FILESDIR}/${AV_PN}-${PV}-virus-response.patch
+ epatch clamdscan.patch
+
+ #need it by libesmtp
+ sed -i -e 's/^\(LIBS *=.*-lesmtp.*\)/\1 -pthread/' autoconf/linux.in
+}
+
+src_compile() {
+ ./configure \
+ --prefix= \
+ --installprefix=${D} \
+ --mandir=/usr/share/man/ \
+ --cgidir=/var/www/localhost/cgi-bin/ || die "./configure failed"
+ emake OPTIMISE="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ if [ -d "/etc/logrotate.d" ]; then
+ dodir /etc/logrotate.d
+ fi
+ make install || die "make install failed"
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/dansguardian.init dansguardian
+
+ rm -rf ${D}/etc/rc.d
+
+ #Fixing location of initscript
+ sed -i -e 's/rc.d\///' ${D}/etc/dansguardian/logrotation
+
+ dodoc INSTALL README* LICENSE
+}
diff --git a/net-proxy/dansguardian-dgav/files/dansguardian-xnaughty-2.7.6-1.diff b/net-proxy/dansguardian-dgav/files/dansguardian-xnaughty-2.7.6-1.diff
new file mode 100644
index 000000000000..d1e097ce0b08
--- /dev/null
+++ b/net-proxy/dansguardian-dgav/files/dansguardian-xnaughty-2.7.6-1.diff
@@ -0,0 +1,50 @@
+diff -ur DansGuardian-2.7.6-1/ConnectionHandler.cpp DansGuardian-2.7.6-1-new/ConnectionHandler.cpp
+--- DansGuardian-2.7.6-1/ConnectionHandler.cpp 2003-12-03 16:04:18.000000000 -0600
++++ DansGuardian-2.7.6-1-new/ConnectionHandler.cpp 2003-12-03 17:43:36.000000000 -0600
+@@ -990,6 +990,11 @@
+ else if (o.reporting_level == -1) { // stealth
+ (*checkme).isItNaughty = false; // dont block
+ }
++ else if (o.reporting_level == -2) { // just add a header
++ (*docheader).addXNaughty("true", (*checkme).whatIsNaughty.c_str(), (*url).toCharArray());
++ (*checkme).isItNaughty = false; // dont block
++ }
++
+ } catch (exception& e) {}
+ if ((*checkme).isItNaughty) { // not stealth mode then
+ try {
+Only in DansGuardian-2.7.6-1-new/: ConnectionHandler.cpp.orig
+diff -ur DansGuardian-2.7.6-1/HTTPHeader.cpp DansGuardian-2.7.6-1-new/HTTPHeader.cpp
+--- DansGuardian-2.7.6-1/HTTPHeader.cpp 2003-12-03 16:04:18.000000000 -0600
++++ DansGuardian-2.7.6-1-new/HTTPHeader.cpp 2003-12-03 17:38:09.000000000 -0600
+@@ -456,6 +456,17 @@
+ header.push_back(String(line.c_str()));
+ }
+
++void HTTPHeader::addXNaughty(std::string naughty, std::string whatIsNaughty, std::string whereIsNaughty) {
++ std::string line;
++
++ line = "X-Naughty: " + naughty + "\r";
++ header.push_back(String(line.c_str()));
++ line = "X-Naughty-Why: " + whatIsNaughty + "\r";
++ header.push_back(String(line.c_str()));
++ line = "X-Naughty-Where: " + whereIsNaughty + "\r";
++ header.push_back(String(line.c_str()));
++}
++
+ void HTTPHeader::setTimeout(int t) {
+ timeout = t;
+ }
+Only in DansGuardian-2.7.6-1-new/: HTTPHeader.cpp.orig
+diff -ur DansGuardian-2.7.6-1/HTTPHeader.hpp DansGuardian-2.7.6-1-new/HTTPHeader.hpp
+--- DansGuardian-2.7.6-1/HTTPHeader.hpp 2003-12-03 16:04:18.000000000 -0600
++++ DansGuardian-2.7.6-1-new/HTTPHeader.hpp 2003-12-03 17:38:09.000000000 -0600
+@@ -43,6 +43,7 @@
+ std::string getXForwardedForIP();
+ void setTimeout(int t);
+ void addXForwardedFor(std::string clientip);
++ void addXNaughty(std::string naughty, std::string whatIsNaughty, std::string whereIsNaughty);
+ bool isCompressed();
+ String contentEncoding();
+ void removeEncoding(int newlen);
+Only in DansGuardian-2.7.6-1-new/: HTTPHeader.hpp.orig
diff --git a/net-proxy/dansguardian-dgav/files/dansguardian.init b/net-proxy/dansguardian-dgav/files/dansguardian.init
new file mode 100644
index 000000000000..dff3d21899d1
--- /dev/null
+++ b/net-proxy/dansguardian-dgav/files/dansguardian.init
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/dansguardian-dgav/files/dansguardian.init,v 1.1 2005/04/22 19:15:11 mrness Exp $
+
+depend() {
+ need net clamd
+ after squid
+}
+
+start() {
+ ebegin "Starting DansGuardian"
+ start-stop-daemon --start --quiet --pidfile /var/run/dansguardian.pid \
+ --exec /usr/sbin/dansguardian
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping DansGuardian"
+ start-stop-daemon --stop --quiet --pidfile /var/run/dansguardian.pid
+ eend $?
+}
diff --git a/net-proxy/dansguardian-dgav/files/dgav-6.3.8-virus-response.patch b/net-proxy/dansguardian-dgav/files/dgav-6.3.8-virus-response.patch
new file mode 100644
index 000000000000..5c0a643a844e
--- /dev/null
+++ b/net-proxy/dansguardian-dgav/files/dgav-6.3.8-virus-response.patch
@@ -0,0 +1,28 @@
+--- VirusScanner.cpp.ori 2004-12-03 19:15:56.000000000 +0100
++++ VirusScanner.cpp 2004-12-03 19:10:19.000000000 +0100
+@@ -367,20 +367,20 @@
+ }
+ else {
+ (*peerconn).writeString("<html><head>");
+- (*peerconn).writeString("<script language=JavaScript>");
+- (*peerconn).writeString("location.href=");
++ (*peerconn).writeString("<meta http-equiv=\"REFRESH\" content=\"0;url=");
+ (*peerconn).writeString(location.c_str());
+ (*peerconn).writeString("?USER==");
+ (*peerconn).writeString(username.c_str());
+ (*peerconn).writeString("::REASON==Virus%20'");
+ (*peerconn).writeString(virname);
+ (*peerconn).writeString("'%20found");
+- (*peerconn).writeString("::URL==");
++ (*peerconn).writeString("::DENIEDURL==");
+ (*peerconn).writeString(url.toCharArray());
+- (*peerconn).writeString("</script>");
++ (*peerconn).writeString("::IP==");
++ (*peerconn).writeString(clientip.c_str());
++ (*peerconn).writeString("\">");
+ (*peerconn).writeString("</head></html>");
+ }
+-
+ if (o.notify) {
+ #ifdef DGDEBUG
+ std::cout << "Sending email..." << endl;
diff --git a/net-proxy/dansguardian-dgav/files/digest-dansguardian-dgav-6.3.8 b/net-proxy/dansguardian-dgav/files/digest-dansguardian-dgav-6.3.8
new file mode 100644
index 000000000000..43e9d3e1fcb7
--- /dev/null
+++ b/net-proxy/dansguardian-dgav/files/digest-dansguardian-dgav-6.3.8
@@ -0,0 +1,2 @@
+MD5 46bbb0d977b8cdd9e978ba5922c1d708 dansguardian-2.8.0.3.source.tar.gz 192351
+MD5 54ff9d90a47160cb3e2eea8d149782a8 dansguardian-2.8.0.3-antivirus-6.3.8.patch.bz2 31547
diff --git a/net-proxy/dansguardian-dgav/metadata.xml b/net-proxy/dansguardian-dgav/metadata.xml
new file mode 100644
index 000000000000..7747d8275210
--- /dev/null
+++ b/net-proxy/dansguardian-dgav/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-proxy</herd>
+<longdescription>DansGuardian with Anti-Virus plugin</longdescription>
+</pkgmetadata>