2 # Copyright (C) 2006-2015 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
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://www.dest-unreach.org
/socat
/download
16 PKG_HASH
:=e3561f808739383eb10fada1e5d4f26883f0311b34fd0af7837d0c95ef379251
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>
20 PKG_LICENSE
:=GPL-2.0 OpenSSL
21 PKG_LICENSE_FILES
:=COPYING COPYING.OpenSSL
25 include $(INCLUDE_DIR
)/package.mk
30 DEPENDS
:=+libpthread
+librt
+SOCAT_SSL
:libopenssl
31 TITLE
:=A multipurpose relay
(SOcket CAT
)
32 URL
:=http
://www.dest-unreach.org
/socat
/
35 define Package
/socat
/description
36 SoCat
(for SOcket CAT
) establishes two bidirectional byte streams and
37 transfers data between them.
38 Data channels may be files
, pipes
, devices
(terminal or modem
, etc.
), or
39 sockets
(Unix
, IPv4
, IPv6
, raw
, UDP
, TCP
, SSL
). It provides forking
,
40 logging and tracing
, different modes for interprocess communication and
44 define Package
/socat
/config
47 depends on PACKAGE_socat
50 Implements SSL support in socat
(using libopenssl
).
53 define Package
/socat
/conffiles
62 ifneq ($(CONFIG_SOCAT_SSL
),y
)
63 CONFIGURE_ARGS
+= --disable-openssl
67 sc_cv_termios_ispeed
="no" \
68 sc_cv_sys_crdly_shift
=9 \
69 sc_cv_sys_tabdly_shift
=11 \
70 sc_cv_sys_csize_shift
=4
72 define Package
/socat
/install
73 $(INSTALL_DIR
) $(1)/usr
/bin
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/socat
$(1)/usr
/bin
/
75 $(INSTALL_DIR
) $(1)/etc
/config
76 $(INSTALL_CONF
) .
/files
/socat.config
$(1)/etc
/config
/socat
77 $(INSTALL_DIR
) $(1)/etc
/init.d
78 $(INSTALL_BIN
) .
/files
/socat.init
$(1)/etc
/init.d
/socat
81 $(eval
$(call BuildPackage
,socat
))