Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 <blogic@openwrt.org>
  17. PKG_LICENSE:=LGPL-2.1
  18. include $(INCLUDE_DIR)/package-seccomp.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/mdns
  22. SECTION:=net
  23. CATEGORY:=Network
  24. TITLE:=libreCMC Multicast DNS Daemon
  25. DEPENDS:=+libubox +libubus +libblobmsg-json
  26. endef
  27. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  28. define Package/mdns/conffiles
  29. /etc/config/mdns
  30. endef
  31. define Package/mdns/install
  32. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdns $(1)/usr/sbin/
  34. $(INSTALL_BIN) ./files/mdns.init $(1)/etc/init.d/mdns
  35. $(INSTALL_CONF) ./files/mdns.config $(1)/etc/config/mdns
  36. $(call InstallSeccomp,$(1),./files/mdns.json)
  37. endef
  38. $(eval $(call BuildPackage,mdns))