mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools: add with-xen-scriptdir configure option
Some distros plan for fresh installations will have an empty /etc, whose content will not be controlled by the package manager anymore. To make this possible, add a knob to configure to allow storing the hotplug scripts to libexec instead of /etc/xen/scripts. The current default remains unchanged, which is /etc/xen/scripts. [autoconf rerun -iwj] Signed-off-by: Olaf Hering <olaf@aepfle.de> Release-Acked-by: Ian Jackson <iwj@xenproject.org> Reviewed-by: Ian Jackson <iwj@xenproject.org>
This commit is contained in:
1 parent
fe9ba142c0
commit
7a321c3676
4 files changed
+56
-15
No files matched your search
@@ -599,7 +599,6 @@ DEBUG_DIR
|
||||
XEN_DUMP_DIR
|
||||
XEN_PAGING_DIR
|
||||
XEN_LOCK_DIR
|
||||
XEN_SCRIPT_DIR
|
||||
INITD_DIR
|
||||
SHAREDIR
|
||||
XEN_LIB_DIR
|
||||
@@ -612,6 +611,7 @@ LIBEXEC_INC
|
||||
LIBEXEC_LIB
|
||||
LIBEXEC_BIN
|
||||
LIBEXEC
|
||||
XEN_SCRIPT_DIR
|
||||
CONFIG_LEAF_DIR
|
||||
XEN_CONFIG_DIR
|
||||
CONFIG_DIR
|
||||
@@ -670,6 +670,7 @@ enable_option_checking
|
||||
with_initddir
|
||||
with_sysconfig_leaf_dir
|
||||
with_libexec_leaf_dir
|
||||
with_xen_scriptdir
|
||||
with_xen_dumpdir
|
||||
with_rundir
|
||||
with_debugdir
|
||||
@@ -1328,6 +1329,9 @@ Optional Packages:
|
||||
"default". [sysconfig]
|
||||
--with-libexec-leaf-dir=SUBDIR
|
||||
Name of subdirectory in libexecdir to use.
|
||||
--with-xen-scriptdir=DIR
|
||||
Path to directory for dom0 hotplug scripts.
|
||||
[SYSCONFDIR/xen/scripts]
|
||||
--with-xen-dumpdir=DIR Path to directory for domU crash dumps.
|
||||
[LOCALSTATEDIR/lib/xen/dump]
|
||||
--with-rundir=DIR Path to directory for runtime data.
|
||||
@@ -1984,6 +1988,17 @@ fi
|
||||
|
||||
|
||||
|
||||
# Check whether --with-xen-scriptdir was given.
|
||||
if test "${with_xen_scriptdir+set}" = set; then :
|
||||
withval=$with_xen_scriptdir; xen_scriptdir_path=$withval
|
||||
else
|
||||
xen_scriptdir_path=$XEN_CONFIG_DIR/scripts
|
||||
fi
|
||||
|
||||
XEN_SCRIPT_DIR=$xen_scriptdir_path
|
||||
|
||||
|
||||
|
||||
# Check whether --with-xen-dumpdir was given.
|
||||
if test "${with_xen_dumpdir+set}" = set; then :
|
||||
withval=$with_xen_dumpdir; xen_dumpdir_path=$withval
|
||||
@@ -2051,9 +2066,6 @@ SHAREDIR=$prefix/share
|
||||
INITD_DIR=$initddir_path
|
||||
|
||||
|
||||
XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts
|
||||
|
||||
|
||||
case "$host_os" in
|
||||
*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
|
||||
*netbsd*) XEN_LOCK_DIR=$rundir_path ;;
|
||||
|
||||
Vendored
+16
-4
@@ -597,7 +597,6 @@ DEBUG_DIR
|
||||
XEN_DUMP_DIR
|
||||
XEN_PAGING_DIR
|
||||
XEN_LOCK_DIR
|
||||
XEN_SCRIPT_DIR
|
||||
INITD_DIR
|
||||
SHAREDIR
|
||||
XEN_LIB_DIR
|
||||
@@ -610,6 +609,7 @@ LIBEXEC_INC
|
||||
LIBEXEC_LIB
|
||||
LIBEXEC_BIN
|
||||
LIBEXEC
|
||||
XEN_SCRIPT_DIR
|
||||
CONFIG_LEAF_DIR
|
||||
XEN_CONFIG_DIR
|
||||
CONFIG_DIR
|
||||
@@ -660,6 +660,7 @@ enable_option_checking
|
||||
with_initddir
|
||||
with_sysconfig_leaf_dir
|
||||
with_libexec_leaf_dir
|
||||
with_xen_scriptdir
|
||||
with_xen_dumpdir
|
||||
with_rundir
|
||||
with_debugdir
|
||||
@@ -1301,6 +1302,9 @@ Optional Packages:
|
||||
"default". [sysconfig]
|
||||
--with-libexec-leaf-dir=SUBDIR
|
||||
Name of subdirectory in libexecdir to use.
|
||||
--with-xen-scriptdir=DIR
|
||||
Path to directory for dom0 hotplug scripts.
|
||||
[SYSCONFDIR/xen/scripts]
|
||||
--with-xen-dumpdir=DIR Path to directory for domU crash dumps.
|
||||
[LOCALSTATEDIR/lib/xen/dump]
|
||||
--with-rundir=DIR Path to directory for runtime data.
|
||||
@@ -1887,6 +1891,17 @@ fi
|
||||
|
||||
|
||||
|
||||
# Check whether --with-xen-scriptdir was given.
|
||||
if test "${with_xen_scriptdir+set}" = set; then :
|
||||
withval=$with_xen_scriptdir; xen_scriptdir_path=$withval
|
||||
else
|
||||
xen_scriptdir_path=$XEN_CONFIG_DIR/scripts
|
||||
fi
|
||||
|
||||
XEN_SCRIPT_DIR=$xen_scriptdir_path
|
||||
|
||||
|
||||
|
||||
# Check whether --with-xen-dumpdir was given.
|
||||
if test "${with_xen_dumpdir+set}" = set; then :
|
||||
withval=$with_xen_dumpdir; xen_dumpdir_path=$withval
|
||||
@@ -1954,9 +1969,6 @@ SHAREDIR=$prefix/share
|
||||
INITD_DIR=$initddir_path
|
||||
|
||||
|
||||
XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts
|
||||
|
||||
|
||||
case "$host_os" in
|
||||
*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
|
||||
*netbsd*) XEN_LOCK_DIR=$rundir_path ;;
|
||||
|
||||
+8
-3
@@ -76,6 +76,14 @@ AC_ARG_WITH([libexec-leaf-dir],
|
||||
[libexec_subdir=$withval],
|
||||
[libexec_subdir=$PACKAGE_TARNAME])
|
||||
|
||||
AC_ARG_WITH([xen-scriptdir],
|
||||
AS_HELP_STRING([--with-xen-scriptdir=DIR],
|
||||
[Path to directory for dom0 hotplug scripts. [SYSCONFDIR/xen/scripts]]),
|
||||
[xen_scriptdir_path=$withval],
|
||||
[xen_scriptdir_path=$XEN_CONFIG_DIR/scripts])
|
||||
XEN_SCRIPT_DIR=$xen_scriptdir_path
|
||||
AC_SUBST(XEN_SCRIPT_DIR)
|
||||
|
||||
AC_ARG_WITH([xen-dumpdir],
|
||||
AS_HELP_STRING([--with-xen-dumpdir=DIR],
|
||||
[Path to directory for domU crash dumps. [LOCALSTATEDIR/lib/xen/dump]]),
|
||||
@@ -137,9 +145,6 @@ AC_SUBST(SHAREDIR)
|
||||
INITD_DIR=$initddir_path
|
||||
AC_SUBST(INITD_DIR)
|
||||
|
||||
XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts
|
||||
AC_SUBST(XEN_SCRIPT_DIR)
|
||||
|
||||
case "$host_os" in
|
||||
*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
|
||||
*netbsd*) XEN_LOCK_DIR=$rundir_path ;;
|
||||
|
||||
Vendored
+16
-4
@@ -720,7 +720,6 @@ DEBUG_DIR
|
||||
XEN_DUMP_DIR
|
||||
XEN_PAGING_DIR
|
||||
XEN_LOCK_DIR
|
||||
XEN_SCRIPT_DIR
|
||||
INITD_DIR
|
||||
SHAREDIR
|
||||
XEN_LIB_DIR
|
||||
@@ -733,6 +732,7 @@ LIBEXEC_INC
|
||||
LIBEXEC_LIB
|
||||
LIBEXEC_BIN
|
||||
LIBEXEC
|
||||
XEN_SCRIPT_DIR
|
||||
CONFIG_LEAF_DIR
|
||||
XEN_CONFIG_DIR
|
||||
CONFIG_DIR
|
||||
@@ -801,6 +801,7 @@ enable_largefile
|
||||
with_initddir
|
||||
with_sysconfig_leaf_dir
|
||||
with_libexec_leaf_dir
|
||||
with_xen_scriptdir
|
||||
with_xen_dumpdir
|
||||
with_rundir
|
||||
with_debugdir
|
||||
@@ -1526,6 +1527,9 @@ Optional Packages:
|
||||
"default". [sysconfig]
|
||||
--with-libexec-leaf-dir=SUBDIR
|
||||
Name of subdirectory in libexecdir to use.
|
||||
--with-xen-scriptdir=DIR
|
||||
Path to directory for dom0 hotplug scripts.
|
||||
[SYSCONFDIR/xen/scripts]
|
||||
--with-xen-dumpdir=DIR Path to directory for domU crash dumps.
|
||||
[LOCALSTATEDIR/lib/xen/dump]
|
||||
--with-rundir=DIR Path to directory for runtime data.
|
||||
@@ -3966,6 +3970,17 @@ fi
|
||||
|
||||
|
||||
|
||||
# Check whether --with-xen-scriptdir was given.
|
||||
if test "${with_xen_scriptdir+set}" = set; then :
|
||||
withval=$with_xen_scriptdir; xen_scriptdir_path=$withval
|
||||
else
|
||||
xen_scriptdir_path=$XEN_CONFIG_DIR/scripts
|
||||
fi
|
||||
|
||||
XEN_SCRIPT_DIR=$xen_scriptdir_path
|
||||
|
||||
|
||||
|
||||
# Check whether --with-xen-dumpdir was given.
|
||||
if test "${with_xen_dumpdir+set}" = set; then :
|
||||
withval=$with_xen_dumpdir; xen_dumpdir_path=$withval
|
||||
@@ -4033,9 +4048,6 @@ SHAREDIR=$prefix/share
|
||||
INITD_DIR=$initddir_path
|
||||
|
||||
|
||||
XEN_SCRIPT_DIR=$XEN_CONFIG_DIR/scripts
|
||||
|
||||
|
||||
case "$host_os" in
|
||||
*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
|
||||
*netbsd*) XEN_LOCK_DIR=$rundir_path ;;
|
||||
|
||||