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

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