From 1698022beafffcb54b15a6e7a4773e1801a432b5 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 4 Jun 2007 17:35:31 -0400 Subject: Fix pacman-optimize autoconf paths Signed-off-by: Dan McGee --- scripts/Makefile.am | 4 +--- scripts/pacman-optimize.in | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 20aa209b..1d711b84 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -33,12 +33,10 @@ MOSTLYCLEANFILES = $(bin_SCRIPTS) *.tmp edit = sed \ -e 's|@localedir[@]|$(localedir)|g' \ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ + -e 's|@localstatedir[@]|$(localstatedir)|g' \ -e 's|@prefix[@]|$(prefix)|g' \ -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ -e 's|@PACKAGE_NAME[@]|$(PACKAGE_NAME)|g' \ - -e 's|@ROOTDIR[@]|$(ROOTDIR)|g' \ - -e 's|@DBPATH[@]|$(DBPATH)|g' \ - -e 's|@LOCKFILE[@]|$(LOCKFILE)|g' \ -e 's|@configure_input[@]|Generated from $@.in; do not edit by hand.|g' ## All the scripts depend on Makefile so that they are rebuilt when the diff --git a/scripts/pacman-optimize.in b/scripts/pacman-optimize.in index aaae6d24..3f7f51f7 100644 --- a/scripts/pacman-optimize.in +++ b/scripts/pacman-optimize.in @@ -26,9 +26,8 @@ export TEXTDOMAIN='pacman' export TEXTDOMAINDIR='@localedir@' myver='@PACKAGE_VERSION@' -# TODO fix these paths -dbroot='@ROOTDIR@@DBPATH@' -lockfile='@ROOTDIR@@LOCKFILE@' +dbroot='@localstatedir@/lib/pacman/' +lockfile='@localstatedir@/run/pacman.lck' msg() { local mesg=$1; shift -- cgit v1.2.3-70-g09d2