1 |
# $Id: ipsvd.spec,v 1.5 2014/04/24 14:52:22 wellsi Exp $ |
2 |
|
3 |
Summary: internet protocol service daemons |
4 |
Name: ipsvd |
5 |
Version: 0.12.1 |
6 |
Release: 7%{?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 Apr 23 2014 Ian Wells <esmith@wellsi.com> 0.12.1-07.sme |
41 |
- Modifed patch and spec file to avoid build errors [SME: 8084] |
42 |
|
43 |
* Wed Dec 25 2013 Charlie Brady <charlieb@e-smith.com> 0.12.1-06 |
44 |
- Add option to tcpsvd to set socket keepalive. Code provided by Chris Maltby. |
45 |
[SME: 8084] |
46 |
|
47 |
* Sat Oct 6 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-05 |
48 |
- Remove extra debugging code. [SME: 3438] |
49 |
|
50 |
* Tue Oct 2 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-04 |
51 |
- Add more debugging of client hello parsing. [SME: 3438] |
52 |
|
53 |
* Fri Aug 17 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-03 |
54 |
- Send all debugging to stderr rather than stdout. |
55 |
- Fix bug parsing SSL 3.0 client hello (if hello extensions are |
56 |
included, as in Thunderbird 2). [SME: 3438] |
57 |
|
58 |
* Thu Aug 16 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-02 |
59 |
- Enable DEBUG during matrixssl build. |
60 |
|
61 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
62 |
- Clean up spec so package can be built by koji/plague |
63 |
|
64 |
* Thu Apr 12 2007 Charlie Brady <charlieb@e-smith.com> 0.12.1-01 |
65 |
- Update to latest upstream ipsvd. |
66 |
|
67 |
* Thu Mar 15 2007 Charlie Brady <charlieb@e-smith.com> 0.12.0-04 |
68 |
- Update to latest upstream matrixssl library. |
69 |
|
70 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
71 |
- Update to new release naming. No functional changes. |
72 |
- Make Packager generic |
73 |
|
74 |
* Sat Feb 4 2006 Charlie Brady <charlieb@e-smith.com> 0.12.0-02 |
75 |
- Fix build error in Makefile. |
76 |
|
77 |
* Sat Feb 4 2006 Charlie Brady <charlieb@e-smith.com> 0.12.0-01 |
78 |
- Upgrade to new version. |
79 |
|
80 |
* Mon Nov 21 2005 Charlie Brady <charlieb@e-smith.com> 0.11.1-03 |
81 |
- Rebuild with new dietlibc (0.27-4). |
82 |
|
83 |
* Wed Nov 16 2005 Charlie Brady <charlieb@e-smith.com> 0.11.1-02 |
84 |
- Update to latest matrixssl. |
85 |
|
86 |
* Wed Nov 16 2005 Charlie Brady <charlieb@e-smith.com> 0.11.1-01 |
87 |
- Update to new ipsvd version. |
88 |
- Remove matrixssl build issue patch. |
89 |
|
90 |
* Mon Oct 24 2005 Charlie Brady <charlieb@e-smith.com> 0.11.0-04 |
91 |
- Update to latest matrixssl. |
92 |
|
93 |
* Tue Jul 12 2005 Charlie Brady <charlieb@e-smith.com> 0.11.0-03 |
94 |
- Rebuild on CentOS 4.1 build server, to correct segfault problem. |
95 |
|
96 |
* Tue Mar 15 2005 Charlie Brady <charlieb@e-smith.com> 0.11.0-02 |
97 |
- Fix install of sslio |
98 |
|
99 |
* Wed Feb 23 2005 Charlie Brady <charlieb@e-smith.com> 0.11.0-01 |
100 |
- Upgrade to 0.11.0 |
101 |
- Remove bogus dietlibc Requires: header (statically linked) |
102 |
|
103 |
* Sat Jan 15 2005 Charlie Brady <charlieb@e-smith.com> 0.10.1-01 |
104 |
- Upgrade to 0.10.1 |
105 |
- Upgrade martixssl to 1.2.2. |
106 |
- Don't bundle djbdns client library. |
107 |
|
108 |
* Mon Dec 20 2004 Charlie Brady <charlieb@e-smith.com> 0.9.7-01 |
109 |
- Upgrade to 0.9.7. |
110 |
|
111 |
* Thu Sep 30 2004 Charlie Brady <charlieb@e-smith.com> 0.9.6-01 |
112 |
- Upgrade to 0.9.6. |
113 |
- Upgrade martixssl to 1.2. |
114 |
|
115 |
* Mon Jun 07 2004 Charlie Brady <charlieb@e-smith.com> 0.9.3-01 |
116 |
- Upgrade to 0.9.3. |
117 |
|
118 |
* Mon May 03 2004 Charlie Brady <charlieb@e-smith.com> 0.9.1-01 |
119 |
- Upgrade to 0.9.1. |
120 |
|
121 |
* Sun May 02 2004 Charlie Brady <charlieb@e-smith.com> 0.9.0-01 |
122 |
- Upgrade to 0.9.0 (now includes sslio). |
123 |
- Build/link with dietlibc and matrixssl. |
124 |
|
125 |
* Tue Nov 04 2003 Charlie Brady <charlieb@e-smith.com> 0.6.0-02 |
126 |
- Build/link with uClibc. |
127 |
- Add missing man(8) pages. |
128 |
|
129 |
* Thu Oct 16 2003 Charlie Brady <charlieb@e-smith.com> 0.6.0-01 |
130 |
- Upgrade to 0.6.0. |
131 |
|
132 |
* Tue Jul 22 2003 Charlie Brady <charlieb@e-smith.com> 0.4.1-01 |
133 |
- Initial |
134 |
|
135 |
%prep |
136 |
%setup -c -n %{name}-%{version} |
137 |
cp -v %{SOURCE1} net/%{name}-%{version}/src/matrixssl.tar.gz |
138 |
mkdir -p net/%{name}-%{version}/compile |
139 |
perl -p -i -e 's:CC=../../compile:CC=../../compile -DDEBUG:' \ |
140 |
net/%{name}-%{version}/src/Makefile.matrixssl |
141 |
ln -s matrixssl-1-8-3-open net/%{name}-%{version}/compile/matrixssl |
142 |
%patch1 -p1 |
143 |
|
144 |
%build |
145 |
cd net/%{name}-%{version} |
146 |
echo 'diet -Os gcc -O2 -Wall' >src/conf-cc |
147 |
echo 'diet -Os gcc -s -Os -pipe' >src/conf-ld |
148 |
./package/compile |
149 |
cd compile |
150 |
#patch -p0 < %{PATCH0} |
151 |
perl -p -i -e "s/printf.m/fprintf(stderr, m/" matrixssl/src/os/debug.c |
152 |
perl -p -i -e "s/ssl.*TLS_MIN_VER .. c/c/" matrixssl/src/sslDecode.c |
153 |
rm matrixssl.a sslio sslsvd |
154 |
cd .. |
155 |
./package/compile |
156 |
|
157 |
%install |
158 |
cd net/%{name}-%{version} |
159 |
mkdir -p $RPM_BUILD_ROOT/%{_bindir} |
160 |
for i in $(cat package/commands compile/command.ssl) |
161 |
do |
162 |
install command/$i $RPM_BUILD_ROOT/%{_bindir} |
163 |
done |
164 |
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 |
165 |
#install man/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1 |
166 |
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 |
167 |
install man/*.8 $RPM_BUILD_ROOT/%{_mandir}/man8 |
168 |
|
169 |
%clean |
170 |
rm -r $RPM_BUILD_ROOT |
171 |
|
172 |
%files |
173 |
%defattr(-,root,root) |
174 |
%{_bindir}/* |
175 |
%{_mandir}/man8/* |
176 |
#%{_mandir}/man1/* |
177 |
%doc net/%{name}-%{version}/package/COPYING |
178 |
%doc net/%{name}-%{version}/doc/* |