* [Buildroot] [PATCH 1/2] dbus: only install initscript for sysV targets
@ 2013-11-19 13:02 Gustavo Zacarias
2013-11-19 13:02 ` [Buildroot] [PATCH 2/2] openssh: add systemd unit file Gustavo Zacarias
2013-11-26 15:15 ` [Buildroot] [PATCH 1/2] dbus: only install initscript for sysV targets Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2013-11-19 13:02 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/dbus/dbus.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index e241247..560f63e 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -75,11 +75,15 @@ define DBUS_INSTALL_TARGET_FIXUP
mkdir -p $(TARGET_DIR)/var/lib
rm -rf $(TARGET_DIR)/var/lib/dbus
ln -sf /tmp/dbus $(TARGET_DIR)/var/lib/dbus
- $(INSTALL) -m 0755 -D package/dbus/S30dbus $(TARGET_DIR)/etc/init.d/S30dbus
endef
DBUS_POST_INSTALL_TARGET_HOOKS += DBUS_INSTALL_TARGET_FIXUP
+define DBUS_INSTALL_INIT_SYSV
+ $(INSTALL) -m 0755 -D package/dbus/S30dbus \
+ $(TARGET_DIR)/etc/init.d/S30dbus
+endef
+
HOST_DBUS_DEPENDENCIES = host-pkgconf host-expat
HOST_DBUS_CONF_OPT = \
--with-dbus-user=dbus \
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] openssh: add systemd unit file
2013-11-19 13:02 [Buildroot] [PATCH 1/2] dbus: only install initscript for sysV targets Gustavo Zacarias
@ 2013-11-19 13:02 ` Gustavo Zacarias
2013-11-26 15:15 ` [Buildroot] [PATCH 1/2] dbus: only install initscript for sysV targets Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2013-11-19 13:02 UTC (permalink / raw)
To: buildroot
And only install sysV initscript when appropiate.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/openssh/openssh.mk | 12 ++++++++++--
package/openssh/sshd.service | 11 +++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
create mode 100644 package/openssh/sshd.service
diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index 8ab2b47..c53813e 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -17,8 +17,16 @@ 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
+ 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
diff --git a/package/openssh/sshd.service b/package/openssh/sshd.service
new file mode 100644
index 0000000..b5e96b3
--- /dev/null
+++ b/package/openssh/sshd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=OpenSSH server daemon
+After=syslog.target network.target auditd.service
+
+[Service]
+ExecStartPre=/usr/bin/ssh-keygen -A
+ExecStart=/usr/sbin/sshd -D -e
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/2] dbus: only install initscript for sysV targets
2013-11-19 13:02 [Buildroot] [PATCH 1/2] dbus: only install initscript for sysV targets Gustavo Zacarias
2013-11-19 13:02 ` [Buildroot] [PATCH 2/2] openssh: add systemd unit file Gustavo Zacarias
@ 2013-11-26 15:15 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2013-11-26 15:15 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/dbus/dbus.mk | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-26 15:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19 13:02 [Buildroot] [PATCH 1/2] dbus: only install initscript for sysV targets Gustavo Zacarias
2013-11-19 13:02 ` [Buildroot] [PATCH 2/2] openssh: add systemd unit file Gustavo Zacarias
2013-11-26 15:15 ` [Buildroot] [PATCH 1/2] dbus: only install initscript for sysV targets Peter Korsgaard
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.