bash: moved to github
[packages.git] / net / socat / Makefile
1 #
2 # Copyright (C) 2006-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=socat
11 PKG_VERSION:=1.7.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.dest-unreach.org/socat/download
16 PKG_MD5SUM:=7ddfea7e9e85f868670f94d3ea08358b
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/socat
23   SECTION:=net
24   CATEGORY:=Network
25   DEPENDS:=+libpthread
26   TITLE:=A multipurpose relay (SOcket CAT)
27   URL:=http://www.dest-unreach.org/socat/
28 endef
29
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
36         many more options.
37 endef
38
39 CONFIGURE_ARGS += \
40         --disable-libwrap \
41         --disable-readline \
42         --disable-openssl \
43         --enable-termios
44
45 CONFIGURE_VARS += \
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
50
51 define Package/socat/install
52         $(INSTALL_DIR) $(1)/usr/bin
53         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/socat $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,socat))