2 # Copyright (C) 2014 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
11 PKG_VERSION
:=2016-05-23
12 PKG_RELEASE
=$(PKG_SOURCE_VERSION
)
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE_URL
=$(LEDE_GIT
)/project
/mdnsd.git
18 PKG_SOURCE_VERSION
:=8a70b2b47dd328f8180e5ecaa7bdc817f574a81b
19 PKG_MIRROR_MD5SUM
:=f40f67c68ee62bd1967a5d32c3eb5601a7927c7ebd52da27029019c2fe9307d3
21 PKG_MAINTAINER
:=John Crispin
<john@phrozen.org
>
24 include $(INCLUDE_DIR
)/package-seccomp.mk
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
31 TITLE
:=OpenWrt Multicast DNS Daemon
32 DEPENDS
:=+libubox
+libubus
+libblobmsg-json
35 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
37 define Package
/mdns
/conffiles
41 define Package
/mdns
/install
42 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/init.d
$(1)/etc
/config
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mdns
$(1)/usr
/sbin
/
44 $(INSTALL_BIN
) .
/files
/mdns.init
$(1)/etc
/init.d
/mdns
45 $(INSTALL_CONF
) .
/files
/mdns.config
$(1)/etc
/config
/mdns
46 $(call InstallSeccomp
,$(1),.
/files
/mdns.json
)
49 $(eval
$(call BuildPackage
,mdns
))