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:
Ray Strode 2022-07-19 18:32:22 +00:00
commit 9e72df3d8a
2 changed files with 3 additions and 10 deletions

View file

@ -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)

View file

@ -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