* [Buildroot] [PATCHv2] openssh: add systemd unit file
@ 2013-11-19 13:09 Gustavo Zacarias
2013-11-19 13:20 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2013-11-19 13:09 UTC (permalink / raw)
To: buildroot
And only install sysV-style script when appropiate.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/openssh/openssh.mk | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
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
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCHv2] openssh: add systemd unit file
2013-11-19 13:09 [Buildroot] [PATCHv2] openssh: add systemd unit file Gustavo Zacarias
@ 2013-11-19 13:20 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-11-19 13:20 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Tue, 19 Nov 2013 10:09:16 -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 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
In this v2, you're no longer adding the systemd unit file.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-19 13:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 13:09 [Buildroot] [PATCHv2] openssh: add systemd unit file Gustavo Zacarias
2013-11-19 13:20 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox