diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-04-02 19:48:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-04-02 19:48:38 +0000 |
commit | 0273b8fbd6947b4b7e823ada965ae763cab5ac86 (patch) | |
tree | ae5e5293b5d1243eef968a7ebb13394550e92d3f /gnu/usr.sbin/sendmail/mailstats | |
parent | 43225228859332051b0497d6732b906e2c753f85 (diff) |
Remove sendmail's `Build' scaffolding and add real Makefiles
praliases should be in section 1, not 8
Use arc4random(3) instead of random(3)
Add some sample OpenBSD .mc files
Diffstat (limited to 'gnu/usr.sbin/sendmail/mailstats')
-rw-r--r-- | gnu/usr.sbin/sendmail/mailstats/Build | 13 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/mailstats/Makefile | 21 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/mailstats/Makefile.m4 | 20 | ||||
-rw-r--r-- | gnu/usr.sbin/sendmail/mailstats/mailstats.0 | 66 |
4 files changed, 7 insertions, 113 deletions
diff --git a/gnu/usr.sbin/sendmail/mailstats/Build b/gnu/usr.sbin/sendmail/mailstats/Build deleted file mode 100644 index 59beb2a4e17..00000000000 --- a/gnu/usr.sbin/sendmail/mailstats/Build +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -# Copyright (c) 1999 Sendmail, Inc. and its suppliers. -# All rights reserved. -# -# By using this file, you agree to the terms and conditions set -# forth in the LICENSE file which can be found at the top level of -# the sendmail distribution. -# -# -# $Sendmail: Build,v 8.4 1999/03/02 02:33:27 peterh Exp $ - -exec ../devtools/bin/Build $* diff --git a/gnu/usr.sbin/sendmail/mailstats/Makefile b/gnu/usr.sbin/sendmail/mailstats/Makefile index e1b3b3caadb..8803ca26751 100644 --- a/gnu/usr.sbin/sendmail/mailstats/Makefile +++ b/gnu/usr.sbin/sendmail/mailstats/Makefile @@ -1,17 +1,10 @@ -# $Sendmail: Makefile,v 8.5 1999/09/23 22:36:36 ca Exp $ +# $OpenBSD: Makefile,v 1.2 2000/04/02 19:48:32 millert Exp $ -SHELL= /bin/sh -BUILD= ./Build -OPTIONS= $(CONFIG) $(FLAGS) +PROG= mailstats +MAN= mailstats.8 +ENVDEF+=-DNOT_SENDMAIL -all: FRC - $(SHELL) $(BUILD) $(OPTIONS) $@ -clean: FRC - $(SHELL) $(BUILD) $(OPTIONS) $@ -install: FRC - $(SHELL) $(BUILD) $(OPTIONS) $@ +WANT_LIBSMUTIL=1 -fresh: FRC - $(SHELL) $(BUILD) $(OPTIONS) -c - -FRC: +.include "../../Makefile.inc" +.include <bsd.prog.mk> diff --git a/gnu/usr.sbin/sendmail/mailstats/Makefile.m4 b/gnu/usr.sbin/sendmail/mailstats/Makefile.m4 deleted file mode 100644 index 5a9259d1318..00000000000 --- a/gnu/usr.sbin/sendmail/mailstats/Makefile.m4 +++ /dev/null @@ -1,20 +0,0 @@ -include(confBUILDTOOLSDIR`/M4/switch.m4') - -# sendmail dir -SMSRCDIR= ifdef(`confSMSRCDIR', `confSMSRCDIR', `${SRCDIR}/sendmail') -PREPENDDEF(`confENVDEF', `confMAPDEF') -PREPENDDEF(`confINCDIRS', `-I${SMSRCDIR} ') - -bldPRODUCT_START(`executable', `mailstats') -define(`bldINSTALL_DIR', `S') -define(`bldSOURCES', `mailstats.c ') -bldPUSH_SMLIB(`smutil') -APPENDDEF(`confENVDEF', `-DNOT_SENDMAIL') -bldPRODUCT_END - -bldPRODUCT_START(`manpage', `mailstats') -define(`bldSOURCES', `mailstats.8') -bldPRODUCT_END - -bldFINISH - diff --git a/gnu/usr.sbin/sendmail/mailstats/mailstats.0 b/gnu/usr.sbin/sendmail/mailstats/mailstats.0 deleted file mode 100644 index e2dc8d3f111..00000000000 --- a/gnu/usr.sbin/sendmail/mailstats/mailstats.0 +++ /dev/null @@ -1,66 +0,0 @@ - - - -MAILSTATS(1) MAILSTATS(1) - - -NNAAMMEE - mmaaiillssttaattss - display mail statistics - -SSYYNNOOPPSSIISS - mmaaiillssttaattss [--oo] [--pp] [--CC _c_f_f_i_l_e] [--ff _s_t_f_i_l_e] - -DDEESSCCRRIIPPTTIIOONN - The mmaaiillssttaattss utility displays the current mail statis- - tics. - - First, the time at which statistics started being kept is - displayed, in the format specified by ctime(3). Then, the - statistics for each mailer are displayed on a single line, - each with the following whitespace separated fields: - - MM The mailer number. - mmssggssffrr Number of messages from the mailer. - bbyytteess__ffrroomm Kbytes from the mailer. - mmssggssttoo Number of messages to the mailer. - bbyytteess__ttoo Kbytes to the mailer. - mmssggssrreejj Number of messages rejected. - mmssggssddiiss Number of messages discarded. - MMaaiilleerr The name of the mailer. - - After this display, a line totaling the values for all of - the mailers is displayed (preceeded with a ``T''), sepa- - rated from the previous information by a line containing - only equals (``='') characters. Another line preceeded - with a ``C'' lists the number of connections. - - The options are as follows: - - --CC Read the specified file instead of the default - sseennddmmaaiill ``cf'' file. - - --ff Read the specified statistics file instead of the - statistics file specified in the sseennddmmaaiill ``cf'' - file. - - --pp Output information in program-readable mode and - clear statistics. - - --oo Don't display the name of the mailer in the output. - - The mmaaiillssttaattss utility exits 0 on success, and >0 if an - error occurs. - -FFIILLEESS - /etc/mail/sendmail.cf The default sseennddmmaaiill ``cf'' file. - /etc/mail/statistics The default sseennddmmaaiill statistics - file. - -SSEEEE AALLSSOO - mailq(1), sendmail(8) - - - - April 25, 1996 1 - - |