diff -up rpcbind-0.2.4/configure.ac.orig rpcbind-0.2.4/configure.ac --- rpcbind-0.2.4/configure.ac.orig 2017-12-16 15:53:47.253462041 -0500 +++ rpcbind-0.2.4/configure.ac 2017-12-16 15:54:01.089325106 -0500 @@ -22,8 +22,8 @@ AC_ARG_ENABLE([warmstarts], AM_CONDITIONAL(WARMSTART, test x$enable_warmstarts = xyes) AC_ARG_WITH([statedir], - AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/var/run/rpcbind@:>@]) - ,, [with_statedir=/var/run/rpcbind]) + AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/run/rpcbind@:>@]) + ,, [with_statedir=/run/rpcbind]) AC_SUBST([statedir], [$with_statedir]) AC_ARG_WITH([rpcuser], diff -up rpcbind-0.2.4/configure.orig rpcbind-0.2.4/configure --- rpcbind-0.2.4/configure.orig 2016-11-30 09:03:59.000000000 -0500 +++ rpcbind-0.2.4/configure 2017-12-16 15:54:01.091325086 -0500 @@ -1387,7 +1387,7 @@ Optional Features: Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-statedir=ARG use ARG as state dir [default=/var/run/rpcbind] + --with-statedir=ARG use ARG as state dir [default=/run/rpcbind] --with-rpcuser=ARG use ARG for RPC [default=root] @@ -3883,7 +3883,7 @@ fi if test "${with_statedir+set}" = set; then : withval=$with_statedir; else - with_statedir=/var/run/rpcbind + with_statedir=/run/rpcbind fi statedir=$with_statedir diff -up rpcbind-0.2.4/man/rpcbind-fr.8.orig rpcbind-0.2.4/man/rpcbind-fr.8 --- rpcbind-0.2.4/man/rpcbind-fr.8.orig 2016-11-28 15:47:28.000000000 -0500 +++ rpcbind-0.2.4/man/rpcbind-fr.8 2017-12-16 15:54:01.091325086 -0500 @@ -138,8 +138,8 @@ est redémarré. .Xr rpcbind 3 , .Xr rpcinfo 8 .Sh FILES -.Bl -tag -width /var/run/rpcbind.sock -compact -.It Pa /var/run/rpcbind.sock +.Bl -tag -width /run/rpcbind.sock -compact +.It Pa /run/rpcbind.sock .Sh TRADUCTION Aurelien CHARBON (Sept 2003) .El diff -up rpcbind-0.2.4/src/rpcbind.c.orig rpcbind-0.2.4/src/rpcbind.c --- rpcbind-0.2.4/src/rpcbind.c.orig 2016-11-28 15:47:28.000000000 -0500 +++ rpcbind-0.2.4/src/rpcbind.c 2017-12-16 15:54:01.092325076 -0500 @@ -106,7 +106,7 @@ char *nss_modules = "files"; /* who to suid to if -s is given */ #define RUN_AS "daemon" -#define RPCBINDDLOCK "/var/run/rpcbind.lock" +#define RPCBINDDLOCK RPCBIND_STATEDIR "/rpcbind.lock" int runasdaemon = 0; int insecure = 0;