2006-08-08 14:42:48 +00:00
|
|
|
#
|
2012-05-19 20:55:02 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-08-08 14:42:48 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=socat
|
2012-05-19 20:55:02 +00:00
|
|
|
PKG_VERSION:=1.7.2.1
|
|
|
|
PKG_RELEASE:=1
|
2006-08-08 14:42:48 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2012-05-19 20:55:02 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.dest-unreach.org/socat/download
|
|
|
|
PKG_MD5SUM:=7ddfea7e9e85f868670f94d3ea08358b
|
2006-08-08 14:42:48 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-08-08 14:42:48 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/socat
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-06-13 20:56:25 +00:00
|
|
|
DEPENDS:=+libpthread
|
2006-08-08 14:42:48 +00:00
|
|
|
TITLE:=A multipurpose relay (SOcket CAT)
|
|
|
|
URL:=http://www.dest-unreach.org/socat/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/socat/description
|
2008-07-06 11:27:01 +00:00
|
|
|
SoCat (for SOcket CAT) establishes two bidirectional byte streams and
|
2007-10-14 04:32:56 +00:00
|
|
|
transfers data between them.
|
2008-07-06 11:27:01 +00:00
|
|
|
Data channels may be files, pipes, devices (terminal or modem, etc.), or
|
|
|
|
sockets (Unix, IPv4, IPv6, raw, UDP, TCP, SSL). It provides forking,
|
|
|
|
logging and tracing, different modes for interprocess communication and
|
2007-10-14 04:32:56 +00:00
|
|
|
many more options.
|
|
|
|
endef
|
|
|
|
|
2012-05-19 20:55:02 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-libwrap \
|
|
|
|
--disable-readline \
|
|
|
|
--disable-openssl \
|
|
|
|
--enable-termios
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
sc_cv_termios_ispeed="no" \
|
|
|
|
sc_cv_sys_crdly_shift=9 \
|
|
|
|
sc_cv_sys_tabdly_shift=11 \
|
|
|
|
sc_cv_sys_csize_shift=4
|
2006-08-08 14:42:48 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
define Package/socat/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/socat $(1)/usr/bin/
|
2006-08-08 14:42:48 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,socat))
|