jailer (0.4-17) debian-dir only changes

Summary

 debian/Makefile.in           |  341 +++++++++++++++++++++++++++++--------------
 debian/README.Debian         |   19 ++
 debian/changelog             |  149 ++++++++++++++++++
 debian/compat                |    1 
 debian/control               |   16 +-
 debian/copyright             |   20 ++
 debian/dirs                  |    2 
 debian/docs                  |    3 
 debian/postinst-init-scripts |   60 +++++++
 debian/postrm-init-scripts   |   15 +
 debian/rules                 |   43 +----
 11 files changed, 519 insertions(+), 150 deletions(-)

    
download this patch

Patch contents

--- jailer-0.4.orig/debian/dirs
+++ jailer-0.4/debian/dirs
@@ -1 +1,3 @@
 usr/sbin
+etc/
+usr/share/man/
--- jailer-0.4.orig/debian/postinst-init-scripts
+++ jailer-0.4/debian/postinst-init-scripts
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+set -e
+
+
+#DEBHELPER#
+exit 0
+
+
+
+echo "Jailer contains pre-defined jails for BIND and for NTP."
+echo ""
+echo -n "Add BIND jail?[Y/n] "
+read yn
+test -n "$yn" || yn="Y"
+
+case "$yn" in
+	[Nn]*)
+		echo "BIND jail not configured automaticly!"
+		echo -n "Press [ENTER] "
+		read line
+		;;
+	*)
+		if ! $(dpkg-divert --list /etc/init.d/bind.jailer | grep -q "by jailer"); then
+		    dpkg-divert --package jailer --add --rename \
+		        --divert /etc/init.d/bind.jailer /etc/init.d/bind
+		fi
+
+		/usr/sbin/jailer.pl /etc/jailer.conf bind
+
+		update-rc.d jail-bind defaults >/dev/null
+		/etc/init.d/jail-bind start
+
+		;;
+esac
+
+echo ""
+echo -n "Add NTP jail?[Y/n] "
+read yn
+test -n "$yn" || yn="Y"
+
+case "$yn" in
+	[Nn]*)
+		echo "BIND jail not configured automaticly!"
+		echo -n "Press [ENTER] "
+		read line
+		;;
+	*)
+		if ! $(dpkg-divert --list /etc/init.d/ntp.jailer | grep -q "by jailer"); then
+		    dpkg-divert --package jailer --add --rename \
+  		      --divert /etc/init.d/ntp.jailer /etc/init.d/ntp
+		fi
+
+		/usr/sbin/jailer.pl /etc/jailer.conf ntp
+
+		update-rc.d jail-ntp defaults >/dev/null
+		/etc/init.d/jail-ntp start
+
+		;;
+esac
--- jailer-0.4.orig/debian/postrm-init-scripts
+++ jailer-0.4/debian/postrm-init-scripts
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if $(dpkg-divert --list /etc/init.d/bind.jailer | grep -q "by jailer"); then
+	dpkg-divert --package jailer --remove --rename \
+		--divert /etc/init.d/bind.jailer /etc/init.d/bind
+fi
+
+if $(dpkg-divert --list /etc/init.d/ntp.jailer | grep -q "by jailer"); then
+	dpkg-divert --package jailer --remove --rename \
+		--divert /etc/init.d/ntp.jailer /etc/init.d/ntp
+fi
--- jailer-0.4.orig/debian/Makefile.in
+++ jailer-0.4/debian/Makefile.in
@@ -1,6 +1,9 @@
-# Makefile.in generated automatically by automake 1.4 from Makefile.am
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
 
-# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
+# Inc.
 # This Makefile.in is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -10,159 +13,285 @@
 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 # PARTICULAR PURPOSE.
 
-
-SHELL = @SHELL@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
+@SET_MAKE@
 VPATH = @srcdir@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-
