Add vnstati (#4311)
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=socat
12 PKG_VERSION:=1.6.0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://www.dest-unreach.org/socat/download/
17 PKG_MD5SUM:=6a0dd33cde2a18eb382433aca8f76ce2
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/socat
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+libpthread
25 TITLE:=A multipurpose relay (SOcket CAT)
26 URL:=http://www.dest-unreach.org/socat/
27 endef
28
29 define Package/socat/description
30 SoCat (for SOcket CAT) establishes two bidirectional byte streams and
31 transfers data between them.
32 Data channels may be files, pipes, devices (terminal or modem, etc.), or
33 sockets (Unix, IPv4, IPv6, raw, UDP, TCP, SSL). It provides forking,
34 logging and tracing, different modes for interprocess communication and
35 many more options.
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --disable-libwrap \
41 --disable-readline \
42 --disable-termios \
43 --disable-openssl \
44 , \
45 sc_cv_termios_ispeed="no" \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Package/socat/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/socat $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,socat))