summaryrefslogtreecommitdiff
path: root/package/openssh
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-07-01 13:43:07 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-07-01 13:43:07 +0200
commitcd5672bc34e694b9f77a6eaa0aed58b64f226244 (patch)
tree401cf617849c51275eb9e90a7cab56c4dc83f57e /package/openssh
parente0c28ad930e27154c29752629e2eb280156208a8 (diff)
add the ability to add a ssh pubkey via menu
Diffstat (limited to 'package/openssh')
-rw-r--r--package/openssh/Makefile8
1 files changed, 7 insertions, 1 deletions
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