]> git.pld-linux.org Git - packages/stunnel.git/blame - stunnel.spec
- release 2
[packages/stunnel.git] / stunnel.spec
CommitLineData
524b361e 1Summary: Universal SSL tunnel
835b466f 2Summary(pl.UTF-8): Uniwersalne narzędzie do bezpiecznego tunelowania
9ae646a2 3Name: stunnel
48ab2545 4Version: 4.50
bb489aa6 5Release: 2
010d13fd 6License: GPL v2+ with OpenSSL exception
9ae646a2 7Group: Networking/Daemons
0dab1228 8Source0: ftp://ftp.stunnel.org/stunnel/%{name}-%{version}.tar.gz
48ab2545 9# Source0-md5: d68b4565294496a8bdf23c728a679f53
44a8700b 10Source1: %{name}.init
11Source2: %{name}.sysconfig
60875471 12Source3: %{name}.inet
57e3de36 13Source4: %{name}.tmpfiles
48ab2545
JB
14Patch0: %{name}-authpriv.patch
15Patch1: %{name}-ac_fixes.patch
16Patch2: %{name}-am.patch
17Patch3: %{name}-libwrap_srv_name_log.patch
18Patch4: %{name}-config.patch
37abeb09 19URL: http://www.stunnel.org/
010d13fd 20BuildRequires: autoconf >= 2.50
d294aa70 21BuildRequires: automake
010d13fd 22BuildRequires: libtool >= 2:2.0
8558cbbd 23BuildRequires: libwrap-devel
cc5de804 24BuildRequires: openssl-devel >= 0.9.7d
25BuildRequires: openssl-tools >= 0.9.7d
84b2e84c
ER
26BuildRequires: rpmbuild(macros) >= 1.268
27Requires(postun): /sbin/ldconfig
28Requires(postun): /usr/sbin/groupdel
29Requires(postun): /usr/sbin/userdel
60875471 30Requires(pre): /bin/id
31Requires(pre): /usr/bin/getgid
32Requires(pre): /usr/sbin/groupadd
33Requires(pre): /usr/sbin/useradd
8558cbbd 34Provides: group(stunnel)
35Provides: user(stunnel)
76cd9e10 36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9ae646a2
AF
37
38%description
a09eccee 39The stunnel program is designed to work as SSL encryption wrapper
40between remote client and local (inetd-startable) or remote server.
41The concept is that having non-SSL aware daemons running on your
42system you can easily setup them to communicate with clients over
43secure SSL channel. stunnel can be used to add SSL functionality to
44commonly used inetd daemons like POP-2, POP-3 and IMAP servers without
45any changes in the programs' code.
9ae646a2 46
0fbf70f7
JR
47%description -l pl.UTF-8
48Stunnel umożliwia stawianie silnie kodowanych tuneli pomiędzy serwerem
49a komputerem klienta. Przy jego użyciu można łatwo zrealizować usługi
a54318b8 50pop3s lub HTTPS.
9ae646a2 51
60875471 52%package standalone
e1b7f8cf 53Summary: stunnel acts as standalone server
835b466f 54Summary(pl.UTF-8): stunnel działający jako samodzielny serwer
60875471 55Group: Networking/Daemons
06e2deeb 56Requires(post,preun): /sbin/chkconfig
74bc2c00 57Requires: %{name} = %{version}-%{release}
84b2e84c
ER
58Requires: rc-scripts
59Obsoletes: stunnel-inetd
60875471 60
61%description standalone
62stunnel acts as standalone server.
63
0fbf70f7
JR
64%description standalone -l pl.UTF-8
65stunnel działający jako samodzielny serwer.
60875471 66
e1b7f8cf 67%package inetd
60875471 68Summary: stunnel acts as inetd service
835b466f 69Summary(pl.UTF-8): stunnel działający jako usługa inetd
60875471 70Group: Networking/Daemons
74bc2c00 71Requires: %{name} = %{version}-%{release}
84b2e84c
ER
72Requires: rc-inetd
73Obsoletes: stunnel-standalone
60875471 74
75%description inetd
76stunnel acts as inetd service.
77
0fbf70f7
JR
78%description inetd -l pl.UTF-8
79stunnel 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
9ae646a2
AF
88
89%build
0e99d670 90%{__libtoolize}
91df0f44 91%{__aclocal}
46c7d442 92%{__autoconf}
91df0f44
TO
93%{__automake}
94%configure
d0f1803e 95%{__make}
9ae646a2
AF
96
97%install
98rm -rf $RPM_BUILD_ROOT
57e3de36
JR
99install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig/rc-inetd},%{_mandir}/{pl,fr}/man8,%{_var}/run/stunnel} \
100 $RPM_BUILD_ROOT/usr/lib/tmpfiles.d
91df0f44 101
71561493
PG
102%{__make} install \
103 DESTDIR=$RPM_BUILD_ROOT
9ae646a2 104
6db4b08b 105mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.fr.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8/stunnel.8
106mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8/stunnel.8
107mv -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf
24811fcc 108
44a8700b 109install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel
110install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel
60875471 111install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/stunnel
57e3de36 112install %{SOURCE4} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/%{name}.conf
44a8700b 113
cbf63ccb 114rm -rf $RPM_BUILD_ROOT%{_libdir}/stunnel
802122db
ER
115rm -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem
116rm -rf $RPM_BUILD_ROOT%{_docdir}/stunnel
06e2deeb 117
9ae646a2
AF
118%clean
119rm -rf $RPM_BUILD_ROOT
120
60875471 121%pre
9e7c4260
ER
122%groupadd -g 130 stunnel
123%useradd -u 130 -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel
60875471 124
06e2deeb
JB
125%post -p /sbin/ldconfig
126
e1b7f8cf 127%postun
06e2deeb 128/sbin/ldconfig
60875471 129if [ "$1" = "0" ]; then
8558cbbd 130 %userremove stunnel
131 %groupremove stunnel
60875471 132fi
133
134%post standalone
135/sbin/chkconfig --add stunnel
84b2e84c 136%service stunnel restart "stunnel daemon"
60875471 137
138%preun standalone
139if [ "$1" = "0" ]; then
84b2e84c 140 %service stunnel stop
60875471 141 /sbin/chkconfig --del stunnel
142fi
143
144%post inetd
84b2e84c 145%service -q rc-inetd reload
60875471 146
147%postun inetd
84b2e84c
ER
148if [ "$1" = "0" ]; then
149 %service -q rc-inetd reload
60875471 150fi
b000d92e 151
9ae646a2
AF
152%files
153%defattr(644,root,root,755)
4e06042d 154# note: this COPYING contains general information not GPL text
70558e79 155%doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html tools/{ca.*,importCA.*}
60875471 156%doc %lang(fr) doc/stunnel.fr.html
91df0f44 157%doc %lang(pl) doc/pl/* doc/stunnel.pl.html
010d13fd
JB
158%attr(755,root,root) %{_bindir}/stunnel
159%attr(755,root,root) %{_bindir}/stunnel3
be73512e 160%dir %{_sysconfdir}/stunnel
06e2deeb 161%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/stunnel/stunnel.conf
010d13fd 162%attr(750,stunnel,stunnel) %{_var}/run/stunnel
57e3de36 163/usr/lib/tmpfiles.d/%{name}.conf
010d13fd
JB
164%{_mandir}/man8/stunnel.8*
165%lang(fr) %{_mandir}/fr/man8/stunnel.8*
166%lang(pl) %{_mandir}/pl/man8/stunnel.8*
60875471 167
168%files standalone
169%defattr(644,root,root,755)
170%attr(754,root,root) /etc/rc.d/init.d/stunnel
06e2deeb 171%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stunnel
60875471 172
173%files inetd
174%defattr(644,root,root,755)
06e2deeb 175%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/stunnel
This page took 0.248731 seconds and 4 git commands to generate.