DESCRIPTION:= is obselete
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=udp-broadcast-relay
12 PKG_VERSION:=0.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.joachim-breitner.de/udp-broadcast-relay/files/
17 PKG_MD5SUM:=a32f983b7063d6ac670e6b22be9b9d24
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/udp-broadcast-relay
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=listens for packets on a specified UDP broadcast port
28 URL:=http://www.joachim-breitner.de/udp-broadcast-relay/
29 endef
30
31 define Package/udp-broadcast-relay/description
32 This program listens for packets on a specified UDP broadcast port.
33 When a packet is received, it sends that packet to all specified interfaces but
34 the one it came from as though it originated from the original sender.
35 The primary purpose of this is to allow games on machines on separated
36 local networks (Ethernet, WLAN) that use udp broadcasts to find each other to do so.
37 It also works on ppp links, so you can log in from windows boxes (e.g. using pptp)
38 and play LAN-based games together. Currently, you have to care about upcoming or
39 downgoing interfaces yourself.
40 endef
41
42 define Build/Compile
43 $(TARGET_CC) $(PKG_BUILD_DIR)/main.c -o $(PKG_BUILD_DIR)/$(PKG_NAME)
44 endef
45
46 define Package/udp-broadcast-relay/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
49 endef
50
51 $(eval $(call BuildPackage,udp-broadcast-relay))