2 # Copyright (C) 2009 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
14 PKG_SOURCE
:=rinetd.
tar.gz
15 PKG_SOURCE_URL
:=http
://www.boutell.com
/rinetd
/http
16 PKG_MD5SUM
:=28c78bac648971724c46f1a921154c4f
17 PKG_UNPACK
=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
=1 -xzf
$(DL_DIR
)/$(PKG_SOURCE
)
19 include $(INCLUDE_DIR
)/package.mk
24 SUBMENU
:=Routing and Redirection
25 TITLE
:=rinetd
- Internet Redirection Server
26 URL
:=http
://www.boutell.com
/rinetd
/
29 define Package
/rinetd
/conffiles
33 define Package
/rinetd
/description
34 Rinetd redirects TCP connections from one IP address and port to another.
35 Rinetd is a single-process server which handles any number of connections
36 to the address
/port pairs specified in the configuration.
37 Since rinetd runs
as a single process using nonblocking I
/O
, it is able to
38 redirect a large number of connections without a severe impact on the
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 CFLAGS
="$(TARGET_CFLAGS)" \
49 define Package
/rinetd
/install
50 $(INSTALL_DIR
) $(1)/usr
/sbin
51 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/rinetd
$(1)/usr
/sbin
52 $(INSTALL_DIR
) $(1)/etc
/config
53 $(INSTALL_CONF
) .
/files
/rinetd.config
$(1)/etc
/config
/rinetd
54 $(INSTALL_DIR
) $(1)/etc
/init.d
55 $(INSTALL_BIN
) .
/files
/rinetd.init
$(1)/etc
/init.d
/rinetd
59 $(eval
$(call BuildPackage
,rinetd
))