findutils stable port information

Package: findutils
Version: 4.2.20
Revision: 7
Maintainer: Dave Vasilevsky
Depends: cron-service, libgettext3-shlibs, libiconv
BuildDepends: libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev
Source: mirror:gnu:%n/%n-%v.tar.gz
Source-MD5: 7c8e12165b221dd67a19c00d780437a4
PatchScript: sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
SetCFLAGS: -DFINK -DHAVE_F_FSTYPENAME_IN_STATFS
CompileScript: <<
SORT=/usr/bin/sort ./configure %c
make libexecdir=%p/lib/locate
<<
InstallScript: <<
make install prefix=%i mandir=%i/share/man infodir=%i/share/info libexecdir=%i/lib/locate
mkdir -p %i/etc/cron.daily
install -c -m 755 findutils.cron %i/etc/cron.daily/%n
install -c -m 644 updatedb.conf %i/etc/updatedb.conf
<<
ConfFiles: %p/etc/updatedb.conf
DocFiles: README COPYING NEWS
InfoDocs: find.info
#
Description: Tools for searching for files
DescPackaging: <<
locate's helper programs are stowed away in .../lib/locate. That's a
bit more difficult than usual because the configure script is really
old.

The package installs a daily cron job to update locate's
database. updatedb is currently run as root since su seems to be
unable to become user 'nobody'.
<<
DescUsage: <<
The locate database is updated daily by default. Please see
%p/etc/updatedb.conf to reschedule the updatedb task.
<<
License: GPL
Homepage: http://www.gnu.org/software/findutils/findutils.html

findutils stable port .patch

diff -Naur findutils-4.2.20/findutils.cron findutils-new/findutils.cron
--- findutils-4.2.20/findutils.cron 1969-12-31 19:00:00.000000000 -0500
+++ findutils-new/findutils.cron 2005-07-20 00:44:54.000000000 -0400
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. @PREFIX@/etc/updatedb.conf
+
+test "x$STATUS" = "xon" || exit 0
+perl -e 'exit (!-e "@PREFIX@/var/locatedb" || -M "@PREFIX@/var/locatedb" > $ARGV[0] - 1)' $DAYS && exit 0
+
+test -x @PREFIX@/bin/updatedb || exit 0
+cd / && @PREFIX@/bin/updatedb
+
+exit 0
diff -Naur findutils-4.2.20/gnulib/lib/regex.c findutils-new/gnulib/lib/regex.c
--- findutils-4.2.20/gnulib/lib/regex.c 2005-01-24 12:10:02.000000000 -0500
+++ findutils-new/gnulib/lib/regex.c 2005-07-20 00:43:33.000000000 -0400
@@ -7963,7 +7963,7 @@

/* POSIX.2 functions. Don't define these for Emacs. */

-#ifndef emacs
+#if !defined(emacs) && !defined(FINK)

/* regcomp takes a regular expression as a string and compiles it.

diff -Naur findutils-4.2.20/lib/listfile.c findutils-new/lib/listfile.c
--- findutils-4.2.20/lib/listfile.c 2004-11-01 04:13:38.000000000 -0500
+++ findutils-new/lib/listfile.c 2005-07-20 00:43:33.000000000 -0400
@@ -89,10 +89,6 @@
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#endif

-#if defined(S_ISLNK)
-int readlink ();
-#endif
-
/* Get or fake the disk device blocksize.
Usually defined by sys/param.h (if at all). */
#ifndef DEV_BSIZE
diff -Naur findutils-4.2.20/locate/updatedb.sh findutils-new/locate/updatedb.sh
--- findutils-4.2.20/locate/updatedb.sh 2005-01-24 11:12:35.000000000 -0500
+++ findutils-new/locate/updatedb.sh 2005-07-20 00:43:33.000000000 -0400
@@ -143,7 +143,7 @@

PATH=/bin:/usr/bin:${BINDIR}; export PATH

-: ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"}
+: ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs afpfs fdesc volfs"}

