--- dansguardian-2.10.1.1.orig/debian/compat +++ dansguardian-2.10.1.1/debian/compat @@ -0,0 +1 @@ +5 --- dansguardian-2.10.1.1.orig/debian/dansguardian.logrotate +++ dansguardian-2.10.1.1/debian/dansguardian.logrotate @@ -0,0 +1,10 @@ +/var/log/dansguardian/access.log { + rotate 5 + daily + prerotate + /etc/init.d/dansguardian stop > /dev/null 2>&1 || true + endscript + postrotate + /etc/init.d/dansguardian start > /dev/null 2>&1 + endscript +} --- dansguardian-2.10.1.1.orig/debian/installation2.html +++ dansguardian-2.10.1.1/debian/installation2.html @@ -0,0 +1,58 @@ + + +DansGuardian Brief Installation Guide + +

DansGuardian Brief Installation Guide

+

+Tue 9th October 2001 - version 2.x.x +

+

Installing from RPM

+
    +
  1. Download the correct RPM for DansGuardian 2. +
  2. If upgrading from an older version of DansGuardian, make a backup of your /etc/dansguardian directory. Also stop running any old version. +
  3. rpm -Uvh DansGuardian-2....rpm (fill in the blank) (--nodeps might be needed) +
  4. Now edit the dansguardian.conf file to your liking paying special attention to the accessdeniedaddress option. +
+

+

Installing from source

