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.

49 lines
1.9 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=udp-broadcast-relay-redux
  3. PKG_RELEASE:=$(AUTORELEASE)
  4. PKG_LICENSE:=GPL-2.0
  5. PKG_SOURCE_PROTO:=git
  6. PKG_SOURCE_URL:=https://github.com/udp-redux/udp-broadcast-relay-redux
  7. PKG_SOURCE_DATE:=2021-04-05
  8. PKG_SOURCE_VERSION:=671372938b55a186625a80516f86e8b9948c977a
  9. PKG_MIRROR_HASH:=11cf8728f2b8e966f4f57032d817a889f680ed8e61afff35b52ca9c6789a03c6
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/udp-broadcast-relay-redux
  12. SECTION:=net
  13. CATEGORY:=Network
  14. SUBMENU:=Routing and Redirection
  15. TITLE:=listens for packets on a specified UDP broadcast port and replays them
  16. URL:=https://github.com/udp-redux/udp-broadcast-relay-redux
  17. endef
  18. define Package/udp-broadcast-relay-redux/description
  19. This program listens for packets on a specified UDP broadcast port.
  20. When a packet is received, it sends that packet to all specified interfaces but
  21. the one it came from as though it originated from the original sender.
  22. The primary purpose of this is to allow games on machines on separated
  23. local networks (Ethernet, WLAN) that use udp broadcasts to find each other to do so.
  24. It also works on ppp links, so you can log in from windows boxes (e.g. using pptp)
  25. and play LAN-based games together. Currently, you have to care about upcoming or
  26. downgoing interfaces yourself.
  27. endef
  28. define Package/udp-broadcast-relay-redux/conffiles
  29. /etc/config/udp_broadcast_relay_redux
  30. endef
  31. define Build/Compile
  32. $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/main.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
  33. endef
  34. define Package/udp-broadcast-relay-redux/install
  35. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
  36. $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
  37. $(INSTALL_CONF) ./files/udp_broadcast_relay_redux.config $(1)/etc/config/udp_broadcast_relay_redux
  38. $(INSTALL_BIN) ./files/udp-broadcast-relay-redux.init $(1)/etc/init.d/udp-broadcast-relay-redux
  39. endef
  40. $(eval $(call BuildPackage,udp-broadcast-relay-redux))