]> git.pld-linux.org Git - packages/stunnel.git/blob - stunnel.spec
- fixed
[packages/stunnel.git] / stunnel.spec
1 Summary:        Universal SSL tunnel
2 Summary(pl):    Uniwersalne narzêdzie do bezpiecznego tunelowania
3 Name:           stunnel
4 Version:        3.20
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(de):      Netzwerkwesen/Server
9 Group(pl):      Sieciowe/Serwery
10 Source0:        ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz
11 Patch1:         %{name}-DESTDIR.patch
12 Patch2:         %{name}-gethostbyname_is_in_libc_aka_no_libnsl.patch
13 Patch3:         %{name}-piddir.patch
14 Patch4:         %{name}-gen-cert.patch
15 URL:            http://www.stunnel.org/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  openssl-devel >= 0.9.6a
19 BuildRequires:  openssl-tools >= 0.9.6a
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _certdir        /var/lib/stunnel
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 %patch1 -p1
41 %patch2 -p1
42 %patch3 -p1
43 %patch4 -p1
44
45 %build
46 aclocal
47 automake -a -c
48 autoheader
49 autoconf
50 CFLAGS="%{rpmcflags} -DHAVE_GETOPT"
51 %configure \
52         --with-pem-dir=%{_certdir}
53         
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT \
61         certdir=$RPM_BUILD_ROOT/%{_certdir}
62         
63 gzip -9nf FAQ HISTORY README BUGS 
64
65 %post   -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71 %files
72 %defattr(644,root,root,755)
73 %doc {FAQ,HISTORY,README,BUGS}.gz 
74 %doc %lang(pl) doc.polish/*
75 %doc stunnel.exe
76 %config(noreplace) %verify(not size mtime md5) %attr(600,root,root) %{_certdir}/stunnel.pem
77 %attr(755,root,root) %{_sbindir}/*
78 %attr(755,root,root) %{_libdir}/*
79 %dir /var/run/stunnel
80 %{_mandir}/man8/*
This page took 0.046545 seconds and 3 git commands to generate.