aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/mdns/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-26 11:43:34 +0000
committerJohn Crispin <john@openwrt.org>2014-06-26 11:43:34 +0000
commitd3be71e141c754ab5e1fbb2c14ce1876d931e6a3 (patch)
tree41a8a4637aceb0d721c73c4a9375ad81f766139a /package/network/services/mdns/Makefile
parent3a9bfa5938ab4d98a7c7ee10fca4b25101bbc0f9 (diff)
downloadupstream-d3be71e141c754ab5e1fbb2c14ce1876d931e6a3.tar.gz
upstream-d3be71e141c754ab5e1fbb2c14ce1876d931e6a3.tar.bz2
upstream-d3be71e141c754ab5e1fbb2c14ce1876d931e6a3.zip
mdns: add the new openwrt mdns daemon
this is still wip, you can use the following ubus calls. ubus call mdns scan # triggers a scan ubus call mdns browse # look at the currenlty cached records ubus call mdns hosts # look at the currenlty cached hosts TODO - ipv6, currenlty AAAA records are handled but only on v4 sockets - finish the service announce code Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41345
Diffstat (limited to 'package/network/services/mdns/Makefile')
-rw-r--r--package/network/services/mdns/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/package/network/services/mdns/Makefile b/package/network/services/mdns/Makefile
new file mode 100644
index 0000000000..f3e6f51601
--- /dev/null
+++ b/package/network/services/mdns/Makefile
@@ -0,0 +1,41 @@
+#
+# Copyright (C) 2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=mdns
+PKG_VERSION:=2014-06-25
+PKG_RELEASE=$(PKG_SOURCE_VERSION)
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_URL:=git://git.openwrt.org/project/mdnsd.git
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_VERSION:=902e2d1eaaff0d3d33dee605a4746fd5d4b6b999
+
+PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/mdns
+ SECTION:=net
+ CATEGORY:=Network
+ TITLE:=OpenWrt Multicast DNS Daemon
+ DEPENDS:=+libubox +libubus +libblobmsg-json
+endef
+
+TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
+
+define Package/mdns/install
+ $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdns $(1)/usr/sbin/
+ $(INSTALL_BIN) ./files/mdns.init $(1)/etc/init.d/mdns
+ $(INSTALL_BIN) ./files/mdns.config $(1)/etc/config/mdns
+endef
+
+$(eval $(call BuildPackage,mdns))