diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-27 17:23:46 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-11-27 17:24:03 +0100 |
commit | 0a0c116036e3a2d44af3169d52637ca80c7f535c (patch) | |
tree | 2bad89e40d215107affb4ae9f8d1dbcebae4f4fd /package | |
parent | faa7498553e0c46bed2b27c3affa2e2278567631 (diff) |
dropbear: add systemd unit file and integrate logic to package build
Diffstat (limited to 'package')
-rw-r--r-- | package/dropbear/Makefile | 6 | ||||
-rw-r--r-- | package/dropbear/files/dropbear.service | 11 |
2 files changed, 15 insertions, 2 deletions
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile index d2b0cd9ce..f92f6609c 100644 --- a/package/dropbear/Makefile +++ b/package/dropbear/Makefile @@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk PKG_NAME:= dropbear PKG_VERSION:= 2016.74 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_HASH:= 2720ea54ed009af812701bcc290a2a601d5c107d12993e5d92c0f5f81f718891 PKG_DESCR:= ssh server/client designed for embedded systems PKG_SECTION:= net/security @@ -57,7 +57,9 @@ do-build: do-install: # main package - $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/bin $(IDIR_DROPBEAR)/bin + $(INSTALL_DIR) $(IDIR_DROPBEAR)/etc/dropbear + $(INSTALL_DIR) $(IDIR_DROPBEAR)/bin + $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/bin $(INSTALL_DIR) $(IDIR_DROPBEAR)/usr/sbin $(INSTALL_BIN) $(WRKBUILD)/dropbearmulti \ $(IDIR_DROPBEAR)/usr/sbin/dropbear diff --git a/package/dropbear/files/dropbear.service b/package/dropbear/files/dropbear.service new file mode 100644 index 000000000..eeb86cfa7 --- /dev/null +++ b/package/dropbear/files/dropbear.service @@ -0,0 +1,11 @@ +[Unit] +Description=Dropbear SSH daemon +After=syslog.target network.target + +[Service] +EnvironmentFile=-/etc/default/dropbear +ExecStart=/usr/sbin/dropbear -F -R $DROPBEAR_ARGS +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target |