mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 16:42:56 -08:00
Build full mandoc.db(5) databases by default using makewhatis(8)
without -Q during the build and in weekly(8). According to tests by many developers, makewhatis(8) takes a few minutes at most even on slower hardware like octeon, loongson, ALIX, RPI3, Soekris, cubox, softiron etc., and security(8) is often worse than makewhatis(8). In case this causes excessive weekly(8) run times on even slower (~50 MHz-class) CPUs, consider adding "MAKEWHATISARGS=-Q" to /etc/weekly.local on machines that feel unhappy. OK sthen@ kettenis@ millert@ deraadt@
This commit is contained in:
parent
2ab086da93
commit
78be3774fe
@ -1,5 +1,5 @@
|
||||
#
|
||||
# $OpenBSD: weekly,v 1.27 2015/08/14 03:02:07 rzalamena Exp $
|
||||
# $OpenBSD: weekly,v 1.28 2017/04/15 13:12:08 schwarze Exp $
|
||||
#
|
||||
# For local additions, create the file /etc/weekly.local.
|
||||
# To get section headers, use the function next_part in weekly.local.
|
||||
@ -63,7 +63,7 @@ if [ -f /var/db/locate.database ]; then
|
||||
fi
|
||||
|
||||
next_part "Rebuilding whatis databases:"
|
||||
/usr/sbin/makewhatis ${MAKEWHATISARGS:--Q}
|
||||
/usr/sbin/makewhatis $MAKEWHATISARGS
|
||||
|
||||
next_part "Doing login accounting:"
|
||||
[ "X$LOGINACCOUNTING" = X1 ] && {
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.12 2016/11/08 19:33:58 tb Exp $
|
||||
# $OpenBSD: Makefile,v 1.13 2017/04/15 13:12:08 schwarze Exp $
|
||||
# from: @(#)Makefile 5.9 (Berkeley) 7/1/91
|
||||
|
||||
SUBDIR= man1 man3 man4 man5 man6 man7 man8 man9
|
||||
@ -8,7 +8,7 @@ afterinstall:
|
||||
man0/COPYRIGHT ${DESTDIR}/usr/share/man/COPYRIGHT
|
||||
|
||||
makedb:
|
||||
/usr/sbin/makewhatis -Qv ${DESTDIR}/usr/share/man
|
||||
/usr/sbin/makewhatis ${DESTDIR}/usr/share/man
|
||||
chown root:wheel ${DESTDIR}/usr/share/man/mandoc.db
|
||||
chmod 644 ${DESTDIR}/usr/share/man/mandoc.db
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: daily.8,v 1.24 2016/04/29 13:05:33 schwarze Exp $
|
||||
.\" $OpenBSD: daily.8,v 1.25 2017/04/15 13:12:08 schwarze Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2003 Jason McIntyre <jmc@openbsd.org>
|
||||
.\"
|
||||
@ -14,7 +14,7 @@
|
||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.\"
|
||||
.Dd $Mdocdate: April 29 2016 $
|
||||
.Dd $Mdocdate: April 15 2017 $
|
||||
.Dt DAILY 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -225,11 +225,9 @@ If set to 1, run
|
||||
.Xr ac 8
|
||||
to report login accounting.
|
||||
.It Ev MAKEWHATISARGS
|
||||
If set to a string containing at least one character (even a blank),
|
||||
use that string as the arguments to
|
||||
.Xr makewhatis 8 .
|
||||
If unset or empty, use the default argument
|
||||
.Fl Q .
|
||||
Arguments for
|
||||
.Xr makewhatis 8 ;
|
||||
empty by default.
|
||||
.El
|
||||
.Sh FILES
|
||||
.Bl -tag -width "/var/cron/tabs/root" -compact
|
||||
|
Loading…
Reference in New Issue
Block a user