summaryrefslogtreecommitdiff
path: root/packages/dropbear
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-08-03 01:12:24 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-03 01:12:24 +0000
commit564a10b5b6653b68757c15c20763d1f324d1135e (patch)
tree9d435e3d7c21c50aa626b636ad2cdb704a92c18c /packages/dropbear
parenta9687b1d451e962ea99b9a6097367057318440fe (diff)
Make dropbear use update-alternatives
Diffstat (limited to 'packages/dropbear')
-rw-r--r--packages/dropbear/dropbear_0.46.bb17
1 files changed, 12 insertions, 5 deletions
diff --git a/packages/dropbear/dropbear_0.46.bb b/packages/dropbear/dropbear_0.46.bb
index 3a2b54072f..739950ed1a 100644
--- a/packages/dropbear/dropbear_0.46.bb
+++ b/packages/dropbear/dropbear_0.46.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://matt.ucc.asn.au/dropbear/dropbear.html"
SECTION = "console/network"
LICENSE = "MIT"
DEPENDS = "zlib"
-PR = "r1"
+PR = "r2"
PROVIDES = "ssh sshd"
SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \
@@ -41,10 +41,12 @@ do_install() {
${D}${localstatedir}
install -m 0755 dropbearmulti ${D}${sbindir}/
- for i in ${BINCOMMANDS}
- do
- ln -s ${sbindir}/dropbearmulti ${D}${bindir}/$i
- done
+# for i in ${BINCOMMANDS}
+# do
+# ln -s ${sbindir}/dropbearmulti ${D}${bindir}/$i
+# done
+ ln -s ${sbindir}/dropbearmulti ${D}${bindir}/dbclient
+
for i in ${SBINCOMMANDS}
do
ln -s ./dropbearmulti ${D}${sbindir}/$i
@@ -57,6 +59,11 @@ do_install() {
chmod 755 ${D}${sysconfdir}/init.d/dropbear
}
+pkg_postinst () {
+ update-alternatives --install ${bindir}/scp scp ${sbindir}/dropbearmulti 20
+ update-alternatives --install ${bindir}/ssh ssh ${sbindir}/dropbearmulti 20
+}
+
pkg_postrm_append () {
if [ -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then
rm ${sysconfdir}/dropbear/dropbear_rsa_host_key