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