2 # Copyright (C) 2006-2012 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_MD5SUM:=7ddfea7e9e85f868670f94d3ea08358b
20 include $(INCLUDE_DIR)/package.mk
26 TITLE:=A multipurpose relay (SOcket CAT)
27 URL:=http://www.dest-unreach.org/socat/
30 define Package/socat/description
31 SoCat (for SOcket CAT) establishes two bidirectional byte streams and
32 transfers data between them.
33 Data channels may be files, pipes, devices (terminal or modem, etc.), or
34 sockets (Unix, IPv4, IPv6, raw, UDP, TCP, SSL). It provides forking,
35 logging and tracing, different modes for interprocess communication and
46 sc_cv_termios_ispeed="no" \
47 sc_cv_sys_crdly_shift=9 \
48 sc_cv_sys_tabdly_shift=11 \
49 sc_cv_sys_csize_shift=4
51 define Package/socat/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/socat $(1)/usr/bin/
56 $(eval $(call BuildPackage,socat))