Requires(postun): /usr/sbin/userdel
Requires(postun): /usr/sbin/groupdel
Requires(post,preun): /sbin/chkconfig
-Requires(post,postun): /sbin/ldconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch6 -p1
%build
-%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__automake}
mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.fr.8 $RPM_BUILD_ROOT%{_mandir}/fr/man8/stunnel.8
mv -f $RPM_BUILD_ROOT%{_mandir}/man8/stunnel.pl.8 $RPM_BUILD_ROOT%{_mandir}/pl/man8/stunnel.8
-mv -f $RPM_BUILD_ROOT/etc/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT/etc/stunnel/stunnel.conf
+mv -f $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.conf
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/stunnel
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/stunnel
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-
%pre
if [ -n "`getgid stunnel`" ]; then
if [ "`getgid stunnel`" != "130" ]; then
fi
%postun
-/sbin/ldconfig
if [ "$1" = "0" ]; then
/usr/sbin/userdel stunnel
/usr/sbin/groupdel stunnel
%doc %lang(fr) doc/stunnel.fr.html
%doc %lang(pl) doc/pl/* doc/stunnel.pl.html
%attr(750,stunnel,stunnel) %{_var}/run/stunnel
-%dir /etc/stunnel
-%config(noreplace) %verify(not size mtime md5) /etc/stunnel/*
+%dir %{_sysconfdir}/stunnel
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/stunnel/*
%attr(755,root,root) %{_sbindir}/*
-%attr(755,root,root) %{_libdir}/*
%{_mandir}/man8/*
%lang(fr) %{_mandir}/fr/man8/*
%lang(pl) %{_mandir}/pl/man8/*
%files standalone
%defattr(644,root,root,755)
%attr(754,root,root) /etc/rc.d/init.d/stunnel
-/etc/sysconfig/stunnel
+%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/stunnel
%files inetd
%defattr(644,root,root,755)