treewide: clean up download hashes
[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.xz
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 PKG_MIRROR_HASH:=f40f67c68ee62bd1967a5d32c3eb5601a7927c7ebd52da27029019c2fe9307d3
20
21 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
22 PKG_LICENSE:=LGPL-2.1
23
24 include $(INCLUDE_DIR)/package-seccomp.mk
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/cmake.mk
27
28 define Package/mdns
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=OpenWrt Multicast DNS Daemon
32 DEPENDS:=+libubox +libubus +libblobmsg-json
33 endef
34
35 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
36
37 define Package/mdns/conffiles
38 /etc/config/mdns
39 endef
40
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)
47 endef
48
49 $(eval $(call BuildPackage,mdns))