-bindir = @bindir@
-sbindir = @sbindir@
-libexecdir = @libexecdir@
-datadir = @datadir@
-sysconfdir = @sysconfdir@
-sharedstatedir = @sharedstatedir@
-localstatedir = @localstatedir@
-libdir = @libdir@
-infodir = @infodir@
-mandir = @mandir@
-includedir = @includedir@
-oldincludedir = /usr/include
-
-DESTDIR =
-
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
-
-top_builddir = ..
-
-ACLOCAL = @ACLOCAL@
-AUTOCONF = @AUTOCONF@
-AUTOMAKE = @AUTOMAKE@
-AUTOHEADER = @AUTOHEADER@
-
-INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-transform = @program_transform_name@
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
 NORMAL_INSTALL = :
 PRE_INSTALL = :
 POST_INSTALL = :
 NORMAL_UNINSTALL = :
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
+subdir = debian
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LTLIBOBJS = @LTLIBOBJS@
 MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
 PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
 VERSION = @VERSION@
-
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+am__leading_dot = @am__leading_dot@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
 EXTRA_DIST = Makefile.am changelog control copyright dirs docs rules conffiles postinst
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_CLEAN_FILES = 
-DIST_COMMON =  Makefile.am Makefile.in
-
+all: all-am
 
-DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
-
-TAR = tar
-GZIP_ENV = --best
-all: all-redirect
 .SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
-	cd $(top_srcdir) && $(AUTOMAKE) --gnu debian/Makefile
-
-Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
-	cd $(top_builddir) \
-	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+	        && { if test -f $@; then exit 0; else break; fi; }; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu debian/Makefile'; \
+	$(am__cd) $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu debian/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
 tags: TAGS
 TAGS:
 
+ctags: CTAGS
+CTAGS:
 
-distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
-
-subdir = debian
 
 distdir: $(DISTFILES)
-	here=`cd $(top_builddir) && pwd`; \
-	top_distdir=`cd $(top_distdir) && pwd`; \
-	distdir=`cd $(distdir) && pwd`; \
-	cd $(top_srcdir) \
-	  && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu debian/Makefile
-	@for file in $(DISTFILES); do \
-	  d=$(srcdir); \
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
 	  if test -d $$d/$$file; then \
-	    cp -pr $$d/$$file $(distdir)/$$file; \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d "$(distdir)/$$file"; then \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+	    fi; \
+	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
 	  else \
-	    test -f $(distdir)/$$file \
-	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
-	    || cp -p $$d/$$file $(distdir)/$$file || :; \
+	    test -f "$(distdir)/$$file" \
+	    || cp -p $$d/$$file "$(distdir)/$$file" \
+	    || exit 1; \
 	  fi; \
 	done
-info-am:
-info: info-am
-dvi-am:
-dvi: dvi-am
 check-am: all-am
 check: check-am
-installcheck-am:
-installcheck: installcheck-am
-install-exec-am:
+all-am: Makefile
+installdirs:
+install: install-am
 install-exec: install-exec-am
-
-install-data-am:
 install-data: install-data-am
+uninstall: uninstall-am
 
 install-am: all-am
 	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-install: install-am
-uninstall-am:
-uninstall: uninstall-am
-all-am: Makefile
-all-redirect: all-am
-install-strip:
-	$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
-installdirs:
-
 
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
 mostlyclean-generic:
 
 clean-generic:
 
 distclean-generic:
-	-rm -f Makefile $(CONFIG_CLEAN_FILES)
-	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
 
 maintainer-clean-generic:
-mostlyclean-am:  mostlyclean-generic
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
 
-mostlyclean: mostlyclean-am
+clean-am: clean-generic mostlyclean-am
 
-clean-am:  clean-generic mostlyclean-am
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
 
-clean: clean-am
+dvi: dvi-am
 
-distclean-am:  distclean-generic clean-am
+dvi-am:
 
-distclean: distclean-am
+html: html-am
 
-maintainer-clean-am:  maintainer-clean-generic distclean-am
-	@echo "This command is intended for maintainers to use;"
-	@echo "it deletes files that may require special tools to rebuild."
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
 
 maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
 
