diff options
author | 2016-02-24 17:33:37 +0100 | |
---|---|---|
committer | 2016-02-24 17:35:40 +0100 | |
commit | 250d3d079190d5f98e29f7c68e64ab340587a933 (patch) | |
tree | 67b8181000f7782b385bde8d7b018220e6266276 /mail-mta/nullmailer/files | |
parent | media-tv/kodi: fix logic error in vaapi/gles check #464306#14 (diff) | |
download | gentoo-250d3d079190d5f98e29f7c68e64ab340587a933.tar.gz gentoo-250d3d079190d5f98e29f7c68e64ab340587a933.tar.bz2 gentoo-250d3d079190d5f98e29f7c68e64ab340587a933.zip |
mail-mta/nullmailer: Version Bump
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573090
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562912
Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'mail-mta/nullmailer/files')
-rw-r--r-- | mail-mta/nullmailer/files/init.d-nullmailer-r5 | 52 | ||||
-rw-r--r-- | mail-mta/nullmailer/files/remotes.sample-2.0 | 30 |
2 files changed, 82 insertions, 0 deletions
diff --git a/mail-mta/nullmailer/files/init.d-nullmailer-r5 b/mail-mta/nullmailer/files/init.d-nullmailer-r5 new file mode 100644 index 000000000000..6d27d8b91a89 --- /dev/null +++ b/mail-mta/nullmailer/files/init.d-nullmailer-r5 @@ -0,0 +1,52 @@ +#!/sbin/runscript +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +command="/usr/sbin/nullmailer-send" + +start_stop_daemon_args="--chdir /var/spool/nullmailer --user nullmail:nullmail" +start_stop_daemon_args+=" --stdout /var/log/nullmailer/nullmailer.log" +start_stop_daemon_args+=" --stderr /var/log/nullmailer/nullmailer.log" + +required_dirs="/var/spool/nullmailer /var/log/nullmailer" +pidfile="/run/nullmailer.pid" +command_background="true" + +depend() { + use net logger +} + +checkconfig() { + local error=0 + local f=/etc/nullmailer/me + if [ ! -s ${f} ]; then + eerror "${f} does not exist" + error=1 + fi + f=/etc/nullmailer/defaultdomain + if [ ! -s ${f} ]; then + eerror "${f} does not exist" + error=1 + fi + if [ ${error} -eq 1 ]; then + einfo "You need to run 'emerge --config nullmailer'!" + fi + if [ -e /service/nullmailer ]; then + eerror "Nullmailer is already running under svscan!" + error=2 + fi + if [ ${error} -ne 0 ]; then + return 1 + else + return 0 + fi +} + +start_pre() { + checkconfig +} + +stop_pre() { + checkconfig # to avoid init.d stopping svscan instance +} diff --git a/mail-mta/nullmailer/files/remotes.sample-2.0 b/mail-mta/nullmailer/files/remotes.sample-2.0 new file mode 100644 index 000000000000..59535d691034 --- /dev/null +++ b/mail-mta/nullmailer/files/remotes.sample-2.0 @@ -0,0 +1,30 @@ +# Format is: HOST PROTOCOL [OPTIONS] +# HOST = IP or DNS +# PROTOCOL = smtp | qmtp +# OPTIONS = [port=NUMBER] [user] [pass] [starttls | ssl [insecure] ] +# +# Examples: +# A standard SMTP server: +# somesendmailserver.domain.com smtp +# +# A qmail server with QMQP setup: +# someqmailserver.domain.com qmqp +# +# A nonstandard SMTP server setup: +# someotherserver.domain.com smtp port=2525 +# +# SMTP server supporting AUTH PLAIN +# mailserver smtp user=<user> pass=<pass> +# +# SMTP server supporting AUTH LOGIN +# mailserver smtp user=<user> pass=<pass> auth-login +# +# SMTP server with smtps (legacy - use starttls instead) +# mailserver smtp user=<user> pass=<pass> port=465 ssl +# +# SMTP server on submission port with starttls +# mailserver smtp user=<user> pass=<pass> port=587 starttls +# +# SMTP server on submission port with starttls and self-signed certificate +# mailserver smtp user=<user> pass=<pass> port=587 starttls insecure + |