Blame SOURCES/rpcbind-0.2.4-runstatdir.patch

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