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