]>
Commit | Line | Data |
---|---|---|
9182ae8a AM |
1 | Summary: Multipurpose relay |
2 | Name: socat | |
3 | Version: 1.3.1.0 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Networking/Utilities | |
7 | URL: http://www.dest-unreach.org/socat/ | |
8 | Source0: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.bz2 | |
9 | BuildRequires: openssl-devel | |
6e0d6f10 | 10 | BuildRequires: libwrap-devel >= 7.6-30 |
9182ae8a AM |
11 | BuildRequires: readline-devel |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | Socat is a relay for bidirectional data transfer between two independent data channels. Each of these data channels may be a file, pipe, device (terminal or modem, etc.), socket (Unix, IP4, IP6 - raw, UDP, TCP), a client for SOCKS4, proxy CONNECT, or SSL, etc. It provides forking, logging, and dumping, different modes for interprocess communication, and many more options. It can be used, for example, as a TCP relay (one-shot or daemon), as a daemon-based socksifier, as a shell interface to Unix sockets, as an IP6 relay, for redirecting TCP-oriented programs to a serial line, or to establish a relatively secure environment (su and chroot) for running client or server shell scripts with network connections. | |
16 | ||
17 | %prep | |
18 | %setup -q -n %{name}-1.3 | |
19 | ||
20 | %build | |
6e0d6f10 | 21 | %configure |
9182ae8a AM |
22 | %{__make} |
23 | ||
24 | %install | |
25 | rm -rf $RPM_BUILD_ROOT | |
26 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
27 | ||
28 | %{__make} install \ | |
29 | DESTDIR=$RPM_BUILD_ROOT | |
30 | ||
31 | %clean | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | ||
34 | %files | |
35 | %defattr(644,root,root,755) | |
36 | %doc BUGREPORTS CHANGES DEVELOPMENT EXAMPLES FAQ README SECURITY | |
37 | %attr(755,root,root) %{_bindir}/* | |
38 | %{_mandir}/man?/* |