File shd-tcp-tools.spec of Package shd-tcp-tools

#
# spec file for package shd-tcp-tools
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           shd-tcp-tools
Version:        0.05
Release:        0
Summary:        TCP Networking Tools
Source:         http://zakalwe.fi/~shd/foss/shd-tcp-tools/shd-tcp-tools-0.05.tar.bz2
Patch1:         shd-tcp-tools-destdir.patch
Url:            http://zakalwe.fi/~shd/foss/shd-tcp-tools/
Group:          Productivity/Networking/Other
License:        MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc glibc-devel make

%description
shd-tcp-tools is a set of TCP network tools that supports port forwarding,
network load balancing, rate limiting, and running servers behind
firewalls. tcp-pf, listentwo, and connecttwo are port forwarding
tools. tcppipe is a one-directional TCP pipe that can be used as a substitute
for one-directional netcat transfers, but with load balancing and rate control
support. tcp-pf can be used to forward a port from one host to another with
load balancing and rate control support. network load balancing scheme means
using an interface or destination host based on past transfer history. The
listentwo and connecttwo tools can be used to run servers inside firewalled
networks through third party TCP proxies.




Authors:
--------
    Heikki Orsila <heikki.orsila@iki.fi>

%prep
%setup -q
%patch1

%build
# not autotools:
CFLAGS="%{optflags}" \
./configure \
				--prefix="%{_prefix}" \
				--bindir="%{_bindir}" \
				--mandir="%{_mandir}" \
				--compiler="%__cc"
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

%clean
%__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc AUTHORS COPYING *txt
%{_bindir}/connecttwo
%{_bindir}/listentwo
%{_bindir}/tcp-pf
%{_bindir}/tcppipe
%{_bindir}/tcppipe-least

%changelog
openSUSE Build Service is sponsored by