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.bz2
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL=$(OPENWRT_GIT)/project/mdnsd.git
18 PKG_SOURCE_VERSION:=8a70b2b47dd328f8180e5ecaa7bdc817f574a81b
20 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
23 include $(INCLUDE_DIR)/package-seccomp.mk
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
30 TITLE:=OpenWrt Multicast DNS Daemon
31 DEPENDS:=+libubox +libubus +libblobmsg-json
34 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
36 define Package/mdns/conffiles
40 define Package/mdns/install
41 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdns $(1)/usr/sbin/
43 $(INSTALL_BIN) ./files/mdns.init $(1)/etc/init.d/mdns
44 $(INSTALL_CONF) ./files/mdns.config $(1)/etc/config/mdns
45 $(call InstallSeccomp,$(1),./files/mdns.json)
48 $(eval $(call BuildPackage,mdns))