1 Summary: Universal SSL tunnel
2 Summary(pl): Uniwersalne narzêdzie do bezpiecznego tunelowania
7 Group: Networking/Daemons
8 Source0: ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz
9 # Source0-md5: 2c00153ad099a5f9c5609e8d1dbbe470
11 Source2: %{name}.sysconfig
13 Patch0: %{name}-gethostbyname_is_in_libc_aka_no_libnsl.patch
14 Patch1: %{name}-authpriv.patch
15 Patch2: %{name}-ac_fixes.patch
16 Patch3: %{name}-am.patch
17 Patch4: %{name}-Makefile.patch
18 Patch5: %{name}-libwrap_srv_name_log.patch
19 Patch6: %{name}-config.patch
20 URL: http://www.stunnel.org/
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: libtool
24 BuildRequires: libwrap-devel
25 BuildRequires: openssl-devel >= 0.9.7d
26 BuildRequires: openssl-tools >= 0.9.7d
27 BuildRequires: rpmbuild(macros) >= 1.268
28 Requires(postun): /sbin/ldconfig
29 Requires(postun): /usr/sbin/groupdel
30 Requires(postun): /usr/sbin/userdel
31 Requires(pre): /bin/id
32 Requires(pre): /usr/bin/getgid
33 Requires(pre): /usr/sbin/groupadd
34 Requires(pre): /usr/sbin/useradd
35 Provides: group(stunnel)
36 Provides: user(stunnel)
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 The stunnel program is designed to work as SSL encryption wrapper
41 between remote client and local (inetd-startable) or remote server.
42 The concept is that having non-SSL aware daemons running on your
43 system you can easily setup them to communicate with clients over
44 secure SSL channel. stunnel can be used to add SSL functionality to
45 commonly used inetd daemons like POP-2, POP-3 and IMAP servers without
46 any changes in the programs' code.
49 Stunnel umo¿liwia stawianie silnie kodowanych tuneli pomiêdzy serwerem
50 a komputerem klienta. Przy jego u¿yciu mo¿na ³atwo zrealizowaæ us³ugi
54 Summary: stunnel acts as standalone server
55 Summary(pl): stunnel dzia³aj±cy jako samodzielny serwer
56 Group: Networking/Daemons
57 Requires(post,preun): /sbin/chkconfig
58 Requires: %{name} = %{version}-%{release}
60 Obsoletes: stunnel-inetd
62 %description standalone
63 stunnel acts as standalone server.
65 %description standalone -l pl
66 stunnel dzia³aj±cy jako samodzielny serwer.
69 Summary: stunnel acts as inetd service
70 Summary(pl): stunnel dzia³aj±cy jako us³uga inetd
71 Group: Networking/Daemons
72 Requires: %{name} = %{version}-%{release}
74 Obsoletes: stunnel-standalone
77 stunnel acts as inetd service.
79 %description inetd -l pl
80 stunnel dzia³aj±cy jako us³uga inetd.
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig/rc-inetd},%{_mandir}/{pl,fr}/man8,%{_var}/run/stunnel}
104 DESTDIR=$RPM_BUILD_ROOT
106 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.fr.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8/stunnel.8
107 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8/stunnel.8
108 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf
110 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel
111 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel
112 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/stunnel
114 rm -f $RPM_BUILD_ROOT%{_libdir}/libstunnel.la
117 rm -rf $RPM_BUILD_ROOT
120 %groupadd -g 130 stunnel
121 %useradd -u 130 -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel
123 %post -p /sbin/ldconfig
127 if [ "$1" = "0" ]; then
133 /sbin/chkconfig --add stunnel
134 %service stunnel restart "stunnel daemon"
137 if [ "$1" = "0" ]; then
138 %service stunnel stop
139 /sbin/chkconfig --del stunnel
143 %service -q rc-inetd reload
146 if [ "$1" = "0" ]; then
147 %service -q rc-inetd reload
151 %defattr(644,root,root,755)
152 # note: this COPYING contains general information not GPL text
153 %doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html
154 %doc src/stunnel.exe tools/{ca.*,importCA.*}
155 %doc %lang(fr) doc/stunnel.fr.html
156 %doc %lang(pl) doc/pl/* doc/stunnel.pl.html
157 %attr(750,stunnel,stunnel) %{_var}/run/stunnel
158 %dir %{_sysconfdir}/stunnel
159 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/stunnel/stunnel.conf
160 %attr(755,root,root) %{_sbindir}/*
161 %attr(755,root,root) %{_libdir}/libstunnel.so
163 %lang(fr) %{_mandir}/fr/man8/*
164 %lang(pl) %{_mandir}/pl/man8/*
167 %defattr(644,root,root,755)
168 %attr(754,root,root) /etc/rc.d/init.d/stunnel
169 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stunnel
172 %defattr(644,root,root,755)
173 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/stunnel