[net] Routing and Redirection: Moved programs for routing and redirecting/relaying...
[openwrt/svn-archive/archive.git] / net / udp-broadcast-relay / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=udp-broadcast-relay
11 PKG_VERSION:=0.3
12 PKG_RELEASE:=1
13
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
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/udp-broadcast-relay
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=Routing and Redirection
24 TITLE:=listens for packets on a specified UDP broadcast port
25 URL:=http://www.joachim-breitner.de/udp-broadcast-relay/
26 endef
27
28 define Package/udp-broadcast-relay/description
29 This program listens for packets on a specified UDP broadcast port.
30 When a packet is received, it sends that packet to all specified interfaces but
31 the one it came from as though it originated from the original sender.
32 The primary purpose of this is to allow games on machines on separated
33 local networks (Ethernet, WLAN) that use udp broadcasts to find each other to do so.
34 It also works on ppp links, so you can log in from windows boxes (e.g. using pptp)
35 and play LAN-based games together. Currently, you have to care about upcoming or
36 downgoing interfaces yourself.
37 endef
38
39 define Build/Compile
40 $(TARGET_CC) $(PKG_BUILD_DIR)/main.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
41 endef
42
43 define Package/udp-broadcast-relay/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,udp-broadcast-relay))