master - configure: fix install location of profile dir
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ffa11ed35688243a4546d4a35a97fc0339916651 Commit: ffa11ed35688243a4546d4a35a97fc0339916651 Parent: eeb164b50f9e5e5ce39f7851fced7c29e1fc0202 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Jul 3 13:07:39 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Jul 3 14:44:51 2013 +0200
configure: fix install location of profile dir
Seems like we have a bit overcomplicated set of options for deducing individual install dirs.
This patch fixes installation issues with DESTDIR, but the whole set of configure options should be simplified.
--- conf/Makefile.in | 4 ++-- configure | 4 ++-- configure.in | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-)
conf/Makefile.in +2 -2
@@ -30,8 +30,8 @@ install_conf: $(CONFSRC) fi install_profiles: $(PROFILES) - $(INSTALL) -d $(DEFAULT_PROFILE_DIR) - $(INSTALL_DATA) $(PROFILES) $(DEFAULT_PROFILE_DIR)/ + $(INSTALL_DIR) $(DESTDIR)$(DEFAULT_PROFILE_DIR) + $(INSTALL_DATA) $(PROFILES) $(DESTDIR)$(DEFAULT_PROFILE_DIR)/ install_lvm2: install_conf install_profiles
configure +2 -2
@@ -10066,7 +10066,7 @@ fi if test "${with_confdir+set}" = set; then : withval=$with_confdir; CONFDIR=$withval else - CONFDIR="/etc" + CONFDIR='${exec_prefix}/etc' fi
@@ -10549,7 +10549,7 @@ fi if test "${with_default_system_dir+set}" = set; then : withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval else - DEFAULT_SYS_DIR="/etc/lvm" + DEFAULT_SYS_DIR='${exec_prefix}/etc/lvm' fi
configure.in +3 -3
@@ -1279,7 +1279,7 @@ fi AC_ARG_WITH(confdir, AC_HELP_STRING([--with-confdir=DIR], [configuration files in DIR [[/etc]]]), - CONFDIR=$withval, CONFDIR="/etc") + CONFDIR=$withval, CONFDIR='${exec_prefix}/etc') AC_ARG_WITH(staticdir, AC_HELP_STRING([--with-staticdir=DIR],
@@ -1416,8 +1416,8 @@ fi dnl -- various defaults AC_ARG_WITH(default-system-dir, AC_HELP_STRING([--with-default-system-dir=DIR], - [default LVM system directory [[/etc/lvm]]]), - DEFAULT_SYS_DIR=$withval, DEFAULT_SYS_DIR="/etc/lvm") + [default LVM system directory [[EPREFIX/etc/lvm]]]), + DEFAULT_SYS_DIR=$withval, DEFAULT_SYS_DIR='${exec_prefix}/etc/lvm') AC_DEFINE_UNQUOTED(DEFAULT_SYS_DIR, ["$DEFAULT_SYS_DIR"], [Path to LVM system directory.])