From: nkukard at uclibc.org <nkukard@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/dropbear
Date: Wed, 9 Apr 2008 00:35:13 -0700 (PDT) [thread overview]
Message-ID: <20080409073513.408C43C436@busybox.net> (raw)
Author: nkukard
Date: 2008-04-09 00:35:12 -0700 (Wed, 09 Apr 2008)
New Revision: 21679
Log:
* Removed dropbear init patch
* Added dropbear init script
* Added more verbose messages about key generation
Added:
trunk/buildroot/package/dropbear/S50dropbear
Removed:
trunk/buildroot/package/dropbear/dropbear-init.patch
Modified:
trunk/buildroot/package/dropbear/dropbear.mk
Changeset:
Added: trunk/buildroot/package/dropbear/S50dropbear
===================================================================
--- trunk/buildroot/package/dropbear/S50dropbear (rev 0)
+++ trunk/buildroot/package/dropbear/S50dropbear 2008-04-09 07:35:12 UTC (rev 21679)
@@ -0,0 +1,56 @@
+#!/bin/sh
+#
+# Starts dropbear sshd.
+#
+
+# Make sure the dropbearkey progam exists
+[ -f /usr/bin/dropbearkey ] || exit 0
+
+start() {
+ echo -n "Starting dropbear sshd: "
+ # Make sure dropbear directory exists
+ if [ ! -d /etc/dropbear ] ; then
+ mkdir -p /etc/dropbear
+ fi
+ # Check for the Dropbear RSA key
+ if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
+ echo -n "generating rsa key... "
+ /usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
+ fi
+
+ # Check for the Dropbear DSS key
+ if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then
+ echo -n "generating dsa key... "
+ /usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
+ fi
+ umask 077
+ start-stop-daemon -S -q -p /var/run/dropbear.pid --exec /usr/sbin/dropbear
+ echo "OK"
+}
+stop() {
+ echo -n "Stopping dropbear sshd: "
+ start-stop-daemon -K -q -p /var/run/dropbear.pid
+ echo "OK"
+}
+restart() {
+ stop
+ start
+}
+
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart|reload)
+ restart
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit $?
+
Deleted: trunk/buildroot/package/dropbear/dropbear-init.patch
===================================================================
--- trunk/buildroot/package/dropbear/dropbear-init.patch 2008-04-09 07:02:20 UTC (rev 21678)
+++ trunk/buildroot/package/dropbear/dropbear-init.patch 2008-04-09 07:35:12 UTC (rev 21679)
@@ -1,60 +0,0 @@
-diff -rNu dropbear-0.51_vanilla/S50dropbear dropbear-0.51_init/S50dropbear
---- dropbear-0.51_vanilla/S50dropbear 1970-01-01 00:00:00.000000000 +0000
-+++ dropbear-0.51_init/S50dropbear 2008-04-08 14:46:53.000000000 +0000
-@@ -0,0 +1,56 @@
-+#!/bin/sh
-+#
-+# Starts dropbear sshd.
-+#
-+
-+# Make sure the dropbearkey progam exists
-+[ -f /usr/bin/dropbearkey ] || exit 0
-+
-+start() {
-+ echo -n "Starting dropbear sshd: "
-+ # Make sure dropbear directory exists
-+ if [ ! -d /etc/dropbear ] ; then
-+ mkdir -p /etc/dropbear
-+ fi
-+ # Check for the Dropbear RSA key
-+ if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
-+ /usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
-+ echo -n .
-+ fi
-+
-+ # Check for the Dropbear DSS key
-+ if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then
-+ /usr/bin/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
-+ echo -n .
-+ fi
-+ umask 077
-+ start-stop-daemon -S -q -p /var/run/dropbear.pid --exec /usr/sbin/dropbear
-+ echo "OK"
-+}
-+stop() {
-+ echo -n "Stopping sshd: "
-+ start-stop-daemon -K -q -p /var/run/dropbear.pid
-+ echo "OK"
-+}
-+restart() {
-+ stop
-+ start
-+}
-+
-+case "$1" in
-+ start)
-+ start
-+ ;;
-+ stop)
-+ stop
-+ ;;
-+ restart|reload)
-+ restart
-+ ;;
-+ *)
-+ echo $"Usage: $0 {start|stop|restart}"
-+ exit 1
-+esac
-+
-+exit $?
-+
Modified: trunk/buildroot/package/dropbear/dropbear.mk
===================================================================
--- trunk/buildroot/package/dropbear/dropbear.mk 2008-04-09 07:02:20 UTC (rev 21678)
+++ trunk/buildroot/package/dropbear/dropbear.mk 2008-04-09 07:35:12 UTC (rev 21679)
@@ -57,8 +57,7 @@
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/dropbearkey
ln -snf ../sbin/dropbear $(TARGET_DIR)/usr/bin/dropbearconvert
mkdir -p $(TARGET_DIR)/etc/init.d
- cp -dpf $(DROPBEAR_DIR)/S50dropbear $(TARGET_DIR)/etc/init.d/
- chmod a+x $(TARGET_DIR)/etc/init.d/S50dropbear
+ $(INSTALL) -m 755 package/dropbear/S50dropbear $(TARGET_DIR)/etc/init.d/S50dropbear
dropbear: uclibc zlib $(TARGET_DIR)/$(DROPBEAR_TARGET_BINARY)
next reply other threads:[~2008-04-09 7:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-09 7:35 nkukard at uclibc.org [this message]
2008-04-09 22:33 ` [Buildroot] svn commit: trunk/buildroot/package/dropbear Hamish Moffatt
2008-04-10 7:03 ` Peter Korsgaard
-- strict thread matches above, loose matches on Subject: below --
2008-11-14 11:06 correa at uclibc.org
2008-11-14 8:47 jacmet at uclibc.org
2008-06-30 13:35 jacmet at uclibc.org
2008-04-08 17:47 nkukard at uclibc.org
2008-04-08 18:59 ` Peter Korsgaard
2008-04-08 19:17 ` Nigel Kukard
2008-04-08 19:32 ` Peter Korsgaard
2008-03-27 15:59 jacmet at uclibc.org
2007-09-19 14:11 aldot at uclibc.org
2007-08-11 18:43 ulf at uclibc.org
2007-04-24 13:42 jacmet at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080409073513.408C43C436@busybox.net \
--to=nkukard@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox