File socat.spec of Package socat

# spec file for package socat (Version
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           socat
BuildRequires:  openssl-devel procps readline-devel tcpd-devel
Release:        1
License:        BSD 3-Clause; GPL v2 or later
Group:          Productivity/Networking/Other
AutoReqProv:    on
Summary:        Multipurpose relay for bidirectional data transfer
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

socat is a relay for bidirectional data transfer between two
independent data channels. Each of these data channels may be a file,
pipe, device (serial line etc. or a pseudo terminal), a socket (UNIX,
IP4, IP6 - raw, UDP, TCP), an SSL socket, proxy CONNECT connection, a
file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these.

    Gerhard Rieger <socat at dest-unreach dot org>


%{?suse_update_config:%{suse_update_config -f}}
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
%{__make} all
mkdir examples
mv examples

mkdir -p \
	${RPM_BUILD_ROOT}/%{_bindir} \
%{__make} DESTDIR=${RPM_BUILD_ROOT} install

[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}


* Thu Oct 16 2008
- upgraded to
  - support for SCTP stream sockets, raw interface, and generic sockets.
  - A new option escape allows it to interrupt raw terminal connections.
  - Listening and receiving sockets can set a couple of environment variables.
  - Base control of System V STREAMS has been added.
  - Many corrections were performed.
* Mon Feb 11 2008
- Update to version
  + exec:...,pty did not kill child process under some circumstances; fixed
  by correcting typo in xio-progcall.c
  + service name resolution failed due to byte order mistake
  + socat would hang when invoked with many file descriptors already opened
  fix: replaced FOPEN_MAX with FD_SETSIZE
  + fixed bugs where sub processes would become zombies because the master
  process did not catch SIGCHLD. this affected addresses UDP-LISTEN,
  + fixed a bug where sub processes would become zombies because the master
  process caught SIGCHLD but did not wait(). this affected addresses
  + corrected option handling with STDIO; usecase: cool-write
  + configure --disable-pty  also disabled option waitlock
  + fixed small bugs on systems with struct ip_mreq without struct ip_mreqn
- Update to version
  + new addresses IP-DATAGRAM and UDP-DATAGRAM allow versatile broadcast
  and multicast modes
  + new option ip-add-membership for control of multicast group membership
  + new address TUN for generation of Linux TUN/TAP pseudo network
  interfaces (suggested by Mat Caughron); associated options tun-device,
  tun-name, tun-type; iff-up, iff-promisc, iff-noarp, iff-no-pi etc.
  ABSTRACT-RECV, and ABSTRACT-RECVFROM for abstract UNIX domain addresses
  on Linux (requested by Zeeshan Ali); option unix-tightsocklen controls
  socklen parameter on system calls.
  + option end-close for control of connection closing allows FD sharing
  by sub processes
  + range option supports form address:mask with IPv4
  + changed behaviour of SSL-LISTEN to require and verify client
  certificate per default
  + options f-setlkw-rd, f-setlkw-wr, f-setlk-rd, f-setlk-wr allow finer
  grained locking on regular files
  + fixed bug where only first tcpwrap option was applied; fixed bug where
  tcpwrap IPv6 check always failed
  and fixing this bug)
  + filan (and socat -D) could hang when a socket was involved
  + corrected PTYs on HP-UX (and maybe others) using STREAMS
  + correct bind with udp6-listen
  + corrected filan.c peekbuff[0] which did not compile with Sun Studio Pro
  + corrected problem with read data buffered in OpenSSL layer
  + corrected problem with option readbytes when input stream stayed idle
  after so many bytes
  + fixed a bug where a datagram receiver with option fork could fork two
  sub processes per packet
- Don't call as it doesn't pass if called as non root.
- Don't remove the buildroot in the install section.
- Remove patch as linux/fs.h is included if HAVE_LINUX_FS_H is available.
* Thu Mar 22 2007
- fix build with newer kernel headers:
  some common FS-specific ioctls moved to linux/fs.h
* Mon Jul 17 2006
- Update to version
  + new datagram modes for udp, rawip, unix domain sockets
  + socat option -T specifies inactivity timeout
  + rewrote lexical analysis to allow nested socat calls
  + addresses tcp, udp, tcp-l, udp-l, and rawip now support IPv4 and IPv6
  + socat options -4, -6 and environment variables SOCAT_DEFAULT_LISTEN_IP,
  SOCAT_PREFERRED_RESOLVE_IP for control of protocol selection
  + addresses ssl, ssl-l, socks, proxy now support IPv4 and IPv6
  + option protocol-family (pf), esp. for openssl-listen
  + range option supports IPv6 - syntax: range=[::1/128]
  + option ipv6-v6only (ipv6only)
  + new tcp-wrappers options allow-table, deny-table, tcpwrap-etc
  + FIPS version of OpenSSL can be integrated - initial patch provided by
  David Acker. See README.FIPS
  + support for resolver options res-debug, aaonly, usevc, primary, igntc,
  recurse, defnames, stayopen, dnsrch
  + options for file attributes on advanced filesystems (ext2, ext3,
  reiser): secrm, unrm, compr, ext2-sync, immutable, ext2-append, nodump,
  ext2-noatime, journal-data etc.
  + option cool-write controls severeness of write failure (EPIPE,
  + option o-noatime
  + socat option -lh for hostname in log output
  + traffic dumping provides packet headers
  + became part of distribution
  + socats unpack directory now has full version, e.g. socat-
  + corrected docu of option verify
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Tue Apr 26 2005
- disabled test on ARM (hangs QEMU)
* Sun Mar 20 2005
- Update to version
* Sun Dec 12 2004
- Update to version
* Wed Oct 27 2004
- Update to version
* Mon Sep 27 2004
- Update to version
* Sat Aug 28 2004
- Add to the examples.
* Fri Aug 27 2004
- Update to version
* Mon Jun 14 2004
- Add openssl-devel, readline-devel, and tcpd-devel to neededforbuild/
* Mon Jun 14 2004
- Inital SuSE RPM based on source tar ball spec file.
openSUSE Build Service is sponsored by