--- doodle-0.6.7.orig/debian/doodled.default
+++ doodle-0.6.7/debian/doodled.default
@@ -0,0 +1,13 @@
+# Defaults for doodled
+# sourced by /etc/init.d/doodled
+
+# Directories which doodle is going to index
+DOODLE_PATH="/home"
+
+# Default location of the doodle database
+# Note: do not change - it is hardcoded into the binary
+DOODLE_DBPATH="/var/lib/doodle/doodle.db"
+
+# Additional options that are passed to doodled,
+# the doodle daemon (if installed).
+DAEMON_OPTS="-d ${DOODLE_DBPATH} -L /var/log/doodled.log ${DOODLE_PATH}"
--- doodle-0.6.7.orig/debian/doodled.postinst
+++ doodle-0.6.7/debian/doodled.postinst
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+	configure)
+		chown root:doodle /usr/bin/doodled
+		chmod g+s /usr/bin/doodled
+		;;
+
+	abort-upgrade|abort-remove|abort-deconfigure)
+
+		;;
+
+	*)
+		echo "postinst called with unknown argument \`${1}'" >&2
+		exit 1
+		;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- doodle-0.6.7.orig/debian/rules
+++ doodle-0.6.7/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+%:
+	dh --with quilt ${@}
+
+override_dh_auto_clean:
+	dh_auto_clean
+
+	rm -f config.guess config.sub
+
+override_dh_auto_configure:
+	cp -f /usr/share/misc/config.guess .
+	cp -f /usr/share/misc/config.sub .
+
+	dh_auto_configure
+
+override_dh_auto_install:
+	dh_auto_install
+
+	# Removing useless files
+	rm -f debian/tmp/usr/lib/*.la
+
+override_dh_install:
+	dh_install --fail-missing
+
+override_dh_installinit:
+	dh_installinit --update-rcd-params='defaults 22'
+
+override_dh_strip:
+	dh_strip --dbg-package=doodle-dbg
--- doodle-0.6.7.orig/debian/control
+++ doodle-0.6.7/debian/control
@@ -0,0 +1,91 @@
+Source: doodle
+Section: utils
+Priority: optional
+Maintainer: Debian GNUnet Maintainers <gnunet@lists.debian-maintainers.org>
+Uploaders: Daniel Baumann <daniel@debian.org>
+Build-Depends:
+ debhelper (>= 7.0.50~), autotools-dev, libextractor-dev, libgamin-dev,
+ quilt (>= 0.46-7)
+Standards-Version: 3.8.4
+Homepage: http://www.gnunet.org/doodle/
+Vcs-Browser: http://git.debian-maintainers.org/?p=gnunet/doodle.git
+Vcs-Git: git://git.debian-maintainers.org/git/gnunet/doodle.git
+
+Package: doodle
+Section: utils
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, adduser
+Recommends: libextractor-plugins
+Description: Desktop Search Engine (client)
+ It searches your hard drive for files using pattern matching on meta-data. It
+ extracts file-format specific meta-data using libextractor and builds a suffix
+ tree to index the files. The index can then be searched rapidly. It is similar
+ to locate, but can take advantage of information such as ID3 tags. It is
+ possible to do full-text indexing using the appropriate libextractor plugins.
+ It also supports using FAM to keep the database up-to-date.
+ .
+ You can use doodled (separate package) to keep the doodle database
+ automagically updated.
+
+Package: doodle-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends:
+ ${misc:Depends}, doodle (= ${binary:Version}), doodled (= ${binary:Version}),
+ libdoodle1 (= ${binary:Version}), libdoodle-dev (= ${binary:Version})
+Description: Desktop Search Engine (debug)
+ It searches your hard drive for files using pattern matching on meta-data. It
+ extracts file-format specific meta-data using libextractor and builds a suffix
+ tree to index the files. The index can then be searched rapidly. It is similar
+ to locate, but can take advantage of information such as ID3 tags. It is
+ possible to do full-text indexing using the appropriate libextractor plugins.
+ It also supports using FAM to keep the database up-to-date.
+ .
+ This package contains the debugging symbols.
+
+Package: doodled
+Section: utils
+Architecture: any
+Depends:
+ ${misc:Depends}, ${shlibs:Depends}, doodle (= ${binary:Version}), gamin,
+ portmap
+Description: Desktop Search Engine (daemon)
+ It searches your hard drive for files using pattern matching on meta-data. It
+ extracts file-format specific meta-data using libextractor and builds a suffix
+ tree to index the files. The index can then be searched rapidly. It is similar
+ to locate, but can take advantage of information such as ID3 tags. It is
+ possible to do full-text indexing using the appropriate libextractor plugins.
+ It also supports using FAM to keep the database up-to-date.
+ .
+ This is the daemon to keep the doodle database automagically up-to-date.
+
+Package: libdoodle1
+Section: libs
+Architecture: any
+Depends:
+ ${misc:Depends}, ${shlibs:Depends}, libextractor1c2a, libextractor-plugins
+Description: Desktop Search Engine (library)
+ It searches your hard drive for files using pattern matching on meta-data. It
+ extracts file-format specific meta-data using libextractor and builds a suffix
+ tree to index the files. The index can then be searched rapidly. It is similar
+ to locate, but can take advantage of information such as ID3 tags. It is
+ possible to do full-text indexing using the appropriate libextractor plugins.
+ It also supports using FAM to keep the database up-to-date.
+ .
+ This is the library to access the doodle database from other applications.
+
+Package: libdoodle-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libdoodle1 (= ${binary:Version})
+Description: Desktop Search Engine (development)
+ It searches your hard drive for files using pattern matching on meta-data. It
+ extracts file-format specific meta-data using libextractor and builds a suffix
+ tree to index the files. The index can then be searched rapidly. It is similar
+ to locate, but can take advantage of information such as ID3 tags. It is
+ possible to do full-text indexing using the appropriate libextractor plugins.
+ It also supports using FAM to keep the database up-to-date.
+ .
+ This is the library to access the doodle database from other applications
+ (development files).
--- doodle-0.6.7.orig/debian/README.source
+++ doodle-0.6.7/debian/README.source
@@ -0,0 +1,37 @@
+Package Repositories
+--------------------
+
+Backports for the current stable debian distribution as well as snapshots of
+unreleased versions may be available in repositories listed on the maintainers
+homepage. The current URL of the maintainer homepage can be seen in
+debian/copyright.
+
+
+Source Access
+-------------
+
+You can obtain the sources of this package with:
+
+  $ apt-get source ${PACKAGE}
+
+whereas '${PACKAGE}' has to be replaced with the actual name of the package.
+
+This package is maintained with the Git version control system. The current git
+source tree can be obtained with:
+
+  $ git clone ${GIT_URI}
+
+whereas '${GIT_URI}' has to be replaced with the actual URI for the Git
+repository. The current Git URI can be seen in debian/control in the extracted
+package sources.
+
+More information about Git can be found in the git-core package.
+
+This package may use the Quilt patch system to manage all modifications to the
+upstream source. Changes, if any, are stored in the source package as diffs in
+debian/diff and are applied during the build. Current modifications can be
+applied to the source tree with:
+
+  $ QUILT_PATCHES=debian/patches quilt push -a
+
+More information about Quilt can be found in the quilt package.
--- doodle-0.6.7.orig/debian/doodled.init
+++ doodle-0.6.7/debian/doodled.init
@@ -0,0 +1,75 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides:			doodled
+# Required-Start:		$remote_fs
+# Required-Stop:		$remote_fs
+# Should-Start:
+# Should-Stop:
+# Default-Start:		2 3 4 5
+# Default-Stop:			0 1 6
+# Short-Description:		starts doodled
+# Description:			doodled is a desktop search engine daemon.
+### END INIT INFO
+
+PATH="/sbin:/bin:/usr/sbin:/usr/bin"
+DAEMON="/usr/bin/doodled"
+NAME="doodled"
+DESC="doodle daemon"
+
+test -x ${DAEMON} || exit 0
+
+# Include doodle defaults if available
+if [ -f /etc/default/doodled ]
+then
+	. /etc/default/doodled
+else
+	exit 0
+fi
+
+#set -e
+
+case "${1}" in
+	start)
+		echo -n "Starting ${DESC}: "
+		if [ -e ${DOODLE_PATH} ]
+		then
+			start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid --exec ${DAEMON} -- ${DAEMON_OPTS}
+			echo "${NAME}."
+		else
+			echo "halted (you may want to run doodle first)"
+		fi
+		;;
+
+	stop)
+		echo -n "Stopping ${DESC}: "
+		start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid --exec ${DAEMON}
+		echo "${NAME}."
+		;;
+
+	restart|force-reload)
+		echo -n "Restarting ${DESC}: "
+		start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid --exec ${DAEMON}
+		sleep 1
+		start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid --exec ${DAEMON} -- ${DAEMON_OPTS}
+		echo "${NAME}."
+		;;
+
+	status)
+		if [ -f /var/run/${NAME}.pid ]
+		then
+			echo "doodled is running."
+		else
+			echo "doodled is not running."
+			exit 1
+		fi
+		;;
+
+	*)
+		N=/etc/init.d/${NAME}
+		echo "Usage: ${N} {start|stop|restart|force-reload|status}" >&2
+		exit 1
+		;;
+esac
+
+exit 0
--- doodle-0.6.7.orig/debian/copyright
+++ doodle-0.6.7/debian/copyright
@@ -0,0 +1,44 @@
+Upstream-Contact: Christian Grothoff <christian@grothoff.org>
+Upstream-Homepage: http://www.gnunet.org/doodle/
+Maintainer-Contact: Debian GNUnet Maintainers <gnunet@lists.debian-maintainers.org>
+Maintainer-Homepage: http://gnunet.debian-maintainers.org/
+
+Files: *
+Copyright: (C) 2004-2007 Christian Grothoff <christian@grothoff.org>
+License: GPL-2+
+ 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 Street, 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-2 file.
+
+Files: debian/*
+Copyright: (C) 2004-2010 Daniel Baumann <daniel@debian.org>
+License: GPL-2+
+ 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 Street, 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-2 file.
--- doodle-0.6.7.orig/debian/changelog
+++ doodle-0.6.7/debian/changelog
@@ -0,0 +1,281 @@
+doodle (0.6.7-10) unstable; urgency=medium
+
+  * Adding explicit debian source version 1.0 until switch to 3.0.
+  * Updating year in copyright file.
+  * Removing superfluous depends of libdoodle-dev.
+  * Updating to standards 3.8.4.
+  * Changing dh call to more common scheme.
+
+ -- Daniel Baumann <daniel@debian.org>  Sat, 20 Mar 2010 09:53:34 +0100
+
+doodle (0.6.7-9) unstable; urgency=low
+
+  * Adding maintainer homepage field to control.
+  * Marking maintainer homepage field to be also included in binary
+    packages and changelog.
+  * Adding README.source.
+  * Simplifying autotools handling in rules.
+  * Updating README.source.
+  * Moving maintainer homepage from control to copyright.
+  * Updating chown calls to use colons instead of stops.
+  * Simplyfing debhelper install file.
+  * Bumping versioned build-depends on debhelper.
+  * Bumping versioned build-depends on quilt.
+  * Applying some shell code cosmetics to maintainer scripts, init
+    script and cron script.
+  * Dropping la files.
+
+ -- Daniel Baumann <daniel@debian.org>  Tue, 17 Nov 2009 19:56:00 +0100
+
+doodle (0.6.7-8) unstable; urgency=low
+
+  * Updating to standards version 3.8.3.
+  * Removing bashism in cron.daily (Closes: #541781).
+
+ -- Daniel Baumann <daniel@debian.org>  Mon, 24 Aug 2009 11:10:49 +0200
+
+doodle (0.6.7-7) unstable; urgency=low
+
+  * Removing not required sourcedir parameter from dh_install override.
+  * Correcting incorrect dependencies on init script, thanks to Raphael
+    Geissert <geissert@debian.org> (Closes: #541545).
+
+ -- Daniel Baumann <daniel@debian.org>  Fri, 14 Aug 2009 21:04:31 +0200
+
+doodle (0.6.7-6) unstable; urgency=low
+
+  * Applying patch from eo <eo@khabs.org.ru> in order to make the doodle
+    cronjob cope with multiple directories (Closes: #528282).
+
+ -- Daniel Baumann <daniel@debian.org>  Tue, 11 Aug 2009 07:48:32 +0200
+
+doodle (0.6.7-5) unstable; urgency=low
+
+  * Updating section for doodle-dbg.
+  * Updating maintainer field.
+  * Updating vcs fields.
+  * Using correct rfc-2822 date formats in changelog.
+  * Updating package to standards version 3.8.2.
+  * Wrapping lines in control.
+  * Removing leftover homepage entry in package long-description.
+  * Minimizing rules file.
+
+ -- Daniel Baumann <daniel@debian.org>  Tue, 11 Aug 2009 00:27:43 +0200
+
+doodle (0.6.7-4) unstable; urgency=low
+
+  * Updating vcs fields in control file.
+  * Using patch-stamp rather than patch in rules file.
+  * Removing config.guess and config.sub in clean target of rules.
+  * Replacing obsolete dh_clean -k with dh_prep.
+  * Updating to standards version 3.8.1.
+  * Updating year in copyright file.
+  * Using quilt rather than dpatch.
+  * Updating rules file to current state of the art.
+  * Adding patch from James Westby <jw+debian@jameswestby.net> to add
+    missing mode argument to open(2) call with O_CREAT (Closes: #506555).
+
+ -- Daniel Baumann <daniel@debian.org>  Sat, 21 Mar 2009 08:41:00 +0100
+
+doodle (0.6.7-3) unstable; urgency=low
+
+  * Reordering rules file.
+  * Rewriting copyright file in machine-interpretable format.
+  * Adding vcs fields in control file.
+  * Upgrading package to standards 3.8.0.
+  * Upgrading package to debhelper 7.
+  * Removing watch file.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu, 03 Jul 2008 16:24:00 +0200
+
+doodle (0.6.7-2) unstable; urgency=low
+
+  * When very early times, when doodle libraries did not have had a proper
+    soname, we were installing those libs as private libs into
+    /usr/lib/doodle. This is, since quite a while, not needed anymore.
+
+ -- Daniel Baumann <daniel@debian.org>  Sun, 23 Dec 2007 23:29:00 +0100
+
+doodle (0.6.7-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu, 06 Dec 2007 09:26:00 +0100
+
+doodle (0.6.6-7) unstable; urgency=low
+
+  * Adding debug package.
+
+ -- Daniel Baumann <daniel@debian.org>  Wed, 26 Sep 2007 10:59:00 +0200
+
+doodle (0.6.6-6) unstable; urgency=low
+
+  * Added chown call to doodle.cron.daily (Closes: #432990).
+  * Minor formal cleanups.
+
+ -- Daniel Baumann <daniel@debian.org>  Sun, 15 Jul 2007 22:38:00 +0200
+
+doodle (0.6.6-5) unstable; urgency=medium
+
+  * Disabled set -e in doodled.init (Closes: #426825).
+  * Added recommends to libextractor-plugins.
+
+ -- Daniel Baumann <daniel@debian.org>  Fri, 01 Jun 2007 12:08:00 +0200
+
+doodle (0.6.6-4) unstable; urgency=low
+
+  * Check for existence of delgroup in doodle.postrm (Closes: #416741).
+
+ -- Daniel Baumann <daniel@debian.org>  Fri, 30 Mar 2007 08:42:00 +0200
+
+doodle (0.6.6-3) unstable; urgency=low
+
+  * Rebuild against gamin.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu, 08 Feb 2007 12:19:00 +0100
+
+doodle (0.6.6-2) unstable; urgency=low
+
+  * Minor cleanups.
+  * Adjusted libdoodle-dev dependencies.
+  * Added lsb header and status target to init script.
+
+ -- Daniel Baumann <daniel@debian.org>  Fri, 19 Jan 2007 12:30:00 +0100
+
+doodle (0.6.6-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Baumann <daniel@debian.org>  Wed, 03 Jan 2007 14:03:00 +0200
+
+doodle (0.6.5-5) unstable; urgency=medium
+
+  * Adjusted defaults which fixes the cronjob (Closes: #379729).
+  * Adjusted depends to the splitted libextractor.
+
+ -- Daniel Baumann <daniel@debian.org>  Sun, 29 Oct 2006 12:36:00 +0200
+
+doodle (0.6.5-4) unstable; urgency=low
+
+  * New email address.
+
+ -- Daniel Baumann <daniel@debian.org>  Sun, 10 Sep 2006 11:49:00 +0200
+
+doodle (0.6.5-3) unstable; urgency=low
+
+  * Adjusted chown call in cronjob again (Closes: #369499).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Thu, 22 Jun 2006 20:11:00 +0200
+
+doodle (0.6.5-2) unstable; urgency=low
+
+  * Adjusted cronjob (Closes: #368598).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Thu, 25 May 2006 18:34:00 +0200
+
+doodle (0.6.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Wed, 03 May 2006 00:00:00 +0100
+
+doodle (0.6.3+2496-2) unstable; urgency=low
+
+  * Fixed descriptions' spelling (Closes: #363262).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Tue, 18 Apr 2006 09:16:00 +0100
+
+doodle (0.6.3+2496-1) unstable; urgency=low
+
+  * New snapshot:
+    - improves documentation about full-text indexing (Closes: #348885).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Sun, 12 Mar 2006 09:05:00 +0100
+
+doodle (0.6.3-1) unstable; urgency=low
+
+  * New upstream release (Closes: #323370).
+  * Updated depends to latest transition of libextractor (Closes: #334515).
+  * Corrected cron-script (Closes: #324603, #324957).
+  * Updating config.{sub,guess} now via diff.gz.
+  * Using now dpatch to set the doodle database name.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Thu, 10 Nov 2005 20:21:00 +0100
+
+doodle (0.6.2-4) unstable; urgency=high
+
+  * fixed doodle.postinst exception for non existing doodledb (Closes: #309120).
+  * improved doodle.cron.dail (Closes: #305003).
+  * changed from *.files to *.install.
+  * corrected depency informations.
+  * renamed libdoodle1-dev package to libdoodle-dev.
+  * bumped policy to 3.6.2.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Fri, 08 Jul 2005 14:11:00 +0200
+
+doodle (0.6.2-3) unstable; urgency=high
+
+  * debian/doodle.postinst: fixed permission (Closes: #305595).
+  * debian/rules: added start/stop number for initscript (Closes: #305661).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Wed, 11 May 2005 20:42:00 +0200
+
+doodle (0.6.2-2) unstable; urgency=high
+
+  * debian/control: added conflict to old version (Closes: #296052).
+  * debian/control: changed priority to optional.
+  * debian/control: updated descriptions (Closes: #296129).
+  * debian/doodle.cron.daily: fixed typo (Closes: #298655).
+  * debian/doodled.init.d: fixed wrong doodled-path (Closes: #296402).
+  * debian/README.Debian: renamed to doodle.README.Debian, fixed typo (Closes:
+    #296081).
+  * debian/doodled.post{inst,rm}: fixed lintian errors, using only
+    dh_installinit.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Sat, 19 Mar 2005 18:15:00 +0100
+
+doodle (0.6.2-1) unstable; urgency=high
+
+  * New upstream release, fixes:
+    - broken png handling (Closes: #278905).
+    - broken doodle.db on doodle crash (Closes: #279057).
+  * documentation updated with new project urls.
+  * src/doodle/doodle{,d}.c: added /sys to the prunepath.
+  * debian/* redone, splitted package into individual binary-packages.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Tue, 01 Feb 2005 20:14:00 +0100
+
+doodle (0.5.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Sun, 10 Oct 2004 06:10:00 +0200
+
+doodle (0.4.0-1) unstable; urgency=high
+
+  * New upstream release (Closes #267960).
+  * debian/README.Debian: fixed text width.
+  * debian/control: start description lowercase.
+  * debian/control: updated policy.
+  * debian/control: set dependency version for libextractor (Closes #268296 and #266945).
+  * src/doodle/doodle.c: add search-string-size fix from cvs.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Tue, 15 Sep 2004 15:56:00 +0200
+
+doodle (0.3.0-1) unstable; urgency=low
+
+  * New upstream realease.
+  * debian/README.debian: documented changes.
+  * debian/control: added dependency to adduser.
+  * debian/cron.daily: added cron file.
+  * debian/postinst: adds doodle group and directory.
+  * debian/postrm: removes doodle group.
+  * src/doodle/doodle.c: changed dbName from '~/.doodle' to '/var/lib/doodle/doodle.db'
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Sun, 15 Aug 2004 21:50:04 +0200
+
+doodle (0.2.1-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Wed, 11 Aug 2004 15:11:23 +0200
--- doodle-0.6.7.orig/debian/doodled.install
+++ doodle-0.6.7/debian/doodled.install
@@ -0,0 +1,2 @@
+/usr/bin/doodled
+/usr/share/man/man1/doodled.1
--- doodle-0.6.7.orig/debian/libdoodle-dev.install
+++ doodle-0.6.7/debian/libdoodle-dev.install
@@ -0,0 +1,5 @@
+/usr/include
+/usr/lib/*.so
+/usr/lib/*.a
+/usr/lib/pkgconfig
+/usr/share/man/man3
--- doodle-0.6.7.orig/debian/doodle.cron.daily
+++ doodle-0.6.7/debian/doodle.cron.daily
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+if [ -r /etc/default/doodle ]
+then
+	. /etc/default/doodle
+else
+        exit 0
+fi
+
+if [ -x /usr/bin/doodle ]
+then
+	DOODLE_PATH=$(
+		for DIRECTORY in ${DOODLE_PATH}
+		do
+			[ -d ${DIRECTORY} ] && echo ${DIRECTORY}
+		done
+	)
+
+	if [ -n "${DOODLE_PATH}" ]
+	then
+		/usr/bin/doodle ${DAEMON_OPTS} -b ${DOODLE_PATH}
+
+		chown root:doodle "$(dirname ${DOODLE_DBPATH})" -R
+		chmod 0660 "${DOODLE_DBPATH}"
+	fi
+fi
--- doodle-0.6.7.orig/debian/libdoodle1.install
+++ doodle-0.6.7/debian/libdoodle1.install
@@ -0,0 +1 @@
+/usr/lib/*.so.*
--- doodle-0.6.7.orig/debian/doodle.dirs
+++ doodle-0.6.7/debian/doodle.dirs
@@ -0,0 +1 @@
+/var/lib/doodle
--- doodle-0.6.7.orig/debian/doodle.postinst
+++ doodle-0.6.7/debian/doodle.postinst
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+CRON="/etc/cron.daily/doodle"
+
+set -e
+
+case "${1}" in
+	configure)
+		sg doodle true 2>/dev/null || addgroup --system doodle
+
+		chown root:doodle /usr/bin/doodle
+		chmod g+s /usr/bin/doodle
+
+		if [ ! -d /var/lib/doodle ]
+		then
+			mkdir -p /var/lib/doodle
+		fi
+
+		chown root:doodle /var/lib/doodle -R
+
+		chmod 0750 /var/lib/doodle
+
+		if [ -e /var/lib/doodle/doodle.db ]
+		then
+			chmod 0660 /var/lib/doodle/doodle.db
+		else
+
+cat << EOF
+
+WARNING: You should run '${CRON}' as root. doodle will not work
+properly until you do or until it is run by cron (it is daily).
+EOF
+
+		fi
+		;;
+
+	abort-upgrade|abort-remove|abort-deconfigure)
+
+		;;
+
+	*)
+		echo "postinst called with unknown argument \`${1}'" >&2
+		exit 1
+		;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- doodle-0.6.7.orig/debian/doodle.install
+++ doodle-0.6.7/debian/doodle.install
@@ -0,0 +1,3 @@
+/usr/bin/doodle
+/usr/share/locale
+/usr/share/man/man1/doodle.1
--- doodle-0.6.7.orig/debian/doodle.postrm
+++ doodle-0.6.7/debian/doodle.postrm
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+	purge)
+		if [ -x /usr/sbin/delgroup ]
+		then
+			delgroup doodle
+		fi
+		;;
+
+	remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+		;;
+
+	*)
+		echo "postrm called with unknown argument \`${1}'" >&2
+		exit 1
+esac
+
+#DEBHELPER#
+
+exit 0
--- doodle-0.6.7.orig/debian/doodle.docs
+++ doodle-0.6.7/debian/doodle.docs
@@ -0,0 +1,4 @@
+AUTHORS
+NEWS
+PLATFORMS
+README
--- doodle-0.6.7.orig/debian/compat
+++ doodle-0.6.7/debian/compat
@@ -0,0 +1 @@
+7
--- doodle-0.6.7.orig/debian/doodle.default
+++ doodle-0.6.7/debian/doodle.default
@@ -0,0 +1,13 @@
+# Defaults for doodle
+# sourced by /etc/cron.daily/doodle
+
+# Directories which doodle is going to index
+DOODLE_PATH="/home"
+
+# Default location of the doodle database
+# Note: do not change - it is hardcoded into the binary
+DOODLE_DBPATH="/var/lib/doodle/doodle.db"
+
+# Additional options that are passed to doodled,
+# the doodle daemon (if installed).
+DAEMON_OPTS="-d ${DOODLE_DBPATH} -L /var/log/doodle.log"
--- doodle-0.6.7.orig/debian/patches/01-database-name.patch
+++ doodle-0.6.7/debian/patches/01-database-name.patch
@@ -0,0 +1,81 @@
+Author: Daniel Baumann <daniel@debian.org>
+Description: Sets the doodle database name.
+
+diff -Naurp doodle.orig/doc/man/doodle.1 doodle/doc/man/doodle.1
+--- doodle.orig/doc/man/doodle.1	2008-09-07 23:42:55.000000000 +0000
++++ doodle/doc/man/doodle.1	2009-03-21 07:36:03.000000000 +0000
+@@ -36,9 +36,9 @@ $ doodle keyword
+ .TP
+ to search all of your files for keyword.  Note that only the meta-data extracted by libextractor is searched.  Thus if libextractor does not find any meta-data in the files, you may not get any results.  You can use the option \-l to specify non-standard libextractor plugins.  For example, doodle could be used to replace the locate tool from the GNU findutils like this:
+ 
+-$ alias updatedb="doodle \-bn \-d ~/.doodle\-locate\-db \-l libextractor_filename /"
++$ alias updatedb="doodle \-bn \-d /var/lib/doodle/doodle\-locate\-db \-l libextractor_filename /"
+ 
+-$ alias locate="doodle \-d ~/.doodle\-locate\-db"
++$ alias locate="doodle \-d /var/lib/doodle/doodle\-locate\-db"
+ 
+ 
+ .SH "OPTIONS"
+@@ -53,7 +53,7 @@ build the doodle database (passed argume
+ Use the generic plaintext extractor for the language with the 2-letter language code LANG.  Supported languages are DA (Danish), DE (German), EN (English), ES (Spanish), IT (Italian) and NO (Norwegian).  Use this option to enable fulltext indexing (for a particular language).  This option only makes sense together with the \-b option.
+ .TP 
+ \fB\-d \fIFILENAME\fR, \fB\-\-database=\fIFILENAME\fR
+-use FILENAME for the location of the database (use when building or searching).  This option is particularly useful when doodle is used to search different types of files (or is operated with different extractor options).  Using this option doodle can be used to build specialized indices (i.e. one per file system), which can in turn improve search performance.  When searching, you can pass a colon-separated list of database file names, in that case all databases are searched.  Note that the disk-space consumption of a single database is typically slightly smaller than if the database is split into multiple files.  Nevertheless, the space\-savings are likely to be small (a few percent).  You can also use  the environment variable DOODLE_PATH to set the list of database files to search.  The option overrides the environment variable if both are used.  If the option is not given and DOODLE_PATH is not set, "~/.doodle" is used.
++use FILENAME for the location of the database (use when building or searching).  This option is particularly useful when doodle is used to search different types of files (or is operated with different extractor options).  Using this option doodle can be used to build specialized indices (i.e. one per file system), which can in turn improve search performance.  When searching, you can pass a colon-separated list of database file names, in that case all databases are searched.  Note that the disk-space consumption of a single database is typically slightly smaller than if the database is split into multiple files.  Nevertheless, the space\-savings are likely to be small (a few percent).  You can also use  the environment variable DOODLE_PATH to set the list of database files to search.  The option overrides the environment variable if both are used.  If the option is not given and DOODLE_PATH is not set, "/var/lib/doodle" is used.
+ .TP 
+ \fB\-e\fR, \fB\-\-extract\fR
+ print the extracted keywords for each matching file found.  Note that this will slow down the program a lot, especially if there are many matches in the database.  Note that if the options given for libextractor are different than the options used for building the index the results may not contain the search string.
+@@ -97,7 +97,7 @@ be verbose
+ .SH "ENVIRONMENT"
+ .TP
+ .B DOODLE_PATH
+-Colon\-separated list of databases to search.  Note that when building the database this path must either only contain one filename or the option \fB\-b\fP must be used to specify the database file.  Default is "~/.doodle".
++Colon\-separated list of databases to search.  Note that when building the database this path must either only contain one filename or the option \fB\-b\fP must be used to specify the database file.  Default is "/var/lib/doodle".
+ .TP
+ .B PRUNEPATHS
+ Space\-separated list of paths to exclude.  Can be overridden with the \fB\-P\fR option.  
+diff -Naurp doodle.orig/doc/man/doodled.1 doodle/doc/man/doodled.1
+--- doodle.orig/doc/man/doodled.1	2008-09-07 23:42:55.000000000 +0000
++++ doodle/doc/man/doodled.1	2009-03-21 07:36:03.000000000 +0000
+@@ -17,7 +17,7 @@ doodled monitors your filesystem for cha
+ Use the generic plaintext extractor for the language with the 2-letter language code LANG.  See extract(1) for a list of supported languages.  Use this option to enable fulltext indexing (for a particular language).
+ .TP 
+ \fB\-d \fIFILENAME\fR, \fB\-\-database=\fIFILENAME\fR
+-use FILENAME for the location of the database (use when building or searching).  This option is particularly useful when doodle is used to search different types of files (or is operated with different extractor options).  Using this option doodle can be used to build specialized indices (i.e. one per file system), which can in turn improve search performance.  When searching, you can pass a colon-separated list of database file names, in that case all databases are searched.  Note that the disk-space consumption of a single database is typically slightly smaller than if the database is split into multiple files.  Nevertheless, the space\-savings are likely to be small (a few percent).  You can also use  the environment variable DOODLE_PATH to set the list of database files to search.  The option overrides the environment variable if both are used.  If the option is not given and DOODLE_PATH is not set, "~/.doodle" is used.
++use FILENAME for the location of the database (use when building or searching).  This option is particularly useful when doodle is used to search different types of files (or is operated with different extractor options).  Using this option doodle can be used to build specialized indices (i.e. one per file system), which can in turn improve search performance.  When searching, you can pass a colon-separated list of database file names, in that case all databases are searched.  Note that the disk-space consumption of a single database is typically slightly smaller than if the database is split into multiple files.  Nevertheless, the space\-savings are likely to be small (a few percent).  You can also use  the environment variable DOODLE_PATH to set the list of database files to search.  The option overrides the environment variable if both are used.  If the option is not given and DOODLE_PATH is not set, "/var/lib/doodle" is used.
+ .TP 
+ \fB\-D\fR, \fB\-\-debug\fR
+ do not detach from the terminal (do not daemonize).  Also will print log messages to stderr if no logfile is specified.
+@@ -55,7 +55,7 @@ be verbose
+ .SH "ENVIRONMENT"
+ .TP
+ .B DOODLE_PATH
+-Colon\-separated list of databases to search.  Note that when building the database this path must either only contain one filename or the option \fB\-b\fP must be used to specify the database file.  Default is "~/.doodle".
++Colon\-separated list of databases to search.  Note that when building the database this path must either only contain one filename or the option \fB\-b\fP must be used to specify the database file.  Default is "/var/lib/doodle".
+ .TP
+ .B PRUNEPATHS
+ Space\-separated list of paths to exclude.  Can be overridden with the \fB\-P\fR option.  
+diff -Naurp doodle.orig/src/doodle/doodle.c doodle/src/doodle/doodle.c
+--- doodle.orig/src/doodle/doodle.c	2008-09-07 23:42:55.000000000 +0000
++++ doodle/src/doodle/doodle.c	2009-03-21 07:36:03.000000000 +0000
+@@ -503,7 +503,7 @@ int main(int argc,
+ 
+   dbName = getenv("DOODLE_PATH");
+   if (NULL == dbName)
+-    dbName = "~/.doodle";
++    dbName = "/var/lib/doodle/doodle.db";
+   tmp = getenv("PRUNEPATHS");
+   if (tmp != NULL)
+     prunepaths = tmp;
+diff -Naurp doodle.orig/src/doodle/doodled.c doodle/src/doodle/doodled.c
+--- doodle.orig/src/doodle/doodled.c	2008-09-07 23:42:55.000000000 +0000
++++ doodle/src/doodle/doodled.c	2009-03-21 07:36:03.000000000 +0000
+@@ -807,7 +807,7 @@ int main(int argc,
+ 
+   dbName = getenv("DOODLE_PATH");
+   if (NULL == dbName)
+-    dbName = "~/.doodle";
++    dbName = "/var/lib/doodle/doodle.db";
+   tmp = getenv("PRUNEPATHS");
+   if (tmp != NULL)
+     prunepaths = tmp;
--- doodle-0.6.7.orig/debian/patches/02-open-arguments.patch
+++ doodle-0.6.7/debian/patches/02-open-arguments.patch
@@ -0,0 +1,16 @@
+Author: James Westby <jw+debian@jameswestby.net>
+Description: Adding missing mode argument to open(2) call with O_CREAT (Closes: #506555).
+
+diff -Naurp doodle.orig/src/doodle/doodled.c doodle/src/doodle/doodled.c
+--- doodle.orig/src/doodle/doodled.c	2008-09-07 23:42:55.000000000 +0000
++++ doodle/src/doodle/doodled.c	2009-03-21 07:38:49.000000000 +0000
+@@ -758,7 +758,8 @@ static void detachFromTerminal(int * fil
+   }
+   close(filedes[0]); /* we only write */
+   nullfd = open("/dev/null",
+-		O_CREAT | O_RDWR | O_APPEND);
++		O_CREAT | O_RDWR | O_APPEND,
++		S_IRUSR | S_IWUSR);
+   if (nullfd < 0) {
+     perror("/dev/null");
+     exit(1);
--- doodle-0.6.7.orig/debian/patches/series
+++ doodle-0.6.7/debian/patches/series
@@ -0,0 +1,2 @@
+01-database-name.patch
+02-open-arguments.patch
--- doodle-0.6.7.orig/debian/source/format
+++ doodle-0.6.7/debian/source/format
@@ -0,0 +1 @@
+1.0
