findutils: fix locate database updater.

This commit is contained in:
Arne Fitzenreiter
2010-11-03 19:38:19 +01:00
parent c8d680dc8d
commit fb2f6523e5
2 changed files with 6 additions and 4 deletions

View File

@@ -89,7 +89,8 @@ $(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
endif
@rm -rf $(DIR_APP)
@$(POSTBUILD)