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
+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 ;;
|
||||
|
||||