summaryrefslogtreecommitdiff
path: root/dropbear
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-05-07 10:18:18 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-05-07 10:18:18 +0000
commit3057e14079fa0986b20402f5626f807bb21c988b (patch)
tree3df0791868a9e01dcbe3f29b39bc5ce66e54b211 /dropbear
parent844c9710631f858546bf6d039015049609ce6b81 (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into r2d2.tm.informatik.uni-frankfurt.de:/home/projekte/packages 2004/05/07 11:51:30+02:00 uni-frankfurt.de!mickeyl apply patch from Marcin Juszkiewicz to create dropbear keys - patch courtesy pb_. BKrev: 409b626a2wS7am9nn3xtqGRF92kGRA
Diffstat (limited to 'dropbear')
-rw-r--r--dropbear/dropbear_0.41.oe23
1 files changed, 22 insertions, 1 deletions
diff --git a/dropbear/dropbear_0.41.oe b/dropbear/dropbear_0.41.oe
index 7c9edc387a..30a598c551 100644
--- a/dropbear/dropbear_0.41.oe
+++ b/dropbear/dropbear_0.41.oe
@@ -15,6 +15,27 @@ INITSCRIPT_PARAMS = "defaults 10"
CFLAGS_prepend = "-I. "
LD = "${CC}"
do_install_prepend () {
- install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d
+ install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/init.d ${D}${sysconfdir}/dropbear
install -m 0755 debian/dropbear.init ${D}${sysconfdir}/init.d/dropbear
}
+pkg_postinst_append () {
+
+if [ "x$D" != "x" ]; then
+ if [ ! -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then
+ dropbearkey -t rsa -f ${sysconfdir}/dropbear/dropbear_rsa_host_key
+ fi
+ if [ ! -f "${sysconfdir}/dropbear/dropbear_dss_host_key" ]; then
+ dropbearkey -t dss -f ${sysconfdir}/dropbear/dropbear_dss_host_key
+ fi
+fi
+}
+
+pkg_postrm_append () {
+
+if [ -f "${sysconfdir}/dropbear/dropbear_rsa_host_key" ]; then
+ rm ${sysconfdir}/dropbear/dropbear_rsa_host_key
+fi
+if [ -f "${sysconfdir}/dropbear/dropbear_dss_host_key" ]; then
+ rm ${sysconfdir}/dropbear/dropbear_dss_host_key
+fi
+}