#
-# $OpenBSD: weekly,v 1.25 2011/07/07 23:09:46 guenther Exp $
+# $OpenBSD: weekly,v 1.26 2014/04/18 10:00:48 schwarze Exp $
#
# For local additions, create the file /etc/weekly.local.
# To get section headers, use the function next_part in weekly.local.
fi
next_part "Rebuilding whatis databases:"
-/usr/libexec/makewhatis
+/usr/sbin/makewhatis ${MAKEWHATISARGS:--Q}
next_part "Doing login accounting:"
[ "X$LOGINACCOUNTING" = X1 ] && {
# from: @(#)Makefile 5.7 (Berkeley) 4/1/91
-# $OpenBSD: Makefile,v 1.57 2014/03/24 13:55:59 deraadt Exp $
+# $OpenBSD: Makefile,v 1.58 2014/04/18 10:00:48 schwarze Exp $
.include <bsd.own.mk>
SUBDIR= comsat fingerd ftpd getty ld.so lockspool login_chpass \
login_lchpass login_passwd login_radius login_reject \
login_skey login_tis login_token login_yubikey mail.local \
- makewhatis rpc.rquotad rpc.rstatd rpc.rusersd rpc.rwalld \
+ rpc.rquotad rpc.rstatd rpc.rusersd rpc.rwalld \
rshd security spamd spamd-setup spamlogd talkd
.if (${YP:L} == "yes")
-# $OpenBSD: Makefile,v 1.9 2012/01/16 08:42:38 schwarze Exp $
+# $OpenBSD: Makefile,v 1.10 2014/04/18 10:00:48 schwarze Exp $
# from: @(#)Makefile 5.9 (Berkeley) 7/1/91
SUBDIR= man1 man3 man4 man5 man6 man7 man8 man9
${DESTDIR}/usr/share/man/COPYRIGHT
makedb:
- /usr/libexec/makewhatis -v ${DESTDIR}/usr/share/man
+ /usr/sbin/makewhatis -Qv ${DESTDIR}/usr/share/man
.include <bsd.subdir.mk>
-.\" $OpenBSD: daily.8,v 1.18 2011/04/18 23:58:45 schwarze Exp $
+.\" $OpenBSD: daily.8,v 1.19 2014/04/18 10:00:48 schwarze Exp $
.\"
.\" Copyright (c) 2003 Jason McIntyre <jmc@openbsd.org>
.\"
.\" 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 18 2011 $
+.Dd $Mdocdate: April 18 2014 $
.Dt DAILY 8
.Os
.Sh NAME
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 .
.El
.Sh FILES
.Bl -tag -width "/var/cron/tabs/root" -compact
-# $OpenBSD: Makefile,v 1.137 2014/03/25 21:02:59 millert Exp $
+# $OpenBSD: Makefile,v 1.138 2014/04/18 10:00:48 schwarze Exp $
.include <bsd.own.mk>
-SUBDIR= apply apropos arch asa at aucat audioctl awk banner \
+SUBDIR= apply arch asa at aucat audioctl awk banner \
basename bc bdes bgplg \
biff cal calendar cap_mkdb cdio chpass cmp col colrm \
column comm compress cpp crontab csplit ctags cu cut \
tmux top touch tput tr true tset tsort tty usbhidaction usbhidctl \
ul uname unexpand unifdef uniq units \
unvis users uudecode uuencode vacation vi vis vmstat w wall wc \
- what whatis which who whois write x99token xargs xinstall \
+ what which who whois write x99token xargs xinstall \
xstr yacc yes
.if (${YP:L} == "yes")
-# $OpenBSD: Makefile,v 1.75 2014/03/21 22:17:01 schwarze Exp $
+# $OpenBSD: Makefile,v 1.76 2014/04/18 10:00:48 schwarze Exp $
.include <bsd.own.mk>
PROG= mandoc
-MAN= mandoc.1
+LINKS = ${BINDIR}/mandoc ${BINDIR}/apropos \
+ ${BINDIR}/mandoc ${BINDIR}/whatis \
+ ${BINDIR}/mandoc /usr/sbin/makewhatis \
+ ${BINDIR}/mandoc /usr/libexec/makewhatis
+
+MAN = apropos.1 mandoc.1 whatis.1 makewhatis.8
.include <bsd.prog.mk>
# ex:ts=8 sw=4:
-# $OpenBSD: Add.pm,v 1.150 2014/03/18 18:53:29 espie Exp $
+# $OpenBSD: Add.pm,v 1.151 2014/04/18 10:00:48 schwarze Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
my ($state) = @_;
return unless defined $state->{addman};
my $destdir = $state->{destdir};
- require OpenBSD::Makewhatis;
# fudge verbose for API differences
my $v = $state->{v};
$state->say("Merging manpages in #1: #2",
$destdir.$k, join(' ', @l)) if $state->verbose;
} else {
- eval {
- OpenBSD::Makewhatis::merge($destdir.$k, \@l,
- $state);
- };
- if ($@) {
- $state->errsay("Error in makewhatis: #1", $_);
- };
+ $state->vsystem(OpenBSD::Paths->makewhatis,
+ '-d', $destdir.$k, '--', @l);
}
}
$state->{v} = $v;
# ex:ts=8 sw=4:
-# $OpenBSD: Delete.pm,v 1.134 2014/03/18 18:53:29 espie Exp $
+# $OpenBSD: Delete.pm,v 1.135 2014/04/18 10:00:48 schwarze Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
my ($state) = @_;
return unless defined $state->{rmman};
my $destdir = $state->{destdir};
- require OpenBSD::Makewhatis;
# fudge verbose for API differences
my $v = $state->{v};
$state->say("Removing manpages in #1: #2",
$destdir.$k, join(' ', @l)) if $state->verbose;
} else {
- eval {
- OpenBSD::Makewhatis::remove($destdir.$k, \@l,
- $state);
- };
- if ($@) {
- $state->errsay("Error in makewhatis: #1", $_);
- };
+ $state->vsystem(OpenBSD::Paths->makewhatis,
+ '-u', $destdir.$k, '--', @l);
}
}
$state->{v} = $v;
# ex:ts=8 sw=4:
-# $OpenBSD: Paths.pm,v 1.27 2014/01/17 10:54:14 espie Exp $
+# $OpenBSD: Paths.pm,v 1.28 2014/04/18 10:00:48 schwarze Exp $
#
# Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org>
#
sub uname() { '/usr/bin/uname' }
sub userdel() { '/usr/sbin/userdel' }
sub groupdel() { '/usr/sbin/groupdel' }
+sub makewhatis() { '/usr/sbin/makewhatis' }
sub mknod() { '/sbin/mknod' }
sub mount() { '/sbin/mount' }
sub df() { '/bin/df' }
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.104 2014/03/18 20:56:30 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.105 2014/04/18 10:00:48 schwarze Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
my ($self, $state, $plist) = @_;
$plist->grab_manpages($state);
if (defined $state->{manpages}) {
- $state->{v} ++;
-
- require OpenBSD::Makewhatis;
-
- try {
- OpenBSD::Makewhatis::scan_manpages($state->{manpages},
- $state);
- } catchall {
- $state->errsay("Error in makewhatis: #1", $_);
- };
- $state->{v} --;
+ $state->system(OpenBSD::Paths->makewhatis, '-t', '--',
+ @{$state->{manpages}});
}
if (defined $state->{mandir}) {