Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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:=umdns
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_URL=$(PROJECT_GIT)/mdnsd.git
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_DATE:=2020-04-25
  13. PKG_SOURCE_VERSION:=cdac0460ba50dc45735f0be2e19a5a8efc3dafe1
  14. PKG_MIRROR_HASH:=261cb929dfc03c1f293156cfdec8c2cd1541dcdc57ae42a323f9df5d26e6f7d2
  15. PKG_MAINTAINER:=John Crispin <john@phrozen.org>
  16. PKG_LICENSE:=LGPL-2.1
  17. include $(INCLUDE_DIR)/package-seccomp.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/umdns
  21. SECTION:=net
  22. CATEGORY:=Network
  23. TITLE:=libreCMC Multicast DNS Daemon
  24. DEPENDS:=+libubox +libubus +libblobmsg-json
  25. endef
  26. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include -Wno-address-of-packed-member
  27. define Package/umdns/conffiles
  28. /etc/config/umdns
  29. endef
  30. define Package/umdns/install
  31. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/umdns $(1)/usr/sbin/
  33. $(INSTALL_BIN) ./files/umdns.init $(1)/etc/init.d/umdns
  34. $(INSTALL_CONF) ./files/umdns.config $(1)/etc/config/umdns
  35. $(call InstallSeccomp,$(1),./files/umdns.json)
  36. endef
  37. $(eval $(call BuildPackage,umdns))