-.PHONY: tags distdir info-am info dvi-am dvi check check-am \
-installcheck-am installcheck install-exec-am install-exec \
-install-data-am install-data install-am install uninstall-am uninstall \
-all-redirect all-am all installdirs mostlyclean-generic \
-distclean-generic clean-generic maintainer-clean-generic clean \
-mostlyclean distclean maintainer-clean
+.PHONY: all all-am check check-am clean clean-generic distclean \
+	distclean-generic distdir dvi dvi-am html html-am info info-am \
+	install install-am install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am
 
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
--- jailer-0.4.orig/debian/docs
+++ jailer-0.4/debian/docs
@@ -1,5 +1,2 @@
-INSTALL
 NEWS
 README
-jailer.conf
-ChangeLog
--- jailer-0.4.orig/debian/rules
+++ jailer-0.4/debian/rules
@@ -5,27 +5,21 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# This is the debhelper compatability version to use.
-export DH_COMPAT=1
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-
+	dh_autoreconf
 	./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc
-	# Add here commands to compile the package.
-	#$(MAKE)
-
+	$(MAKE)
 	touch build-stamp
 
 clean:
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp
-
-	# Add here commands to clean up after the build process.
-	-$(MAKE) distclean
-
+	-[ -f Makefile ] && $(MAKE) distclean 
+	dh_autoreconf_clean
 	dh_clean
 
 install: build
@@ -33,11 +27,9 @@
 	dh_testroot
 	dh_clean -k
 	dh_installdirs
-
-	# Add here commands to install the package into debian/tmp.
-	$(MAKE) install DESTDIR=`pwd`/debian/tmp
-	# create symlink to jailer.pl
-	ln -s `pwd`/debian/tmp/usr/sbin/jailer.pl `pwd`/debian/tmp/usr/sbin/jailer
+	$(MAKE) install DESTDIR=`pwd`/debian/jailer
+	# rename jailer.pl to jailer
+	mv `pwd`/debian/jailer/usr/sbin/jailer.pl `pwd`/debian/jailer/usr/sbin/jailer
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -45,30 +37,21 @@
 
 # Build architecture-dependent files here.
 binary-arch: build install
-#	dh_testversion
 	dh_testdir
 	dh_testroot
 #	dh_installdebconf	
 	dh_installdocs
-	dh_installexamples
-#	dh_installmenu
-#	dh_installemacsen
-#	dh_installpam
-	dh_installinit -n --init-script=jail-bind
-	dh_installinit -n --init-script=jail-ntp
-#	dh_installcron
-#	dh_installmanpages
-#	dh_installinfo
-	dh_installchangelogs
+	dh_installexamples jailer.conf
+#	This init files are not (yet) in the package
+#	dh_installinit -n --init-script=jail-bind
+#	dh_installinit -n --init-script=jail-ntp
+	dh_installman doc/man/jailer.8  doc/man/jailer.conf.5  doc/man/updatejail.8
+	dh_installchangelogs ChangeLog upstream
 	dh_link
 	dh_strip
 	dh_compress
 	dh_fixperms
-	# You may want to make some executables suid here.
-#	dh_suidregister
-#	dh_makeshlibs
 	dh_installdeb
-#	dh_perl
 	dh_shlibdeps
 	dh_gencontrol
 	dh_md5sums
--- jailer-0.4.orig/debian/copyright
+++ jailer-0.4/debian/copyright
@@ -1,6 +1,20 @@
 This package was debianized by Marton Illes <marci@balabit.hu>
+it is available at http://www.balabit.hu/downloads/jailer/
 
-Upstream Author(s): Marton Illes <marci@lauder.hu>
 
