1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda
10 PKG_DESCR
:= multicast dns daemon and dns-sd server
12 PKG_BUILDDEP
:= libdaemon expat gdbm glib libevent
14 PKG_URL
:= http
://avahi.org
/
15 PKG_SITES
:= https
://github.com
/lathiat
/avahi
/releases
/download
/v
$(PKG_VERSION
)/
16 PKG_LIBNAME
:= libavahi
19 DISTFILES
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
21 PKG_SUBPKGS
:= AVAHI LIBAVAHI
22 PKGSS_AVAHI
:= libavahi libdaemon libexpat dbus
26 PKGSD_LIBAVAHI
:= dns-sd and mdns library
27 PKGSC_LIBAVAHI
:= libs
/misc
29 include $(ADK_TOPDIR
)/mk
/package.mk
31 $(eval
$(call PKG_template
,AVAHI
,avahi
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKGSS_AVAHI
),$(PKG_DESCR
),$(PKG_SECTION
)))
32 $(eval
$(call PKG_template
,LIBAVAHI
,libavahi
,$(PKG_VERSION
)-$(PKG_RELEASE
),,$(PKGSD_LIBAVAHI
),$(PKGSC_LIBAVAHI
),$(PKG_OPTS
)))
34 CONFIGURE_ARGS
+= --enable-glib \
44 --disable-python-dbus \
47 --disable-doxygen-doc \
48 --disable-doxygen-dot \
49 --disable-doxygen-man \
50 --disable-doxygen-rtf \
51 --disable-doxygen-xml \
52 --disable-doxygen-chm \
53 --disable-doxygen-chi \
54 --disable-doxygen-html \
55 --disable-doxygen-ps \
56 --disable-doxygen-pdf \
59 --with-avahi-user
=avahi \
60 --with-avahi-group
=avahi
62 ifeq ($(ADK_TARGET_USE_SSP
),y
)
63 CONFIGURE_ARGS
+= --enable-stack-protector
65 CONFIGURE_ARGS
+= --disable-stack-protector
69 $(INSTALL_DIR
) $(IDIR_AVAHI
)/etc
/dbus-1
/system.d
70 $(INSTALL_DATA
) $(WRKINST
)/etc
/dbus-1
/system.d
/avahi-dbus.conf \
71 $(IDIR_AVAHI
)/etc
/dbus-1
/system.d
72 $(INSTALL_DIR
) $(IDIR_AVAHI
)/etc
/avahi
73 $(CP
) $(WRKINST
)/etc
/avahi
/avahi-dnsconfd.action \
74 $(IDIR_AVAHI
)/etc
/avahi
75 $(INSTALL_DATA
) .
/files
/avahi-daemon.conf \
76 $(IDIR_AVAHI
)/etc
/avahi
77 $(INSTALL_DIR
) $(IDIR_AVAHI
)/etc
/avahi
/services
78 $(INSTALL_DATA
) .
/files
/service-http \
79 $(IDIR_AVAHI
)/etc
/avahi
/services
/http.service
80 $(INSTALL_DATA
) .
/files
/service-ssh \
81 $(IDIR_AVAHI
)/etc
/avahi
/services
/ssh.service
82 $(INSTALL_DIR
) $(IDIR_AVAHI
)/usr
/sbin
83 $(INSTALL_DIR
) $(IDIR_AVAHI
)/usr
/bin
84 $(INSTALL_BIN
) $(WRKINST
)/usr
/sbin
/* \
85 $(IDIR_AVAHI
)/usr
/sbin
86 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/* \
90 $(INSTALL_DIR
) $(IDIR_LIBAVAHI
)/usr
/lib
91 $(CP
) $(WRKINST
)/usr
/lib
/libavahi-common.so
* \
92 $(IDIR_LIBAVAHI
)/usr
/lib
93 $(CP
) $(WRKINST
)/usr
/lib
/libavahi-client.so
* \
94 $(IDIR_LIBAVAHI
)/usr
/lib
95 $(CP
) $(WRKINST
)/usr
/lib
/libavahi-core.so
* \
96 $(IDIR_LIBAVAHI
)/usr
/lib
97 $(CP
) $(WRKINST
)/usr
/lib
/libavahi-glib.so
* \
98 $(IDIR_LIBAVAHI
)/usr
/lib
100 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk