From: Michael Tremer Date: Fri, 8 Oct 2010 15:09:47 +0000 (+0200) Subject: dansguardian: New package. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1b234b5ebdd094e884c81f0c2f0f04c057459ae;p=ipfire-3.x.git dansguardian: New package. --- diff --git a/pkgs/core/dansguardian/dansguardian.nm b/pkgs/core/dansguardian/dansguardian.nm new file mode 100644 index 000000000..137f7b8f5 --- /dev/null +++ b/pkgs/core/dansguardian/dansguardian.nm @@ -0,0 +1,59 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = dansguardian +PKG_VER = 2.10.1.1 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = Networking/Proxy +PKG_URL = http://www.dansguardian.org/ +PKG_LICENSE = GPLv2+ +PKG_SUMMARY = A content filtering web proxy. + +PKG_BUILD_DEPS+= gcc-c++ pcre-devel pkg-config zlib-devel + +define PKG_DESCRIPTION + DansGuardian filters the content of pages based on many methods including \ + phrase matching, PICS filtering and URL filtering. It does not purely filter \ + based on a banned list of sites. \ + \ + It provides real-time virus scanning capabilities for content access. \ + \ + DansGuardian is designed to be completely flexible and allows you to tailor the \ + filtering to your exact needs. It can be as draconian or as unobstructive as \ + you want. The default settings are geared towards what a primary school might \ + want but DansGuardian puts you in control of what you want to block. \ + \ + DansGuardian requires squid or another similar caching proxy server on your \ + local network. +endef + +PKG_TARBALL = $(THISAPP).tar.gz + +CONFIGURE_OPTIONS += \ + --sysconfdir=/etc \ + --localstatedir=/var diff --git a/pkgs/core/dansguardian/patches/dansguardian-gcc44.patch b/pkgs/core/dansguardian/patches/dansguardian-gcc44.patch new file mode 100644 index 000000000..3cdef6e48 --- /dev/null +++ b/pkgs/core/dansguardian/patches/dansguardian-gcc44.patch @@ -0,0 +1,55 @@ +diff -ruN dansguardian-2.10.1.1.orig/src/ConnectionHandler.cpp dansguardian-2.10.1.1/src/ConnectionHandler.cpp +--- dansguardian-2.10.1.1.orig/src/ConnectionHandler.cpp 2009-02-25 12:36:22.000000000 +0100 ++++ dansguardian-2.10.1.1/src/ConnectionHandler.cpp 2009-07-15 12:02:09.801533048 +0200 +@@ -45,6 +45,7 @@ + + #ifdef ENABLE_ORIG_IP + #include ++#include + #include + #endif + +diff -ruN dansguardian-2.10.1.1.orig/src/contentscanners/clamav.cpp dansguardian-2.10.1.1/src/contentscanners/clamav.cpp +--- dansguardian-2.10.1.1.orig/src/contentscanners/clamav.cpp 2008-11-18 12:27:04.000000000 +0100 ++++ dansguardian-2.10.1.1/src/contentscanners/clamav.cpp 2009-07-15 11:59:12.316495912 +0200 +@@ -26,6 +26,7 @@ + #include "../ContentScanner.hpp" + #include "../OptionContainer.hpp" + ++#include + #include + #include + #include +diff -ruN dansguardian-2.10.1.1.orig/src/contentscanners/commandlinescan.cpp dansguardian-2.10.1.1/src/contentscanners/commandlinescan.cpp +--- dansguardian-2.10.1.1.orig/src/contentscanners/commandlinescan.cpp 2008-11-18 12:27:04.000000000 +0100 ++++ dansguardian-2.10.1.1/src/contentscanners/commandlinescan.cpp 2009-07-15 11:59:12.317495697 +0200 +@@ -28,6 +28,7 @@ + #include "../OptionContainer.hpp" + #include "../RegExp.hpp" + ++#include + #include + #include + #include +diff -ruN dansguardian-2.10.1.1.orig/src/contentscanners/icapscan.cpp dansguardian-2.10.1.1/src/contentscanners/icapscan.cpp +--- dansguardian-2.10.1.1.orig/src/contentscanners/icapscan.cpp 2008-11-18 12:27:04.000000000 +0100 ++++ dansguardian-2.10.1.1/src/contentscanners/icapscan.cpp 2009-07-15 11:59:12.318495062 +0200 +@@ -29,6 +29,7 @@ + #include "../ContentScanner.hpp" + #include "../OptionContainer.hpp" + ++#include + #include + #include + #include +diff -ruN dansguardian-2.10.1.1.orig/src/downloadmanagers/fancy.cpp dansguardian-2.10.1.1/src/downloadmanagers/fancy.cpp +--- dansguardian-2.10.1.1.orig/src/downloadmanagers/fancy.cpp 2008-11-18 12:27:04.000000000 +0100 ++++ dansguardian-2.10.1.1/src/downloadmanagers/fancy.cpp 2009-07-15 11:59:12.319495964 +0200 +@@ -26,6 +26,7 @@ + #include "../HTMLTemplate.hpp" + #include "../ConnectionHandler.hpp" + ++#include + #include + #include + #include