1c89ca6d3a6783f6660f5063e1cbfcce1de7c65b
[openwrt/svn-archive/archive.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:=2014-11-03
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:=git://git.openwrt.org/project/mdnsd.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=a5560f88bb2cddeef0ef11a12e7822b9c19a75a5
19
20 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
21 PKG_LICENSE:=LGPL-2.1
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/cmake.mk
25
26 define Package/mdns
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/mdns/install
36 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
37 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdns $(1)/usr/sbin/
38 $(INSTALL_BIN) ./files/mdns.init $(1)/etc/init.d/mdns
39 $(INSTALL_BIN) ./files/mdns.config $(1)/etc/config/mdns
40 endef
41
42 $(eval $(call BuildPackage,mdns))