]> git.pld-linux.org Git - packages/stunnel.git/blob - stunnel.spec
- updated to 4.50
[packages/stunnel.git] / stunnel.spec
1 Summary:        Universal SSL tunnel
2 Summary(pl.UTF-8):      Uniwersalne narzędzie do bezpiecznego tunelowania
3 Name:           stunnel
4 Version:        4.50
5 Release:        1
6 License:        GPL v2+ with OpenSSL exception
7 Group:          Networking/Daemons
8 Source0:        ftp://ftp.stunnel.org/stunnel/%{name}-%{version}.tar.gz
9 # Source0-md5:  d68b4565294496a8bdf23c728a679f53
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
12 Source3:        %{name}.inet
13 Patch0:         %{name}-authpriv.patch
14 Patch1:         %{name}-ac_fixes.patch
15 Patch2:         %{name}-am.patch
16 Patch3:         %{name}-libwrap_srv_name_log.patch
17 Patch4:         %{name}-config.patch
18 URL:            http://www.stunnel.org/
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  libtool >= 2:2.0
22 BuildRequires:  libwrap-devel
23 BuildRequires:  openssl-devel >= 0.9.7d
24 BuildRequires:  openssl-tools >= 0.9.7d
25 BuildRequires:  rpmbuild(macros) >= 1.268
26 Requires(postun):       /sbin/ldconfig
27 Requires(postun):       /usr/sbin/groupdel
28 Requires(postun):       /usr/sbin/userdel
29 Requires(pre):  /bin/id
30 Requires(pre):  /usr/bin/getgid
31 Requires(pre):  /usr/sbin/groupadd
32 Requires(pre):  /usr/sbin/useradd
33 Provides:       group(stunnel)
34 Provides:       user(stunnel)
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 The stunnel program is designed to work as SSL encryption wrapper
39 between remote client and local (inetd-startable) or remote server.
40 The concept is that having non-SSL aware daemons running on your
41 system you can easily setup them to communicate with clients over
42 secure SSL channel. stunnel can be used to add SSL functionality to
43 commonly used inetd daemons like POP-2, POP-3 and IMAP servers without
44 any changes in the programs' code.
45
46 %description -l pl.UTF-8
47 Stunnel umożliwia stawianie silnie kodowanych tuneli pomiędzy serwerem
48 a komputerem klienta. Przy jego użyciu można łatwo zrealizować usługi
49 pop3s lub HTTPS.
50
51 %package standalone
52 Summary:        stunnel acts as standalone server
53 Summary(pl.UTF-8):      stunnel działający jako samodzielny serwer
54 Group:          Networking/Daemons
55 Requires(post,preun):   /sbin/chkconfig
56 Requires:       %{name} = %{version}-%{release}
57 Requires:       rc-scripts
58 Obsoletes:      stunnel-inetd
59
60 %description standalone
61 stunnel acts as standalone server.
62
63 %description standalone -l pl.UTF-8
64 stunnel działający jako samodzielny serwer.
65
66 %package inetd
67 Summary:        stunnel acts as inetd service
68 Summary(pl.UTF-8):      stunnel działający jako usługa inetd
69 Group:          Networking/Daemons
70 Requires:       %{name} = %{version}-%{release}
71 Requires:       rc-inetd
72 Obsoletes:      stunnel-standalone
73
74 %description inetd
75 stunnel acts as inetd service.
76
77 %description inetd -l pl.UTF-8
78 stunnel działający jako usługa inetd.
79
80 %prep
81 %setup -q
82 %patch0 -p1
83 %patch1 -p1
84 %patch2 -p1
85 %patch3 -p1
86 %patch4 -p1
87
88 %build
89 %{__libtoolize}
90 %{__aclocal}
91 %{__autoconf}
92 %{__automake}
93 %configure
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig/rc-inetd},%{_mandir}/{pl,fr}/man8,%{_var}/run/stunnel}
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.fr.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8/stunnel.8
104 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8/stunnel.8
105 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf
106
107 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel
108 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel
109 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/stunnel
110
111 rm -rf $RPM_BUILD_ROOT%{_libdir}/stunnel
112 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem
113 rm -rf $RPM_BUILD_ROOT%{_docdir}/stunnel
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %pre
119 %groupadd -g 130 stunnel
120 %useradd -u 130 -d /var/run/stunnel -s /bin/false -c "stunnel User" -g stunnel stunnel
121
122 %post   -p /sbin/ldconfig
123
124 %postun
125 /sbin/ldconfig
126 if [ "$1" = "0" ]; then
127         %userremove stunnel
128         %groupremove stunnel
129 fi
130
131 %post standalone
132 /sbin/chkconfig --add stunnel
133 %service stunnel restart "stunnel daemon"
134
135 %preun standalone
136 if [ "$1" = "0" ]; then
137         %service stunnel stop
138         /sbin/chkconfig --del stunnel
139 fi
140
141 %post inetd
142 %service -q rc-inetd reload
143
144 %postun inetd
145 if [ "$1" = "0" ]; then
146         %service -q rc-inetd reload
147 fi
148
149 %files
150 %defattr(644,root,root,755)
151 # note: this COPYING contains general information not GPL text
152 %doc AUTHORS BUGS COPYING CREDITS ChangeLog NEWS PORTS README TODO doc/en/* doc/stunnel.html tools/{ca.*,importCA.*}
153 %doc %lang(fr) doc/stunnel.fr.html
154 %doc %lang(pl) doc/pl/* doc/stunnel.pl.html
155 %attr(755,root,root) %{_bindir}/stunnel
156 %attr(755,root,root) %{_bindir}/stunnel3
157 %dir %{_sysconfdir}/stunnel
158 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/stunnel/stunnel.conf
159 %attr(750,stunnel,stunnel) %{_var}/run/stunnel
160 %{_mandir}/man8/stunnel.8*
161 %lang(fr) %{_mandir}/fr/man8/stunnel.8*
162 %lang(pl) %{_mandir}/pl/man8/stunnel.8*
163
164 %files standalone
165 %defattr(644,root,root,755)
166 %attr(754,root,root) /etc/rc.d/init.d/stunnel
167 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/stunnel
168
169 %files inetd
170 %defattr(644,root,root,755)
171 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/stunnel
This page took 0.053078 seconds and 4 git commands to generate.