3 # Copyright (C) 2007 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
10 include $(TOPDIR
)/rules.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://avahi.org
/download
/
18 PKG_MD5SUM
:=aab1a304851d8145ea5f6a85c10af9e9
20 PKG_BUILD_DEPENDS
:=libexpat libdaemon libgdbm
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/avahi
/Default
27 TITLE
:=An mDNS
/DNS-SD implementation
28 URL
:=http
://www.avahi.org
/
31 define Package
/avahi
/Default
/description
32 An mDNS
/DNS-SD
(aka RendezVous
/Bonjour
/ZeroConf
) implementation
(library
).
33 Avahi is a system which facilitates service discovery on a local network
--
34 this means that you can plug your laptop or computer into a network and
35 instantly be able to view other people who you can chat with
, find printers
36 to
print to or find files being shared. This kind of technology is already
37 found in MacOS X
(branded
'Rendezvous', 'Bonjour' and sometimes
'ZeroConf')
38 and is very convenient.
41 define Package
/libavahi
42 $(call Package
/avahi
/Default
)
45 DEPENDS
:=+libdaemon
+libpthread
49 define Package
/libavahi
/description
50 $(call Package
/avahi
/Default
/description
)
52 This package contains the mDNS
/DNS-SD shared libraries
, used by other programs.
55 define Package
/avahi-autoipd
56 $(call Package
/avahi
/Default
)
58 TITLE
:=IPv4LL network address configuration daemon
61 define Package
/avahi-autoipd
/description
62 $(call Package
/avahi
/Default
/description
)
64 This package implements IPv4LL
, "Dynamic Configuration of IPv4 Link-Local
65 Addresses" (IETF RFC3927
), a protocol for automatic IP address configuration
66 from the link-local
169.254.0.0/16 range without the need for a central
67 server. It is primarily intended to be used in ad-hoc networks which lack a
71 define Package
/avahi-daemon
72 $(call Package
/avahi
/Default
)
73 DEPENDS
:=+libavahi
+libexpat
77 define Package
/avahi-daemon
/description
78 $(call Package
/avahi
/Default
/description
)
80 This package contains an mDNS
/DNS-SD daemon.
83 define Package
/avahi-daemon
/conffiles
84 /etc
/avahi
/avahi-daemon.conf
85 /etc
/avahi
/services
/http.service
86 /etc
/avahi
/services
/ssh.service
89 define Package
/avahi-dnsconfd
90 $(call Package
/avahi
/Default
)
92 TITLE
:=An Unicast DNS server from mDNS
/DNS-SD configuration daemon
95 define Package
/avahi-dnsconfd
/description
96 $(call Package
/avahi
/Default
/description
)
98 This package contains an Unicast DNS server from mDNS
/DNS-SD configuration
99 daemon
, which may be used to configure conventional DNS servers using mDNS
100 in a DHCP-like fashion. Especially useful on IPv6.
106 --disable-stack-protector \
119 --disable-python-dbus \
122 --disable-doxygen-doc \
123 --disable-doxygen-dot \
124 --disable-doxygen-man \
125 --disable-doxygen-rtf \
126 --disable-doxygen-xml \
127 --disable-doxygen-chm \
128 --disable-doxygen-chi \
129 --disable-doxygen-html \
130 --disable-doxygen-ps \
131 --disable-doxygen-pdf \
134 --with-avahi-user
=nobody \
135 --with-avahi-group
=nogroup \
136 --with-autoipd-user
=nobody \
137 --with-autoipd-group
=nogroup \
140 CFLAGS
="$$$$CFLAGS -DNDEBUG" \
143 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
144 DESTDIR
="$(PKG_INSTALL_DIR)" \
148 define Build
/InstallDev
149 mkdir
-p
$(1)/usr
/include
150 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/avahi-
{common
,core
} $(1)/usr
/include/
151 mkdir
-p
$(1)/usr
/lib
152 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libavahi-
{common
,core
}.
{a
,so
*} $(1)/usr
/lib
/
153 mkdir
-p
$(1)/usr
/lib
/pkgconfig
154 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/avahi-core.
pc $(1)/usr
/lib
/pkgconfig
/
157 define Package
/libavahi
/install
158 $(INSTALL_DIR
) $(1)/usr
/lib
159 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libavahi-
{common
,core
}.so.
* $(1)/usr
/lib
/
162 define Package
/avahi-autoipd
/install
163 $(INSTALL_DIR
) $(1)/etc
/avahi
164 $(CP
) $(PKG_INSTALL_DIR
)/etc
/avahi
/avahi-autoipd.action
$(1)/etc
/avahi
/
165 $(INSTALL_DIR
) $(1)/usr
/sbin
166 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/avahi-autoipd
$(1)/usr
/sbin
/
169 define Package
/avahi-daemon
/install
170 $(INSTALL_DIR
) $(1)/usr
/sbin
171 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/avahi-daemon
$(1)/usr
/sbin
/
172 $(INSTALL_DIR
) $(1)/etc
/avahi
173 $(INSTALL_DATA
) .
/files
/avahi-daemon.conf
$(1)/etc
/avahi
/
174 $(INSTALL_DIR
) $(1)/etc
/avahi
/services
175 $(INSTALL_DATA
) .
/files
/service-http
$(1)/etc
/avahi
/services
/http.service
176 $(INSTALL_DATA
) .
/files
/service-ssh
$(1)/etc
/avahi
/services
/ssh.service
177 $(INSTALL_DIR
) $(1)/etc
/init.d
178 $(INSTALL_BIN
) .
/files
/avahi-daemon.init
$(1)/etc
/init.d
/avahi-daemon
181 define Package
/avahi-dnsconfd
/install
182 $(INSTALL_DIR
) $(1)/etc
/avahi
183 $(CP
) $(PKG_INSTALL_DIR
)/etc
/avahi
/avahi-dnsconfd.action
$(1)/etc
/avahi
/
184 $(INSTALL_DIR
) $(1)/usr
/sbin
185 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/avahi-dnsconfd
$(1)/usr
/sbin
/
188 $(eval
$(call BuildPackage
,libavahi
))
189 $(eval
$(call BuildPackage
,avahi-autoipd
))
190 $(eval
$(call BuildPackage
,avahi-daemon
))
191 $(eval
$(call BuildPackage
,avahi-dnsconfd
))
193 $(eval
$(call RequireCommand
,intltool-update
, \
194 $(PKG_NAME
) requires intltool
>= 0.35.0 \