On Mon, Jul 30, 2012 at 05:54:52PM +0200, Alexander Dahl wrote:
> 
> Signed-off-by: Alexander Dahl <p...@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.

This needs the usual check for BUSYBOX_SENDMAIL
Take a look at rules/coreutils.in if you don't know how to do this.

Michael

> +
>  endif
> diff --git a/rules/ssmtp.make b/rules/ssmtp.make
> index 36368b2..50753d0 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, /usr/sbin/sendmail, /usr/lib/sendmail)
> +endif
> +
>       @$(call install_finish, ssmtp)
>  
>       @$(call touch)
> -- 
> 1.7.2.5
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
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

Reply via email to