]> git.pld-linux.org Git - packages/stunnel.git/blob - stunnel.spec
- came on, lazy people.
[packages/stunnel.git] / stunnel.spec
1 Summary:        Universal SSL tunnel
2 Summary(pl):    Uniwersalne narzêdzie do bezpiecznego tunelowania
3 Name:           stunnel
4 Version:        4.04
5 Release:        0.9
6 License:        GPL v2
7 Group:          Networking/Daemons
8 Source0:        ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz
9 Source1:        %{name}.init
10 Source2:        %{name}.sysconfig
11 Patch0:         %{name}-gethostbyname_is_in_libc_aka_no_libnsl.patch
12 Patch1:         %{name}-authpriv.patch
13 Patch2:         %{name}-ac_fixes.patch
14 Patch3:         %{name}-am.patch
15 Patch4:         %{name}-getgrnam.patch
16 URL:            http://www.stunnel.org/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  libtool
20 BuildRequires:  openssl-devel >= 0.9.7
21 BuildRequires:  openssl-tools >= 0.9.7
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The stunnel program is designed to work as SSL encryption wrapper
26 between remote client and local (inetd-startable) or remote server.
27 The concept is that having non-SSL aware daemons running on your
28 system you can easily setup them to communicate with clients over
29 secure SSL channel. stunnel can be used to add SSL functionality to
30 commonly used inetd daemons like POP-2, POP-3 and IMAP servers without
31 any changes in the programs' code.
32
33 %description -l pl
34 Stunnel umo¿liwia stawianie silnie kodowanych tuneli pomiêdzy serwerem
35 a komputerem klienta. Przy jego u¿yciu mo¿na ³atwo zrealizowaæ us³ugi
36 pop3s lub https.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41 %patch1 -p1
42 %patch2 -p1
43 %patch3 -p1
44 %patch4 -p1
45
46 %build
47 rm -f missing
48 %{__libtoolize}
49 %{__aclocal}
50 %{__autoconf}
51 %{__automake}
52 %configure
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
58         -d $RPM_BUILD_ROOT%{_mandir}/pl/man8 \
59         -d $RPM_BUILD_ROOT%{_var}/run/stunnel
60
61 %{__make} install DESTDIR=$RPM_BUILD_ROOT
62
63 mv -f $RPM_BUILD_ROOT/%{_mandir}/man8/stunnel.pl.8* $RPM_BUILD_ROOT/%{_mandir}/pl/man8/
64
65 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel
66 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %post   -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
73
74 %files
75 %defattr(644,root,root,755)
76 %doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html
77 %doc src/stunnel.exe
78 %doc $RPM_BUILD_ROOT%{_datadir}/doc/stunnel/examples/{c*,i*,stunnel.init}
79 %doc %lang(pl) doc/pl/* doc/stunnel.pl.html
80 %dir /etc/stunnel
81 %attr(755,root,root) /etc/rc.d/init.d/stunnel
82 %attr(600,root,root) /etc/sysconfig/stunnel
83 %attr(700,nobody,nobody) %{_var}/run/stunnel
84 %config(noreplace) %verify(not size mtime md5) /etc/stunnel/*
85 %attr(755,root,root) %{_sbindir}/*
86 %attr(755,root,root) %{_libdir}/*
87 %{_mandir}/man8/*
88 %lang(pl) %{_mandir}/pl/man8/*
This page took 0.059726 seconds and 4 git commands to generate.