netatalk: add support for zeroconf
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Mon, 16 Jun 2014 18:23:30 +0000 (15:23 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 18 Jun 2014 12:19:00 +0000 (14:19 +0200)
[Peter: check for avahi-daemon, not just the base avahi package]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/netatalk/netatalk.mk

index 1285af2a770b5cb32d4f0733f27c5cc6a53be91b..f13fdf3a8df2489e0f72617ed3012478c737f1f5 100644 (file)
@@ -19,7 +19,6 @@ NETATALK_CONF_ENV += CC="$(TARGET_CC) -std=gnu99" \
        ac_cv_path_NETA_LDCONFIG=""
 NETATALK_CONF_OPT += --with-cnid-cdb-backend \
        --with-bdb=$(STAGING_DIR)/usr \
-       --disable-zeroconf \
        --with-ssl-dir=$(STAGING_DIR)/usr \
        --with-libgcrypt-dir=$(STAGING_DIR)/usr \
        --with-shadow \
@@ -30,6 +29,13 @@ NETATALK_CONF_OPT += --with-cnid-cdb-backend \
        --with-dtrace=no \
        --with-mysql-config=no
 
+ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
+       NETATALK_DEPENDENCIES += avahi
+       NETATALK_CONF_OPT += --enable-zeroconf=$(STAGING_DIR)/usr
+else
+       NETATALK_CONF_OPT += --disable-zeroconf
+endif
+
 ifeq ($(BR2_PACKAGE_CUPS),y)
        NETATALK_DEPENDENCIES += cups
        NETATALK_CONF_ENV += ac_cv_path_CUPS_CONFIG=$(STAGING_DIR)/usr/bin/cups-config