mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 17:48:01 +02:00
Merge branch 'runtimedir-fix' into 'main'
Make use of standard --runstatedir flag vs custom --with-runtimedir See merge request plymouth/plymouth!178
This commit is contained in:
commit
9e72df3d8a
2 changed files with 3 additions and 10 deletions
11
configure.ac
11
configure.ac
|
|
@ -140,9 +140,7 @@ if test x$enable_systemd_integration = xyes; then
|
|||
AC_SUBST(SYSTEMD_UNIT_DIR)
|
||||
fi
|
||||
|
||||
AC_ARG_WITH([runtimedir],
|
||||
AC_HELP_STRING([--with-runtimedir=DIR], [runtime data dir [LOCALSTATEDIR/run]]),
|
||||
[plymouthruntimedir=${withval}/plymouth], [plymouthruntimedir=""])
|
||||
AC_ARG_WITH([runtimedir], [], [AC_MSG_ERROR([--with-runtimedir is obsolete, use --runstatedir instead])], [])
|
||||
|
||||
AC_ARG_WITH(system-root-install, AS_HELP_STRING([--with-system-root-install],[Install client in /bin and daemon in /sbin]),with_system_root_install=${withval},with_system_root_install=no)
|
||||
AM_CONDITIONAL(WITH_SYSTEM_ROOT_INSTALL, [test "$with_system_root_install" = yes])
|
||||
|
|
@ -150,16 +148,11 @@ AM_CONDITIONAL(WITH_SYSTEM_ROOT_INSTALL, [test "$with_system_root_install" = ye
|
|||
if test x$with_system_root_install = xyes; then
|
||||
plymouthclientdir=/bin
|
||||
plymouthdaemondir=/sbin
|
||||
if (test -z "${plymouthruntimedir}"); then
|
||||
plymouthruntimedir=/run/plymouth
|
||||
fi
|
||||
else
|
||||
plymouthclientdir=$bindir
|
||||
plymouthdaemondir=$sbindir
|
||||
if (test -z "${plymouthruntimedir}"); then
|
||||
plymouthruntimedir=$localstatedir/run/plymouth
|
||||
fi
|
||||
fi
|
||||
plymouthruntimedir=$runstatedir/plymouth
|
||||
AC_SUBST(plymouthclientdir)
|
||||
AC_SUBST(plymouthdaemondir)
|
||||
AC_SUBST(plymouthruntimedir)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ escrow_PROGRAMS = plymouthd-fd-escrow
|
|||
|
||||
plymouthd_fd_escrow_SOURCES = plymouthd-fd-escrow.c
|
||||
|
||||
plymouthdrundir = $(localstatedir)/run/plymouth
|
||||
plymouthdrundir = $(plymouthruntimedir)
|
||||
plymouthdspooldir = $(localstatedir)/spool/plymouth
|
||||
plymouthdtimedir = $(localstatedir)/lib/plymouth
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue