62b4f2
diff -up rpcbind-1.2.5/configure.ac.orig rpcbind-1.2.5/configure.ac
62b4f2
--- rpcbind-1.2.5/configure.ac.orig	2018-08-15 11:15:14.188974027 -0400
62b4f2
+++ rpcbind-1.2.5/configure.ac	2018-08-15 11:15:44.948991114 -0400
62b4f2
@@ -26,8 +26,8 @@ AC_ARG_ENABLE([rmtcalls],
62b4f2
 AM_CONDITIONAL(RMTCALLS, test x$enable_rmtcalls = xyes)
62b4f2
 
62b4f2
 AC_ARG_WITH([statedir],
62b4f2
-  AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/var/run/rpcbind@:>@])
62b4f2
-  ,, [with_statedir=/var/run/rpcbind])
62b4f2
+  AS_HELP_STRING([--with-statedir=ARG], [use ARG as state dir @<:@default=/run/rpcbind@:>@])
62b4f2
+  ,, [with_statedir=/run/rpcbind])
62b4f2
 AC_SUBST([statedir], [$with_statedir])
62b4f2
 
62b4f2
 AC_ARG_WITH([rpcuser],
62b4f2
diff -up rpcbind-1.2.5/configure.orig rpcbind-1.2.5/configure
62b4f2
--- rpcbind-1.2.5/configure.orig	2018-08-15 11:00:32.000000000 -0400
62b4f2
+++ rpcbind-1.2.5/configure	2018-08-15 11:15:44.951991115 -0400
62b4f2
@@ -1391,7 +1391,7 @@ Optional Features:
62b4f2
 Optional Packages:
62b4f2
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
62b4f2
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
62b4f2
-  --with-statedir=ARG     use ARG as state dir [default=/var/run/rpcbind]
62b4f2
+  --with-statedir=ARG     use ARG as state dir [default=/run/rpcbind]
62b4f2
 
62b4f2
   --with-rpcuser=ARG      use ARG for RPC [default=root]
62b4f2
 
62b4f2
@@ -3901,7 +3901,7 @@ fi
62b4f2
 if test "${with_statedir+set}" = set; then :
62b4f2
   withval=$with_statedir;
62b4f2
 else
62b4f2
-  with_statedir=/var/run/rpcbind
62b4f2
+  with_statedir=/run/rpcbind
62b4f2
 fi
62b4f2
 
62b4f2
 statedir=$with_statedir
62b4f2
diff -up rpcbind-1.2.5/man/rpcbind-fr.8.orig rpcbind-1.2.5/man/rpcbind-fr.8
62b4f2
--- rpcbind-1.2.5/man/rpcbind-fr.8.orig	2018-08-15 10:51:19.000000000 -0400
62b4f2
+++ rpcbind-1.2.5/man/rpcbind-fr.8	2018-08-15 11:15:44.951991115 -0400
62b4f2
@@ -138,8 +138,8 @@ est redémarré.
62b4f2
 .Xr rpcbind 3 ,
62b4f2
 .Xr rpcinfo 8
62b4f2
 .Sh FILES
62b4f2
-.Bl -tag -width /var/run/rpcbind.sock -compact
62b4f2
-.It Pa /var/run/rpcbind.sock
62b4f2
+.Bl -tag -width /run/rpcbind.sock -compact
62b4f2
+.It Pa /run/rpcbind.sock
62b4f2
 .Sh TRADUCTION
62b4f2
 Aurelien CHARBON (Sept 2003)
62b4f2
 .El
62b4f2
diff -up rpcbind-1.2.5/src/rpcbind.c.orig rpcbind-1.2.5/src/rpcbind.c
62b4f2
--- rpcbind-1.2.5/src/rpcbind.c.orig	2018-08-15 10:51:19.000000000 -0400
62b4f2
+++ rpcbind-1.2.5/src/rpcbind.c	2018-08-15 11:15:44.952991116 -0400
62b4f2
@@ -106,7 +106,7 @@ char *nss_modules = "files";
62b4f2
 /* who to suid to if -s is given */
62b4f2
 #define RUN_AS  "daemon"
62b4f2
 
62b4f2
-#define RPCBINDDLOCK "/var/run/rpcbind.lock"
62b4f2
+#define RPCBINDDLOCK RPCBIND_STATEDIR "/rpcbind.lock"
62b4f2
 
62b4f2
 int runasdaemon = 0;
62b4f2
 int insecure = 0;