mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] install optional symlinks from sendmail to ssmtp
Date: Thu, 28 Jun 2012 20:04:53 +0200	[thread overview]
Message-ID: <1340906693-12291-1-git-send-email-post@lespocky.de> (raw)

This patch adds an option to create /usr/sbin/sendmail as symlink to
ssmtp which has the same calling options. This is what Debian does as
well and it's helpful for other daemons using sendmail to send system
mail.

Note: the current ssmtp package doesn't set PREFIX at all so the
binary goes to /sbin/ssmtp at the moment. Would be cool if someone
could fix this, I didn't know how. O:-)

Signed-off-by: Alexander Dahl <post@lespocky.de>
---
 rules/ssmtp.in   |    6 ++++++
 rules/ssmtp.make |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/rules/ssmtp.in b/rules/ssmtp.in
index 302dccc..5813eed 100644
--- a/rules/ssmtp.in
+++ b/rules/ssmtp.in
@@ -35,4 +35,10 @@ config SSMTP_MD5AUTH
 	help
 	  Support for MD5 authentication.
 
+config SSMTP_SENDMAIL
+	bool
+	prompt "sendmail link"
+	help
+	  Install 'sendmail' as a symlink to ssmtp.
+
 endif
diff --git a/rules/ssmtp.make b/rules/ssmtp.make
index 36368b2..74283d2 100644
--- a/rules/ssmtp.make
+++ b/rules/ssmtp.make
@@ -73,6 +73,11 @@ $(STATEDIR)/ssmtp.targetinstall:
 
 	@$(call install_copy, ssmtp, 0, 0, 0755, -, /sbin/ssmtp)
 
+ifdef PTXCONF_SSMTP_SENDMAIL
+	@$(call install_link, ssmtp, /sbin/ssmtp, /usr/sbin/sendmail)
+	@$(call install_link, ssmtp, ../sbin/sendmail, /usr/lib/sendmail)
+endif
+
 	@$(call install_finish, ssmtp)
 
 	@$(call touch)
-- 
1.7.2.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2012-06-28 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28 18:04 Alexander Dahl [this message]
2012-06-29  7:27 ` Josef Holzmayr
2012-06-29 21:19   ` Alexander Dahl
2012-06-30 11:01     ` Michael Olbrich
2012-07-02  7:56       ` Josef Holzmayr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1340906693-12291-1-git-send-email-post@lespocky.de \
    --to=post@lespocky.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox