forked from pool/socat
129 lines
4.5 KiB
RPMSpec
129 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package socat (Version 1.5.0.0)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: socat
|
|
BuildRequires: openssl-devel readline-devel tcpd-devel
|
|
Version: 1.5.0.0
|
|
Release: 30
|
|
License: BSD License and BSD-like, GNU General Public License (GPL)
|
|
Group: Productivity/Networking/Other
|
|
URL: http://www.dest-unreach.org/socat/
|
|
Autoreqprov: on
|
|
Summary: Multipurpose relay for bidirectional data transfer
|
|
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.bz2
|
|
Patch0: socat-1.5.0.0-fs-include.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
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.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Gerhard Rieger <socat at dest-unreach dot org>
|
|
|
|
%prep
|
|
%setup
|
|
%patch -p1
|
|
|
|
%build
|
|
%{?suse_update_config:%{suse_update_config -f}}
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
./configure \
|
|
--prefix=%{_prefix} \
|
|
--mandir=%{_mandir} \
|
|
--sysconfdir=%{_sysconfdir}
|
|
%{__make} all
|
|
%ifnarch %arm
|
|
./test.sh
|
|
%endif
|
|
mkdir examples
|
|
mv daemon.sh ftp.sh mail.sh proxyecho.sh readline.sh examples
|
|
|
|
%install
|
|
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
|
|
mkdir -p \
|
|
${RPM_BUILD_ROOT}/%{_bindir} \
|
|
${RPM_BUILD_ROOT}/%{_mandir}/man1
|
|
%{__make} DESTDIR=${RPM_BUILD_ROOT} install
|
|
|
|
%clean
|
|
[ "${RPM_BUILD_ROOT}" != "/" -a -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc BUGREPORTS CHANGES COPYING COPYING.OpenSSL DEVELOPMENT EXAMPLES FAQ FILES PORTING README SECURITY VERSION examples socat.html xio.help
|
|
%{_bindir}/socat
|
|
%{_bindir}/procan
|
|
%{_bindir}/filan
|
|
%{_mandir}/man1/socat.1.gz
|
|
|
|
%changelog
|
|
* Thu Mar 22 2007 - ssommer@suse.de
|
|
- fix build with newer kernel headers:
|
|
some common FS-specific ioctls moved to linux/fs.h
|
|
* Mon Jul 17 2006 - lmuelle@suse.de
|
|
- Update to version 1.5.0.0.
|
|
+ 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,
|
|
ECONNRESET)
|
|
+ option o-noatime
|
|
+ socat option -lh for hostname in log output
|
|
+ traffic dumping provides packet headers
|
|
+ configure.in became part of distribution
|
|
+ socats unpack directory now has full version, e.g. socat-1.5.0.0/
|
|
+ corrected docu of option verify
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Tue Apr 26 2005 - uli@suse.de
|
|
- disabled test on ARM (hangs QEMU)
|
|
* Sun Mar 20 2005 - lmuelle@suse.de
|
|
- Update to version 1.4.2.0.
|
|
* Sun Dec 12 2004 - lmuelle@suse.de
|
|
- Update to version 1.4.1.0.
|
|
* Tue Oct 26 2004 - lmuelle@suse.de
|
|
- Update to version 1.4.0.3.
|
|
* Mon Sep 27 2004 - lmuelle@suse.de
|
|
- Update to version 1.4.0.2.
|
|
* Sat Aug 28 2004 - lmuelle@suse.de
|
|
- Add readline.sh to the examples.
|
|
* Fri Aug 27 2004 - lmuelle@suse.de
|
|
- Update to version 1.4.0.1.
|
|
* Mon Jun 14 2004 - lmuelle@suse.de
|
|
- Add openssl-devel, readline-devel, and tcpd-devel to neededforbuild/
|
|
BuildRequires.
|
|
* Mon Jun 14 2004 - lmuelle@suse.de
|
|
- Inital SuSE RPM based on source tar ball spec file.
|