|
@@ -43,6 +43,7 @@ Source0: http://www.stunnel.org/download/stunnel/src/stunnel-%{version}.tar
|
|
|
Source1: stunnel.pem
|
|
Source1: stunnel.pem
|
|
|
Source2: rc.stunnel
|
|
Source2: rc.stunnel
|
|
|
Source3: fsl.stunnel
|
|
Source3: fsl.stunnel
|
|
|
|
|
+Source4: stunnel.conf
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
Prefix: %{l_prefix}
|
|
@@ -101,10 +102,12 @@ AutoReqProv: no
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/stunnel
|
|
$RPM_BUILD_ROOT%{l_prefix}/var/stunnel
|
|
|
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
|
|
%{l_make} %{l_mflags} install prefix=$RPM_BUILD_ROOT%{l_prefix}
|
|
|
|
|
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/stunnel.*.8
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man8/stunnel.*.8
|
|
|
- mv $RPM_BUILD_ROOT%{l_prefix}/etc/stunnel/stunnel.conf-sample \
|
|
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/stunnel/stunnel.conf
|
|
|
|
|
|
|
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/stunnel/stunnel.conf-sample
|
|
|
|
|
+ %{l_shtool} install -c -m 644 %{l_value -s -a} \
|
|
|
|
|
+ %{SOURCE stunnel.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/stunnel/
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
|
|
|
|
|
|
|
|
# install run-command script
|
|
# install run-command script
|
|
@@ -126,7 +129,8 @@ AutoReqProv: no
|
|
|
%{l_files_std} \
|
|
%{l_files_std} \
|
|
|
'%not %dir %{l_prefix}/etc/fsl' \
|
|
'%not %dir %{l_prefix}/etc/fsl' \
|
|
|
'%config %{l_prefix}/etc/stunnel/stunnel.*' \
|
|
'%config %{l_prefix}/etc/stunnel/stunnel.*' \
|
|
|
- '%config %{l_prefix}/etc/fsl/fsl.stunnel'
|
|
|
|
|
|
|
+ '%config %{l_prefix}/etc/fsl/fsl.stunnel' \
|
|
|
|
|
+ '%attr(755,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/stunnel'
|
|
|
|
|
|
|
|
%files -f files
|
|
%files -f files
|
|
|
|
|
|