Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
ucspi-tcp
> ucspi-tcp.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ucspi-tcp.spec of Package ucspi-tcp (Revision 5)
Currently displaying revision
5
,
show latest
# # spec file for package ucspi-tcp (Version 0.88) # # Copyright (c) 2005 Scorpio IT, Deidesheim, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself %if %{?rel:0}%{!?rel:1} %define rel 1 %endif Distribution: %dist Packager: Christian Wittmer <rpm@scorpio-it.net> Vendor: Scorpio IT Name: ucspi-tcp Summary: tcpserver and tcpclient for building TCP client-server apps Version: 0.88 #Release: %{rel}.%suse_ver.SIT Release: 1 License: GNU Group: System/Daemons URL: http://cr.yp.to/ucspi-tcp.html Source: %{name}-%{version}.tar.bz2 Source1: %{name}-%{version}-man.tar.bz2 Patch: %{name}-%{version}-ssl.diff Patch1: %{name}-%{version}-rblsmtpd.diff Buildroot: %{_tmppath}/%{name}-%{version} BuildRequires: openssl-devel mysql-devel zlib-devel Requires: daemontools >= 0.76 openssl mysql zlib glibc >= 2.3 Provides: %{name} tcpserver #---------------------------------------------------------------------------------- %description #---------------------------------------------------------------------------------- Tcpserver and tcpclient are easy-to-use command-line tools for building TCP client-server applications. 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. It's access control rules are compiled into a hashed format with cdb, so it can easily deal with thousands of different hosts. This package includes a recordio tool that monitors all the input and output of a server. Tcpclient makes a TCP connection and runs a program of your choice. It sets up the same environment variables as tcpserver. This package includes several sample clients built on top of tcpclient: who@, date@, finger@, http@, tcpcat, and mconnect. Tcpserver and tcpclient conform to UCSPI, the UNIX Client-Server Program Interface, using the TCP protocol. UCSPI tools are available for several different networks. Author: D. J. Bernstein ---------------------------------------------------------------------------------- #---------------------------------------------------------------------------------- %prep #---------------------------------------------------------------------------------- %setup -n %{name}-%{version} -a 1 %patch -p1 %patch1 -p1 #---------------------------------------------------------------------------------- %build #---------------------------------------------------------------------------------- make #---------------------------------------------------------------------------------- %install #---------------------------------------------------------------------------------- [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man5,man8} for i in addcr argv0 date@ delcr finger@ fixcrio http@ mconnect \ mconnect-io rblsmtpd recordio tcpcat tcpclient tcprules tcprulescheck \ tcpserver who@; do install -m 755 $i $RPM_BUILD_ROOT/%{_bindir} done for i in man/*8* man/*5*; do gzip $i done install -m 644 man/*.5*gz $RPM_BUILD_ROOT/%{_mandir}/man5 install -m 644 man/*.8*gz $RPM_BUILD_ROOT/%{_mandir}/man8 #---------------------------------------------------------------------------------- %clean #---------------------------------------------------------------------------------- [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT #---------------------------------------------------------------------------------- %files #---------------------------------------------------------------------------------- %defattr (-,root,root) %attr(0644,root,root) %doc CHANGES README TODO VERSION %attr(0755,root,root) %{_bindir}/addcr %attr(0755,root,root) %{_bindir}/argv0 %attr(0755,root,root) %{_bindir}/date@ %attr(0755,root,root) %{_bindir}/delcr %attr(0755,root,root) %{_bindir}/finger@ %attr(0755,root,root) %{_bindir}/fixcrio %attr(0755,root,root) %{_bindir}/http@ %attr(0755,root,root) %{_bindir}/mconnect %attr(0755,root,root) %{_bindir}/mconnect-io %attr(0755,root,root) %{_bindir}/rblsmtpd %attr(0755,root,root) %{_bindir}/recordio %attr(0755,root,root) %{_bindir}/tcpcat %attr(0755,root,root) %{_bindir}/tcpclient %attr(0755,root,root) %{_bindir}/tcprules %attr(0755,root,root) %{_bindir}/tcprulescheck %attr(0755,root,root) %{_bindir}/tcpserver %attr(0755,root,root) %{_bindir}/who@ %attr(0644,root,root) %{_mandir}/man5/tcp-qualify.5* %attr(0644,root,root) %{_mandir}/man8/* #---------------------------------------------------------------------------------- %changelog #---------------------------------------------------------------------------------- * Sat Sep 22 2007 - Christian Wittmer <rpm@scorpio-it.net> 0.88 - 1 - first run