1 Summary: Universal SSL tunnel
2 Summary(pl.UTF-8): Uniwersalne narzędzie do bezpiecznego tunelowania
6 License: GPL v2+ with OpenSSL exception
7 Group: Networking/Daemons
8 Source0: ftp://ftp.stunnel.org/stunnel/%{name}-%{version}.tar.gz
9 # Source0-md5: d68b4565294496a8bdf23c728a679f53
11 Source2: %{name}.sysconfig
13 Patch0: %{name}-authpriv.patch
14 Patch1: %{name}-ac_fixes.patch
15 Patch2: %{name}-am.patch
16 Patch3: %{name}-libwrap_srv_name_log.patch
17 Patch4: %{name}-config.patch
18 URL: http://www.stunnel.org/
19 BuildRequires: autoconf >= 2.50
20 BuildRequires: automake
21 BuildRequires: libtool >= 2:2.0
22 BuildRequires: libwrap-devel
23 BuildRequires: openssl-devel >= 0.9.7d
24 BuildRequires: openssl-tools >= 0.9.7d
25 BuildRequires: rpmbuild(macros) >= 1.268
26 Requires(postun): /sbin/ldconfig
27 Requires(postun): /usr/sbin/groupdel
28 Requires(postun): /usr/sbin/userdel
29 Requires(pre): /bin/id
30 Requires(pre): /usr/bin/getgid
31 Requires(pre): /usr/sbin/groupadd
32 Requires(pre): /usr/sbin/useradd
33 Provides: group(stunnel)
34 Provides: user(stunnel)
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 The stunnel program is designed to work as SSL encryption wrapper
39 between remote client and local (inetd-startable) or remote server.
40 The concept is that having non-SSL aware daemons running on your
41 system you can easily setup them to communicate with clients over
42 secure SSL channel. stunnel can be used to add SSL functionality to
43 commonly used inetd daemons like POP-2, POP-3 and IMAP servers without
44 any changes in the programs' code.
46 %description -l pl.UTF-8
47 Stunnel umożliwia stawianie silnie kodowanych tuneli pomiędzy serwerem
48 a komputerem klienta. Przy jego użyciu można łatwo zrealizować usługi
52 Summary: stunnel acts as standalone server
53 Summary(pl.UTF-8): stunnel działający jako samodzielny serwer
54 Group: Networking/Daemons
55 Requires(post,preun): /sbin/chkconfig
56 Requires: %{name} = %{version}-%{release}
58 Obsoletes: stunnel-inetd
60 %description standalone
61 stunnel acts as standalone server.
63 %description standalone -l pl.UTF-8
64 stunnel działający jako samodzielny serwer.
67 Summary: stunnel acts as inetd service
68 Summary(pl.UTF-8): stunnel działający jako usługa inetd
69 Group: Networking/Daemons
70 Requires: %{name} = %{version}-%{release}
72 Obsoletes: stunnel-standalone
75 stunnel acts as inetd service.
77 %description inetd -l pl.UTF-8
78 stunnel działający jako usługa inetd.
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig/rc-inetd},%{_mandir}/{pl,fr}/man8,%{_var}/run/stunnel}
101 DESTDIR=$RPM_BUILD_ROOT
103 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.fr.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8/stunnel.8
104 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8/stunnel.8
105 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf
107 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel
108 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel
109 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/stunnel
111 rm -rf $RPM_BUILD_ROOT%{_libdir}/stunnel
112 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem
113 rm -rf $RPM_BUILD_ROOT%{_docdir}/stunnel
116 rm -rf $RPM_BUILD_ROOT
119 %groupadd -g 130 stunnel
120 %useradd -u 130 -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel
122 %post -p /sbin/ldconfig
126 if [ "$1" = "0" ]; then
132 /sbin/chkconfig --add stunnel
133 %service stunnel restart "stunnel daemon"
136 if [ "$1" = "0" ]; then
137 %service stunnel stop
138 /sbin/chkconfig --del stunnel
142 %service -q rc-inetd reload
145 if [ "$1" = "0" ]; then
146 %service -q rc-inetd reload
150 %defattr(644,root,root,755)
151 # note: this COPYING contains general information not GPL text
152 %doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html tools/{ca.*,importCA.*}
153 %doc %lang(fr) doc/stunnel.fr.html
154 %doc %lang(pl) doc/pl/* doc/stunnel.pl.html
155 %attr(755,root,root) %{_bindir}/stunnel
156 %attr(755,root,root) %{_bindir}/stunnel3
157 %dir %{_sysconfdir}/stunnel
158 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/stunnel/stunnel.conf
159 %attr(750,stunnel,stunnel) %{_var}/run/stunnel
160 %{_mandir}/man8/stunnel.8*
161 %lang(fr) %{_mandir}/fr/man8/stunnel.8*
162 %lang(pl) %{_mandir}/pl/man8/stunnel.8*
165 %defattr(644,root,root,755)
166 %attr(754,root,root) /etc/rc.d/init.d/stunnel
167 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stunnel
170 %defattr(644,root,root,755)
171 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/stunnel