if test -n "$PRUNEFS"; then
prunefs_exp=`echo $PRUNEFS |sed -e 's/\([^ ][^ ]*\)/-o -fstype \1/g' \
diff -Naur findutils-4.2.20/updatedb.conf findutils-new/updatedb.conf
--- findutils-4.2.20/updatedb.conf 1969-12-31 19:00:00.000000000 -0500
+++ findutils-new/updatedb.conf 2005-07-20 00:50:03.000000000 -0400
@@ -0,0 +1,10 @@
+###
+# This file allows you to schedule when the locate DB should be updated.
+#
+# STATUS: If this is not 'on', then the locate DB will never be updated.
+#
+# DAYS: This specifies the period in days between updates. So if DAYS=7,
+# then the DB will be updated every week
+###
+DAYS=1
+STATUS=on

findutils _unstable_ port information

Package: findutils
Version: 4.2.20
Revision: 7
Maintainer: Dave Vasilevsky
Depends: cron-service, libgettext3-shlibs, libiconv
BuildDepends: libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev
Source: mirror:gnu:%n/%n-%v.tar.gz
Source-MD5: 7c8e12165b221dd67a19c00d780437a4
PatchScript: sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
SetCFLAGS: -DFINK -DHAVE_F_FSTYPENAME_IN_STATFS
CompileScript: <<
SORT=/usr/bin/sort ./configure %c
make libexecdir=%p/lib/locate
<<
InstallScript: <<
make install prefix=%i mandir=%i/share/man infodir=%i/share/info libexecdir=%i/lib/locate
mkdir -p %i/etc/cron.daily
install -c -m 755 findutils.cron %i/etc/cron.daily/%n
install -c -m 644 updatedb.conf %i/etc/updatedb.conf
<<
ConfFiles: %p/etc/updatedb.conf
DocFiles: README COPYING NEWS
InfoDocs: find.info
#
Description: Tools for searching for files
DescPackaging: <<
locate's helper programs are stowed away in .../lib/locate. That's a
bit more difficult than usual because the configure script is really
old.

The package installs a daily cron job to update locate's
database. updatedb is currently run as root since su seems to be
unable to become user 'nobody'.
<<
DescUsage: <<
The locate database is updated daily by default. Please see
%p/etc/updatedb.conf to reschedule the updatedb task.
<<
License: GPL
Homepage: http://www.gnu.org/software/findutils/findutils.html

findutils _unstable_ port .patch

diff -Naur findutils-4.2.20/findutils.cron findutils-new/findutils.cron
--- findutils-4.2.20/findutils.cron 1969-12-31 19:00:00.000000000 -0500
+++ findutils-new/findutils.cron 2005-07-20 00:44:54.000000000 -0400
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. @PREFIX@/etc/updatedb.conf
+
+test "x$STATUS" = "xon" || exit 0
+perl -e 'exit (!-e "@PREFIX@/var/locatedb" || -M "@PREFIX@/var/locatedb" > $ARGV[0] - 1)' $DAYS && exit 0
+
+test -x @PREFIX@/bin/updatedb || exit 0
+cd / && @PREFIX@/bin/updatedb
+
+exit 0
diff -Naur findutils-4.2.20/gnulib/lib/regex.c findutils-new/gnulib/lib/regex.c
--- findutils-4.2.20/gnulib/lib/regex.c 2005-01-24 12:10:02.000000000 -0500
+++ findutils-new/gnulib/lib/regex.c 2005-07-20 00:43:33.000000000 -0400
@@ -7963,7 +7963,7 @@

/* POSIX.2 functions. Don't define these for Emacs. */

-#ifndef emacs
+#if !defined(emacs) && !defined(FINK)

/* regcomp takes a regular expression as a string and compiles it.

diff -Naur findutils-4.2.20/lib/listfile.c findutils-new/lib/listfile.c
--- findutils-4.2.20/lib/listfile.c 2004-11-01 04:13:38.000000000 -0500
+++ findutils-new/lib/listfile.c 2005-07-20 00:43:33.000000000 -0400
@@ -89,10 +89,6 @@
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#endif

-#if defined(S_ISLNK)
-int readlink ();
-#endif
-
/* Get or fake the disk device blocksize.
Usually defined by sys/param.h (if at all). */
#ifndef DEV_BSIZE
diff -Naur findutils-4.2.20/locate/updatedb.sh findutils-new/locate/updatedb.sh
--- findutils-4.2.20/locate/updatedb.sh 2005-01-24 11:12:35.000000000 -0500
+++ findutils-new/locate/updatedb.sh 2005-07-20 00:43:33.000000000 -0400
@@ -143,7 +143,7 @@

PATH=/bin:/usr/bin:${BINDIR}; export PATH

-: ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"}
+: ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs afpfs fdesc volfs"}

if test -n "$PRUNEFS"; then
prunefs_exp=`echo $PRUNEFS |sed -e 's/\([^ ][^ ]*\)/-o -fstype \1/g' \
diff -Naur findutils-4.2.20/updatedb.conf findutils-new/updatedb.conf
--- findutils-4.2.20/updatedb.conf 1969-12-31 19:00:00.000000000 -0500
+++ findutils-new/updatedb.conf 2005-07-20 00:50:03.000000000 -0400
@@ -0,0 +1,10 @@
+###
+# This file allows you to schedule when the locate DB should be updated.
+#
+# STATUS: If this is not 'on', then the locate DB will never be updated.
+#
+# DAYS: This specifies the period in days between updates. So if DAYS=7,
+# then the DB will be updated every week
+###
+DAYS=1
+STATUS=on