Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mdns
  9. PKG_VERSION:=2014-11-03
  10. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=git://git.openwrt.org/project/mdnsd.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=a5560f88bb2cddeef0ef11a12e7822b9c19a75a5
  16. PKG_MAINTAINER:=John Crispin <[email protected]>
  17. PKG_LICENSE:=LGPL-2.1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/mdns
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=OpenWrt Multicast DNS Daemon
  24. DEPENDS:=+libubox +libubus +libblobmsg-json
  25. endef
  26. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  27. define Package/mdns/install
  28. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdns $(1)/usr/sbin/
  30. $(INSTALL_BIN) ./files/mdns.init $(1)/etc/init.d/mdns
  31. $(INSTALL_BIN) ./files/mdns.config $(1)/etc/config/mdns
  32. endef
  33. $(eval $(call BuildPackage,mdns))