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