avahi: fix systemd service file install path
authorAurélien Chabot <aurelien@chabot.fr>
Mon, 13 Jul 2015 18:55:20 +0000 (20:55 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 13 Jul 2015 21:18:34 +0000 (23:18 +0200)
[Thomas: fix indentation.]

Signed-off-by: Aurélien Chabot <aurelien@chabot.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/avahi/avahi.mk

index 24967f4e497883c64bfb486331c62f346d222ebd..9c6b609d24692a0fd2022fa755911b624f10be8e 100644 (file)
@@ -90,7 +90,10 @@ AVAHI_DEPENDENCIES = \
 
 AVAHI_CFLAGS = $(TARGET_CFLAGS)
 
-ifeq ($(BR2_PACKAGE_SYSTEMD),)
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+AVAHI_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system
+else
+AVAHI_CONF_OPTS += --with-systemdsystemunitdir=no
 AVAHI_CFLAGS += -DDISABLE_SYSTEMD
 endif