All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv3] openssh: add systemd unit file
Date: Tue, 19 Nov 2013 14:45:23 +0100	[thread overview]
Message-ID: <20131119134523.GA5234@lukather> (raw)
In-Reply-To: <1384867590-2815-1-git-send-email-gustavo@zacarias.com.ar>

Hi Gustavo,

On Tue, Nov 19, 2013 at 10:26:30AM -0300, Gustavo Zacarias wrote:
> And only install sysV-style script when appropiate.
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  package/openssh/openssh.mk   | 13 +++++++++++--
>  package/openssh/sshd.service | 11 +++++++++++
>  2 files changed, 22 insertions(+), 2 deletions(-)
>  create mode 100644 package/openssh/sshd.service
> 
> diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
> index 8ab2b47..8de288a 100644
> --- a/package/openssh/openssh.mk
> +++ b/package/openssh/openssh.mk
> @@ -17,8 +17,17 @@ OPENSSH_DEPENDENCIES += linux-pam
>  OPENSSH_CONF_OPT += --with-pam
>  endif
>  
> -define OPENSSH_INSTALL_INITSCRIPT
> -	$(INSTALL) -D -m 755 package/openssh/S50sshd $(TARGET_DIR)/etc/init.d/S50sshd
> +define OPENSSH_INSTALL_INIT_SYSTEMD
> +	$(INSTALL) -D -m 755 package/openssh/sshd.service \
> +		$(TARGET_DIR)/etc/systemd/system/sshd.service
> +	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
> +	ln -fs ../sshd.service \
> +		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/sshd.service
> +endef
> +
> +define OPENSSH_INSTALL_INIT_SYSV
> +	$(INSTALL) -D -m 755 package/openssh/S50sshd \
> +		$(TARGET_DIR)/etc/init.d/S50sshd
>  endef
>  
>  OPENSSH_POST_INSTALL_TARGET_HOOKS += OPENSSH_INSTALL_INITSCRIPT

I don't think this is needed anymore.

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131119/e6647be3/attachment.asc>

      reply	other threads:[~2013-11-19 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 13:26 [Buildroot] [PATCHv3] openssh: add systemd unit file Gustavo Zacarias
2013-11-19 13:45 ` Maxime Ripard [this message]

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=20131119134523.GA5234@lukather \
    --to=maxime.ripard@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.