* [ptxdist] [PATCH] install optional symlinks from sendmail to ssmtp
@ 2012-06-28 18:04 Alexander Dahl
2012-06-29 7:27 ` Josef Holzmayr
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Dahl @ 2012-06-28 18:04 UTC (permalink / raw)
To: ptxdist
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] [PATCH] install optional symlinks from sendmail to ssmtp
2012-06-28 18:04 [ptxdist] [PATCH] install optional symlinks from sendmail to ssmtp Alexander Dahl
@ 2012-06-29 7:27 ` Josef Holzmayr
2012-06-29 21:19 ` Alexander Dahl
0 siblings, 1 reply; 5+ messages in thread
From: Josef Holzmayr @ 2012-06-29 7:27 UTC (permalink / raw)
To: ptxdist
Howdy!
Am 28.06.2012 20:04, schrieb Alexander Dahl:
<snip>
> +ifdef PTXCONF_SSMTP_SENDMAIL
> + @$(call install_link, ssmtp, /sbin/ssmtp, /usr/sbin/sendmail)
> + @$(call install_link, ssmtp, ../sbin/sendmail, /usr/lib/sendmail)
> +endif
<snip>
Why one time relative, the other time not? Plus, isn't ptxdists
install_link mechanism relative-only?
Greetz
_____________________________________________________________
Josef Holzmayr
Dipl-Ing. (FH)
Entwicklung Embedded Devices / Software
Tel.: +49 8444 9204-48>
Fax: +49 8444 9204-50
holzmayr@rsi-elektrotechnik.de
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] [PATCH] install optional symlinks from sendmail to ssmtp
2012-06-29 7:27 ` Josef Holzmayr
@ 2012-06-29 21:19 ` Alexander Dahl
2012-06-30 11:01 ` Michael Olbrich
0 siblings, 1 reply; 5+ messages in thread
From: Alexander Dahl @ 2012-06-29 21:19 UTC (permalink / raw)
To: ptxdist
Hei hei,
>> +ifdef PTXCONF_SSMTP_SENDMAIL
>> + @$(call install_link, ssmtp, /sbin/ssmtp, /usr/sbin/sendmail)
>> + @$(call install_link, ssmtp, ../sbin/sendmail, /usr/lib/sendmail)
>> +endif
> <snip>
>
> Why one time relative, the other time not? Plus, isn't ptxdists
> install_link mechanism relative-only?
I have to admit I didn't put too much thought in this and just copied
what I found on my Debian system. I can't say anything about the link
mechanism. I'll have a deeper look in this on Monday.
Greets
Alex
--
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 ***
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] [PATCH] install optional symlinks from sendmail to ssmtp
2012-06-29 21:19 ` Alexander Dahl
@ 2012-06-30 11:01 ` Michael Olbrich
2012-07-02 7:56 ` Josef Holzmayr
0 siblings, 1 reply; 5+ messages in thread
From: Michael Olbrich @ 2012-06-30 11:01 UTC (permalink / raw)
To: ptxdist
Hi,
On Fri, Jun 29, 2012 at 11:19:22PM +0200, Alexander Dahl wrote:
> >> +ifdef PTXCONF_SSMTP_SENDMAIL
> >> + @$(call install_link, ssmtp, /sbin/ssmtp, /usr/sbin/sendmail)
> >> + @$(call install_link, ssmtp, ../sbin/sendmail, /usr/lib/sendmail)
> >> +endif
> > <snip>
> >
> > Why one time relative, the other time not? Plus, isn't ptxdists
> > install_link mechanism relative-only?
>
> I have to admit I didn't put too much thought in this and just copied
> what I found on my Debian system. I can't say anything about the link
> mechanism. I'll have a deeper look in this on Monday.
Nowadays PTXdist can handle relative and absolute links. We had relative
symlinks for a long time, because it made manipulating and checking the
nfsroot (platform-<plat>/root) easier. Now we have a 'ptxdist setup' option
to convert all absolute symlinks into relative symlinks in nfsroot only.
So just use what makes more sense. In this case I'd say, use absolute
symlinks.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] [PATCH] install optional symlinks from sendmail to ssmtp
2012-06-30 11:01 ` Michael Olbrich
@ 2012-07-02 7:56 ` Josef Holzmayr
0 siblings, 0 replies; 5+ messages in thread
From: Josef Holzmayr @ 2012-07-02 7:56 UTC (permalink / raw)
To: ptxdist
Am 30.06.2012 13:01, schrieb Michael Olbrich:
> Nowadays PTXdist can handle relative and absolute links. We had relative
> symlinks for a long time, because it made manipulating and checking the
> nfsroot (platform-<plat>/root) easier. Now we have a 'ptxdist setup' option
> to convert all absolute symlinks into relative symlinks in nfsroot only.
Ah, thanks for the explanation!
_____________________________________________________________
Josef Holzmayr
Dipl-Ing. (FH)
Entwicklung Embedded Devices / Software
Tel.: +49 8444 9204-48>
Fax: +49 8444 9204-50
holzmayr@rsi-elektrotechnik.de
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-02 7:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-28 18:04 [ptxdist] [PATCH] install optional symlinks from sendmail to ssmtp Alexander Dahl
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox