debian/0000755000000000000000000000000012176207742007176 5ustar debian/doodle.install0000644000000000000000000000007712176200067012031 0ustar /usr/bin/doodle /usr/share/locale /usr/share/man/man1/doodle.1 debian/libdoodle-dev.install0000644000000000000000000000012512176200067013266 0ustar /usr/include /usr/lib/*/*.a /usr/lib/*/*.so /usr/lib/*/pkgconfig /usr/share/man/man3 debian/doodle.default0000644000000000000000000000063012176200067012002 0ustar # 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" debian/doodle.postinst0000644000000000000000000000140612176200067012243 0ustar #!/bin/sh CRON="/etc/cron.daily/doodle" set -e case "${1}" in configure) if ! getent group doodle > /dev/null 2>&1 then addgroup --system doodle fi 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 debian/doodle.docs0000644000000000000000000000003612176200067011306 0ustar AUTHORS NEWS PLATFORMS README debian/libdoodle1.symbols0000644000000000000000000000124212176200067012616 0ustar libdoodle.so.1 libdoodle1 #MINVER# DOODLE_getFileAt@Base 0.7.0-6~ DOODLE_getFileCount@Base 0.7.0-6~ DOODLE_tree_create@Base 0.7.0-6~ DOODLE_tree_create_internal@Base 0.7.0-6~ DOODLE_tree_destroy@Base 0.7.0-6~ DOODLE_tree_dump@Base 0.7.0-6~ DOODLE_tree_expand@Base 0.7.0-6~ DOODLE_tree_open_RDONLY@Base 0.7.0-6~ DOODLE_tree_search@Base 0.7.0-6~ DOODLE_tree_search_approx@Base 0.7.0-6~ DOODLE_tree_set_memory_limit@Base 0.7.0-6~ DOODLE_tree_truncate@Base 0.7.0-6~ DOODLE_tree_truncate_deleted@Base 0.7.0-6~ DOODLE_tree_truncate_modified@Base 0.7.0-6~ DOODLE_tree_truncate_multiple@Base 0.7.0-6~ MALLOC@Base 0.7.0-6~ STRDUP@Base 0.7.0-6~ xgrow_@Base 0.7.0-6~ debian/doodle.postrm0000644000000000000000000000043312176200067011703 0ustar #!/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 debian/doodle.cron.daily0000644000000000000000000000063412176200067012424 0ustar #!/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 debian/gbp.conf0000644000000000000000000000015512176200067010607 0ustar [DEFAULT] upstream-branch = upstream debian-branch = master [git-buildpackage] export-dir = ../build-area/ debian/doodle.dirs0000644000000000000000000000002012176200067011310 0ustar /var/lib/doodle debian/doodled.init0000644000000000000000000000316312176200067011471 0ustar #!/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" PIDFILE="/var/run/${NAME}.pid" test -x ${DAEMON} || exit 0 . /lib/lsb/init-functions # Include doodle defaults if available if [ -f /etc/default/doodled ] then . /etc/default/doodled else exit 0 fi #set -e case "${1}" in start) log_daemon_msg "Starting ${DESC}" "${NAME}" if [ -e ${DOODLE_PATH} ] then start-stop-daemon --start --quiet --pidfile ${PIDFILE} --make-pidfile --background --oknodo --exec ${DAEMON} -- ${DAEMON_OPTS} log_end_msg $? else log_failure_msg "halted (you may want to run doodle first)" fi ;; stop) log_daemon_msg "Stopping ${DESC}" "${NAME}" start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --oknodo --exec ${DAEMON} log_end_msg $? rm -f ${PIDFILE} ;; restart|force-reload) log_daemon_msg "Restarting ${DESC}" "${NAME}" start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --oknodo --exec ${DAEMON} rm -f ${PIDFILE} sleep 1 start-stop-daemon --start --quiet --pidfile ${PIDFILE} --make-pidfile --background --oknodo --exec ${DAEMON} -- ${DAEMON_OPTS} log_end_msg $? ;; status) status_of_proc -p $PIDFILE "${DAEMON}" "${NAME}" ;; *) N=/etc/init.d/${NAME} echo "Usage: ${N} {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/rules0000755000000000000000000000071512176200067010252 0ustar #!/usr/bin/make -f export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs -Wl,--as-needed -Wl,-O1 export DEB_BUILD_MAINT_OPTIONS=hardening=+pie,+bindnow %: dh ${@} --with autotools_dev 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 debian/compat0000644000000000000000000000000212176200067010365 0ustar 9 debian/doodled.postinst0000644000000000000000000000042312176200067012405 0ustar #!/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 debian/doodled.default0000644000000000000000000000065112176200067012151 0ustar # 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 -d ${DOODLE_DBPATH} -L /var/log/doodled.log ${DOODLE_PATH}" debian/source/0000755000000000000000000000000012176200067010467 5ustar debian/source/format0000644000000000000000000000001412176200067011675 0ustar 3.0 (quilt) debian/control0000644000000000000000000001003112176200067010565 0ustar Source: doodle Section: utils Priority: optional Maintainer: Prach Pongpanich Build-Depends: autotools-dev, debhelper (>= 9), dpkg-dev (>= 1.16.1~), libextractor-dev (>= 1:0.6.0), libgamin-dev Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/collab-maint/doodle.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/doodle.git Homepage: http://www.gnunet.org/doodle/ Package: doodle Architecture: any Depends: adduser, ${misc:Depends}, ${shlibs:Depends} 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: doodle (= ${binary:Version}), doodled (= ${binary:Version}), libdoodle-dev (= ${binary:Version}), libdoodle1 (= ${binary:Version}), ${misc:Depends} 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 Architecture: any Depends: doodle (= ${binary:Version}), gamin, ${misc:Depends}, ${shlibs:Depends} 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 Multi-Arch: same Depends: ${misc:Depends}, ${shlibs:Depends} Pre-Depends: ${misc:Pre-Depends} 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: libdoodle1 (= ${binary:Version}), ${misc:Depends} 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). debian/libdoodle1.install0000644000000000000000000000002212176200067012567 0ustar /usr/lib/*/*.so.* debian/changelog0000644000000000000000000003174412176200067011052 0ustar doodle (0.7.0-8) unstable; urgency=medium * Drop depends on libextractor-plugins (Closes: #718322) * Move the Git repository to collab-maint, update Vcs-* fields * Drop depends on portmap from doodled, it's not needed and removed from the Debian archive * Remove debian/source/options to use default compression * Set urgency medium due to RC bug fix -- Prach Pongpanich Wed, 31 Jul 2013 19:00:37 +0700 doodle (0.7.0-7) unstable; urgency=low * Upload to unstable * debian/doodled.init: - Use LSB init-functions - Add --make-pidfile and --background (Closes: #650835) * Add debian/gbp.conf * Add Vcs-* fields -- Prach Pongpanich Sun, 26 May 2013 22:09:49 +0700 doodle (0.7.0-6) experimental; urgency=low * New maintainer. (Closes: #660437) * Add watch file from Bart Martens. * Build with hardening flags: - Bump debhelper compat to level 9. - Add dpkg-dev (>= 1.16.1~) to Build-Deps. - Add debhelper (>= 9). * Multiarch support: - Add "Pre-Depends: ${misc:Pre-Depends}" for libdoodle1. - Replace /usr/lib/ with /usr/lib/*/ in {libdoodle1,libdoodle-dev}.install ,debian/rules. - Add "Multi-Arch: same" for libdoodle1. * Add symbols file for libdoodle1. * Add patch 03-fix-hyphen-used-as-minus-sign. * Bump to Standards-Version 3.9.4, no changes needed. * Update copyright file to version 1.0 format. -- Prach Pongpanich Wed, 23 Jan 2013 14:47:54 +0700 doodle (0.7.0-5) unstable; urgency=low * QA upload. (Closes: #674333) * control: don't hardcode depends on libextractor1c2a. (Closes: #662608) -- Holger Levsen Mon, 28 May 2012 00:44:34 +0200 doodle (0.7.0-4) experimental; urgency=low * Orpahning package. -- Daniel Baumann Sun, 19 Feb 2012 09:19:05 +0000 doodle (0.7.0-3) experimental; urgency=low * Updating maintainer and uploaders fields. * Removing vcs fields. * Removing references to my old email address. * Switching to source format 3.0 (quilt). * Making packaging distribution neutral. * Compacting copyright file. * Updating year in copyright file. * Updating to standards version 3.9.2. * Using getent rather than sg doodle postinst script. * Simplifying autotools handling in rules. * Adding patch from Angel Abad to fix FTBFS with binutils-gold (Closes: #638852). * Rediffing database-name.patch. -- Daniel Baumann Fri, 09 Sep 2011 19:01:08 +0200 doodle (0.7.0-2) experimental; urgency=low * Adding missing epoche in libextractor build-depends (Closes: #598958). * Updating to debhelper version 8. * Updating to standards version 3.9.1. -- Daniel Baumann Sun, 17 Oct 2010 21:34:54 +0200 doodle (0.7.0-1) experimental; urgency=low * Adding explicit source version 1.0 until switch to 3.0. * Updating year in copyright file. * Adding upstream version 0.7.0. * Making build-depends on libextractor versioned to 0.6.0. * Removing superfluous depends of libdoodle-dev. * Updating to standards 3.8.4. * Changing dh call to more common scheme. * Updating year in copyright file. * Removing open-arguments.patch, went upstream. -- Daniel Baumann Sun, 21 Feb 2010 16:52:53 +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 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 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 (Closes: #541545). -- Daniel Baumann Fri, 14 Aug 2009 21:04:31 +0200 doodle (0.6.7-6) unstable; urgency=low * Applying patch from eo in order to make the doodle cronjob cope with multiple directories (Closes: #528282). -- Daniel Baumann 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 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 to add missing mode argument to open(2) call with O_CREAT (Closes: #506555). -- Daniel Baumann 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 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 Sun, 23 Dec 2007 23:29:00 +0100 doodle (0.6.7-1) unstable; urgency=low * New upstream release. -- Daniel Baumann Thu, 06 Dec 2007 09:26:00 +0100 doodle (0.6.6-7) unstable; urgency=low * Adding debug package. -- Daniel Baumann 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 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 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 Fri, 30 Mar 2007 08:42:00 +0200 doodle (0.6.6-3) unstable; urgency=low * Rebuild against gamin. -- Daniel Baumann 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 Fri, 19 Jan 2007 12:30:00 +0100 doodle (0.6.6-1) unstable; urgency=low * New upstream release. -- Daniel Baumann 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 Sun, 29 Oct 2006 12:36:00 +0200 doodle (0.6.5-4) unstable; urgency=low * New email address. -- Daniel Baumann 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 Thu, 22 Jun 2006 20:11:00 +0200 doodle (0.6.5-2) unstable; urgency=low * Adjusted cronjob (Closes: #368598). -- Daniel Baumann Thu, 25 May 2006 18:34:00 +0200 doodle (0.6.5-1) unstable; urgency=low * New upstream release. -- Daniel Baumann Wed, 03 May 2006 00:00:00 +0100 doodle (0.6.3+2496-2) unstable; urgency=low * Fixed descriptions' spelling (Closes: #363262). -- Daniel Baumann 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 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 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 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 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 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 Tue, 01 Feb 2005 20:14:00 +0100 doodle (0.5.0-1) unstable; urgency=low * New upstream release. -- Daniel Baumann 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 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 Sun, 15 Aug 2004 21:50:04 +0200 doodle (0.2.1-1) unstable; urgency=low * Initial Release. -- Daniel Baumann Wed, 11 Aug 2004 15:11:23 +0200 debian/patches/0000755000000000000000000000000012176200067010616 5ustar debian/patches/03-fix-hyphen-used-as-minus-sign.patch0000644000000000000000000000220212176200067017560 0ustar Description: Fix hyphen used as minus sign. Author: Prach Pongpanich --- doodle-0.7.0.orig/doc/man/doodle.1 +++ doodle-0.7.0/doc/man/doodle.1 @@ -23,7 +23,7 @@ $ doodle \-b /foo /bar # or $ doodle \-b /foo ; doodle \-b /bar .TP -will result in the same database containing both the index for /foo and /bar. Note that the only way to only un-index /foo at this point is to make /foo inaccessible (using for example chmod 000 /foo or even rm -rf /foo) and then run doodle \-b again. +will result in the same database containing both the index for /foo and /bar. Note that the only way to only un-index /foo at this point is to make /foo inaccessible (using for example chmod 000 /foo or even rm \-rf /foo) and then run doodle \-b again. .TP In networked environments, it often makes sense to build a database at the root of each file system, containing the entries for that file system. For this, doodle is run for each file system on the file server where that file system is on a local disk, to prevent thrashing the network. Users can select which databases doodle searches. Databases cannot be concatenated together. debian/patches/02-gold.patch0000644000000000000000000000102212176200067012776 0ustar Author: Angel Abad Description: Add -lextractor to fix FTBFS with binutils-gold (Closes: #638852). diff -Naurp doodle.orig/src/doodle/Makefile.in doodle/src/doodle/Makefile.in --- doodle.orig/src/doodle/Makefile.in 2010-01-14 11:50:44.000000000 +0100 +++ doodle/src/doodle/Makefile.in 2011-09-09 19:08:56.204389062 +0200 @@ -251,7 +251,7 @@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = \ - @LTLIBINTL@ @LIBS@ + @LTLIBINTL@ @LIBS@ -lextractor LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ debian/patches/01-database-name.patch0000644000000000000000000002016012176200067014536 0ustar Author: Daniel Baumann 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 2011-09-09 19:18:29.978309912 +0200 +++ doodle/doc/man/doodle.1 2011-09-09 19:19:52.602719627 +0200 @@ -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" @@ -50,7 +50,7 @@ do approximate matching with mismatches build the doodle database (passed arguments are directories and filenames that are to be indexed). In comparison with GNU locate the doodle binary encapsulates both the locate and the updatedb tool. Using the \fB\-b\fR option doodle builds or updates the database (equivalent to updatedb), without \fB\-b\fR it behaves similar to locate. .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. @@ -91,7 +91,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 2011-09-09 19:18:29.978309912 +0200 +++ doodle/doc/man/doodled.1 2011-09-09 19:19:52.606719636 +0200 @@ -14,7 +14,7 @@ doodled monitors your filesystem for cha .SH "OPTIONS" .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. @@ -49,7 +49,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 2011-09-09 19:18:30.022310130 +0200 +++ doodle/src/doodle/doodle.c 2011-09-09 19:19:52.606719636 +0200 @@ -485,7 +485,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 2011-09-09 19:18:30.022310130 +0200 +++ doodle/src/doodle/doodled.c 2011-09-09 19:19:52.606719636 +0200 @@ -800,7 +800,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; debian/patches/series0000644000000000000000000000011412176200067012027 0ustar 01-database-name.patch 02-gold.patch 03-fix-hyphen-used-as-minus-sign.patch debian/doodled.install0000644000000000000000000000005712176200067012173 0ustar /usr/bin/doodled /usr/share/man/man1/doodled.1 debian/watch0000644000000000000000000000036212176200067010221 0ustar version=3 opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \ http://www.gnunet.org/doodle/ (?:.*/)?doodle[_\-\.]?(\d\S+)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz)) debian/copyright0000644000000000000000000000237512176200067011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: doodle Upstream-Contact: Christian Grothoff Source: http://www.gnunet.org/doodle/ Files: * Copyright: 2004-2010 Christian Grothoff License: GPL-2+ Files: debian/* Copyright: 2004-2012 Daniel Baumann 2013 Prach Pongpanich License: GPL-2+ 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. . The complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file.