avoid a build-dependency on systemd

This commit is contained in:
Timo Aaltonen 2014-01-14 23:47:24 +02:00
parent 4d8de1f7f5
commit f5f00c8efb
3 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,15 @@
avoid build-dependency on systemd, which doesn't exist on ubuntu
diff --git a/daemons/configure.ac b/daemons/configure.ac
index e57dad2..9ca5198 100644
--- a/daemons/configure.ac
+++ b/daemons/configure.ac
@@ -232,7 +232,7 @@ PKG_CHECK_MODULES([SSSNSSIDMAP], [sss_nss_idmap])
dnl ---------------------------------------------------------------------------
dnl - Check for systemd unit directory
dnl ---------------------------------------------------------------------------
-PKG_CHECK_EXISTS([systemd], [], [AC_MSG_ERROR([systemd not found])])
+dnl PKG_CHECK_EXISTS([systemd], [], [AC_MSG_ERROR([systemd not found])])
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])

View File

@ -7,6 +7,7 @@ fix-install-layout.diff
fix-ntpdate-opts.diff
fix-ldap-conf-path.diff
port-ipa-client-automount.diff
dont-check-for-systemd-pc.diff
# send upstream
fix-string-format.diff

5
debian/rules vendored
View File

@ -28,7 +28,10 @@ override_dh_autoreconf:
override_dh_auto_configure:
dh_auto_configure -Dipa-client
ifneq ($(ONLY_CLIENT), 1)
dh_auto_configure -Ddaemons -- --with-openldap
dh_auto_configure -Ddaemons -- \
--with-openldap \
--with-systemdsystemunitdir=/lib/systemd/system
dh_auto_configure -Dinstall
endif