1 Summary: Universal SSL tunnel
2 Summary(pl.UTF-8): Uniwersalne narzędzie do bezpiecznego tunelowania
7 Group: Networking/Daemons
8 Source0: ftp://ftp.stunnel.org/stunnel/%{name}-%{version}.tar.gz
9 # Source0-md5: 2c8e153caee9d954fb7d00980968b50d
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}-libwrap_srv_name_log.patch
18 Patch5: %{name}-config.patch
19 URL: http://www.stunnel.org/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: libtool
23 BuildRequires: libwrap-devel
24 BuildRequires: openssl-devel >= 0.9.7d
25 BuildRequires: openssl-tools >= 0.9.7d
26 BuildRequires: rpmbuild(macros) >= 1.268
27 Requires(postun): /sbin/ldconfig
28 Requires(postun): /usr/sbin/groupdel
29 Requires(postun): /usr/sbin/userdel
30 Requires(pre): /bin/id
31 Requires(pre): /usr/bin/getgid
32 Requires(pre): /usr/sbin/groupadd
33 Requires(pre): /usr/sbin/useradd
34 Provides: group(stunnel)
35 Provides: user(stunnel)
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 The stunnel program is designed to work as SSL encryption wrapper
40 between remote client and local (inetd-startable) or remote server.
41 The concept is that having non-SSL aware daemons running on your
42 system you can easily setup them to communicate with clients over
43 secure SSL channel. stunnel can be used to add SSL functionality to
44 commonly used inetd daemons like POP-2, POP-3 and IMAP servers without
45 any changes in the programs' code.
47 %description -l pl.UTF-8
48 Stunnel umożliwia stawianie silnie kodowanych tuneli pomiędzy serwerem
49 a komputerem klienta. Przy jego użyciu można łatwo zrealizować usługi
53 Summary: stunnel acts as standalone server
54 Summary(pl.UTF-8): stunnel działający jako samodzielny serwer
55 Group: Networking/Daemons
56 Requires(post,preun): /sbin/chkconfig
57 Requires: %{name} = %{version}-%{release}
59 Obsoletes: stunnel-inetd
61 %description standalone
62 stunnel acts as standalone server.
64 %description standalone -l pl.UTF-8
65 stunnel działający jako samodzielny serwer.
68 Summary: stunnel acts as inetd service
69 Summary(pl.UTF-8): stunnel działający jako usługa inetd
70 Group: Networking/Daemons
71 Requires: %{name} = %{version}-%{release}
73 Obsoletes: stunnel-standalone
76 stunnel acts as inetd service.
78 %description inetd -l pl.UTF-8
79 stunnel działający jako usługa inetd.
99 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig/rc-inetd},%{_mandir}/{pl,fr}/man8,%{_var}/run/stunnel}
103 DESTDIR=$RPM_BUILD_ROOT
105 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.fr.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8/stunnel.8
106 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8/stunnel.8
107 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf
109 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel
110 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel
111 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/stunnel
113 rm -rf $RPM_BUILD_ROOT%{_libdir}/stunnel
114 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem
115 rm -rf $RPM_BUILD_ROOT%{_docdir}/stunnel
118 rm -rf $RPM_BUILD_ROOT
121 %groupadd -g 130 stunnel
122 %useradd -u 130 -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel
124 %post -p /sbin/ldconfig
128 if [ "$1" = "0" ]; then
134 /sbin/chkconfig --add stunnel
135 %service stunnel restart "stunnel daemon"
138 if [ "$1" = "0" ]; then
139 %service stunnel stop
140 /sbin/chkconfig --del stunnel
144 %service -q rc-inetd reload
147 if [ "$1" = "0" ]; then
148 %service -q rc-inetd reload
152 %defattr(644,root,root,755)
153 # note: this COPYING contains general information not GPL text
154 %doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html
155 %doc src/stunnel.exe tools/{ca.*,importCA.*}
156 %doc %lang(fr) doc/stunnel.fr.html
157 %doc %lang(pl) doc/pl/* doc/stunnel.pl.html
158 %attr(750,stunnel,stunnel) %{_var}/run/stunnel
159 %dir %{_sysconfdir}/stunnel
160 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/stunnel/stunnel.conf
161 %attr(755,root,root) %{_bindir}/*
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