Skip to content

Commit

Permalink
Add a %_rundir macro to the platform files.
Browse files Browse the repository at this point in the history
The default value is /run, it can be changed with the --with-rundir
configure option.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
  • Loading branch information
mlschroe authored and pmatilai committed May 7, 2014
1 parent 68bddc3 commit 13a1ef9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,13 @@ AC_SUBST(RPMCANONVENDOR)
AC_SUBST(RPMCANONOS)
AC_SUBST(RPMCANONGNU)

RUNDIR="/run"
AC_ARG_WITH([rundir],
AS_HELP_STRING([--with-rundir=RUNDIR], [specify run-time variable directory]),
[RUNDIR=$withval])
AC_DEFINE_UNQUOTED([RUNDIR],["${RUNDIR}"],[run-time variable directory])
AC_SUBST(RUNDIR)

if test X"$prefix" = XNONE ; then
usrprefix="$ac_default_prefix"
else
Expand Down
1 change: 1 addition & 0 deletions platform.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
%_initddir %{_sysconfdir}/rc.d/init.d
# Deprecated misspelling, present for backwards compatibility.
%_initrddir %{_initddir}
%_rundir @RUNDIR@

%_defaultdocdir %{_datadir}/doc

Expand Down

0 comments on commit 13a1ef9

Please sign in to comment.