From 26b3b0e6b7fb0b7b06ad37ea1e1a49ac30a55410 Mon Sep 17 00:00:00 2001 From: schmonz Date: Sun, 28 Jul 2002 01:54:37 +0000 Subject: Add rc.d script to control qmail, provided by Lubomir Sedlacik in pkg/15326. Add example mailer.conf. Bump PKGREVISION. Clarify binary package situation: We don't allow binary packages to be created because they don't currently work. Additionally, if someone were to make them work, we'd be unable to distribute them because we apply a few patches to the qmail source. Thanks to zuntum and jlam for discussion and assistance. --- mail/qmail/files/mailer.conf | 6 ++++++ mail/qmail/files/qmail.sh | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 mail/qmail/files/mailer.conf create mode 100644 mail/qmail/files/qmail.sh (limited to 'mail/qmail/files') diff --git a/mail/qmail/files/mailer.conf b/mail/qmail/files/mailer.conf new file mode 100644 index 00000000000..20b6ee761ee --- /dev/null +++ b/mail/qmail/files/mailer.conf @@ -0,0 +1,6 @@ +# $NetBSD: mailer.conf,v 1.1 2002/07/28 01:54:37 schmonz Exp $ +# +# Use "qmail" as replacement for "sendmail". +# +sendmail @QMAILDIR@/bin/sendmail +send-mail @QMAILDIR@/bin/sendmail diff --git a/mail/qmail/files/qmail.sh b/mail/qmail/files/qmail.sh new file mode 100644 index 00000000000..fd39ac811b8 --- /dev/null +++ b/mail/qmail/files/qmail.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $NetBSD: qmail.sh,v 1.1 2002/07/28 01:54:37 schmonz Exp $ +# + +# PROVIDE: mail +# REQUIRE: LOGIN + +. /etc/rc.subr + +name="qmail" +rcvar=${name} +required_files="@QMAILDIR@/rc @QMAILDIR@/control/me" +command="@QMAILDIR@/bin/qmail-send" +start_precmd="qmail_precmd" +extra_commands="reload" + +qmail_precmd() +{ + command="@QMAILDIR@/rc" + command_args="&" +} + +load_rc_config $name +run_rc_command "$1" -- cgit v1.2.3