summaryrefslogtreecommitdiff
path: root/mail/qmail/files
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2002-07-28 01:54:37 +0000
committerschmonz <schmonz@pkgsrc.org>2002-07-28 01:54:37 +0000
commit26b3b0e6b7fb0b7b06ad37ea1e1a49ac30a55410 (patch)
treebd097a5cddbbfdd2532609198c39c9b99cbc3d47 /mail/qmail/files
parentfff0cd34857a6d38f8166ea25daf1dd1448fdf2b (diff)
downloadpkgsrc-26b3b0e6b7fb0b7b06ad37ea1e1a49ac30a55410.tar.gz
Add rc.d script to control qmail, provided by Lubomir Sedlacik
<salo@Xtrmntr.org> 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.
Diffstat (limited to 'mail/qmail/files')
-rw-r--r--mail/qmail/files/mailer.conf6
-rw-r--r--mail/qmail/files/qmail.sh25
2 files changed, 31 insertions, 0 deletions
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"