* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. bfea8d7d2fb35e2a722cd3e16f7b4126c18f7165
@ 2014-08-24 12:46 git
0 siblings, 0 replies; only message in thread
From: git @ 2014-08-24 12:46 UTC (permalink / raw)
To: ipfire-scm
[-- Attachment #1: Type: text/plain, Size: 2917 bytes --]
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via bfea8d7d2fb35e2a722cd3e16f7b4126c18f7165 (commit)
from 9bd0bfd233b2297a3c2e91e90b56fdfd96011c3b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bfea8d7d2fb35e2a722cd3e16f7b4126c18f7165
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date: Sun Aug 24 14:46:06 2014 +0200
findutils: Run updatedb once a week
As suggested in bug #10303
-----------------------------------------------------------------------
Summary of changes:
config/findutils/updatedb | 16 ++++++++++++++++
config/rootfiles/common/fcron | 1 -
config/rootfiles/common/findutils | 2 ++
lfs/findutils | 4 ++++
4 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 config/findutils/updatedb
Difference in files:
diff --git a/config/findutils/updatedb b/config/findutils/updatedb
new file mode 100644
index 0000000..bc4809f
--- /dev/null
+++ b/config/findutils/updatedb
@@ -0,0 +1,16 @@
+#!/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
diff --git a/config/rootfiles/common/fcron b/config/rootfiles/common/fcron
index b3a1c49..89f68a7 100644
--- a/config/rootfiles/common/fcron
+++ b/config/rootfiles/common/fcron
@@ -11,7 +11,6 @@ etc/fcron.hourly/info.txt
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
diff --git a/config/rootfiles/common/findutils b/config/rootfiles/common/findutils
index 13cae26..ac4fffe 100644
--- a/config/rootfiles/common/findutils
+++ b/config/rootfiles/common/findutils
@@ -1,3 +1,5 @@
+#etc/fcron.weekly
+etc/fcron.weekly/updatedb
bin/find
usr/bin/locate
#usr/bin/oldfind
diff --git a/lfs/findutils b/lfs/findutils
index c05aca3..e2dd04a 100644
--- a/lfs/findutils
+++ b/lfs/findutils
@@ -91,6 +91,10 @@ ifeq "$(ROOT)" ""
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)
hooks/post-receive
--
IPFire 2.x development tree
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-24 12:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-24 12:46 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. bfea8d7d2fb35e2a722cd3e16f7b4126c18f7165 git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox