Usertags: kfreebsd

The postinst script is Linux-only. The following change produces a working
package also for GNU/kFreeBSD.

The package is assigned to the Debian QA group, so the glibc-bsd group or
Bdale Garbee are most likely to act on this.

Observe the additional change "chmod g-rw", since otherwise the tty group
wuld have had write access to the device on GNU/kFreeBSD.

Regards,
  Mats Erik Andersson, DM


--- /var/lib/dpkg/info/makedev.postinst.orig    2012-03-21 11:00:59.000000000 
+0100
+++ /var/lib/dpkg/info/makedev.postinst 2012-03-30 22:04:35.981619170 +0200
@@ -14,12 +14,18 @@
 
 MAKEDEV std consoleonly fd
 
+# Device string for GNU/Linux
+TTY=tty
+
+# Overriding string for other ports
+test `uname -s` = "GNU/kFreeBSD" && TTY=ttyv
+
 # ensure base tty set exists, since debootstrap no longer does
-for i in tty0 tty1 tty2 tty3 tty4 tty5 tty6 tty7 tty8 tty9; do
-       test -e /dev/$i || MAKEDEV $i
+for i in 0 1 2 3 4 5 6 7 8 9; do
+       test -e /dev/$TTY$i || MAKEDEV $TTY$i
 done
 
-chmod g-r,o= /dev/tty[0-9]*
+chmod g-rw,o= /dev/$TTY[0-9]*
 
 test -e /dev/random || MAKEDEV random
 test -e /dev/urandom || MAKEDEV urandom



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to