As suggested in bug #10303
--- /dev/null
+#!/bin/bash
+
+[ -x "/usr/bin/updatedb" ] || exit 0
+
+LOCKFILE="/var/lib/locate/updatedb.lock"
+
+trap "rm -f $LOCKFILE" EXIT
+
+if [ -e "$LOCKFILE" ]; then
+ echo >&2 "Warning: $LOCKFILE present, not running updatedb."
+ exit 1
+else
+ touch "$LOCKFILE"
+fi
+
+exec /usr/bin/updatedb
etc/fcron.minutely/info.txt
#etc/fcron.monthly
etc/fcron.monthly/info.txt
-#etc/fcron.weekly
etc/fcron.weekly/info.txt
usr/bin/fcronsighup
usr/bin/fcrontab
+#etc/fcron.weekly
+etc/fcron.weekly/updatedb
bin/find
usr/bin/locate
#usr/bin/oldfind
mv -v /usr/bin/find /bin
sed -i -e 's|BINDIR=/usr/bin|BINDIR=/bin|' /usr/bin/updatedb
-mkdir -p /var/lib/locate
+
+ -mkdir -pv /etc/fcron.weekly
+ install -v -m 754 $(DIR_SRC)/config/findutils/updatedb \
+ /etc/fcron.weekly/updatedb
endif
@rm -rf $(DIR_APP)
@$(POSTBUILD)