Blame SOURCES/rpcbind-0.2.3-systemd-tmpfiles.patch

6657fd
diff -up rpcbind-0.2.4/configure.ac.orig rpcbind-0.2.4/configure.ac
6657fd
--- rpcbind-0.2.4/configure.ac.orig	2017-12-16 15:52:22.774298138 -0500
6657fd
+++ rpcbind-0.2.4/configure.ac	2017-12-16 15:52:45.301075188 -0500
6657fd
@@ -52,6 +52,17 @@ AC_ARG_WITH([systemdsystemunitdir],
6657fd
   fi
6657fd
 AM_CONDITIONAL(SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
6657fd
 
6657fd
+AC_ARG_WITH([systemdtmpfilesdir],
6657fd
+  AS_HELP_STRING([--with-systemdtmpfilesdir=DIR], [Directory for systemd tmp files]),
6657fd
+  [], [with_systemdtmpfilesdir=$($PKG_CONFIG --variable=tmpfilesdir systemd)])
6657fd
+  if test "x$with_systemdtmpfilesdir" != xno; then
6657fd
+    AC_SUBST([systemdtmpfilesdir], [$with_systemdtmpfilesdir])
6657fd
+     PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [],
6657fd
+	   [PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon], [],
6657fd
+	   AC_MSG_ERROR([libsystemd support requested but found]))])
6657fd
+  fi
6657fd
+AM_CONDITIONAL(SYSTEMD, [test -n "$with_systemdtmpfilesdir" -a "x$with_systemdtmpfilesdir" != xno ])
6657fd
+
6657fd
 AS_IF([test x$enable_libwrap = xyes], [
6657fd
 	AC_CHECK_LIB([wrap], [hosts_access], ,
6657fd
 		AC_MSG_ERROR([libwrap support requested but unable to find libwrap]))
6657fd
diff -up rpcbind-0.2.4/Makefile.am.orig rpcbind-0.2.4/Makefile.am
6657fd
--- rpcbind-0.2.4/Makefile.am.orig	2017-12-16 15:52:22.774298138 -0500
6657fd
+++ rpcbind-0.2.4/Makefile.am	2017-12-16 15:52:45.301075188 -0500
6657fd
@@ -55,6 +55,9 @@ rpcbind_LDADD += $(SYSTEMD_LIBS)
6657fd
 systemdsystemunit_DATA = \
6657fd
 	systemd/rpcbind.service \
6657fd
 	systemd/rpcbind.socket
6657fd
+
6657fd
+systemdtmpfiles_DATA = \
6657fd
+	systemd/rpcbind.conf
6657fd
 endif
6657fd
 
6657fd
 rpcinfo_SOURCES =       src/rpcinfo.c
6657fd
diff -up rpcbind-0.2.4/systemd/rpcbind.conf.orig rpcbind-0.2.4/systemd/rpcbind.conf
6657fd
--- rpcbind-0.2.4/systemd/rpcbind.conf.orig	2017-12-16 15:52:45.301075188 -0500
6657fd
+++ rpcbind-0.2.4/systemd/rpcbind.conf	2017-12-16 15:52:45.301075188 -0500
6657fd
@@ -0,0 +1,2 @@
6657fd
+#Type Path         Mode  UID  GID Age Argument
6657fd
+D     /run/rpcbind 0700  rpc  rpc  -  -