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