ffbc3fed351a021320b0961fd17429b513ecd255
[openwrt/openwrt.git] / package / network / services / umdns / 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:=umdns
11 PKG_RELEASE:=1
12
13 PKG_SOURCE_URL=$(PROJECT_GIT)/project/mdnsd.git
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_DATE:=2018-01-02
16 PKG_SOURCE_VERSION:=78974417e182a3de8f78b7d73366ec0c98396b6c
17 PKG_MIRROR_HASH:=a60f9eb9428ac3256cd7c3c6d4207c116cedf4d212b82e2f86c1bf7c7898fcbb
18
19 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
20 PKG_LICENSE:=LGPL-2.1
21
22 include $(INCLUDE_DIR)/package-seccomp.mk
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/cmake.mk
25
26 define Package/umdns
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=OpenWrt Multicast DNS Daemon
30 DEPENDS:=+libubox +libubus +libblobmsg-json
31 endef
32
33 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
34
35 define Package/umdns/conffiles
36 /etc/config/umdns
37 endef
38
39 define Package/umdns/install
40 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/umdns $(1)/usr/sbin/
42 $(INSTALL_BIN) ./files/umdns.init $(1)/etc/init.d/umdns
43 $(INSTALL_CONF) ./files/umdns.config $(1)/etc/config/umdns
44 $(call InstallSeccomp,$(1),./files/umdns.json)
45 endef
46
47 $(eval $(call BuildPackage,umdns))