Skip cleaning cron job for /var/cache/man
OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=88
This commit is contained in:
parent
33364c8da4
commit
9d83e0e561
@ -1,42 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# clean_catman. This script was split off cron.daily
|
|
||||||
# Please add your local changes to cron.daily.local
|
|
||||||
# since this file will be overwritten, when updating your system.
|
|
||||||
#
|
|
||||||
# Copyright (c) 1996-2002 SuSE GmbH Nuernberg, Germany.
|
|
||||||
#
|
|
||||||
# please send bugfixes or comments to feedback@suse.de.
|
|
||||||
#
|
|
||||||
# Author: Burchard Steinbild <feedback@suse.de>, 1996
|
|
||||||
# Florian La Roche <feedback@suse.de>, 1996
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# paranoia settings
|
|
||||||
#
|
|
||||||
umask 022
|
|
||||||
|
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
||||||
export PATH
|
|
||||||
|
|
||||||
if [ -f /etc/sysconfig/cron ] ; then
|
|
||||||
. /etc/sysconfig/cron
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# Delete too old preformatted man-pages.
|
|
||||||
#
|
|
||||||
if test "$DELETE_OLD_CATMAN" = yes ; then
|
|
||||||
if test -z "$CATMAN_ATIME" ; then
|
|
||||||
# Default is 7 days
|
|
||||||
CATMAN_ATIME=7
|
|
||||||
fi
|
|
||||||
test -e /var/cache/man -a -x /usr/bin/safe-rm && \
|
|
||||||
find /var/cache/man -name '*.gz' -type f -atime +$CATMAN_ATIME -print0 | \
|
|
||||||
xargs --no-run-if-empty --max-lines=200 --null -- /usr/bin/safe-rm
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit 0
|
|
4
man.spec
4
man.spec
@ -59,7 +59,6 @@ Requires(pre): group(man)
|
|||||||
Source: http://download.savannah.gnu.org/releases/man-db/man-db-%{version}.tar.xz
|
Source: http://download.savannah.gnu.org/releases/man-db/man-db-%{version}.tar.xz
|
||||||
Source1: sysconfig.cron-man
|
Source1: sysconfig.cron-man
|
||||||
Source2: cron.daily.do_mandb
|
Source2: cron.daily.do_mandb
|
||||||
Source3: cron.daily.clean_catman
|
|
||||||
Source4: mancoding
|
Source4: mancoding
|
||||||
Source5: wrapper.c
|
Source5: wrapper.c
|
||||||
Source6: man-rpmlintrc
|
Source6: man-rpmlintrc
|
||||||
@ -240,7 +239,6 @@ fi
|
|||||||
mkdir -p %{buildroot}/etc/cron.daily
|
mkdir -p %{buildroot}/etc/cron.daily
|
||||||
install -m 0644 %{SOURCE1} %{buildroot}%{_fillupdir}
|
install -m 0644 %{SOURCE1} %{buildroot}%{_fillupdir}
|
||||||
install -m 0744 %{SOURCE2} %{buildroot}/etc/cron.daily/suse-do_mandb
|
install -m 0744 %{SOURCE2} %{buildroot}/etc/cron.daily/suse-do_mandb
|
||||||
install -m 0744 %{SOURCE3} %{buildroot}/etc/cron.daily/suse-clean_catman
|
|
||||||
mkdir -p %{buildroot}%{_unitdir}/
|
mkdir -p %{buildroot}%{_unitdir}/
|
||||||
install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
|
install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
|
||||||
|
|
||||||
@ -272,8 +270,6 @@ test -d /var/cache/man && mandb --quiet --create ||:
|
|||||||
%doc ChangeLog
|
%doc ChangeLog
|
||||||
%doc %{_datadir}/doc/packages/man/man-db-manual.*
|
%doc %{_datadir}/doc/packages/man/man-db-manual.*
|
||||||
%config /etc/manpath.config
|
%config /etc/manpath.config
|
||||||
# There exists /usr/lib/tmpfiles.d/man-db.conf
|
|
||||||
# %attr(0744,root,root) /etc/cron.daily/suse-clean_catman
|
|
||||||
%attr(0744,root,root) /etc/cron.daily/suse-do_mandb
|
%attr(0744,root,root) /etc/cron.daily/suse-do_mandb
|
||||||
%{_bindir}/apropos
|
%{_bindir}/apropos
|
||||||
%{_bindir}/catman
|
%{_bindir}/catman
|
||||||
|
Loading…
Reference in New Issue
Block a user