On Mon, Jun 22, 2020 at 04:09:49AM +0200, Klemens Nanni wrote:
> Doing "*stat <tab><tab>" in my shell I came across those two entries
> under /usr/bin/ which are undocumented:
> 
>       $ man -k any~'^(host|purge)stat$'
>       man: nothing appropriate
> 
> /etc/mailer.conf has no entries for them but mailer.conf(5)' EXAMPLES
> section demonstrates using them with the mail/sendmail port.
> 
> CVS log has it that we've been installing those two symlinks two
> mailwrapper since its import from NetBSD in 1999 and mentioning the
> examples since 2001, but I couldn't find a specific commit that
> eventually removed their supporting code.
> 
> All other symlinks to mailwrapper(8) (sendmail, newaliases, mailq and
> mailmap) have their own manual pages and respective argv specific code
> under /usr/src/usr.sbin/.
> 
> Assuming that purgestat and hoststat usage/code went away with removing
> sendmail from base at latest, can their symlinks be considered leftovers
> and removed?
Ping.

Feedback? Objections? OK?


Index: distrib/sets/lists/base/mi
===================================================================
RCS file: /cvs/src/distrib/sets/lists/base/mi,v
retrieving revision 1.991
diff -u -p -r1.991 mi
--- distrib/sets/lists/base/mi  30 Jun 2020 01:42:18 -0000      1.991
+++ distrib/sets/lists/base/mi  30 Jun 2020 14:30:03 -0000
@@ -411,7 +411,6 @@
 ./usr/bin/help
 ./usr/bin/hexdump
 ./usr/bin/host
-./usr/bin/hoststat
 ./usr/bin/htpasswd
 ./usr/bin/id
 ./usr/bin/ident
@@ -510,7 +509,6 @@
 ./usr/bin/printenv
 ./usr/bin/printf
 ./usr/bin/prove
-./usr/bin/purgestat
 ./usr/bin/quota
 ./usr/bin/radioctl
 ./usr/bin/rcs
Index: usr.sbin/mailwrapper/Makefile
===================================================================
RCS file: /cvs/src/usr.sbin/mailwrapper/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- usr.sbin/mailwrapper/Makefile       11 Sep 2016 07:06:30 -0000      1.6
+++ usr.sbin/mailwrapper/Makefile       22 Jun 2020 00:46:59 -0000
@@ -11,11 +11,8 @@ afterinstall:
        ln -fs /usr/sbin/mailwrapper ${DESTDIR}/usr/bin/newaliases
        ln -fs /usr/sbin/mailwrapper ${DESTDIR}/usr/bin/mailq
        ln -fs /usr/sbin/mailwrapper ${DESTDIR}/usr/sbin/makemap
-       ln -fs /usr/sbin/mailwrapper ${DESTDIR}/usr/bin/hoststat
-       ln -fs /usr/sbin/mailwrapper ${DESTDIR}/usr/bin/purgestat
        chown -h ${BINOWN}:${BINGRP} ${DESTDIR}/usr/sbin/sendmail \
            ${DESTDIR}/usr/bin/newaliases ${DESTDIR}/usr/bin/mailq \
-           ${DESTDIR}/usr/sbin/makemap ${DESTDIR}/usr/bin/hoststat \
-           ${DESTDIR}/usr/bin/purgestat
+           ${DESTDIR}/usr/sbin/makemap
 
 .include <bsd.prog.mk>

Reply via email to