summaryrefslogtreecommitdiffstats
path: root/rules/avahi.make
diff options
context:
space:
mode:
authorBjoern Buerger <b.buerger@pengutronix.de>2009-09-06 15:19:54 +0200
committerBjoern Buerger <b.buerger@pengutronix.de>2009-09-15 11:01:44 +0200
commit06efa6376165f8a8feb28d3af47d23716b670a27 (patch)
tree2703f16e70de81fe895e3f619f8ea42b2332c658 /rules/avahi.make
parent7bac12ba5c7343771b4b80f80a8ba1dd33c7e989 (diff)
downloadptxdist-06efa6376165f8a8feb28d3af47d23716b670a27.tar.gz
ptxdist-06efa6376165f8a8feb28d3af47d23716b670a27.tar.xz
[avahi] added basic avahi support (zeroconf,mdns,IPv4)
Signed-off-by: Bjoern Buerger <b.buerger@pengutronix.de>
Diffstat (limited to 'rules/avahi.make')
-rw-r--r--rules/avahi.make128
1 files changed, 95 insertions, 33 deletions
diff --git a/rules/avahi.make b/rules/avahi.make
index 332c56370..b2528baeb 100644
--- a/rules/avahi.make
+++ b/rules/avahi.make
@@ -48,13 +48,13 @@ AVAHI_AUTOCONF := \
--disable-nls \
--disable-dbm \
--disable-gdbm \
- --disable-libdaemon \
+ --enable-libdaemon \
--disable-python \
--disable-pygtk \
--disable-python-dbus \
--disable-mono \
--disable-monodoc \
- --disable-autoipd \
+ --enable-autoipd \
--disable-doxygen-doc \
--disable-doxygen-dot \
--disable-doxygen-man \
@@ -72,33 +72,62 @@ AVAHI_AUTOCONF := \
--disable-compat-libdns_sd \
--disable-compat-howl \
--with-distro=none \
- --with-xml=none \
- --with-avahi-user=avahi \
- --with-avahi-group=avahi \
+ --with-xml=expat \
--with-avahi-priv-access-group=netdev \
- --with-autoipd-user=avahi-autoipd \
- --with-autoipd-group=avahi-autoipd
+ --localstatedir=/var \
+ --disable-stack-protector
+
+ifdef PTXCONF_AVAHI_DAEMON
+AVAHI_AUTOCONF += \
+ --with-avahi-user=$(PTXCONF_AVAHI_USER) \
+ --with-avahi-group=$(PTXCONF_AVAHI_USER)
+endif
+
+ifdef PTXCONF_AVAHI_AUTOIP
+AVAHI_AUTOCONF += \
+ --with-autoipd-user=$(PTXCONF_AVAHI_AUTOIP_USER) \
+ --with-autoipd-group=$(PTXCONF_AVAHI_AUTOIP_GROUP)
+endif
+
+ifdef PTXCONF_AVAHI_GLIB
+AVAHI_AUTOCONF += --enable-glib
+else
+AVAHI_AUTOCONF += --disable-glib
+endif
+
+ifdef PTXCONF_AVAHI_GOBJECT
+AVAHI_AUTOCONF += --enable-gobject
+else
+AVAHI_AUTOCONF += --disable-gobject
+endif
+
+ifdef PTXCONF_AVAHI_QT3
+AVAHI_AUTOCONF += --enable-qt3
+else
+AVAHI_AUTOCONF += --disable-qt3
+endif
+
+ifdef PTXCONF_AVAHI_QT4
+AVAHI_AUTOCONF += --enable-qt4
+else
+AVAHI_AUTOCONF += --disable-qt4
+endif
+
+ifdef PTXCONF_AVAHI_GTK
+AVAHI_AUTOCONF += --enable-gtk
+else
+AVAHI_AUTOCONF += --disable-gtk
+endif
+
+ifdef PTXCONF_AVAHI_DBUS
+AVAHI_AUTOCONF += \
+ --enable-dbus \
+ --with-dbus-sys=$(PTXCONF_AVAHI_DBUS_SYS) \
+ --with-dbus-system-address=$(PTXCONF_AVAHI_DBUS_SOCKET)
+else
+AVAHI_AUTOCONF += --disable-dbus
+endif
-#
-# FIXME: make these configurable
-#
-
-AVAHI_AUTOCONF += \
- --disable-glib \
- --disable-gobject \
- --disable-qt3 \
- --disable-qt4 \
- --disable-gtk \
- --disable-dbus
-
-#
-# FIXME:
-#
-# --with-dbus-sys=<dir> Path to D-Bus system.d directory
-# --with-dbus-system-address=<address>
-# Path to the D-Bus system socket, you probably want
-# to put unix:path= at the start. Only needed for very
-# old D-Bus releases
# ----------------------------------------------------------------------------
# Target-Install
@@ -117,18 +146,51 @@ $(STATEDIR)/avahi.targetinstall:
@$(call install_fixup, avahi,DESCRIPTION,missing)
@$(call install_copy, avahi, 0, 0, 0644, -, /usr/share/avahi/service-types)
+ @$(call install_copy, avahi, 0, 0, 0644, -, /usr/share/avahi/avahi-service.dtd)
+# avahi core libs
@$(call install_copy, avahi, 0, 0, 0644, -, /usr/lib/libavahi-core.so.6.0.1)
@$(call install_link, avahi, libavahi-core.so.6.0.1, /usr/lib/libavahi-core.so.6)
@$(call install_link, avahi, libavahi-core.so.6.0.1, /usr/lib/libavahi-core.so)
@$(call install_copy, avahi, 0, 0, 0644, -, /usr/lib/libavahi-common.so.3.5.1)
- @$(call install_link, avahi, libavahi-common.so.6.0.1, /usr/lib/libavahi-common.so.3)
- @$(call install_link, avahi, libavahi-common.so.6.0.1, /usr/lib/libavahi-common.so)
-
-# # FIXME: looks like wrong prefix? Untested anyway...
-# #/usr/var/run
-# #/usr/lib/avahi
+ @$(call install_link, avahi, libavahi-common.so.3.5.1, /usr/lib/libavahi-common.so.3)
+ @$(call install_link, avahi, libavahi-common.so.3.5.1, /usr/lib/libavahi-common.so)
+
+ifdef PTXCONF_AVAHI_DAEMON
+# avahi daemon (avahi mDNS/DNS-SD Implementation)
+# depends on expat
+ @$(call install_copy, avahi, 0, 0, 0755, -, /usr/sbin/avahi-daemon)
+ @$(call install_copy, avahi, 0, 0, 0644, -, /etc/avahi/avahi-daemon.conf)
+ @$(call install_copy, avahi, 0, 0, 0644, -, /etc/avahi/hosts)
+ @$(call install_alternative, avahi, 0, 0, 0755, /etc/init.d/avahi-daemon)
+ @$(call install_link, avahi, ../init.d/avahi-daemon, /etc/rc.d/S35avahi-daemon)
+endif
+
+ifdef AVAHI_SERVICES
+# avahi service descriptions
+# depends on avahi-daemon
+ @$(call install_copy, avahi, 0, 0, 0644, -, /etc/avahi/services/sftp-ssh.service)
+ @$(call install_copy, avahi, 0, 0, 0644, -, /etc/avahi/services/ssh.service)
+endif
+
+ifdef AVAHI_DNSCONFD
+# avahi dnsconfd (Unicast DNS server from mDNS/DNS-SD configuration daemon)
+# depends on avahi-daemon
+ @$(call install_copy, avahi, 0, 0, 0755, -, /usr/sbin/avahi-dnsconfd)
+ @$(call install_copy, avahi, 0, 0, 0755, -, /etc/avahi/avahi-dnsconfd.action)
+endif
+
+ifdef PTXCONF_AVAHI_AUTOIP
+# avahi autoip daemon (avahi IPv4LL Implementation)
+# this component is needed for rfc3927 style link local adressing
+# depends on libdaemon
+# be shure to set CONFIG_FILE_LOCKING=y in your Kernel Config
+ @$(call install_copy, avahi, 0, 0, 0755, -, /usr/sbin/avahi-autoipd)
+ @$(call install_copy, avahi, 0, 0, 0755, -, /etc/avahi/avahi-autoipd.action)
+ @$(call install_alternative, avahi, 0, 0, 0755, /etc/init.d/zeroconf)
+ @$(call install_link, avahi, ../init.d/zeroconf, /etc/rc.d/S30zeroconf)
+endif
@$(call install_finish, avahi)