-Copyright:
-GNU/GPL
+Upstream Author: Marton Illes <marci@lauder.hu>
+
+Copyright: (c) 2001-2003 Marton Illes
+
+    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, 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 can find a copy of the GPL license in your Debian system under
+the /usr/share/common-licenses directory.
--- jailer-0.4.orig/debian/README.Debian
+++ jailer-0.4/debian/README.Debian
@@ -0,0 +1,19 @@
+jailer for Debian
+-------------------
+
+The current Debian package will not automatically jail any program. 
+The configuration file provides sections for some common packages but
+they have not yet been tested.
+
+Submissions for proposed configurations for common packages 
+(such as bind, or apache) should be sent as a 
+wish-list bug against the package.
+
+Configuration files for daemons should be used on package
+installation to automatically create chroot environments (see the source
+package for samples of post-installation scripts under debian/) and create
+diversions for the /etc/init.d scripts. This post-install script should be 
+changed to use debconf.
+
+ -- Javier Fernandez-Sanguino <jfs@computer.org>, Thu, 29 Aug 2002 16:33:13 +0200
+
--- jailer-0.4.orig/debian/control
+++ jailer-0.4/debian/control
@@ -1,10 +1,16 @@
 Source: jailer
 Section: admin
 Priority: optional
-Maintainer: Marton Illes <marci@balabit.hu>
-Standards-Version: 3.0.1
+Maintainer: Javier Fernandez-Sanguino Pen~a <jfs@debian.org>
+Build-Depends-Indep: debhelper (>> 3.0.0), automake, autoconf (>= 2.64), dh-autoreconf
+Standards-Version: 3.6.1
 
 Package: jailer
