summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/dropbear/Makefile6
-rw-r--r--package/dropbear/files/dropbear.service11
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