summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/dropbear/Makefile8
-rw-r--r--package/openssh/Makefile8
2 files changed, 14 insertions, 2 deletions
diff --git a/package/dropbear/Makefile b/package/dropbear/Makefile
index 2ab254cd2..2e29902a7 100644
--- a/package/dropbear/Makefile
+++ b/package/dropbear/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= dropbear
PKG_VERSION:= 0.52
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 1c69ec674481d7745452f68f2ea5597e
PKG_DESCR:= SSH 2 server/client designed for embedded systems
PKG_SECTION:= net
@@ -62,5 +62,11 @@ do-install:
$(INSTALL_DIR) $(IDIR_DBCONVERT)/usr/bin
$(INSTALL_BIN) $(WRKBUILD)/dropbearconvert \
$(IDIR_DBCONVERT)/usr/bin/dropbearconvert
+ # ssh pubkey
+ test -z $(ADK_SSH_PUBKEY) || ( \
+ mkdir -p $(IDIR_DROPBEAR)/etc/dropbear; \
+ echo $(ADK_SSH_PUBKEY) \
+ >$(IDIR_DROPBEAR)/etc/dropbear/authorized_keys; \
+ )
include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/openssh/Makefile b/package/openssh/Makefile
index 1eb72097a..2896c1a29 100644
--- a/package/openssh/Makefile
+++ b/package/openssh/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= openssh
PKG_VERSION:= 5.5p1
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 88633408f4cb1eb11ec7e2ec58b519eb
PKG_DESCR:= OpenSSH server
PKG_SECTION:= net
@@ -85,5 +85,11 @@ post-install:
${INSTALL_BIN} ${WRKINST}/usr/libexec/sftp-server \
${IDIR_OPENSSH_SFTP_SERVER}/usr/libexec
chmod 0700 {${IDIR_OPENSSH_CLIENT},${IDIR_OPENSSH_SERVER}}/etc/ssh
+ # ssh pubkey
+ test -z $(ADK_SSH_PUBKEY) || ( \
+ mkdir -p $(IDIR_OPENSSH_SERVER)/etc/ssh; \
+ echo $(ADK_SSH_PUBKEY) \
+ >$(IDIR_OPENSSH_SERVER)/etc/ssh/authorized_keys; \
+ )
include ${TOPDIR}/mk/pkg-bottom.mk