coda=" root root 0600"
ipsec=" root root 0200"
readable=" root root 0444"
+ lirc=" root lirc 0640"
MAXVT=63
hppa)
$0 $opts generic-hppa
;;
- i386)
+ i386|lpia)
$0 $opts generic-i386
;;
amd64)
makedev irnet c 10 187 $system
;;
cbm)
- makedev irnet c 10 177 $system
+ makedev cbm c 10 177 $system
;;
misc)
major=`Major mouse 10` || continue
done
;;
pktcdvd)
- major=97
- for unit in 0 1 2 3
- do
- makedev pktcdvd$unit b $major $unit $cdrom
- done
+ echo "pktcdvd major number is now dynamic, taking no action"
+ # major=97
+ # for unit in 0 1 2 3
+ # do
+ # makedev pktcdvd$unit b $major $unit $cdrom
+ # done
;;
cfs0)
makedev cfs0 c 67 0 $coda
makedev pf$i b 47 $i $floppy
done
;;
+ lirc)
+ mknod lirc c 61 0 $lirc
+ for i in d m; do
+ makedev lirc${i} p $lirc
+ done
+ ;;
update)
devices=
if [ ! -f $procfs/devices ]
+makedev (2.3.1-85) unstable; urgency=low
+
+ * fix cut'n'paste error in cbm target, closes: #437329
+ * add lirc target, closes: #393575
+ * add support for 'lpia' variant of i386 architecture, closes: #453505
+ * patch to eliminate obsolete init.d conffile from Petter Reinholdtsen,
+ closes: #459677
+ * update postinst to only attempt to make fb if the kernel is Linux, and
+ move chmod of /dev/tty[0-9]* after the forced creation of those devices
+ so postinst fails less particularly on kfreebsd, closes: #444979, #388270
+ * major number for pktcdvd is now dynamic, don't try to create devices with
+ old/wrong major number, closes: #405819
+
+ -- Bdale Garbee <bdale@gag.com> Mon, 28 Jan 2008 00:18:41 +1300
+
makedev (2.3.1-84) unstable; urgency=low
* add 'fd' to the list of targets created in the postinst, closes: #394863
Priority: required
Maintainer: Bdale Garbee <bdale@gag.com>
Build-Depends: debhelper
-Standards-Version: 3.7.2
+Standards-Version: 3.7.3
Package: makedev
Architecture: all
/sbin/MAKEDEV std consoleonly fd
-/bin/chmod g-r,o= /dev/tty[0-9]*
-
# 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 || /sbin/MAKEDEV $i
done
+/bin/chmod g-r,o= /dev/tty[0-9]*
+
test -e /dev/random || /sbin/MAKEDEV random
test -e /dev/urandom || /sbin/MAKEDEV urandom
test -e /dev/audio || /sbin/MAKEDEV audio
[ ! -f /dev/mouse ] && [ -f /dev/sunmouse ] && ln -s sunmouse mouse
-# force update of fb devices if kernel is >= 2.4 and they already exist
+# force update of fb devices if kernel is Linux >= 2.4 and they already exist
kern_rev1=`uname -r | sed -e 's@^\([^.]*\)\..*@\1@'`
kern_rev2=`uname -r | sed -e 's@^[^.]*\.\([^.]*\)\..*@\1@'`
-if [ $kern_rev1 -ge 2 ] && [ $kern_rev2 -ge 4 ] && [ -e /dev/fb0 ]
+if [ `uname -s` == "Linux" ] && [ $kern_rev1 -ge 2 ] && [ $kern_rev2 -ge 4 ] && [ -e /dev/fb0 ]
then
/sbin/MAKEDEV fb
fi
#!/bin/sh
+# Remove a no-longer used conffile
+rm_conffile() {
+ PKGNAME="$1"
+ CONFFILE="$2"
+ if [ -e "$CONFFILE" ]; then
+ md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
+ old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`"
+ if [ "$md5sum" != "$old_md5sum" ]; then
+ echo "Obsolete conffile $CONFFILE has been modified by you."
+ echo "Saving as $CONFFILE.dpkg-old ..."
+ mv -f "$CONFFILE" "$CONFFILE".dpkg-old
+ else
+ echo "Removing obsolete conffile $CONFFILE ..."
+ rm -f "$CONFFILE"
+ fi
+ fi
+}
+case "$1" in
+install|upgrade)
+ if dpkg --compare-versions "$2" le "2.3.1-85"; then
+ rm_conffile makedev /etc/init.d/makedev
+ fi
+esac
+
rm -f /usr/man/man8/MAKEDEV.8 /usr/man/man8/MAKEDEV-C.8 \
/usr/man/man8/MAKEDEV-C.8.gz