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: 5b9310d25214ef48030de162ecbd2be1
11 Source2: %{name}.sysconfig
13 Source4: %{name}.tmpfiles
14 Patch0: %{name}-config.patch
15 Patch1: stunnel-libwrap_srv_name_log.patch
16 URL: http://www.stunnel.org/
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake
19 BuildRequires: libtool >= 2:2.0
20 BuildRequires: libwrap-devel
21 BuildRequires: openssl-devel >= 0.9.7d
22 BuildRequires: openssl-tools >= 0.9.7d
23 BuildRequires: rpmbuild(macros) >= 1.268
24 Requires(postun): /sbin/ldconfig
25 Requires(postun): /usr/sbin/groupdel
26 Requires(postun): /usr/sbin/userdel
27 Requires(pre): /bin/id
28 Requires(pre): /usr/bin/getgid
29 Requires(pre): /usr/sbin/groupadd
30 Requires(pre): /usr/sbin/useradd
31 Provides: group(stunnel)
32 Provides: user(stunnel)
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 The stunnel program is designed to work as SSL encryption wrapper
37 between remote client and local (inetd-startable) or remote server.
38 The concept is that having non-SSL aware daemons running on your
39 system you can easily setup them to communicate with clients over
40 secure SSL channel. stunnel can be used to add SSL functionality to
41 commonly used inetd daemons like POP-2, POP-3 and IMAP servers without
42 any changes in the programs' code.
44 %description -l pl.UTF-8
45 Stunnel umożliwia stawianie silnie kodowanych tuneli pomiędzy serwerem
46 a komputerem klienta. Przy jego użyciu można łatwo zrealizować usługi
50 Summary: stunnel acts as standalone server
51 Summary(pl.UTF-8): stunnel działający jako samodzielny serwer
52 Group: Networking/Daemons
53 Requires(post,preun): /sbin/chkconfig
54 Requires: %{name} = %{version}-%{release}
56 Obsoletes: stunnel-inetd
58 %description standalone
59 stunnel acts as standalone server.
61 %description standalone -l pl.UTF-8
62 stunnel działający jako samodzielny serwer.
65 Summary: stunnel acts as inetd service
66 Summary(pl.UTF-8): stunnel działający jako usługa inetd
67 Group: Networking/Daemons
68 Requires: %{name} = %{version}-%{release}
70 Obsoletes: stunnel-standalone
73 stunnel acts as inetd service.
75 %description inetd -l pl.UTF-8
76 stunnel działający jako usługa inetd.
89 --disable-silent-rules
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig/rc-inetd},%{_mandir}/{pl,fr}/man8,%{_var}/run/stunnel} \
95 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
98 DESTDIR=$RPM_BUILD_ROOT
100 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8/stunnel.8
101 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf
103 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel
104 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel
105 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/stunnel
106 install %{SOURCE4} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
108 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/stunnel
109 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/stunnel
112 rm -rf $RPM_BUILD_ROOT
115 %groupadd -g 130 stunnel
116 %useradd -u 130 -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel
118 %post -p /sbin/ldconfig
122 if [ "$1" = "0" ]; then
128 /sbin/chkconfig --add stunnel
129 %service stunnel restart "stunnel daemon"
132 if [ "$1" = "0" ]; then
133 %service stunnel stop
134 /sbin/chkconfig --del stunnel
138 %service -q rc-inetd reload
141 if [ "$1" = "0" ]; then
142 %service -q rc-inetd reload
146 %defattr(644,root,root,755)
147 # note: this COPYING contains general information not GPL text
148 %doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html tools/{ca.*,importCA.*}
149 %doc %lang(pl) doc/pl/* doc/stunnel.pl.html
150 %attr(755,root,root) %{_bindir}/stunnel
151 %attr(755,root,root) %{_bindir}/stunnel3
152 %dir %{_sysconfdir}/stunnel
153 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/stunnel/stunnel.conf
154 %attr(750,stunnel,stunnel) %{_var}/run/stunnel
155 /usr/lib/tmpfiles.d/%{name}.conf
156 %{_mandir}/man8/stunnel.8*
157 %lang(pl) %{_mandir}/pl/man8/stunnel.8*
160 %defattr(644,root,root,755)
161 %attr(754,root,root) /etc/rc.d/init.d/stunnel
162 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stunnel
165 %defattr(644,root,root,755)
166 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/stunnel