Skip to contentSkip to conversation

avahi: fix systemd service file install path

PATCH New Aurélien Chabot 2 participants 2 messages Jul 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avahi: fix systemd service file install path

---
 package/avahi/avahi.mk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
package/avahi/avahi.mk +5 -2
index 24967f4..b241748 100644
@@ -90,8 +90,11 @@ AVAHI_DEPENDENCIES = \
 
 AVAHI_CFLAGS = $(TARGET_CFLAGS)
 
-ifeq ($(BR2_PACKAGE_SYSTEMD),)
-AVAHI_CFLAGS += -DDISABLE_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
 
 ifneq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_AVAHI_AUTOIPD),)
Signature · 1 line
2.4.5
#1 lore raw

PATCH 1/1 avahi: fix systemd service file install path

Dear Aur?lien Chabot,

Quoted 10 lines · Aur?lien Chabot
---
 package/avahi/avahi.mk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
package/avahi/avahi.mk +0 -0
index 24967f4..b241748 100644

package/avahi/avahi.mk AVAHI_DEPENDENCIES = \ · line 94

Quoted 7 lines
package/avahi/avahi.mk +2 -2
@@ -90,8 +90,11 @@ AVAHI_DEPENDENCIES = \
 
 AVAHI_CFLAGS = $(TARGET_CFLAGS)
 
-ifeq ($(BR2_PACKAGE_SYSTEMD),)
-AVAHI_CFLAGS += -DDISABLE_SYSTEMD
+ifeq ($(BR2_PACKAGE_SYSTEMD),y)
+	AVAHI_CONF_OPTS += --with-systemdsystemunitdir=/usr/lib/systemd/system

Such variable assignments should not be indented.

Committed, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com