Blame SOURCES/rpcbind-0.2.4-runstatdir.patch

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