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.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=ce574e75c2fda4456e8efd4efb86ec5e
16 PKG_SOURCE_URL
:=http
://www.dest-unreach.org
/socat
/download
/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-1.4
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
28 DEPENDS
:=+libopenssl
+libpthread
29 TITLE
:=A multipurpose relay
(SOcket CAT
)
30 DESCRIPTION
:=SoCat
(for SOcket CAT
) establishes two bidirectional byte streams and
\\\
31 transfers data between them.
\\\
32 Data channels may be files
, pipes
, devices
(terminal or modem
, etc.
), or
\\\
33 sockets
(Unix
, IPv4
, IPv6
, raw
, UDP
, TCP
, SSL
). It provides forking
,\\\
34 logging and tracing
, different modes for interprocess communication and
\\\
36 URL
:=http
://www.dest-unreach.org
/socat
/
39 define Build
/Configure
40 $(call Build
/Configure
/Default
,--disable-libwrap \
41 --disable-readline
, sc_cv_termios_ispeed
="no")
45 $(call Build
/Compile
/Default
, DESTDIR
="$(PKG_INSTALL_DIR)" all install)
48 define Package
/socat
/install
49 install -d
-m0755
$(1)/usr
/bin
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/socat
$(1)/usr
/bin
/
53 $(eval
$(call BuildPackage
,socat
))