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