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:=2015-09-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=$(OPENWRT_GIT)/project/mdnsd.git
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_VERSION:=ae8773477c31b741ba8b47f8898e4c0a1c834b85
  16. PKG_MAINTAINER:=John Crispin <john@phrozen.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:=OpenWrt 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))