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