From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from moutng.kundenserver.de ([212.227.17.9]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TG8cf-0005yV-N0 for ptxdist@pengutronix.de; Mon, 24 Sep 2012 15:22:54 +0200 From: Alexander Dahl Date: Mon, 24 Sep 2012 15:21:38 +0200 Message-Id: <1348492898-17854-1-git-send-email-post@lespocky.de> In-Reply-To: <20120913155932.GC2365@pengutronix.de> References: <20120913155932.GC2365@pengutronix.de> Subject: [ptxdist] [PATCH] ssmtp: install optional symlinks from sendmail to ssmtp Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Alexander Dahl --- rules/ssmtp.in | 10 ++++++++++ rules/ssmtp.make | 5 +++++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/rules/ssmtp.in b/rules/ssmtp.in index 302dccc..5ba834a 100644 --- a/rules/ssmtp.in +++ b/rules/ssmtp.in @@ -35,4 +35,14 @@ config SSMTP_MD5AUTH help Support for MD5 authentication. +config SSMTP_SENDMAIL + bool + prompt "sendmail link" + depends on !BUSYBOX_SENDMAIL || ALLYES + help + Install 'sendmail' as a symlink to ssmtp. + +comment "busybox' sendmail is selected!" + depends on BUSYBOX_SENDMAIL + 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