2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=udp-broadcast-relay
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.joachim-breitner.de/udp-broadcast-relay/files/
16 PKG_MD5SUM:=a32f983b7063d6ac670e6b22be9b9d24
18 include $(INCLUDE_DIR)/package.mk
20 define Package/udp-broadcast-relay
23 TITLE:=listens for packets on a specified UDP broadcast port
24 URL:=http://www.joachim-breitner.de/udp-broadcast-relay/
27 define Package/udp-broadcast-relay/description
28 This program listens for packets on a specified UDP broadcast port.
29 When a packet is received, it sends that packet to all specified interfaces but
30 the one it came from as though it originated from the original sender.
31 The primary purpose of this is to allow games on machines on separated
32 local networks (Ethernet, WLAN) that use udp broadcasts to find each other to do so.
33 It also works on ppp links, so you can log in from windows boxes (e.g. using pptp)
34 and play LAN-based games together. Currently, you have to care about upcoming or
35 downgoing interfaces yourself.
39 $(TARGET_CC) $(PKG_BUILD_DIR)/main.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
42 define Package/udp-broadcast-relay/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
47 $(eval $(call BuildPackage,udp-broadcast-relay))