Patch Name: nss_updatedb-1-FHS_compliance-1.patch Submitted By: Randy McMurchy Date: 2004-05-15 Initial Package Version: 1 Upstream Status: Pending submission Origin: Randy McMurchy Description: Allows using --localstatedir to point db file path Requires running autoreconf before building diff -Naur nss_updatedb-1-orig/configure.in nss_updatedb-1/configure.in --- nss_updatedb-1-orig/configure.in 2004-02-09 08:03:53.000000000 +0000 +++ nss_updatedb-1/configure.in 2004-05-17 06:51:19.000000000 +0000 @@ -22,5 +22,15 @@ AC_CHECK_LIB(db1, main,[LIBS="-ldb1 $LIBS" found_db_lib=yes],,$LIBS) fi +if test -f "updatedb.h.orig"; then + cp updatedb.h.orig updatedb.h +fi + +if test "$localstatedir" != '${prefix}/var'; then + echo "Updating db file path in updatedb.h" + cp updatedb.h updatedb.h.orig + sed -i -e "s@/var/db@${localstatedir}@" updatedb.h +fi + AC_OUTPUT(Makefile) diff -Naur nss_updatedb-1-orig/INSTALL nss_updatedb-1/INSTALL --- nss_updatedb-1-orig/INSTALL 2004-02-04 15:04:10.000000000 +0000 +++ nss_updatedb-1/INSTALL 2004-05-17 06:53:47.000000000 +0000 @@ -1,6 +1,15 @@ Basic Installation ================== +########################################################################## +Installation modification by Randy McMurchy + +--localstatedir passed to the configure script will denote the +db directory used for the db files (passwd.db, group.db). If +--localstatedir is not passed, the default (/var/db) is used. +########################################################################## + + These are generic installation instructions. The `configure' shell script attempts to guess correct values for