From 4608bdb3fc6758c4ce65c4a91005b236dfe8ab67 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 29 Dec 1999 17:51:22 +0000 Subject: Make mailwrapper build --- usr.sbin/mailwrapper/Makefile | 9 +++++---- usr.sbin/mailwrapper/mailwrapper.8 | 9 ++++++--- usr.sbin/mailwrapper/mailwrapper.c | 5 +++-- usr.sbin/mailwrapper/pathnames.h | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 9 deletions(-) create mode 100644 usr.sbin/mailwrapper/pathnames.h (limited to 'usr.sbin/mailwrapper') diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile index ed1130f..c59fa9e 100644 --- a/usr.sbin/mailwrapper/Makefile +++ b/usr.sbin/mailwrapper/Makefile @@ -1,13 +1,14 @@ # $NetBSD: Makefile,v 1.4 1999/03/25 16:40:18 is Exp $ +# $FreeBSD$ PROG= mailwrapper -MAN= mailwrapper.8 mailer.conf.5 +MAN8= mailwrapper.8 DPADD+= ${LIBUTIL} LDADD+= -lutil -SYMLINKS= /usr/sbin/mailwrapper /usr/sbin/sendmail \ - /usr/sbin/mailwrapper /usr/bin/newaliases \ - /usr/sbin/mailwrapper /usr/bin/mailq +SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ + ${BINDIR}/mailwrapper /usr/bin/newaliases \ + ${BINDIR}/mailwrapper /usr/bin/mailq .include diff --git a/usr.sbin/mailwrapper/mailwrapper.8 b/usr.sbin/mailwrapper/mailwrapper.8 index eb34a12..4ef5274 100644 --- a/usr.sbin/mailwrapper/mailwrapper.8 +++ b/usr.sbin/mailwrapper/mailwrapper.8 @@ -1,4 +1,5 @@ .\" $NetBSD: mailwrapper.8,v 1.6 1999/03/25 16:40:17 is Exp $ +.\" $FreeBSD$ .\" .\" Copyright (c) 1998 .\" Perry E. Metzger. All rights reserved. @@ -127,13 +128,15 @@ was invoked. .Sh SEE ALSO .Xr mail 1 , .Xr mailq 1 , -.Xr mailer.conf 5 , .Xr newaliases 1 , +.Xr mailer.conf 5 , .Xr sendmail 8 . .Sh HISTORY .Nm -appeared in -.Nx 1.4 . +first appeared in +.Nx 1.4 +and then +.Fx 4.0 . .Sh AUTHORS Perry E. Metzger .Sh BUGS diff --git a/usr.sbin/mailwrapper/mailwrapper.c b/usr.sbin/mailwrapper/mailwrapper.c index 4d7d67d..f1ddcdb 100644 --- a/usr.sbin/mailwrapper/mailwrapper.c +++ b/usr.sbin/mailwrapper/mailwrapper.c @@ -1,4 +1,5 @@ /* $NetBSD: mailwrapper.c,v 1.3 1999/05/29 18:18:15 christos Exp $ */ +/* $FreeBSD$ */ /* * Copyright (c) 1998 @@ -36,9 +37,9 @@ #include #include #include -#include +#include -#define _PATH_MAILERCONF "/etc/mailer.conf" +#include "pathnames.h" struct arglist { size_t argc, maxc; diff --git a/usr.sbin/mailwrapper/pathnames.h b/usr.sbin/mailwrapper/pathnames.h new file mode 100644 index 0000000..84e34f7 --- /dev/null +++ b/usr.sbin/mailwrapper/pathnames.h @@ -0,0 +1,35 @@ +/* $NetBSD: mailwrapper.c,v 1.3 1999/05/29 18:18:15 christos Exp $ */ +/* $FreeBSD$ */ + +/* + * Copyright (c) 1998 + * Perry E. Metzger. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgment: + * This product includes software developed for the NetBSD Project + * by Perry E. Metzger. + * 4. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#define _PATH_MAILERCONF "/etc/mailer.conf" -- cgit v1.1