You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See LICENSE.txt for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=mdns-repeater
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE_URL:=https://github.com/kennylevinsen/mdns-repeater.git
  9. PKG_SOURCE_PROTO=git
  10. PKG_SOURCE_DATE:=2020-05-03
  11. PKG_SOURCE_VERSION:=921d8850e988d0bd8d60899d933c4ad3094d73ca
  12. PKG_MIRROR_HASH:=11c1988d42ec36945516697be93a6f7f7155535a432af61bcf61ef4a19fec439
  13. PKG_MAINTAINER:=Alexander Koenig <alex@lisas.de>
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=LICENSE.txt
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/mdns-repeater
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=Multicast DNS repeater for Linux
  21. URL:=https://github.com/kennylevinsen/mdns-repeater
  22. endef
  23. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  24. define Build/Compile
  25. CFLAGS="$(TARGET_CFLAGS)" CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
  26. endef
  27. define Package/mdns-repeater/install
  28. $(INSTALL_DIR) $(1)/usr/sbin
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mdns-repeater $(1)/usr/sbin/
  30. $(INSTALL_DIR) $(1)/etc/init.d
  31. $(INSTALL_BIN) ./files/mdns-repeater.init $(1)/etc/init.d/mdns-repeater
  32. $(INSTALL_DIR) $(1)/etc/config
  33. $(INSTALL_CONF) ./files/mdns_repeater.conf $(1)/etc/config/mdns_repeater
  34. endef
  35. $(eval $(call BuildPackage,mdns-repeater))