624ada30fd24933cb50cd93dbc591fe17746abcd
[openwrt/staging/yousong.git] / package / network / services / mdns / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=mdns
11 PKG_VERSION:=2016-05-23
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL=$(LEDE_GIT)/project/mdnsd.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=8a70b2b47dd328f8180e5ecaa7bdc817f574a81b
19
20 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
21 PKG_LICENSE:=LGPL-2.1
22
23 include $(INCLUDE_DIR)/package-seccomp.mk
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 define Package/mdns
28 SECTION:=net
29 CATEGORY:=Network
30 TITLE:=OpenWrt Multicast DNS Daemon
31 DEPENDS:=+libubox +libubus +libblobmsg-json
32 endef
33
34 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
35
36 define Package/mdns/conffiles
37 /etc/config/mdns
38 endef
39
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)
46 endef
47
48 $(eval $(call BuildPackage,mdns))