summaryrefslogtreecommitdiffstats
path: root/rules/openssh.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-04-09 10:31:56 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-05-09 15:52:56 +0200
commitcf3ec7540f5320ed0c054072d1f77740720afd3d (patch)
tree448d8f988f385c137ee7e1b61b35487b1e5829c9 /rules/openssh.make
parent93dd1c512a81bdf2cf312faa8a8a9c2af81250f8 (diff)
downloadptxdist-cf3ec7540f5320ed0c054072d1f77740720afd3d.tar.gz
ptxdist-cf3ec7540f5320ed0c054072d1f77740720afd3d.tar.xz
openssh: add config files for systemd initmethod
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/openssh.make')
-rw-r--r--rules/openssh.make10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/openssh.make b/rules/openssh.make
index 33c58af95..da77a2a67 100644
--- a/rules/openssh.make
+++ b/rules/openssh.make
@@ -102,6 +102,16 @@ ifneq ($(call remove_quotes,$(PTXCONF_OPENSSH_BBINIT_LINK)),)
endif
endif
endif
+ifdef PTXCONF_INITMETHOD_SYSTEMD
+ifdef PTXCONF_OPENSSH_SSHD_SYSTEMD_UNIT
+ @$(call install_alternative, openssh, 0, 0, 0644, \
+ /lib/systemd/system/sshd.socket)
+ @$(call install_alternative, openssh, 0, 0, 0644, \
+ /lib/systemd/system/sshd@.service)
+ @$(call install_link, openssh, ../sshd.socket, \
+ /lib/systemd/system/sockets.target.wants/sshd.socket)
+endif
+endif
ifdef PTXCONF_INITMETHOD_UPSTART
@$(call install_alternative, openssh, 0, 0, 0644, /etc/init/ssh.conf)