]> git.draconx.ca Git - gentoo-draconx.git/blobdiff - net-nds/ypbind/files/ypbind-2.4-fix-systemd-configuration.patch
Add ebuilds for ypbind.
[gentoo-draconx.git] / net-nds / ypbind / files / ypbind-2.4-fix-systemd-configuration.patch
diff --git a/net-nds/ypbind/files/ypbind-2.4-fix-systemd-configuration.patch b/net-nds/ypbind/files/ypbind-2.4-fix-systemd-configuration.patch
new file mode 100644 (file)
index 0000000..46bce77
--- /dev/null
@@ -0,0 +1,35 @@
+From e6c29b08a141cb6c8967b6cdfc9283b6aef9dda7 Mon Sep 17 00:00:00 2001
+From: Nick Bowler <nbowler@draconx.ca>
+
+---
+ configure.ac | 14 +++++++++++---
+ 1 file changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 2856c5e8f854..69d97dae0577 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,9 +24,17 @@ dnl Checks for libraries.
+ dnl AC_CHECK_LIB(nsl, yp_get_default_domain)
+ AC_CHECK_LIB(pthread, pthread_create)
+-PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 209], [USE_SD_NOTIFY=1], [USE_SD_NOTIFY=0])
+-AC_SUBST(USE_SD_NOTIFY)
+-#PKG_CHECK_MODULES([NSL], [libnsl], [], [AC_CHECK_LIB([nsl],[yp_match],[LIBNSL_LIBS="-lnsl"],[LIBNSL_LIBS=""])])
++AC_ARG_WITH([systemd],
++  [AS_HELP_STRING([--with-systemd], [build against libsystemd])])
++
++USE_SD_NOTIFY=0
++AS_IF([test x"$with_systemd" != x"no"],
++  [PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 209],
++    [USE_SD_NOTIFY=1], [USE_SD_NOTIFY=0])])
++AS_IF([test x"$with_systemd" = x"yes" && test x"$USE_SD_NOTIFY" = x"0"],
++  [AC_MSG_ERROR([systemd requested but libsystemd not found])])
++AC_SUBST([USE_SD_NOTIFY])
++
+ PKG_CHECK_MODULES([NSL], [libnsl])
+ PKG_CHECK_MODULES([TIRPC], [libtirpc], [], [TIRPC_LIBS=""])
+ if test -n "$TIRPC_LIBS"; then
+-- 
+2.16.4
+