Name: ucspi-tcp Summary: TCP client-server command-line tools Version: 0.88 Release: 4 #Copyright: See djb@pobox.com License: See djb@pobox.com Group: Utilities/System Source: http://cr.yp.to/ucspi-tcp/ucspi-tcp-%{version}.tar.gz Source1: maketcprules Source2: ucspi-tcp-docs.tar.gz Patch0: ucspi-tcp-0.88.errno.patch Patch1: rblsmtpd-syslog.patch BuildRoot: /tmp/ucspi-tcp URL: http://pobox.com/~djb/ucspi-tcp.html Packager: Scott R. Shinn Obsoletes: rblsmtpd %description tcpclient and tcpserver are easy-to-use command-line tools for building TCP client-server applications. tcpclient makes a TCP connection and runs a program of your choice. tcpserver waits for incoming connections and, for each connection, runs a program of your choice. Your program receives environment variables showing the local and remote host names, IP addresses, and port numbers. tcpserver offers a concurrency limit to protect you from running out of processes and memory. When you are handling 40 (by default) simultaneous connections, tcpserver smoothly defers acceptance of new connections. tcpserver also provides TCP access control features, similar to tcp-wrappers/tcpd's hosts.allow but much faster. Its access control rules are compiled into a hashed format with cdb, so it can easily deal with thousands of different hosts. tcpclient and tcpserver conform to UCSPI, the UNIX Client-Server Program Interface, using the TCP protocol. UCSPI tools are available for several different networks. %setup tar -xzf %{SOURCE2} echo /usr >conf-home echo gcc $RPM_OPT_FLAGS >conf-cc echo gcc $RPM_OPT_FLAGS -s >conf-ld cp $RPM_SOURCE_DIR/maketcprules . %patch0 -p1 %patch1 -p0 %build make it %install rm -fr $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr echo $RPM_BUILD_ROOT/usr >conf-home rm -f install.o auto_home.o install make install ./install /usr/bin/install -m 755 maketcprules $RPM_BUILD_ROOT/usr/bin /usr/bin/install -d $RPM_BUILD_ROOT/etc/tcpcontrol %post /usr/bin/maketcprules %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %config /etc/tcpcontrol %doc CHANGES README TODO %doc ucspi-tcp.html daemontools dnscache docs proto ucspi-tcp /usr/bin/* %changelog * Wed Dec 1 2004 Scott R. Shinn - added in rblsmtpd-syslog patch * Mon Mar 20 2000 Bruce Guenter - Updated to version 0.88 of ucspi-tcp. * Wed Mar 15 2000 Bruce Guenter - Updated to version 0.87 of ucspi-tcp. - Added "obsoletes" line for rblsmtpd. * Mon Mar 13 2000 Bruce Guenter - Updated to version 0.86 of ucspi-tcp. - Added documentation tarball. * Sun Nov 7 1999 Bruce Guenter - Fixed install race condition exposed on faster computers. * Sat Nov 14 1998 Bruce Guenter - Upgraded package to version 0.84. * Fri Jul 10 1998 Bruce Guenter - Configured the binaries to go into /usr/bin instead of /usr/sbin - Fixed installation problem with tcpcat (and other shell scripts) * Tue Jan 20 1998 Bruce Guenter - Copied the tcpcconfig program from the old tcpcontrol package, renaming it to maketcprules, which works like ldconfig, building all the .rules files in /etc/tcpcontrol into .cdb files. %prep