--- havp-0.74.orig/debian/control
+++ havp-0.74/debian/control
@@ -0,0 +1,30 @@
+Source: havp
+Section: net
+Priority: optional
+Maintainer: Rene Mayrhofer <rene.mayrhofer@gibraltar.at>
+Build-Depends: debhelper (>= 4.0.0), autotools-dev, libssl-dev, libclamav1-dev
+Standards-Version: 3.6.1
+
+Package: havp
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+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 incomming 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.74.orig/debian/dirs
+++ havp-0.74/debian/dirs
@@ -0,0 +1 @@
+usr/sbin
--- havp-0.74.orig/debian/compat
+++ havp-0.74/debian/compat
@@ -0,0 +1 @@
+4
--- havp-0.74.orig/debian/init.d
+++ havp-0.74/debian/init.d
@@ -0,0 +1,77 @@
+#! /bin/sh
+#
+# skeleton	example file to build /etc/init.d/ scripts.
+#		This file should be used to construct scripts for /etc/init.d.
+#
+#		Written by Miquel van Smoorenburg <miquels@cistron.nl>.
+#		Modified for Debian 
+#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+#		Modified for havp
+#		by Casper Gielen <casper@zvdk.nl>
+#
+# Version:	@(#)skeleton  1.9  26-Feb-2001  miquels@cistron.nl
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/havp
+NAME=havp
+DESC=havp
+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
+
+set -e
+
+case "$1" in
+  start)
+	echo -n "Starting $DESC: "
+	start-stop-daemon --start --quiet --pidfile $PIDFILE \
+		--exec $DAEMON -- $DAEMON_OPTS
+	echo "$NAME."
+	;;
+  stop)
+	echo -n "Stopping $DESC: "
+	start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+		--exec $DAEMON
+	echo "$NAME."
+	;;
+  #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
+	sleep 1
+	start-stop-daemon --start --quiet --pidfile $PIDFILE \
+		--exec $DAEMON -- $DAEMON_OPTS
+	echo "$NAME."
+	;;
+  *)
+	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.74.orig/debian/watch
+++ havp-0.74/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.74.orig/debian/changelog
+++ havp-0.74/debian/changelog
@@ -0,0 +1,14 @@
+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 <rene.mayrhofer@gibraltar.at>  Thu,  8 Dec 2005 14:34:35 +0000
+
+havp (0.73-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Rene Mayrhofer <rene.mayrhofer@gibraltar.at>  Thu, 3 Nov 2005 12:16:31 +0000
+
--- havp-0.74.orig/debian/docs
+++ havp-0.74/debian/docs
@@ -0,0 +1,2 @@
+todo
+install
--- havp-0.74.orig/debian/copyright
+++ havp-0.74/debian/copyright
@@ -0,0 +1,11 @@
+This package was debianized by Rene Mayrhofer <rmayr@debian.org> on
+Wed, 18 May 2005 20:16:31 +0200.
+
+It was downloaded from http://www.server-side.de/features.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.74.orig/debian/rules
+++ havp-0.74/debian/rules
@@ -0,0 +1,105 @@
+#!/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: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	CFLAGS="$(CFLAGS)" CPPFLAGS="-I/usr/include/openssl" \
+		./configure \
+		--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+		--prefix=/usr --mandir=\$${prefix}/share/man \
+		--sysconfdir=/etc --infodir=\$${prefix}/share/info
+
+
+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:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp config.status
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) distclean
+	rm -f config.sub config.guess
+
+	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_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms -Xvar/run -Xvar/log -Xvar/tmp
+#	dh_perl
+#	dh_python
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- havp-0.74.orig/havp/default.h.in
+++ havp-0.74/havp/default.h.in
@@ -45,10 +45,10 @@
   #endif
 #endif
 
-#define WHITELISTFILE "/usr/local/etc/havp/whitelist"
-#define BLACKLISTFILE "/usr/local/etc/havp/blacklist"
-#define TEMPLATEDIR  "/usr/local/etc/havp/templates/en"
-#define CONFIGFILE "/usr/local/etc/havp/havp.config"
+#define WHITELISTFILE "/etc/havp/whitelist"
+#define BLACKLISTFILE "/etc/havp/blacklist"
+#define TEMPLATEDIR  "/etc/havp/templates/en"
+#define CONFIGFILE "/etc/havp/havp.config"
 
 
 //Change to User and Group
--- havp-0.74.orig/havp/Makefile.in
+++ havp-0.74/havp/Makefile.in
@@ -15,19 +15,18 @@
 	$(CXX) -DHAVE_CONFIG_H -I. -I. -I.. $(CFLAGS) -o havp $(OBJECTS) @SCANNERLIB@
 
 install: all
-	install -d $(sbindir)
-	install -m 755 havp $(sbindir)/havp
-	install -d /var/log/havp/
-	install -d /var/tmp/havp/
-	install -d /var/run/havp/
-	chmod a+rw /var/run/havp/
-	install -d /etc/init.d/
-	install -m 755 ../etc/init.d/havp /etc/init.d/
-	install -m 644 -D ../etc/havp/havp.config $(etcdir)/havp/havp.config
-	install -m 644 -D ../etc/havp/whitelist $(etcdir)/havp/whitelist
-	install -m 644 -D ../etc/havp/blacklist $(etcdir)/havp/blacklist
+	install -d $(DESTDIR)$(sbindir)
+	install -m 755 havp $(DESTDIR)$(sbindir)/havp
+	install -m 755 -o nobody -d $(DESTDIR)/var/log/havp/
+	install -m 700 -o nobody -d $(DESTDIR)/var/tmp/havp/
+	install -m 755 -o nobody -d $(DESTDIR)/var/run/havp/
+	install -d $(DESTDIR)/etc/init.d/
+	install -m 755 ../etc/init.d/havp $(DESTDIR)/etc/init.d/
+	install -m 644 -D ../etc/havp/havp.config $(DESTDIR)$(etcdir)/havp/havp.config
+	install -m 644 -D ../etc/havp/whitelist $(DESTDIR)$(etcdir)/havp/whitelist
+	install -m 644 -D ../etc/havp/blacklist $(DESTDIR)$(etcdir)/havp/blacklist
 	@list='${lan_fils}'; for fil in $$list;do \
-	install -m 755 -D $$fil $(etcdir)/$${fil#../etc*}; \
+	install -m 755 -D $$fil $(DESTDIR)$(etcdir)/$${fil#../etc*}; \
 	done
 
 
