Package: dropbear
Version: 2012.55-1
Followup-For: Bug #630581

Attached is a multiplatform patch

I couldn't figure out a clean way to work out the -linux-gnu part
without getting autoconf involved, so a * should be practical in
most setups

Cheers,

Hugh

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dropbear depends on:
ii  libc6   2.13-33
ii  zlib1g  1:1.2.7.dfsg-11

dropbear recommends no packages.

Versions of packages dropbear suggests:
ii  openssh-client  1:6.0p1-1
pn  runit           <none>
ii  udev            175-3.1
pn  xauth           <none>

-- no debconf information
diff -Naur dropbear-2012.55/debian/initramfs/dropbear-hook dropbear-2012.55.new/debian/initramfs/dropbear-hook
--- dropbear-2012.55/debian/initramfs/dropbear-hook	2012-06-18 22:11:12.000000000 +1200
+++ dropbear-2012.55.new/debian/initramfs/dropbear-hook	2012-06-18 22:10:40.727881086 +1200
@@ -27,7 +27,7 @@
 	else
 		rm -f "${DESTDIR}/sbin/dropbear"
 		copy_exec "/usr/sbin/dropbear" "/sbin/"
-		cp /lib/libnss_* "${DESTDIR}/lib/"
+		cp /lib/$(arch)*/libnss_* "${DESTDIR}/lib/"
 		echo "root:x:0:0:root:/root:/bin/sh" > "${DESTDIR}/etc/passwd"
 		for keytype in "dss" "rsa"; do
 			if [ ! -f "/etc/initramfs-tools/etc/dropbear/dropbear_${keytype}_host_key" ]; then

Reply via email to