[packages] openvpn: Bump to v2.2.2 (#11293)
[openwrt/svn-archive/archive.git] / net / socat / Makefile
1 #
2 # Copyright (C) 2006 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.1.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.dest-unreach.org/socat/download/
16 PKG_MD5SUM:=2081987fb0cb0290b8105574058cb329
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 define Build/Configure
40 $(call Build/Configure/Default, \
41 --disable-libwrap \
42 --disable-readline \
43 --disable-openssl \
44 --enable-termios \
45 , \
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 endef
52
53 define Package/socat/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/socat $(1)/usr/bin/
56 endef
57
58 $(eval $(call BuildPackage,socat))