--- havp-0.85.orig/debian/havp.config +++ havp-0.85/debian/havp.config @@ -0,0 +1,30 @@ +#!/bin/sh -e + +CONFIGFILE=/etc/default/havp + +. /usr/share/debconf/confmodule + +# Load config file, if it exists. +if [ -e $CONFIGFILE ]; then + . $CONFIGFILE || true + db_set havp/loopback_mount $USE_LOOPBACK +fi + +db_input medium havp/loopback_mount || true + +db_go || true + +db_get havp/loopback_mount +if [ "$RET" = "true" ]; then + # may do something like this in the future to find a good default + + #havp_partition=$havp_dir + #until [ "`df -h | grep \" \"$havp_partition\"$\"`" ]; do + # havp_partition=`dirname $havp_partition`; + #done + + #havp_loopsize=`df | grep " "$havp_partition"$" | awk '{print $4/2}' | sed 's/\..*//'` + + db_input medium havp/loopback_size || true + db_go || true +fi --- havp-0.85.orig/debian/rules +++ havp-0.85/debian/rules @@ -0,0 +1,109 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# 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) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: patch configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" CPPFLAGS="-I/usr/include/openssl" \ + ./configure \ + --enable-ssl-tunnel \ + --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr --mandir=\$${prefix}/share/man \ + --sysconfdir=/etc --infodir=\$${prefix}/share/info \ + --localstatedir=/var + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + docbook-to-man debian/havp.sgml > havp.1 + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp config.status + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -f config.sub config.guess config.status config.log + + # and make sure that templates are up-to-date + debconf-updatepo + po2debconf debian/havp.templates.master > debian/havp.templates + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/havp. + $(MAKE) install DESTDIR=$(CURDIR)/debian/havp + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdebconf + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_installinit + dh_installman havp.1 + dh_link + dh_strip + dh_compress + dh_fixperms -Xvar/run -Xvar/log -Xvar/lib -Xvar/spool + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- havp-0.85.orig/debian/havp.postrm +++ havp-0.85/debian/havp.postrm @@ -0,0 +1,49 @@ +#! /bin/sh +# postrm script for havp +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + + groupdel havp >/dev/null 2>&1 || true + deluser --remove-home havp > /dev/null 2>&1 || true + + if [ "`mount | grep ^/var/lib/havp/havp.loop`" ]; then + umount /var/lib/havp/havp.tmp + rm /var/lib/havp/havp.tmp + rm /etc/default/havp + fi + + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- havp-0.85.orig/debian/control +++ havp-0.85/debian/control @@ -0,0 +1,33 @@ +Source: havp +Section: net +Priority: optional +Maintainer: Rene Mayrhofer +Build-Depends: debhelper (>= 4.0.0), autotools-dev, libssl-dev, libclamav-dev, dpatch, docbook-to-man, po-debconf +Standards-Version: 3.7.2.1 + +Package: havp +Architecture: any +Pre-Depends: debconf | debconf-2.0 +Depends: ${shlibs:Depends}, ${misc:Depends}, adduser +Recommends: clamav-freshclam +Suggests: squid +Description: HTTP Anti Virus Proxy + HAVP (HTTP Antivirus Proxy) is a proxy with a ClamAV anti-virus scanner. The + main aims are continuous, non-blocking downloads and smooth scanning of + dynamic and password protected HTTP traffic. Havp antivirus proxy has a + parent and transparent proxy mode. It can be used with squid or standalone. + . + - HTTP Antivirus proxy + - Scans complete incoming traffic + - Nonblocking downloads + - Smooth scanning of dynamic and password protected traffic + - Can used with squid or other proxy + - Parent proxy support + - Transparent proxy support + - Logfile + - Process change to defined user and group + - Daemon + - Use Clamav (GPL antivirus) + - Operating System: Linux + - Written in C++ + - Released under GPL --- havp-0.85.orig/debian/copyright +++ havp-0.85/debian/copyright @@ -0,0 +1,11 @@ +This package was debianized by Rene Mayrhofer on +Wed, 18 May 2005 20:16:31 +0200. + +It was downloaded from http://www.server-side.de/download.htm + +Copyright Holder: Christian Hilgers + +License: + +This software is licensed under the GNU GPL. On Debian GNU/Linux systems, you +can find the license under /usr/share/common-licenses/GPL --- havp-0.85.orig/debian/compat +++ havp-0.85/debian/compat @@ -0,0 +1 @@ +4 --- havp-0.85.orig/debian/NEWS.Debian +++ havp-0.85/debian/NEWS.Debian @@ -0,0 +1,9 @@ +havp (0.79-1) unstable; urgency=medium + + Starting with this upstream version of HAVP, multipled scanners are now + supported. This means that different scanners can be enabled in + /etc/havp/havp.config. The default for this Debian package is to only enable + the use of libclamav (which must be installed since the package depends on + it). If you want other scanners, please modify the config file. + + -- Rene Mayrhofer Sat, 15 Apr 2006 21:32:36 +0100 --- havp-0.85.orig/debian/havp.templates +++ havp-0.85/debian/havp.templates @@ -0,0 +1,19 @@ +Template: havp/loopback_mount +Type: boolean +Default: true +Description: Do you want to create a loopback spool filesystem? + HAVP strictly requires the file system where it stores its temporary files + during scanning to support mandatory locking. Many of the standard Linux + file systems support this, but do not enable it by default. + . + To use HAVP, there are two options: either mount the filesystem that contains + /var/spool/havp with the option "mand", or create a loopback filesystem that + is mounted at /var/spool/havp only for HAVP. Answer yes to this question if + you don't know what this is about or don't care, but answer no if you need + high performance. + +Template: havp/loopback_size +Type: string +Default: 100 +Description: Which size should the loopback filesystem have? + Please enter the size of the loopback filesystem to be created in MB. --- havp-0.85.orig/debian/havp.dirs +++ havp-0.85/debian/havp.dirs @@ -0,0 +1,3 @@ +usr/sbin +var/lib/havp +var/spool/havp --- havp-0.85.orig/debian/patches/01_Makefile.in.dpatch +++ havp-0.85/debian/patches/01_Makefile.in.dpatch @@ -0,0 +1,68 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_Makefile.in.dpatch by +## adapted and cleaned up by Rene Mayrhofer +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Replace Makefile.in + +@DPATCH@ + +--- havp-0.85/havp/Makefile.in.orig 2007-03-13 12:12:31.844670174 +0100 ++++ havp-0.85/havp/Makefile.in 2007-03-13 12:14:04.412708542 +0100 +@@ -1,11 +1,14 @@ + CXX = @CXX@ +-CFLAGS = @CFLAGS@ ++CFLAGS = @CFLAGS@ -Wall + LDFLAGS = @LDFLAGS@ + DEFINES = @DEFS@ + INSTALL = ../install-sh + + prefix = @prefix@ +-etcdir = @prefix@/etc/havp ++exec_prefix = @exec_prefix@ ++sbindir = @sbindir@ ++etcdir = @sysconfdir@ ++localstatedir = @localstatedir@ + + OBJECTS = helper.o logfile.o scannerhandler.o connectiontobrowser.o \ + genericscanner.o httphandler.o params.o sockethandler.o \ +@@ -21,23 +24,26 @@ + $(CXX) $(CFLAGS) $(DEFINES) -c -o $@ $< + + install: all +- $(INSTALL) -m 755 -d $(prefix)/sbin +- $(INSTALL) -m 755 -d $(etcdir) +- $(INSTALL) -s -m 755 havp $(prefix)/sbin/havp +- $(INSTALL) -m 644 ../etc/havp/havp.config $(etcdir)/havp.config.default +- if [ ! -f $(etcdir)/havp.config ]; then \ +- $(INSTALL) -m 644 ../etc/havp/havp.config $(etcdir)/havp.config; \ ++ $(INSTALL) -d $(DESTDIR)$(sbindir) ++ $(INSTALL) -s -m 755 havp $(DESTDIR)$(sbindir)/havp ++ $(INSTALL) -d -m 755 $(DESTDIR)$(localstatedir)/log/havp/ ++ $(INSTALL) -d -m 755 $(DESTDIR)$(localstatedir)/run/havp/ ++ $(INSTALL) -d -m 755 $(DESTDIR)$(localstatedir)/lib/havp/ ++ $(INSTALL) -d -m 755 $(DESTDIR)$(localstatedir)/spool/havp/ ++ $(INSTALL) -m 644 ../etc/havp/havp.config $(DESTDIR)$(etcdir)/havp/havp.config.default ++ @if [ ! -f $(DESTDIR)$(etcdir)/havp/havp.config ]; then \ ++ $(INSTALL) -m 644 ../etc/havp/havp.config $(DESTDIR)$(etcdir)/havp/havp.config; \ + else \ +- ../update-conf $(etcdir)/havp.config; \ ++ ../update-conf $(DESTDIR)$(etcdir)/havp/havp.config; \ + fi +- if [ ! -f $(etcdir)/whitelist ]; then \ +- $(INSTALL) -m 644 ../etc/havp/whitelist $(etcdir)/whitelist; \ ++ @if [ ! -f $(DESTDIR)$(etcdir)/havp/whitelist ]; then \ ++ $(INSTALL) -m 644 ../etc/havp/whitelist $(DESTDIR)$(etcdir)/havp/whitelist; \ + fi +- if [ ! -f $(etcdir)/blacklist ]; then \ +- $(INSTALL) -m 644 ../etc/havp/blacklist $(etcdir)/blacklist; \ ++ @if [ ! -f $(DESTDIR)$(etcdir)/havp/blacklist ]; then \ ++ $(INSTALL) -m 644 ../etc/havp/blacklist $(DESTDIR)$(etcdir)/havp/blacklist; \ + fi +- cp -r ../etc/havp/templates $(etcdir) +- chmod -R a+rX $(etcdir)/templates ++ cp -r ../etc/havp/templates $(DESTDIR)$(etcdir)/havp ++ chmod -R 644 $(DESTDIR)$(etcdir)/havp/templates/*/* + + @echo "" + @echo "HAVP installed - see documentation for needed extra steps" --- havp-0.85.orig/debian/patches/04_params.cpp.dpatch +++ havp-0.85/debian/patches/04_params.cpp.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 04_params.cpp.dpatch by +## adapted and cleaned up by Rene Mayrhofer +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Set PID file and SCANTEMPFILE to correct locations + +@DPATCH@ + +--- havp-0.85/havp/params.cpp.orig 2007-03-13 11:50:45.812848266 +0100 ++++ havp-0.85/havp/params.cpp 2007-03-13 11:51:19.209457684 +0100 +@@ -62,7 +62,7 @@ + SetConfig("BLACKLIST", BLACKLISTFILE); + SetConfig("TEMPLATEPATH", TEMPLATEPATH); + SetConfig("TEMPDIR", "/var/tmp"); +- SetConfig("SCANTEMPFILE", "/var/tmp/havp/havp-XXXXXX"); ++ SetConfig("SCANTEMPFILE", "/var/spool/havp/havp-XXXXXX"); + SetConfig("PIDFILE", "/var/run/havp/havp.pid"); + SetConfig("TRANSPARENT", "false"); + SetConfig("RANGE", "false"); --- havp-0.85.orig/debian/patches/00list +++ havp-0.85/debian/patches/00list @@ -0,0 +1,4 @@ +01_Makefile.in +02_configure +03_havp.config +04_params.cpp --- havp-0.85.orig/debian/patches/03_havp.config.dpatch +++ havp-0.85/debian/patches/03_havp.config.dpatch @@ -0,0 +1,72 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 03_havp.config.dpatch by +## adapted and cleaned up by Rene Mayrhofer +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Set PID file and SCANTEMPFILE to correct locations + +@DPATCH@ + +--- havp-0.85/etc/havp/havp.config.orig 2007-03-13 11:49:25.482732863 +0100 ++++ havp-0.85/etc/havp/havp.config 2007-03-13 11:50:33.667542226 +0100 +@@ -16,7 +16,7 @@ + # You must remove this line for HAVP to start. + # This makes sure you have (hopefully) reviewed the configuration. :) + # Hint: You must enable some scanner! Find them in the end.. +-REMOVETHISLINE deleteme ++# REMOVETHISLINE deleteme + + # + # For reasons of security it is recommended to run a proxy program +@@ -103,7 +103,7 @@ + # These characters are used by system to create unique named files. + # + # Default: +-# SCANTEMPFILE /var/tmp/havp/havp-XXXXXX ++# SCANTEMPFILE /var/spool/havp/havp-XXXXXX + + # + # Directory for ClamAV and other scanner created tempfiles. +@@ -187,7 +187,7 @@ + # Path to template files. + # + # Default: +-# TEMPLATEPATH /usr/local/etc/havp/templates/en ++# TEMPLATEPATH /etc/havp/templates/en + + # + # Set to true if you want to prefer Whitelist. +@@ -201,13 +201,13 @@ + # List of URLs not to scan. + # + # Default: +-# WHITELIST /usr/local/etc/havp/whitelist ++# WHITELIST /etc/havp/whitelist + + # + # List of URLs that are denied access. + # + # Default: +-# BLACKLIST /usr/local/etc/havp/blacklist ++# BLACKLIST /etc/havp/blacklist + + # + # Is scanner error fatal? +@@ -342,14 +342,14 @@ + ##### ClamAV Library Scanner (libclamav) + ##### + +-ENABLECLAMLIB false ++ENABLECLAMLIB true + + # HAVP uses libclamav hardcoded pattern directory, which usually is +-# /usr/local/share/clamav. You only need to set CLAMDBDIR, if you are ++# /usr/share/clamav. You only need to set CLAMDBDIR, if you are + # using non-default DatabaseDirectory setting in clamd.conf. + # + # Default: NONE +-# CLAMDBDIR /path/to/directory ++# CLAMDBDIR /var/lib/clamav + + # Should we block encrypted archives? + # --- havp-0.85.orig/debian/patches/02_configure.dpatch +++ havp-0.85/debian/patches/02_configure.dpatch @@ -0,0 +1,34 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_configure.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Make configure aware of sysconfdir + +@DPATCH@ + +--- havp-0.85/configure.orig 2007-03-12 21:01:55.427765357 +0100 ++++ havp-0.85/configure 2007-03-12 21:04:09.049279267 +0100 +@@ -2578,19 +2578,19 @@ + + test "$prefix" = "NONE" && prefix=/usr/local + cat >>confdefs.h <<_ACEOF +-#define CONFIGFILE "$prefix/etc/havp/havp.config" ++#define CONFIGFILE "$sysconfdir/havp/havp.config" + _ACEOF + + cat >>confdefs.h <<_ACEOF +-#define WHITELISTFILE "$prefix/etc/havp/whitelist" ++#define WHITELISTFILE "$sysconfdir/havp/whitelist" + _ACEOF + + cat >>confdefs.h <<_ACEOF +-#define BLACKLISTFILE "$prefix/etc/havp/blacklist" ++#define BLACKLISTFILE "$sysconfdir/havp/blacklist" + _ACEOF + + cat >>confdefs.h <<_ACEOF +-#define TEMPLATEPATH "$prefix/etc/havp/templates/en" ++#define TEMPLATEPATH "$sysconfdir/havp/templates/en" + _ACEOF + + --- havp-0.85.orig/debian/po/POTFILES.in +++ havp-0.85/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] havp.templates.master --- havp-0.85.orig/debian/po/templates.pot +++ havp-0.85/debian/po/templates.pot @@ -0,0 +1,55 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: rene.mayrhofer@gibraltar.at\n" +"POT-Creation-Date: 2007-03-16 14:48+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../havp.templates.master:1001 +msgid "Do you want to create a loopback spool filesystem?" +msgstr "" + +#. Type: boolean +#. Description +#: ../havp.templates.master:1001 +msgid "" +"HAVP strictly requires the file system where it stores its temporary files " +"during scanning to support mandatory locking. Many of the standard Linux " +"file systems support this, but do not enable it by default." +msgstr "" + +#. Type: boolean +#. Description +#: ../havp.templates.master:1001 +msgid "" +"To use HAVP, there are two options: either mount the filesystem that " +"contains /var/spool/havp with the option \"mand\", or create a loopback " +"filesystem that is mounted at /var/spool/havp only for HAVP. Answer yes to " +"this question if you don't know what this is about or don't care, but answer " +"no if you need high performance." +msgstr "" + +#. Type: string +#. Description +#: ../havp.templates.master:2001 +msgid "Which size should the loopback filesystem have?" +msgstr "" + +#. Type: string +#. Description +#: ../havp.templates.master:2001 +msgid "Please enter the size of the loopback filesystem to be created in MB." +msgstr "" --- havp-0.85.orig/debian/havp.templates.master +++ havp-0.85/debian/havp.templates.master @@ -0,0 +1,19 @@ +Template: havp/loopback_mount +Type: boolean +Default: true +_Description: Do you want to create a loopback spool filesystem? + HAVP strictly requires the file system where it stores its temporary files + during scanning to support mandatory locking. Many of the standard Linux + file systems support this, but do not enable it by default. + . + To use HAVP, there are two options: either mount the filesystem that contains + /var/spool/havp with the option "mand", or create a loopback filesystem that + is mounted at /var/spool/havp only for HAVP. Answer yes to this question if + you don't know what this is about or don't care, but answer no if you need + high performance. + +Template: havp/loopback_size +Type: string +Default: 100 +_Description: Which size should the loopback filesystem have? + Please enter the size of the loopback filesystem to be created in MB. --- havp-0.85.orig/debian/havp.postinst +++ havp-0.85/debian/havp.postinst @@ -0,0 +1,91 @@ +#! /bin/sh +# postinst script for havp +# +# see: dh_installdeb(1) + +CONFIGFILE=/etc/default/havp + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +. /usr/share/debconf/confmodule + +case "$1" in + configure) + # create havp group and user + if ! getent group havp >/dev/null; then + addgroup --system havp || true + fi + if ! getent passwd havp >/dev/null; then + adduser --quiet --system --no-create-home \ + --home /var/run/havp --ingroup havp havp || true + chown havp:havp /var/run/havp + chown havp:havp /var/log/havp + chown havp:havp /var/lib/havp + chown havp:havp /var/spool/havp + fi + + if [ ! -e $CONFIGFILE ]; then + echo "# Use a loopback mount for the scanner files?" > $CONFIGFILE + echo "USE_LOOPBACK=" >> $CONFIGFILE + fi + + db_get havp/loopback_mount + if [ "$RET" = "true" ]; then + # restore if it's no longer there + cp -a -f $CONFIGFILE $CONFIGFILE.tmp + grep -Eq '^ *USE_LOOPBACK=' $CONFIGFILE || echo "USE_LOOPBACK=" >> $CONFIGFILE + # set + sed -e "s/^ *USE_LOOPBACK=.*/USE_LOOPBACK=\"$RET\"/" < $CONFIGFILE > $CONFIGFILE.tmp + mv -f $CONFIGFILE.tmp $CONFIGFILE + + havp_dir=/var/lib/havp + havp_loopback=$havp_dir/havp.loop + havp_mountpoint=/var/spool/havp + + if [ -f $havp_loopback ]; then + echo "There is already "$havp_loopback", maybe from an earlier or custom installation, not building loopback-device" + else + db_get havp/loopback_size + havp_loopsize=`expr $RET \* 1024` + echo -n "Using "$havp_loopsize" kilobytes for building loopback-device "$havp_loopback" with mandatory locks, this MAY take a little while so please be patient... " + + dd if=/dev/zero of=$havp_loopback bs=1024 count=$havp_loopsize >/dev/null 2>&1 + mkfs.ext3 -F $havp_loopback >/dev/null 2>&1 + echo "building loopback-device finished!" + fi + fi + # finished with debconf, close properly... + db_stop + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- havp-0.85.orig/debian/watch +++ havp-0.85/debian/watch @@ -0,0 +1,6 @@ +# See uscan(1) for format + +# Compulsory line, this is a version 2 file +version=2 + +http://www.server-side.de/download.htm havp-(.*)\.tar\.gz --- havp-0.85.orig/debian/havp.docs +++ havp-0.85/debian/havp.docs @@ -0,0 +1 @@ +INSTALL --- havp-0.85.orig/debian/svn-deblayout +++ havp-0.85/debian/svn-deblayout @@ -0,0 +1,8 @@ +buildArea=/home/rene/amw/src/packages/build-area +origDir=/home/rene/amw/src/packages/tarballs +origUrl=svn+ssh://svn.gibraltar.at/svn/debian-packages/trunk/debian/tarballs +tagsUrl=svn+ssh://svn.gibraltar.at/svn/debian-packages/tags/debian/havp +trunkDir=/home/rene/amw/src/packages/havp +trunkUrl=svn+ssh://svn.gibraltar.at/svn/debian-packages/trunk/debian/havp +upsCurrentUrl=svn+ssh://svn.gibraltar.at/svn/debian-packages/branches/source-dist/debian/havp +upsTagUrl=svn+ssh://svn.gibraltar.at/svn/debian-packages/tags/debian/havp --- havp-0.85.orig/debian/havp.init +++ havp-0.85/debian/havp.init @@ -0,0 +1,119 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: havp +# Required-Start: $network +# Required-Stop: +# Should-Start: $named $time +# Default-Start: 2 3 4 5 +# Default-Stop: 0 6 +# Short-Description: HAVP virus-scanning HTTP proxy +# Description: HAVP is a HTTP proxy that transparently scans all traffic for +# viruses and blocks all infected files. +### END INIT INFO +# +# havp Init script for the HAVP proxy server, based on skeleton. +# +# Adapted from skeleton by Rene Mayrhofer + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +NAME=havp +DESC=havp +DAEMON=/usr/sbin/$NAME +PIDFILE=/var/run/$NAME/$NAME.pid + +test -x $DAEMON || exit 0 + +# Include havp defaults if available +if [ -f /etc/default/havp ] ; then + . /etc/default/havp +fi + +havp_dir=/var/lib/havp +havp_loopback=$havp_dir/havp.loop +havp_mountpoint=/var/spool/havp + +set -e + +case "$1" in + start) + if [ x"$USE_LOOPBACK" = x"true" -a -e $havp_loopback ] && \ + ! [ "`mount | grep ^$havp_loopback`" ]; then + echo -n "Mounting $havp_loopback under $havp_mountpoint ..." + mount -o rw,mand,loop $havp_loopback $havp_mountpoint + chown -R havp:havp $havp_mountpoint + echo "done" + fi + echo -n "Starting $DESC: " + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + stop) + if $0 status; then + echo -n "Stopping $DESC: " + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON + echo "$NAME." + fi + + if [ x"$USE_LOOPBACK" = x"true" ] && [ "`mount | grep ^$havp_loopback`" ]; then + echo -n "Unmounting $havp_mountpoint ..." + umount $havp_mountpoint + echo "done" + fi + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: " + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec $DAEMON || true + sleep 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE \ + --exec $DAEMON -- $DAEMON_OPTS + echo "$NAME." + ;; + status) + if [ ! -r $PIDFILE ]; then + # no pid file, process doesn't seem to be running correctly + exit 3 + fi + PID=`cat $PIDFILE | sed 's/ //g'` + EXE=/proc/$PID/exe + if [ -x "$EXE" ] && + [ "`ls -l \"$EXE\" | cut -d'>' -f2,2 | cut -d' ' -f2,2`" = \ + "$DAEMON" ]; then + # ok, process seems to be running + exit 0 + elif [ -r $PIDFILE ]; then + # process not running, but pidfile exists + exit 1 + else + # no lock file to check for, so simply return the stopped status + exit 3 + fi + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- havp-0.85.orig/debian/havp.sgml +++ havp-0.85/debian/havp.sgml @@ -0,0 +1,161 @@ + manpage.1'. You may view + the manual page with: `docbook-to-man manpage.sgml | nroff -man | + less'. A typical entry in a Makefile or Makefile.am is: + +manpage.1: manpage.sgml + docbook-to-man $< > $@ + + + The docbook-to-man binary is found in the docbook-to-man package. + Please remember that if you create the nroff version in one of the + debian/rules file targets (such as build), you will need to include + docbook-to-man in your Build-Depends control field. + + --> + + + Michael"> + Fladischer"> + + März 13, 2007"> + + 1"> + mfladischer@fladi.at"> + + HAVP"> + + + Debian"> + GNU"> + GPL"> +]> + + + +
+ &dhemail; +
+ + &dhfirstname; + &dhsurname; + + + 2003 + &dhusername; + + &dhdate; +
+ + &dhucpackage; + + &dhsection; + + + &dhpackage; + + &dhpackage; (HTTP Antivirus Proxy) is a proxy with a + ClamAV anti-virus scanner. + + + + &dhpackage; + + + + + + + DESCRIPTION + + This manual page documents briefly the + &dhpackage; command. + + This manual page was written for the &debian; distribution + because the original program does not have a manual page. + + The main aims of &dhpackage; are continuous, + non-blocking downloads and smooth scanning of dynamic and password + protected HTTP traffic. Havp antivirus proxy has a parent and + transparent proxy mode. It can be used with squid + or standalone. + + + + OPTIONS + + These programs follow the usual &gnu; command line syntax, + with long options starting with two dashes (`-'). A summary of + options is included below. + + + + + + + + Use this config file. + + + + + + + + Show summary of options. + + + + + + + + Show configuration &dhpackage; is using. + + + + + + SEE ALSO + + squid (1), clamav (1). + + + + AUTHOR + + This manual page was written by &dhusername; &dhemail; for + the &debian; system (but may be used by others). Permission is + granted to copy, distribute and/or modify this document under + the terms of the &gnu; General Public License, Version 2 any + later version published by the Free Software Foundation. + + + On Debian systems, the complete text of the GNU General Public + License can be found in /usr/share/common-licenses/GPL. + + + +
+ + + + --- havp-0.85.orig/debian/changelog +++ havp-0.85/debian/changelog @@ -0,0 +1,118 @@ +havp (0.85-1ubuntu1) gutsy; urgency=low + + * Merge from Debian unstable. + * debian/control: + - Re-Added XSBC Maintainer field + - Changed Description according to LP #109958 + + -- Stephan Hermann Sat, 5 May 2007 15:12:42 +0200 + +havp (0.85-1) unstable; urgency=low + + This is the "two Austrians independently submit patches to the slacking + Austrian maintainer" release. Thanks for the help, which was surprisingly + nearly orthogonal so that I could integrate both patches! + * New upstream release, fixes compilation with libclamav 0.90. Now + build-depend on libclamav-dev instead of libclamav1-dev. + Closes: #409690: FTBFS: 'cl_loaddbdir' was not declared in this scope + * Move run-time files from /var/tmp/havp to /var/spool/havp, which is still + not ideal but my current interpretation of FHS 2.3 in the context of what + havp is doing with these files (temporary storage for the scanner + threads). + Closes: #400218: havp: install directory in /var/tmp + * Add debconf question about automatic creation of loopback filesystem. This + creates a filesystem of user-defined size under /var/lib/state and mounts + it at /var/spool/havp with mandatory locking support. In my interpretation + of FHS 2.3, this is the best placement, but please feel free to comment. + Now pre-depend on debconf and build-depend on po-debconf. + Closes: #400218: havp: install directory in /var/tmp + Closes: #381113 Problem removing havp + * Make init script support the status command and only try to stop havp when + it is considered to be running. + Prevents future instances of: #381113 Problem removing havp + Integrate parts of a patch by Michael Fladischer, many thanks! + * Bump Standards-Version to 3.7.2.1, no changes. + * Add suggests: squid. + * Fix my messed up long description formatting. + Closes: #350681: havp: poorly formatted description + * Fix typo in LSB header of init script. + * Add a manual page, now build-depend on docbook-to-man. + * Also migrate this package to use dpatch, now build-depend on dpatch. + Integrate and rework parts of a patch by Harald Jenny, many thanks! + * Support automatic creation of a loopback filesystem to solve the problem + of required mandatory locks for temporary files. However, mounting and + unmounting is done by the init script and not via fstab, which seems + "safer" to me (havp mount errors for its temporary storage should not + prevent the whole system but just havp from starting). + * Enable SSL passing support (--enable-ssl-tunnel configure option). + + -- Rene Mayrhofer Fri, 16 Mar 2007 11:43:14 +0000 + +havp (0.84-1) unstable; urgency=low + + * New upstream release. + + -- Rene Mayrhofer Sun, 25 Feb 2007 20:07:43 +0000 + +havp (0.82-1ubuntu1) feisty; urgency=low + + * havp/scanners/clamlibscanner.cpp: + Apply patch from Stephen Gran to fix FTBFS with clamav >= 0.90. + (Patch taken from Debian bug #409690) + * debian/control: + - Build-depend on libclamav-dev instead of libclamav1-dev. + - Change Maintainer/XSBC-Original-Maintainer field. + + -- Michael Bienia Fri, 2 Mar 2007 16:56:52 +0100 + +havp (0.82-1) unstable; urgency=low + + * New upstream release. + + -- Rene Mayrhofer Wed, 2 Aug 2006 21:13:16 +0100 + +havp (0.79-1) unstable; urgency=low + + * New upstream release. This is the first release to support multiple + scanners (selectable at run-time instead of compile-time). + Closes: Bug#364728: new version for havp + + -- Rene Mayrhofer Sat, 15 Apr 2006 21:32:36 +0100 + +havp (0.76-2) unstable; urgency=low + + * Corrected location of PID file in init script. + Since I forgot to duplicate this line in the last changelog entry (which + was the first upload to unstable), do it now: + Closes: #304530: RFP: havp -- HAVP (HTTP Anti-Virus Proxy) is a proxy + with a clamav antivirus scanner + + -- Rene Mayrhofer Tue, 10 Jan 2006 13:34:57 +0000 + +havp (0.76-1) unstable; urgency=low + + * New upstream release. This should fix problems with partial HTTP requests, + like e.g. apt-get is using them. + * Bump standards version to 3.6.2.2. + * Remove config.status and config.log in the clean target to get a clean + source package. + * Correct permissions of HTML templates files. + * Changed the location for temporary files created during scanning from + /var/tmp/havp to /var/run/havp, which is how I read the FHS. + + -- Rene Mayrhofer Sat, 7 Jan 2006 20:29:59 +0000 + +havp (0.74-1) unstable; urgency=low + + * New upstream release. + Closes: #304530: RFP: havp -- HAVP (HTTP Anti-Virus Proxy) is a proxy + with a clamav antivirus scanner + + -- Rene Mayrhofer Thu, 8 Dec 2005 14:34:35 +0000 + +havp (0.73-1) unstable; urgency=low + + * Initial Release. + + -- Rene Mayrhofer Thu, 3 Nov 2005 12:16:31 +0000 +