Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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-06-25
  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:=902e2d1eaaff0d3d33dee605a4746fd5d4b6b999
  16. PKG_MAINTAINER:=John Crispin <[email protected]>
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/mdns
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=OpenWrt Multicast DNS Daemon
  23. DEPENDS:=+libubox +libubus +libblobmsg-json
  24. endef
  25. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  26. define Package/mdns/install
  27. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdns $(1)/usr/sbin/
  29. $(INSTALL_BIN) ./files/mdns.init $(1)/etc/init.d/mdns
  30. $(INSTALL_BIN) ./files/mdns.config $(1)/etc/config/mdns
  31. endef
  32. $(eval $(call BuildPackage,mdns))