]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/findutils
Merge remote-tracking branch 'amarx/BUG10796' into next
[ipfire-2.x.git] / lfs / findutils
index 6321458a1ffd84c75ff57baf2d4958c8e88d7b0e..e2dd04a02296e15ec50569911d370cc9f62bbbd3 100644 (file)
@@ -89,7 +89,12 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && make $(EXTRA_INSTALL) install
 ifeq "$(ROOT)" ""
        mv -v /usr/bin/find /bin
-       sed -i -e 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb
+       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)