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