]>
Commit | Line | Data |
---|---|---|
524b361e | 1 | Summary: Universal SSL tunnel |
835b466f | 2 | Summary(pl.UTF-8): Uniwersalne narzędzie do bezpiecznego tunelowania |
9ae646a2 | 3 | Name: stunnel |
cbf63ccb | 4 | Version: 4.21 |
f6b50141 | 5 | Release: 1 |
91df0f44 | 6 | License: GPL v2 |
9ae646a2 | 7 | Group: Networking/Daemons |
5db68f11 | 8 | Source0: ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz |
cbf63ccb | 9 | # Source0-md5: 1eaec5228979beca4d548f453304e311 |
44a8700b | 10 | Source1: %{name}.init |
11 | Source2: %{name}.sysconfig | |
60875471 | 12 | Source3: %{name}.inet |
91df0f44 TO |
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 | |
806868e8 | 17 | Patch4: %{name}-libwrap_srv_name_log.patch |
18 | Patch5: %{name}-config.patch | |
37abeb09 | 19 | URL: http://www.stunnel.org/ |
f5db563b | 20 | BuildRequires: autoconf |
d294aa70 | 21 | BuildRequires: automake |
91df0f44 | 22 | BuildRequires: libtool |
8558cbbd | 23 | BuildRequires: libwrap-devel |
cc5de804 | 24 | BuildRequires: openssl-devel >= 0.9.7d |
25 | BuildRequires: openssl-tools >= 0.9.7d | |
84b2e84c ER |
26 | BuildRequires: rpmbuild(macros) >= 1.268 |
27 | Requires(postun): /sbin/ldconfig | |
28 | Requires(postun): /usr/sbin/groupdel | |
29 | Requires(postun): /usr/sbin/userdel | |
60875471 | 30 | Requires(pre): /bin/id |
31 | Requires(pre): /usr/bin/getgid | |
32 | Requires(pre): /usr/sbin/groupadd | |
33 | Requires(pre): /usr/sbin/useradd | |
8558cbbd | 34 | Provides: group(stunnel) |
35 | Provides: user(stunnel) | |
76cd9e10 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9ae646a2 AF |
37 | |
38 | %description | |
a09eccee | 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. | |
9ae646a2 | 46 | |
0fbf70f7 JR |
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 | |
a54318b8 | 50 | pop3s lub HTTPS. |
9ae646a2 | 51 | |
60875471 | 52 | %package standalone |
e1b7f8cf | 53 | Summary: stunnel acts as standalone server |
835b466f | 54 | Summary(pl.UTF-8): stunnel działający jako samodzielny serwer |
60875471 | 55 | Group: Networking/Daemons |
06e2deeb | 56 | Requires(post,preun): /sbin/chkconfig |
74bc2c00 | 57 | Requires: %{name} = %{version}-%{release} |
84b2e84c ER |
58 | Requires: rc-scripts |
59 | Obsoletes: stunnel-inetd | |
60875471 | 60 | |
61 | %description standalone | |
62 | stunnel acts as standalone server. | |
63 | ||
0fbf70f7 JR |
64 | %description standalone -l pl.UTF-8 |
65 | stunnel działający jako samodzielny serwer. | |
60875471 | 66 | |
e1b7f8cf | 67 | %package inetd |
60875471 | 68 | Summary: stunnel acts as inetd service |
835b466f | 69 | Summary(pl.UTF-8): stunnel działający jako usługa inetd |
60875471 | 70 | Group: Networking/Daemons |
74bc2c00 | 71 | Requires: %{name} = %{version}-%{release} |
84b2e84c ER |
72 | Requires: rc-inetd |
73 | Obsoletes: stunnel-standalone | |
60875471 | 74 | |
75 | %description inetd | |
76 | stunnel acts as inetd service. | |
77 | ||
0fbf70f7 JR |
78 | %description inetd -l pl.UTF-8 |
79 | stunnel działający jako usługa inetd. | |
60875471 | 80 | |
9ae646a2 | 81 | %prep |
6c781bbd | 82 | %setup -q |
19b62492 | 83 | %patch0 -p1 |
7899c5a8 | 84 | %patch1 -p1 |
85 | %patch2 -p1 | |
37abeb09 | 86 | %patch3 -p1 |
806868e8 | 87 | %patch4 -p1 |
19b62492 | 88 | %patch5 -p1 |
9ae646a2 AF |
89 | |
90 | %build | |
91df0f44 | 91 | %{__aclocal} |
46c7d442 | 92 | %{__autoconf} |
91df0f44 TO |
93 | %{__automake} |
94 | %configure | |
d0f1803e | 95 | %{__make} |
9ae646a2 AF |
96 | |
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
60875471 | 99 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig/rc-inetd},%{_mandir}/{pl,fr}/man8,%{_var}/run/stunnel} |
91df0f44 | 100 | |
71561493 PG |
101 | %{__make} install \ |
102 | DESTDIR=$RPM_BUILD_ROOT | |
9ae646a2 | 103 | |
6db4b08b | 104 | mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.fr.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8/stunnel.8 |
105 | mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8/stunnel.8 | |
106 | mv -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf | |
24811fcc | 107 | |
44a8700b | 108 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel |
109 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel | |
60875471 | 110 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/stunnel |
44a8700b | 111 | |
cbf63ccb | 112 | rm -rf $RPM_BUILD_ROOT%{_libdir}/stunnel |
802122db ER |
113 | rm -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem |
114 | rm -rf $RPM_BUILD_ROOT%{_docdir}/stunnel | |
06e2deeb | 115 | |
9ae646a2 AF |
116 | %clean |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
60875471 | 119 | %pre |
9e7c4260 ER |
120 | %groupadd -g 130 stunnel |
121 | %useradd -u 130 -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel | |
60875471 | 122 | |
06e2deeb JB |
123 | %post -p /sbin/ldconfig |
124 | ||
e1b7f8cf | 125 | %postun |
06e2deeb | 126 | /sbin/ldconfig |
60875471 | 127 | if [ "$1" = "0" ]; then |
8558cbbd | 128 | %userremove stunnel |
129 | %groupremove stunnel | |
60875471 | 130 | fi |
131 | ||
132 | %post standalone | |
133 | /sbin/chkconfig --add stunnel | |
84b2e84c | 134 | %service stunnel restart "stunnel daemon" |
60875471 | 135 | |
136 | %preun standalone | |
137 | if [ "$1" = "0" ]; then | |
84b2e84c | 138 | %service stunnel stop |
60875471 | 139 | /sbin/chkconfig --del stunnel |
140 | fi | |
141 | ||
142 | %post inetd | |
84b2e84c | 143 | %service -q rc-inetd reload |
60875471 | 144 | |
145 | %postun inetd | |
84b2e84c ER |
146 | if [ "$1" = "0" ]; then |
147 | %service -q rc-inetd reload | |
60875471 | 148 | fi |
b000d92e | 149 | |
9ae646a2 AF |
150 | %files |
151 | %defattr(644,root,root,755) | |
4e06042d | 152 | # note: this COPYING contains general information not GPL text |
e1b7f8cf | 153 | %doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html |
06e2deeb | 154 | %doc src/stunnel.exe tools/{ca.*,importCA.*} |
60875471 | 155 | %doc %lang(fr) doc/stunnel.fr.html |
91df0f44 | 156 | %doc %lang(pl) doc/pl/* doc/stunnel.pl.html |
60875471 | 157 | %attr(750,stunnel,stunnel) %{_var}/run/stunnel |
be73512e | 158 | %dir %{_sysconfdir}/stunnel |
06e2deeb | 159 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/stunnel/stunnel.conf |
cbf63ccb | 160 | %attr(755,root,root) %{_bindir}/* |
2e3db10d | 161 | %{_mandir}/man8/* |
60875471 | 162 | %lang(fr) %{_mandir}/fr/man8/* |
91df0f44 | 163 | %lang(pl) %{_mandir}/pl/man8/* |
60875471 | 164 | |
165 | %files standalone | |
166 | %defattr(644,root,root,755) | |
167 | %attr(754,root,root) /etc/rc.d/init.d/stunnel | |
06e2deeb | 168 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stunnel |
60875471 | 169 | |
170 | %files inetd | |
171 | %defattr(644,root,root,755) | |
06e2deeb | 172 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/stunnel |