2 # Copyright (C) 2007-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://avahi.org/download/
16 PKG_MD5SUM:=a83155a6e29e3988f07e5eea3287b21e
18 PKG_BUILD_DEPENDS:=libexpat libdaemon libgdbm intltool/host
23 include $(INCLUDE_DIR)/package.mk
25 define Package/avahi/Default
28 TITLE:=An mDNS/DNS-SD implementation
29 URL:=http://www.avahi.org/
32 define Package/avahi/Default/description
33 An mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) implementation (library).
34 Avahi is a system which facilitates service discovery on a local network --
35 this means that you can plug your laptop or computer into a network and
36 instantly be able to view other people who you can chat with, find printers
37 to print to or find files being shared. This kind of technology is already
38 found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf')
39 and is very convenient.
42 define Package/libavahi
43 $(call Package/avahi/Default)
46 DEPENDS:=+libdaemon +libpthread +libgdbm
50 define Package/libavahi/description
51 $(call Package/avahi/Default/description)
53 This package contains the mDNS/DNS-SD shared libraries, used by other programs.
56 define Package/avahi-autoipd
57 $(call Package/avahi/Default)
59 TITLE:=IPv4LL network address configuration daemon
62 define Package/avahi-autoipd/description
63 $(call Package/avahi/Default/description)
65 This package implements IPv4LL, "Dynamic Configuration of IPv4 Link-Local
66 Addresses" (IETF RFC3927), a protocol for automatic IP address configuration
67 from the link-local 169.254.0.0/16 range without the need for a central
68 server. It is primarily intended to be used in ad-hoc networks which lack a
72 define Package/avahi-daemon
73 $(call Package/avahi/Default)
74 DEPENDS:=+libavahi +libexpat
78 define Package/avahi-daemon/description
79 $(call Package/avahi/Default/description)
81 This package contains an mDNS/DNS-SD daemon.
84 define Package/avahi-daemon/conffiles
85 /etc/avahi/avahi-daemon.conf
86 /etc/avahi/services/http.service
87 /etc/avahi/services/ssh.service
90 define Package/avahi-dnsconfd
91 $(call Package/avahi/Default)
93 TITLE:=An Unicast DNS server from mDNS/DNS-SD configuration daemon
96 define Package/avahi-dnsconfd/description
97 $(call Package/avahi/Default/description)
99 This package contains an Unicast DNS server from mDNS/DNS-SD configuration
100 daemon, which may be used to configure conventional DNS servers using mDNS
101 in a DHCP-like fashion. Especially useful on IPv6.
104 TARGET_CFLAGS += $(FPIC) -DGETTEXT_PACKAGE
121 --disable-python-dbus \
124 --disable-doxygen-doc \
125 --disable-doxygen-dot \
126 --disable-doxygen-man \
127 --disable-doxygen-rtf \
128 --disable-doxygen-xml \
129 --disable-doxygen-chm \
130 --disable-doxygen-chi \
131 --disable-doxygen-html \
132 --disable-doxygen-ps \
133 --disable-doxygen-pdf \
136 --with-avahi-user=nobody \
137 --with-avahi-group=nogroup \
138 --with-autoipd-user=nobody \
139 --with-autoipd-group=nogroup
141 ifneq ($(CONFIG_SSP_SUPPORT),y)
143 --disable-stack-protector
147 CFLAGS="$$$$CFLAGS -DNDEBUG" \
149 define Build/Configure
150 ( cd $(PKG_BUILD_DIR); aclocal; libtoolize; autoreconf; );
151 $(call Build/Configure/Default)
154 define Build/InstallDev
155 $(INSTALL_DIR) $(1)/usr/include
156 $(CP) $(PKG_INSTALL_DIR)/usr/include/avahi-{common,core} $(1)/usr/include/
157 $(INSTALL_DIR) $(1)/usr/lib
158 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-{common,core}.{a,so*} $(1)/usr/lib/
159 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
160 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/avahi-core.pc $(1)/usr/lib/pkgconfig/
163 define Package/libavahi/install
164 $(INSTALL_DIR) $(1)/usr/lib
165 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libavahi-{common,core}.so.* $(1)/usr/lib/
168 define Package/avahi-autoipd/install
169 $(INSTALL_DIR) $(1)/etc/avahi
170 $(CP) $(PKG_INSTALL_DIR)/etc/avahi/avahi-autoipd.action $(1)/etc/avahi/
171 $(INSTALL_DIR) $(1)/usr/sbin
172 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/avahi-autoipd $(1)/usr/sbin/
175 define Package/avahi-daemon/install
176 $(INSTALL_DIR) $(1)/usr/sbin
177 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/avahi-daemon $(1)/usr/sbin/
178 $(INSTALL_DIR) $(1)/etc/avahi
179 $(INSTALL_DATA) ./files/avahi-daemon.conf $(1)/etc/avahi/
180 $(INSTALL_DIR) $(1)/etc/avahi/services
181 $(INSTALL_DATA) ./files/service-http $(1)/etc/avahi/services/http.service
182 $(INSTALL_DATA) ./files/service-ssh $(1)/etc/avahi/services/ssh.service
183 $(INSTALL_DIR) $(1)/etc/init.d
184 $(INSTALL_BIN) ./files/avahi-daemon.init $(1)/etc/init.d/avahi-daemon
187 define Package/avahi-dnsconfd/install
188 $(INSTALL_DIR) $(1)/etc/avahi
189 $(CP) $(PKG_INSTALL_DIR)/etc/avahi/avahi-dnsconfd.action $(1)/etc/avahi/
190 $(INSTALL_DIR) $(1)/usr/sbin
191 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/avahi-dnsconfd $(1)/usr/sbin/
194 $(eval $(call BuildPackage,libavahi))
195 $(eval $(call BuildPackage,avahi-autoipd))
196 $(eval $(call BuildPackage,avahi-daemon))
197 $(eval $(call BuildPackage,avahi-dnsconfd))