summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/vacation
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-04-02 19:48:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-04-02 19:48:38 +0000
commit0273b8fbd6947b4b7e823ada965ae763cab5ac86 (patch)
treeae5e5293b5d1243eef968a7ebb13394550e92d3f /gnu/usr.sbin/sendmail/vacation
parent43225228859332051b0497d6732b906e2c753f85 (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/vacation')
-rw-r--r--gnu/usr.sbin/sendmail/vacation/Build13
-rw-r--r--gnu/usr.sbin/sendmail/vacation/Makefile21
-rw-r--r--gnu/usr.sbin/sendmail/vacation/Makefile.m419
-rw-r--r--gnu/usr.sbin/sendmail/vacation/vacation.0132
-rw-r--r--gnu/usr.sbin/sendmail/vacation/vacation.12
5 files changed, 8 insertions, 179 deletions
diff --git a/gnu/usr.sbin/sendmail/vacation/Build b/gnu/usr.sbin/sendmail/vacation/Build
deleted file mode 100644
index aca2894e9ec..00000000000
--- a/gnu/usr.sbin/sendmail/vacation/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.2 1999/03/02 02:35:21 peterh Exp $
-
-exec ../devtools/bin/Build $*
diff --git a/gnu/usr.sbin/sendmail/vacation/Makefile b/gnu/usr.sbin/sendmail/vacation/Makefile
index b57df04a6ef..e44efb0a45a 100644
--- a/gnu/usr.sbin/sendmail/vacation/Makefile
+++ b/gnu/usr.sbin/sendmail/vacation/Makefile
@@ -1,17 +1,10 @@
-# $Sendmail: Makefile,v 8.5 1999/09/23 22:36:45 ca Exp $
+# $OpenBSD: Makefile,v 1.2 2000/04/02 19:48:37 millert Exp $
-SHELL= /bin/sh
-BUILD= ./Build
-OPTIONS= $(CONFIG) $(FLAGS)
+PROG= vacation
+ENVDEF+=-DNOT_SENDMAIL
-all: FRC
- $(SHELL) $(BUILD) $(OPTIONS) $@
-clean: FRC
- $(SHELL) $(BUILD) $(OPTIONS) $@
-install: FRC
- $(SHELL) $(BUILD) $(OPTIONS) $@
+WANT_LIBSMDB=1
+WANT_LIBSMUTIL=1
-fresh: FRC
- $(SHELL) $(BUILD) $(OPTIONS) -c
-
-FRC:
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/gnu/usr.sbin/sendmail/vacation/Makefile.m4 b/gnu/usr.sbin/sendmail/vacation/Makefile.m4
deleted file mode 100644
index 71430eb2c1b..00000000000
--- a/gnu/usr.sbin/sendmail/vacation/Makefile.m4
+++ /dev/null
@@ -1,19 +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', `vacation')
-define(`bldSOURCES', `vacation.c ')
-bldPUSH_SMLIB(`smutil')
-bldPUSH_SMLIB(`smdb')
-APPENDDEF(`confENVDEF', `-DNOT_SENDMAIL')
-bldPRODUCT_END
-
-bldPRODUCT_START(`manpage', `vacation')
-define(`bldSOURCES', `vacation.1')
-bldPRODUCT_END
-
-bldFINISH
diff --git a/gnu/usr.sbin/sendmail/vacation/vacation.0 b/gnu/usr.sbin/sendmail/vacation/vacation.0
deleted file mode 100644
index 857d4b92e34..00000000000
--- a/gnu/usr.sbin/sendmail/vacation/vacation.0
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-VACATION(1) VACATION(1)
-
-
-NNAAMMEE
- vvaaccaattiioonn - return ``I am not here'' indication
-
-SSYYNNOOPPSSIISS
- vvaaccaattiioonn --ii [--rr _i_n_t_e_r_v_a_l] [--xx] vvaaccaattiioonn [--aa _a_l_i_a_s] [--ff
- _d_a_t_a_b_a_s_e] [--mm _m_e_s_s_a_g_e] [--ss _a_d_d_r_e_s_s] [--zz] _l_o_g_i_n
-
-DDEESSCCRRIIPPTTIIOONN
- VVaaccaattiioonn returns a message to the sender of a message
- telling them that you are currently not reading your mail.
- The intended use is in a _._f_o_r_w_a_r_d file. For example, your
- _._f_o_r_w_a_r_d file might have:
-
- \eric, "|/usr/bin/vacation -a allman eric"
-
- which would send messages to you (assuming your login name
- was eric) and reply to any messages for ``eric'' or ``all-
- man''.
-
- Available options:
-
- --aa _a_l_i_a_s
- Handle messages for in the same manner as those
- received for the user's login name.
-
- --ff _f_i_l_e_n_a_m_e
- Use _f_i_l_e_n_a_m_e as name of the database instead of
- _~_/_._v_a_c_a_t_i_o_n_._d_b. Unless the _f_i_l_e_n_a_m_e starts with /
- it is relative to ~.
-
- --ii Initialize the vacation database files. It should
- be used before you modify your _._f_o_r_w_a_r_d file.
-
- --mm _f_i_l_e_n_a_m_e
- Use _f_i_l_e_n_a_m_e as name of the file containing the
- message to send instead of _~_/_._v_a_c_a_t_i_o_n_._m_s_g. Unless
- the _f_i_l_e_n_a_m_e starts with / it is relative to ~.
-
- --rr _i_n_t_e_r_v_a_l
- Set the reply interval to _i_n_t_e_r_v_a_l days. The
- default is one week. An interval of ``0'' or
- ``infinite'' (actually, any non-numeric character)
- will never send more than one reply.
-
- --ss _a_d_d_r_e_s_s
- Use _a_d_d_r_e_s_s instead of the sender address in the
- _F_r_o_m line to determine the reply address.
-
- --xx reads an exclusion list from stdin (one address per
- line). Mails coming from an address in this exclu-
- sion list won't get a reply by vvaaccaattiioonn. It is
- possible to exclude complete domains by specifying
- ``@domain'' as element of the exclusion list.
-
-
-
-
- $Date: 2000/04/02 19:05:58 $ 1
-
-
-
-
-
-VACATION(1) VACATION(1)
-
-
- --zz Set the sender of the vacation message to ``<>''
- instead of the user. This probably violates the
- RFCs since vacation messages are not required by a
- standards-track RFC to have a null reverse-path.
-
- No message will be sent unless _l_o_g_i_n (or an _a_l_i_a_s supplied
- using the --aa option) is part of either the ``To:'' or
- ``Cc:'' headers of the mail. No messages from
- ``???-REQUEST'', ``Postmaster'', ``UUCP'', ``MAILER'', or
- ``MAILER-DAEMON'' will be replied to (where these strings
- are case insensitive) nor is a notification sent if a
- ``Precedence: bulk'' or ``Precedence: junk'' line is
- included in the mail headers. The people who have sent
- you messages are maintained as a db(3) database in the
- file _._v_a_c_a_t_i_o_n_._d_b in your home directory.
-
- VVaaccaattiioonn expects a file _._v_a_c_a_t_i_o_n_._m_s_g, in your home direc-
- tory, containing a message to be sent back to each sender.
- It should be an entire message (including headers). For
- example, it might contain:
-
- From: eric@CS.Berkeley.EDU (Eric Allman)
- Subject: I am on vacation
- Delivered-By-The-Graces-Of: The Vacation program
- Precedence: bulk
-
- I am on vacation until July 22. If you have something urgent,
- please contact Keith Bostic <bostic@CS.Berkeley.EDU>.
- --eric
-
- VVaaccaattiioonn reads the first line from the standard input for
- a UNIX ``From'' line to determine the sender. Sendmail(8)
- includes this ``From'' line automatically.
-
- Fatal errors, such as calling vvaaccaattiioonn with incorrect
- arguments, or with non-existent _l_o_g_i_ns, are logged in the
- system log file, using syslog(8).
-
-FFIILLEESS
- ~/.vacation.db database file
-
- ~/.vacation.msg message to send
-
-SSEEEE AALLSSOO
- sendmail(8), syslog(8)
-
-HHIISSTTOORRYY
- The vvaaccaattiioonn command appeared in 4.3BSD.
-
-
-
-
-
-
-
-
-
- $Date: 2000/04/02 19:05:58 $ 2
-
-
diff --git a/gnu/usr.sbin/sendmail/vacation/vacation.1 b/gnu/usr.sbin/sendmail/vacation/vacation.1
index 506765cd2d0..f4d59429813 100644
--- a/gnu/usr.sbin/sendmail/vacation/vacation.1
+++ b/gnu/usr.sbin/sendmail/vacation/vacation.1
@@ -11,7 +11,7 @@
.\"
.\" $Sendmail: vacation.1,v 8.9 1999/10/27 03:42:07 ca Exp $
.\"
-.TH VACATION 1 "$Date: 2000/04/02 19:05:58 $"
+.TH VACATION 1 "$Date: 2000/04/02 19:48:37 $"
.SH NAME
.B vacation
\- return ``I am not here'' indication