diff options
author | nslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net> | 2005-01-05 19:40:08 +0000 |
---|---|---|
committer | nslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net> | 2005-01-05 19:40:08 +0000 |
commit | b112c1a8bc7dbb4d87c4d0c0a9dc305733fd3533 (patch) | |
tree | 5cbd4def504e8c4621ef53622a654dc75321f7e8 /packages/dropbear | |
parent | 7c45869b0e91e9fe7da13619d197d164dad61ae3 (diff) |
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded
2005/01/05 19:36:45+00:00 nexus.co.uk!pb
Merge bk://oe-devel@oe-devel.bkbits.net/openembedded
into stealth.nexus.co.uk:/home/pb/oe/oe
2005/01/05 19:36:34+00:00 nexus.co.uk!pb
update gdb to 6.3
2005/01/05 20:09:24+01:00 uni-frankfurt.de!mickeyl
Merge bk://oe-devel@oe-devel.bkbits.net/openembedded
into r2d2.tm.informatik.uni-frankfurt.de:/local/pkg/oe/packages
2005/01/05 20:08:55+01:00 uni-frankfurt.de!mickeyl
switch dropbear 0.44 back to using /dev/urandom. It's less secure, but faster
2005/01/05 10:54:32-08:00 (none)!ggilbert
netbase_4.19.bb:
netbase: Bump pr for interfaces file change
interfaces:
netbase: Addess essid=any to interfaces file.
Wireless Access points should now auto associate
when using hostap
BKrev: 41dc4298tJ4DowLLlgompjeJuNGu0Q
Diffstat (limited to 'packages/dropbear')
-rw-r--r-- | packages/dropbear/dropbear-0.44/use-urandom.patch | 0 | ||||
-rw-r--r-- | packages/dropbear/dropbear_0.44.bb | 59 |
2 files changed, 59 insertions, 0 deletions
diff --git a/packages/dropbear/dropbear-0.44/use-urandom.patch b/packages/dropbear/dropbear-0.44/use-urandom.patch new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/dropbear/dropbear-0.44/use-urandom.patch diff --git a/packages/dropbear/dropbear_0.44.bb b/packages/dropbear/dropbear_0.44.bb index e69de29bb2..64ee5aa40e 100644 --- a/packages/dropbear/dropbear_0.44.bb +++ b/packages/dropbear/dropbear_0.44.bb @@ -0,0 +1,59 @@ +DESCRIPTION = "Dropbear is a lightweight SSH and SCP Implementation" +SECTION = "console/network" +LICENSE = "MIT" +DEPENDS = "zlib" +PR = "r1" + +SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \ + file://use-urandom.patch;patch=1 \ + file://configure.patch;patch=1 \ + file://allow-nopw.patch;patch=1 \ + file://xauth-path.patch;patch=1 \ + file://init" + +inherit autotools update-rc.d + +INITSCRIPT_NAME = "dropbear" +INITSCRIPT_PARAMS = "defaults 10" + +CFLAGS_prepend = "-I. " +LD = "${CC}" + +SBINCOMMANDS = "dropbear dropbearkey dropbearconvert" +BINCOMMANDS = "dbclient ssh scp" +EXTRA_OEMAKE = 'MULTI=1 SCPPROGRESS=1 PROGRAMS="${SBINCOMMANDS} ${BINCOMMANDS}"' + +do_install() { + install -d ${D}/${sysconfdir} \ + ${D}/${sysconfdir}/init.d \ + ${D}/${sysconfdir}/default \ + ${D}/${sysconfdir}/dropbear \ + ${D}/${bindir} \ + ${D}/${sbindir} \ + ${D}/${localstatedir} + + install -m 0755 dropbearmulti ${D}/${sbindir}/ + for i in ${BINCOMMANDS} + do + ln -s ${sbindir}/dropbearmulti ${D}/${bindir}/$i + done + for i in ${SBINCOMMANDS} + do + ln -s ./dropbearmulti ${D}/${sbindir}/$i + done + cat ${WORKDIR}/init | sed -e 's,/etc,${sysconfdir},g' \ + -e 's,/usr/sbin,${sbindir},g' \ + -e 's,/var,${localstatedir},g' \ + -e 's,/usr/bin,${bindir},g' \ + -e 's,/usr,${prefix},g' > ${D}/${sysconfdir}/init.d/dropbear + chmod 755 ${D}/${sysconfdir}/init.d/dropbear +} + +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 +} |