libostree: add systemd optional dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 20 Nov 2018 21:48:23 +0000 (22:48 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 21 Nov 2018 21:31:14 +0000 (22:31 +0100)
This option is available since v2018.3:
https://github.com/ostreedev/ostree/commit/17db0f15a79835b76ede6785120d237066c57d32

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/libostree/libostree.mk

index 4c841dbe4dc7da5e1c7d9539adbbe6a9c341c843..8538cdc69cb5653923c6c617dd71ca73edac1fae 100644 (file)
@@ -68,4 +68,13 @@ else
 LIBOSTREE_CONF_OPTS += --without-selinux
 endif
 
+ifeq ($(BR2_INIT_SYSTEMD),y)
+LIBOSTREE_CONF_OPTS += \
+       --with-libsystemd \
+       --with-systemdsystemunitdir=/usr/lib/systemd/system
+LIBOSTREE_DEPENDENCIES += systemd
+else
+LIBOSTREE_CONF_OPTS += --without-libsystemd
+endif
+
 $(eval $(autotools-package))