1 |
# $Id: ipsvd.spec,v 1.6 2008/04/09 13:51:50 slords Exp $ |
2 |
|
3 |
Summary: internet protocol service daemons |
4 |
Name: ipsvd |
5 |
Version: 0.12.1 |
6 |
Release: 6%{?dist} |
7 |
License: BSD style |
8 |
Group: System Enviornment/Daemons |
9 |
Url: http://smarden.org/ipsvd/ |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
Source1: matrixssl-1-8-3-open.tar.gz |
12 |
Patch0: matrix.decode.debug.patch |
13 |
Patch1: tcpsvd_keepalive.patch |
14 |
BuildRequires: dietlibc |
15 |
BuildRoot: %{_tmppath}/%{name}-root |
16 |
%description |
17 |
|
18 |
ipsvd is a set of internet protocol service daemons. It currently includes |
19 |
a TCP/IP service daemon, and a UDP/IP service daemon. |
20 |
|
21 |
An internet protocol service (ipsv) daemon waits for incoming |
22 |
connections on a local socket. On incoming connections, the ipsv daemon |
23 |
conditionally runs an arbitrary program with standard input reading from |
24 |
the socket, and standard output writing to the socket, that handles the |
25 |
connection. The network connection optionally can be encrypted using SSLv3. |
26 |
Standard error is used for logging. |
27 |
|
28 |
ipsv daemons can be told to read and follow pre-defined instructions |
29 |
on how to handle incoming connections. It's possible to run different |
30 |
programs, or to set a different environment, or to deny a connection, |
31 |
or to set a per host concurrency limit, depending on the client's address |
32 |
or hostname. |
33 |
|
34 |
Normally the ipsv daemons are run by a supervisor process, such as runsv |
35 |
from the runit package, or supervise from the daemontools package. |
36 |
|
37 |
ipsvd can be used to run services normally run by inetd, xinetd, or tcpserver. |
38 |
|
39 |
%changelog |
40 |
* Wed Dec 25 2013 Charlie Brady <charlieb@e-smith.com> 0.12.1-06 |
41 |
- Add option to tcpsvd to set socket keepalive. Code provided by Chris Maltby. |
42 |
[SME: 8084] |
43 |
|
44 |
* Sat Oct 6 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-05 |
45 |
- Remove extra debugging code. [SME: 3438] |
46 |
|
47 |
* Tue Oct 2 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-04 |
48 |
- Add more debugging of client hello parsing. [SME: 3438] |
49 |
|
50 |
* Fri Aug 17 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-03 |
51 |
- Send all debugging to stderr rather than stdout. |
52 |
- Fix bug parsing SSL 3.0 client hello (if hello extensions are |
53 |
included, as in Thunderbird 2). [SME: 3438] |
54 |
|
55 |
* Thu Aug 16 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-02 |
56 |
- Enable DEBUG during matrixssl build. |
57 |
|
58 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
59 |
- Clean up spec so package can be built by koji/plague |
60 |
|
61 |
* Thu Apr 12 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-01 |
62 |
- Update to latest upstream ipsvd. |
63 |
|
64 |
* Thu Mar 15 2007 Charlie Brady <charlieb@e-smith.com> 0.12.0-04 |
65 |
- Update to latest upstream matrixssl library. |
66 |
|
67 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
68 |
- Update to new release naming. No functional changes. |
69 |
- Make Packager generic |
70 |
|
71 |
* Sat Feb 4 2006 Charlie Brady <charlieb@e-smith.com> 0.12.0-02 |
72 |
- Fix build error in Makefile. |
73 |
|
74 |
* Sat Feb 4 2006 Charlie Brady <charlieb@e-smith.com> 0.12.0-01 |
75 |
- Upgrade to new version. |
76 |
|
77 |
* Mon Nov 21 2005 Charlie Brady <charlieb@e-smith.com> 0.11.1-03 |
78 |
- Rebuild with new dietlibc (0.27-4). |
79 |
|
80 |
* Wed Nov 16 2005 Charlie Brady <charlieb@e-smith.com> 0.11.1-02 |
81 |
- Update to latest matrixssl. |
82 |
|
83 |
* Wed Nov 16 2005 Charlie Brady <charlieb@e-smith.com> 0.11.1-01 |
84 |
- Update to new ipsvd version. |
85 |
- Remove matrixssl build issue patch. |
86 |
|
87 |
* Mon Oct 24 2005 Charlie Brady <charlieb@e-smith.com> 0.11.0-04 |
88 |
- Update to latest matrixssl. |
89 |
|
90 |
* Tue Jul 12 2005 Charlie Brady <charlieb@e-smith.com> 0.11.0-03 |
91 |
- Rebuild on CentOS 4.1 build server, to correct segfault problem. |
92 |
|
93 |
* Tue Mar 15 2005 Charlie Brady <charlieb@e-smith.com> 0.11.0-02 |
94 |
- Fix install of sslio |
95 |
|
96 |
* Wed Feb 23 2005 Charlie Brady <charlieb@e-smith.com> 0.11.0-01 |
97 |
- Upgrade to 0.11.0 |
98 |
- Remove bogus dietlibc Requires: header (statically linked) |
99 |
|
100 |
* Sat Jan 15 2005 Charlie Brady <charlieb@e-smith.com> 0.10.1-01 |
101 |
- Upgrade to 0.10.1 |
102 |
- Upgrade martixssl to 1.2.2. |
103 |
- Don't bundle djbdns client library. |
104 |
|
105 |
* Mon Dec 20 2004 Charlie Brady <charlieb@e-smith.com> 0.9.7-01 |
106 |
- Upgrade to 0.9.7. |
107 |
|
108 |
* Thu Sep 30 2004 Charlie Brady <charlieb@e-smith.com> 0.9.6-01 |
109 |
- Upgrade to 0.9.6. |
110 |
- Upgrade martixssl to 1.2. |
111 |
|
112 |
* Mon Jun 07 2004 Charlie Brady <charlieb@e-smith.com> 0.9.3-01 |
113 |
- Upgrade to 0.9.3. |
114 |
|
115 |
* Mon May 03 2004 Charlie Brady <charlieb@e-smith.com> 0.9.1-01 |
116 |
- Upgrade to 0.9.1. |
117 |
|
118 |
* Sun May 02 2004 Charlie Brady <charlieb@e-smith.com> 0.9.0-01 |
119 |
- Upgrade to 0.9.0 (now includes sslio). |
120 |
- Build/link with dietlibc and matrixssl. |
121 |
|
122 |
* Tue Nov 04 2003 Charlie Brady <charlieb@e-smith.com> 0.6.0-02 |
123 |
- Build/link with uClibc. |
124 |
- Add missing man(8) pages. |
125 |
|
126 |
* Thu Oct 16 2003 Charlie Brady <charlieb@e-smith.com> 0.6.0-01 |
127 |
- Upgrade to 0.6.0. |
128 |
|
129 |
* Tue Jul 22 2003 Charlie Brady <charlieb@e-smith.com> 0.4.1-01 |
130 |
- Initial |
131 |
|
132 |
%prep |
133 |
%setup -c -n %{name}-%{version} |
134 |
cp -v %{SOURCE1} net/%{name}-%{version}/src/matrixssl.tar.gz |
135 |
mkdir -p net/%{name}-%{version}/compile |
136 |
perl -p -i -e 's:CC=../../compile:CC=../../compile -DDEBUG:' \ |
137 |
net/%{name}-%{version}/src/Makefile.matrixssl |
138 |
ln -s matrixssl-1-8-3-open net/%{name}-%{version}/compile/matrixssl |
139 |
%patch1 -p0 |
140 |
|
141 |
%build |
142 |
cd net/%{name}-%{version} |
143 |
echo 'diet -Os gcc -O2 -Wall' >src/conf-cc |
144 |
echo 'diet -Os gcc -s -Os -pipe' >src/conf-ld |
145 |
./package/compile |
146 |
cd compile |
147 |
#patch -p0 < %{PATCH0} |
148 |
perl -p -i -e "s/printf.m/fprintf(stderr, m/" matrixssl/src/os/debug.c |
149 |
perl -p -i -e "s/ssl.*TLS_MIN_VER .. c/c/" matrixssl/src/sslDecode.c |
150 |
rm matrixssl.a sslio sslsvd |
151 |
cd .. |
152 |
./package/compile |
153 |
|
154 |
%install |
155 |
cd net/%{name}-%{version} |
156 |
mkdir -p $RPM_BUILD_ROOT/%{_bindir} |
157 |
for i in $(cat package/commands compile/command.ssl) |
158 |
do |
159 |
install command/$i $RPM_BUILD_ROOT/%{_bindir} |
160 |
done |
161 |
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 |
162 |
#install man/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1 |
163 |
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 |
164 |
install man/*.8 $RPM_BUILD_ROOT/%{_mandir}/man8 |
165 |
|
166 |
%clean |
167 |
rm -r $RPM_BUILD_ROOT |
168 |
|
169 |
%files |
170 |
%defattr(-,root,root) |
171 |
%{_bindir}/* |
172 |
%{_mandir}/man8/* |
173 |
#%{_mandir}/man1/* |
174 |
%doc net/%{name}-%{version}/package/COPYING |
175 |
%doc net/%{name}-%{version}/doc/* |