]> git.pld-linux.org Git - packages/stunnel.git/blob - stunnel.spec
- release 5,
[packages/stunnel.git] / stunnel.spec
1 Summary:        Universal SSL tunnel
2 Summary(pl):    Uniwersalne narzedzie do bezpiecznego tunelowania
3 Name:           stunnel
4 Version:        3.8
5 Release:        5
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(pl):      Sieciowe/Serwery
9 Source0:        http://mike.daewoo.com.pl/computer/stunnel/%{name}-%{version}.tar.gz
10 Patch1:         %{name}-DESTDIR.patch
11 Patch2:         %{name}-dirs.patch
12 Patch3:         %{name}-fixargs.patch
13 PAtch4:         stunnel-gethostbyname_is_in_libc_aka_no_libnsl.patch
14 URL:            http://mike.daewoo.com.pl/computer/stunnel/
15 BuildRequires:  autoconf
16 BuildRequires:  openssl-devel >= 0.9.4-2
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         certdir         /var/lib/openssl/certs
20
21 %description
22 The stunnel program is designed to work as SSL encryption wrapper
23 between remote client and local (inetd-startable) or remote server.
24 The concept is that having non-SSL aware daemons running on your
25 system you can easily setup them to communicate with clients over
26 secure SSL channel. stunnel can be used to add SSL functionality to
27 commonly used inetd daemons like POP-2, POP-3 and IMAP servers without
28 any changes in the programs' code.
29
30 %description -l pl
31 Stunnel umo¿liwia stawianie silnie kodowanych tuneli pomiêdzy serwerem
32 a komputerem klienta. Przy jego u¿yciu mo¿na ³atwo zrealizowaæ us³ugi
33 pop3s lub https.
34
35 %prep
36 %setup -q
37 %patch1 -p1
38 %patch2 -p1
39 %patch3 -p0
40 %patch4 -p1
41
42 %build
43 autoconf
44 CFLAGS="$RPM_OPT_FLAGS -DHAVE_GETOPT"
45 LDFLAGS="-s"
46 export CFLAGS LDFLAGS
47 %configure 
48         
49 %{__make} certdir=%{certdir}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT \
56         certdir=$RPM_BUILD_ROOT/%{certdir}
57         
58 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
59         FAQ HISTORY README BUGS 
60
61 %post -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc {FAQ,HISTORY,README,BUGS}.gz 
70 %doc %lang(pl) doc.polish/*
71 %doc stunnel.exe
72 %attr(755,root,root) %{_sbindir}/*
73 %attr(755,root,root) %{_libdir}/*
74
75 %{_mandir}/man8/*
76 %config(noreplace) %verify(not size mtime md5) %attr(600,root,root) %{certdir}/stunnel.pem
This page took 0.0669650000000001 seconds and 4 git commands to generate.