+
    +
  1. Download the source for DansGuardian 2. +
  2. If upgrading from an older version of DansGuardian, make a backup of your /etc/dansguardian directory. Also stop running any old version. +
  3. Untar with a 'tar -zxpf DansGuardian-2.....tar.gz' (fill in the blanks). +
  4. cd into the new directory. +
  5. Run the configure (./configure --help) script with the help option to see the user selectable settings. Default settings are shown in []'s. +
  6. Run the configure (./configure) script with your options, if any. (RedHat 6.2/7.0 users can leave the default settings. Other users see below. +
  7. Edit the Makefile and verify that all the directory settings are correct. If not, re-run the configure script. +
  8. "make" will now build DansGuardian. +
  9. "make install" will create the directory structure and install all the files in the chosen paths. +
  10. "make clean" will remove the now un-needed binaries etc. +
  11. Now edit the dansguardian.conf file to your liking paying special attention to the accessdeniedaddress option. +
+

Options

+You may change with the configure options: + + + + + + + + + + +
bindir(where the binary gets places)
sysconfdir(where the config and data files gets placed)
sysvdir(where the startup script gets placed)
cgidir(where the cgi-bin dir is located)
mandir(where the man docs get placed)
logdir(where the logs get placed)
runas_usr(the system user the daemon runs as)
runas_grp(the system group the daemon runs as)
piddir(where the pid file gets placed)
+

+The INSTALL file included within the source tarball gives all this information as well as example options for FreeBSD, OpenBSD, Mandrake, SuSE, etc +

+

Nearly finished

+You need to make DansGuardian start up when the server reboots. For linux this means use your favourite SysV editor to stick DansGuardian in run level 5 and 3 at about 92, if chkconfig/rpm has not already done this for you. +

+Also you need to rotate the logs once a week. As root, crontab -e and set the log rotation script up as follows:
+59 23 * * sun /etc/dansguardian/logrotation
I.e 23:59 every sunday. Or as pleases you. Note, the path may be different. You don't have to use my splendid script and could use any method you want so long as it stops DansGuardian first, rotates then starts it again. +

+

Finally

+

The port it listens on by default is 8080. It uses port 3128 on Squid. To manually start it run /etc/rc.d/init.d/dansguardian start. Use stop to stop it. +For all support issues, join the mailing list and post your question or comment there. Everyone would like to know of success or failure as this may help them. The messages also act as an archive of information that may get put into the FAQ. +

If you feel your message is not suitable for public viewing and is private (for example asking for pricing or other commercial issues) then email me direct. My address is author at dansguardian dot org. + + --- dansguardian-2.10.1.1.orig/debian/changelog +++ dansguardian-2.10.1.1/debian/changelog @@ -0,0 +1,244 @@ +dansguardian (2.10.1.1-3) unstable; urgency=low + + * Fix restart in init script (Closes: #605934) + + -- Alexander Wirt Wed, 19 Jan 2011 19:30:17 +0100 + +dansguardian (2.10.1.1-2) unstable; urgency=low + + * Fix initscript ordering (Closes: #541742) + * Force debsource 1.0 + * Update copyright file (Closes: #567263) + * Fix clamdsocket in clamdscan.conf (Closes: #544656) + * Use settings from configfile for chown ops + (Closes: #419989) Thanks to Игорь Чумак for the patch + + -- Alexander Wirt Sat, 13 Feb 2010 09:32:09 +0100 + +dansguardian (2.10.1.1-1) unstable; urgency=low + + * New upstream version (Closes: #516749) + * Re-enable clamd support (Closes: #533024) + * Bump standards version (No changes) + * Add --retry 15 to start-ѕtop-daemon (Closes: #424076) + * Fix headers for gcc 4.4 (Closes: #505386, #526156) + Thanks to tbm for the patch + + -- Alexander Wirt Sun, 14 Jun 2009 11:21:44 +0200 + +dansguardian (2.9.9.7-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Added patch for clamav 0.95/libclamav6 support + - added debian/patches/50_clamav095_support.dpatch + + -- Imre Gergely Sun, 19 Apr 2009 09:42:35 +0300 + +dansguardian (2.9.9.7-2) unstable; urgency=low + + [ Thomas Viehmann ] + * OptionContainer.cpp: If you need to iterate through all lines in the + config file to find a field, at least don't abuse the configfile deque + by accessing it as if it was an array with signed index. + Works way better on arm, too, i.e. closes: #493047. + + -- Alexander Wirt Mon, 13 Oct 2008 09:29:35 +0200 + +dansguardian (2.9.9.7-1) unstable; urgency=low + + * New upstream version (Closes: #497260) + * Don't ban sites with general rating (Closes: #477073) + * Update to new chown syntax + + -- Alexander Wirt Mon, 05 May 2008 16:33:47 +0200 + +dansguardian (2.9.9.3-2) unstable; urgency=low + + * This time build with gcc 4.3 (Closes: #454889) + + -- Alexander Wirt Sun, 06 Apr 2008 14:47:06 +0200 + +dansguardian (2.9.9.3-1) unstable; urgency=low + + * New upstream release, move from dgav patch to 2.9 series (Closes: #334839) + - This version builds fine with GCC 4.3 (Closes: #454889) + - spanish translations have been fixed (Closes: #428372) + - See /usr/share/doc/dansguardian/NEWS.Debian.gz for more informations + * Don't fail it in prerm if dansguardian is already stopped (Closes: + #396321, #474420) + * Move configfiles to a new place + * Bump standards version (no changes) + * Remove 01_unrpmize (dansguardian now uses autotools) + * Updated copyright file + * Remove 04_clamav-0.90-API.dpatch, 05_kfreebsd.dpatch, + 06_gcc4.3.dpatch they are not used anymore + * Don't ignore failures from distclean + * Don't fail if build twice in a row. (Closes: #442538) + + -- Alexander Wirt Mon, 24 Mar 2008 18:45:37 +0100 + +dansguardian (2.8.0.6-antivirus-6.4.4.1-4) unstable; urgency=low + + * Add a patch for kfreebsd (Closes: #414338). Thanks Cyril Brulebois. + * Fix includes to make it compile with GCC 4.3 (Closes: #417139). Thanks + to Martin Michlmayr. + + -- Alexander Wirt Mon, 02 Apr 2007 16:03:15 +0200 + +dansguardian (2.8.0.6-antivirus-6.4.4.1-3) UNRELEASED; urgency=low + + * NOT RELEASED YET + + -- Alexander Wirt Wed, 28 Feb 2007 15:44:25 +0100 + +dansguardian (2.8.0.6-antivirus-6.4.4.1-2) unstable; urgency=low + + * Update ClamAV.cpp to the clamav 0.90 API (Closes: #410834). Thanks to + Stephen Gran for the patch! + + -- Alexander Wirt Wed, 28 Feb 2007 15:42:50 +0100 + +dansguardian (2.8.0.6-antivirus-6.4.4.1-1) unstable; urgency=medium + + * Updated antivirus plugin + - Fixed cleaning of temp files + (Closes: #400385) + * Fix missing opening quote in spanish translations + (Closes: #399176) + * Readd a patch thats prevents starting in unconfigured systems + (Closes: #402831) + + -- Alexander Wirt Thu, 14 Dec 2006 22:33:54 +0100 + +dansguardian (2.8.0.6-antivirus-6.4.4-1) unstable; urgency=medium + + * New av plugin release + - Proper autocleaning (Closes: #377983) + * Bumped standards version + * Depend on clamav (>= 0.80) + * Fix typo in description (Closes: #363224) + + -- Alexander Wirt Sun, 22 Oct 2006 16:56:11 +0200 + +dansguardian (2.8.0.6-antivirus-6.3.8-1-1) unstable; urgency=low + + * New upstream release + * Integreated Aecio F. Netos Antiviruspatch (Closes: #263890) + * Acknowledge the gcc4 nmu (Closes: #319568) + + -- Alexander Wirt Wed, 17 Aug 2005 14:30:31 +0200 + +dansguardian (2.8.0.4-2.1) unstable; urgency=low + + * Non-Maintainer Upload (BSP 2005-08-07). + * Fixed FTBFS by applying patch from Matt Kraai (Closes: #319568). + + -- Uwe Hermann Sun, 7 Aug 2005 14:21:46 +0200 + +dansguardian (2.8.0.4-2) unstable; urgency=low + + * Added --oknodo to start-stop-daemon to get restarting + working if it isn't started before (Closes: #303762) + Thanks to Kevin Traas for the patch + + -- Alexander Wirt Fri, 8 Apr 2005 21:02:42 +0200 + +dansguardian (2.8.0.4-1) unstable; urgency=low + + * New upstream release + * Added reload to initfile (Closes: #292301) + + -- Alexander Wirt Wed, 2 Mar 2005 19:16:47 +0100 + +dansguardian (2.8.0.3-1) unstable; urgency=low + + * New upstream release + * Removed the compressed content patch, this is + now solved from upstream + * Dansguardian builds now clean with gcc-3.4 (Closes: #258592) + * Make logrotate more silent (Closes: #180318) + + + -- Alexander Wirt Mon, 27 Sep 2004 18:57:06 +0200 + +dansguardian (2.7.7-9-1) unstable; urgency=low + + * New upstream release + * New Maintainer (Closes: #254395) + * Acknowledge of several NMUs by Mathias Klose + closes: #160096, #150904, #156703, #151163, #169736, #150884, #161038 + also closes: #200194, #200194, #206519 + * Added a small patch from Bob Vincent + that fixes the handling of Sources.gz and Packages.gz (closes: #229826) + + -- Alexander Wirt Wed, 16 Jun 2004 21:28:52 +0200 + +dansguardian (2.7.7-8-0.1) unstable; urgency=low + + * NMU. + * New upstream release. + + -- Matthias Klose Sat, 1 May 2004 10:15:29 +0200 + +dansguardian (2.7.7-5-0.1) unstable; urgency=low + + * NMU. + * New upstream release. + + -- Matthias Klose Fri, 2 Apr 2004 23:15:24 +0200 + +dansguardian (2.7.6-7-0.1) unstable; urgency=low + + * NMU. + * New upstream release. + + -- Matthias Klose Sun, 4 Jan 2004 11:03:31 +0100 + +dansguardian (2.7.6-3-0.1) unstable; urgency=low + + * NMU. + * New upstream release. + + -- Matthias Klose Sat, 6 Dec 2003 16:28:05 +0100 + +dansguardian (2.7.3-1-0.1) unstable; urgency=low + + * NMU. + * New upstream release. + * Wait some time before restarting after a logrotate (closes: #206519). + * Upgrade problems fixed at least in 2.7.3 (closes: #169736). + * Change maintainer address to flimsy@debian.org, as the original + address bounces (closes: #200194). + + -- Matthias Klose Wed, 1 Oct 2003 23:29:35 +0200 + +dansguardian (2.7.3-0-0.1) unstable; urgency=low + + * NMU. + * New upstream version (closes: #150904, #151163). + + -- Matthias Klose Mon, 1 Sep 2003 00:06:48 +0200 + +dansguardian (2.5.2-0-0.1) unstable; urgency=low + + * NMU. + * New upstream version (close: #151163). + - Should fix compile errors on alpha, ia64 and s390 (closes: #160096). + * Make the g++-2.9[56] dependency explicit. The code doesn't compile with + g++-3.x. + * The configure script uses a broken check for the echo command, + so explicitely call it using bash. + * Start after squid and apache (closes: #161038). + * Update package description (closes: #150884). + * Fix postrm script to purge the package (closes: #156703). + * Fix broken checks for user and group in postinst. + * Link against dynamic libz. + * Add logrotate script. + + -- Matthias Klose Sun, 10 Nov 2002 12:23:28 +0100 + +dansguardian (2.2.10-0-1) unstable; urgency=low + + * Initial Release. (Closes: #150218) + + -- Jonathan J. Hall Mon, 17 Jun 2002 21:14:35 -0500 --- dansguardian-2.10.1.1.orig/debian/postrm +++ dansguardian-2.10.1.1/debian/postrm @@ -0,0 +1,9 @@ +#!/bin/sh -e + +if [ "$1" = "purge" ]; then + deluser dansguardian > /dev/null || true + rm -rf /var/log/dansguardian + rm -rf /etc/dansguardian +fi + +#DEBHELPER# --- dansguardian-2.10.1.1.orig/debian/NEWS +++ dansguardian-2.10.1.1/debian/NEWS @@ -0,0 +1,50 @@ +dansguardian (2.9.9.3-1) unstable; urgency=low + + This is the first upload of the new dansguardian 2.9 tree. It changes + several things: + + - there is no loger a patch needed for antivirussupport. Unfortunatly + that means that the old configuration syntax is not valid any more. + On the other hand this version has support for icap and + commandlinescanners. For configuration details see + /etc/dansguardian/contentscanners. + + - Nearly all configuration files were moved to /etc/dansguardian/lists. + I did my beѕt to made the migration as painless as possible. But if you + renamed filterfiles or had custom ones they could not get moved + automatically. Please look into /etc/dansguardian/lists and + /etc/dansguardian⁄dansgardianf1.conf how to integrate them into + Dansguardian 2.9. + + - Since there were so many changes and new features its recommended to + start with a new config (this means dansguardian.conf and + dansguardianf1.conf, not your filter files). An automatic migration is + unfortunatly not possible. + + -- Alexander Wirt Mon, 24 Mar 2008 15:55:54 +0100 + +dansguardian (2.8.0.6-antivirus-6.4.4-1) unstable; urgency=low + + The option tricklescanlength has been renamed to forkscanlength. + Please change this in your configuration file. + + -- Alexander Wirt Sun, 22 Oct 2006 17:49:05 +0200 + +dansguardian (2.8.0.6-antivirus-6.3.8-1) unstable; urgency=low + + I included Aecio F. Neto antiviruspatch for dansguardian, this makes it + possible to scan websites and file for viruses using the clamav engine. + You will have to adapt your config with the new antivirus options. See + /usr/share/doc/README.AV for more informations. + Its not possible to use clamd or kapersky antivirus with the debian package, + because the code has to be patched to get another engine working. + + -- Alexander Wirt Thu, 18 Aug 2005 09:11:10 +0200 +dansguardian (2.9.9.3-1) unstable; urgency=low + + The option tricklescanlength has been renamed to forkscanlength. + Please change this in your configuration file. + + + + -- Alexander Wirt Mon, 24 Mar 2008 15:55:54 +0100 --- dansguardian-2.10.1.1.orig/debian/README.source +++ dansguardian-2.10.1.1/debian/README.source @@ -0,0 +1,2 @@ +I use dpatch for patch handling inside the dansguardian package. Please see +/usr/share/doc/dpatch/README.source.gz (if you have installed dpatch) for documentation about dpatch. --- dansguardian-2.10.1.1.orig/debian/rules +++ dansguardian-2.10.1.1/debian/rules @@ -0,0 +1,150 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Include dpatch stuff. +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) + +#ifeq ($(DEB_HOST_ARCH),ia64) +# CC = gcc-2.96 +# CXX = g++-2.96 +#else +# CC = gcc-2.95 +# CXX = g++-2.95 +#endif + +ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH),alpha ia64 s390)) + CXX += -DUSE_SOCKLEN_TYPE +endif + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + cp -p /usr/share/misc/config.* . + # Add here commands to configure the package. + CC=$(CC) CXX="$(CXX)" /bin/bash ./configure \ + --mandir=/usr/share/man/ \ + --enable-clamav=yes \ + --enable-clamd=yes \ + --with-proxyuser=dansguardian \ + --with-proxygroup=dansguardian \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-icap=yes \ + --enable-commandline=yes \ + --enable-trickledm=yes \ + --enable-email=yes \ + --enable-ntlm=yes + +#--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) + touch configure-stamp + + +build: build-stamp + +build-stamp: patch-stamp configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) CPP="$(CXX)" + #/usr/bin/docbook-to-man debian/dansguardian-2.2.10.sgml > dansguardian-2.2.10.1 + + touch build-stamp + +clean: clean1 unpatch +clean1: unpatch configure-stamp + dh_testdir + dh_testroot + rm -f configure-stamp build-stamp + rm -rf debian/tmp + rm -f config.guess config.sub + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs \ + usr/share/doc/dansguardian \ + var/lock/subsys + + # Installing lintian overrides + for LINTIAN in debian/lintian/*; \ + do \ + install -D -m 644 $$LINTIAN debian/`basename $$LINTIAN`/usr/share/lintian/overrides/`basename $$LINTIAN` || exit 1; \ + done + + # Add here commands to install the package into debian/dansguardian-2.2.10. + $(MAKE) install DESTDIR=$(CURDIR)/debian/dansguardian + + #gunzip -c dansguardian.8.gz | gzip -9c > \ + # debian/dansguardian/usr/share/man/man8/dansguardian.8.gz + + mv debian/dansguardian/usr/share/dansguardian/languages/ debian/dansguardian/etc/dansguardian/ + mv debian/dansguardian/usr/share/dansguardian/dansguardian.pl debian/dansguardian/usr/lib/cgi-bin/ + chmod 755 debian/dansguardian/usr/lib/cgi-bin/dansguardian.pl + + #this are useless for debian + rm -rf debian/dansguardian/usr/share/dansguardian/scripts/ + rm -f debian/dansguardian/etc/dansguardian/logrotation + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +clean: clean1 unpatch +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu + dh_installlogrotate + dh_installinit --error-handler=init_failed + dh_installcron + dh_installman + dh_installinfo + dh_install +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install \ + patch unpatch --- dansguardian-2.10.1.1.orig/debian/copyright +++ dansguardian-2.10.1.1/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Jonathan Hall on +Mon, 17 Jun 2002 21:14:35 -0500. + +It as downloaded from http://dansguardian.org/ + +Upstream Author: Daniel Barron + +Copyright (c) 2001-2010 Daniel Barron + +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 2 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, write to the Free Software Foundation, Inc., 51 Franklin +St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete +text of the GNU General Public License, can be found in +/usr/share/common-licenses/GPL. + --- dansguardian-2.10.1.1.orig/debian/watch +++ dansguardian-2.10.1.1/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://dansguardian.org/downloads/2/Stable/dansguardian-(.*)\.tar\.gz --- dansguardian-2.10.1.1.orig/debian/README.Debian +++ dansguardian-2.10.1.1/debian/README.Debian @@ -0,0 +1,28 @@ +LICENSING ISSUES +================ +Thanks to Daniel Barron for this piece of software! + +Although this software is released under the GPL, and is therefore free for +anyone to use for any purpose, Daniel has made commercial licenses of this +software available for those who require another license for their purposes. +Please visit http://www.dansguardian.org/?page=copyright2 for details. + +If you use this software commercially, or if you just feel like making a +donation, you are encouraged to make a donation to Daniel to support +development of this software. + +Commercial support services are also available from Daniel for those +needeing them. Please visit http://www.dansguardian.org/?page=pricing#CS +for details. + + +DOCUMENTATION +============= +Available documentation can be found at +http://www.dansguardian.org/?page=documentation + +The DansGuardian FAQ is at http://www.dansguardian.org/?page=faq + +Some useful HOWTOs that cover specific implimentations of DansGuardian and +caching/filtering in general can be found at +http://www.dansguardian.org/?page=howto --- dansguardian-2.10.1.1.orig/debian/contentregexplist +++ dansguardian-2.10.1.1/debian/contentregexplist @@ -0,0 +1,12 @@ +#Content modifying Regular Expressions +# +# The format is: "extended regular expression"->"replacement straight string" +# E.g. "shit"->"censored" would replace all occurances of shit in any case. +# Far more complicated matches are possible. See other sources for examples +# of extended regular expressions. + +# These are just some weak examples. If you write any, for example, to +# remove popups etc, please send them to author at dansguardian.org. + +#"