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