-Architecture: any
-Depends: perl5, cpio, restrict
-Description: jailer builds and maintains jail, eg chroot-ed enviroments
+Architecture: all
+Depends: perl5, cpio
+Description: Builds and maintains chrooted environments
+ Jailer is a simple script to help system administrators
+ to create and maintain chrooted (that is, jailed) environments.
+ It uses a simple configuration file which can be used to 
+ describe the location of configuration files, Debian packages
+ and files or directories used to build the chroot environment.
--- jailer-0.4.orig/debian/changelog
+++ jailer-0.4/debian/changelog
@@ -1,3 +1,149 @@
+jailer (0.4-17) unstable; urgency=low
+
+  * debian/control, debian/rules: Fix FTBFS due to missing install-sh, thanks
+    to Ilya Barygin for the patch and to Georgios M. Zarkadas for the patches
+    (Closes: 631609)
+  * debian/control: in addition to the above patch, add a Buil-Depends on 
+    autoconf (>= 2.64) as this is required for dh-autoreconf
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org>  Thu, 01 Sep 2011 10:59:01 +0200
+
+jailer (0.4-16) unstable; urgency=low
+
+  * Change Build-Depends from a specific automake version to just automake, as
+    there is nothing really specific to old automake versions (Closes: #549139)
+  * Use debhelper compatibility version 5
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org>  Mon, 30 May 2011 23:08:08 +0200
+
+jailer (0.4-15) unstable; urgency=low
+
+  * Improvements to the updatejail script based on patch provided by
+    Nick Leverton (Closes: 483605)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org>  Tue, 03 Jun 2008 01:17:35 +0200
+
+jailer (0.4-14) unstable; urgency=high
+
+  * Fix syntax error in jailer program. Thanks to Zoltan Herpai for
+    spotting this issue.
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org>  Sat, 17 May 2008 11:34:56 +0200
+
+jailer (0.4-13) unstable; urgency=low
+
+  * Fix bashism in updatejailer (Closes: #464996) 
+  * Fix errors in manpages, replace '\.' with '\&.' to properly quote
+    dots at the start of a line.
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org>  Thu, 03 Apr 2008 00:17:30 +0200
+
+jailer (0.4-12) unstable; urgency=low
+
+  * Remove debian/conffiles to prevent duplicate conffiles lintian error
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org>  Tue, 17 Jul 2007 08:51:41 +0200
+
+jailer (0.4-11) unstable; urgency=low
+
+  * Remove Homepage as it gives a 404
+  * Change the maintainer's email address
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@debian.org>  Tue, 17 Jul 2007 08:48:50 +0200
+
+jailer (0.4-10) unstable; urgency=high
+
+  * Have updatejail use tempfile instead of the unsafe /tmp/$$.updatejail
+    construct which makes it vulnerable to symlink attacks in /tmp/.
+    Since this tool is run as root this is a severe bug and thus
+    the urgency. (Closes: #410548)
+  [ Minor program improvements ]
+  * Fix updatejail so that the identifier matches exactly the name of the jail
+    and does not match jails containing its name (Closes: #382318)
+  * Fix a typo in the updatejail program output
+  * Do not dump stderr to /dev/null when running cpio. This will make it
+    print out a lot of cruft when creating makejails, but at least errors
+    will be easy to spot.
+  * Improve error messages in updatejail, check that the jail identifier
+    is not empty and that the root directory exists.
+  [ Documentation improvements ] 
+  * Rewrite some places of the manpages to fix grammar and typos.
+  * Note in updatejail's manpage that the Root: location has to match the
+    identifier being used.
+  [ Debian package changes ]
+  * Use debhelper compatibility version 4
+  * Use dh_installman instead of dh_installmanpages
+  * Add a space to the Homepage line in debian/control
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Sun, 11 Feb 2007 18:13:21 +0100
+
+jailer (0.4-9) unstable; urgency=low
+
+  * Build-Depend on automake1.4 to fix FTBFS (#396670)
+  * Fix manpage section of jailer.conf
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Fri,  3 Nov 2006 03:04:59 +0100
+
+jailer (0.4-8) unstable; urgency=low
+
+  * Fixed reference to man section for jailer.conf in jailer(8)
+  (Closes: #216801)
+  * Updated Standards-Version to 3.6.1
+  * Moved from Build-Depends to Build-Depends-Indep.
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Tue, 28 Oct 2003 01:52:57 +0100
+
+jailer (0.4-7) unstable; urgency=low
+
+  * Added config.{guess,sub} files from automake, I need to ask
+    the upstream maintainer to add this too (Closes: #208191)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Tue,  9 Sep 2003 10:54:09 +0200
+
+jailer (0.4-6) unstable; urgency=low
+
+  * Updatejail now calls jailer properly (Closes: #200617) 
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Wed,  9 Jul 2003 18:54:14 +0200
+
+jailer (0.4-5) unstable; urgency=low
+
+  * Fixed description line (Closes: #192034) 
+  * Added automake Build-Depends so that symlinks work when building
+    (Closes: #191725)
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Mon,  5 May 2003 22:04:30 +0200
+
+jailer (0.4-4) unstable; urgency=low
+
+  * Moved to architecture all (I shouldn't upload packages so in a 
+    hurry, oh well)
+  * Removed restrict from the Depends:
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Sat, 26 Apr 2003 12:34:03 +0200
+
+jailer (0.4-3) unstable; urgency=low
+
+  * First upload to Debian
+  * Added Homepage: to debian/control
+  * Added download link to copyright and proper license info
+  * No longer autoconf's on package creation
+  * distclean is only executed if available
+  * Changelog removed from debian/docs
+  * jailer.conf removed from debian/docs and added to examples
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Tue, 22 Apr 2003 00:27:28 +0200
+
+jailer (0.4-2) unstable; urgency=low
+
+  * Changed the upstream version to remove the postinst scripts since the
+  jailer.conf file is empty (and no init scripts are provided)
+  * Modified configure.in to create all the needed Makefiles.
+  * Fixed (many) spelling erros on the README file and the manpages.
+  * Added comments to the jailer.conf file
+
+ -- Javier Fernandez-Sanguino Pen~a <jfs@computer.org>  Thu, 29 Aug 2002 16:12:29 +0200
+
 jailer (0.4-1) unstable; urgency=low
 
   * New update script (updatejail)
@@ -29,6 +175,3 @@
 
  -- Marton Illes <marci@balabit.hu>  Tue, 24 Apr 2001 15:33:29 +0200
 
-Local variables:
-mode: debian-changelog
-End:
--- jailer-0.4.orig/debian/compat
+++ jailer-0.4/debian/compat
@@ -0,0 +1 @@
+5