diff options
Diffstat (limited to 'slackware64-current/source/a/udev/udev.SlackBuild')
-rwxr-xr-x | slackware64-current/source/a/udev/udev.SlackBuild | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/slackware64-current/source/a/udev/udev.SlackBuild b/slackware64-current/source/a/udev/udev.SlackBuild index 23c560f37..49bb53bf5 100755 --- a/slackware64-current/source/a/udev/udev.SlackBuild +++ b/slackware64-current/source/a/udev/udev.SlackBuild @@ -58,32 +58,35 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# So this is a major bug. At least, it triggers one in the kernel. -# We'll revert it for now. If left in place, machines using ATA -# (especially PATA) are liable to randomly crash on reboot. -# The last little bit of this patch fails to reverse but it won't matter. -if [ $VERSION = 165 ]; then - zcat $CWD/udev.git-560de575148b7efda3b34a7f7073abd483c5f08e.patch.gz | patch -p1 -R -fi +# Fix ata_id (remove with udev-186+) +zcat $CWD/udev-ata_id-fixup-all-8-not-only-6-bytes-of-the-fw_rev.patch.gz | patch -p1 || exit 1 + +# Fix 42-usb-hid-pm.rules (remove with udev-187+) +zcat $CWD/fix-42-usb-hid-pm.rules.diff.gz | patch -p1 || exit 1 # Fixup the rule generator for our use zcat $CWD/rule_generator.diff.gz | patch -p1 || exit 1 # static libudev is needed for lvm2 +# --enable-udev_acl was removed (will be part of future CK release) +# --enable-floppy support was also disabled by default in 173 +# --enable-rule_generator was disabled by default in 175 ./configure \ - --enable-static \ --prefix=/usr \ - --sysconfdir=/etc \ - --sbindir=/sbin \ + --with-rootprefix=/ \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --with-rootlibdir=/lib${LIBDIRSUFFIX} \ - --libexecdir=/lib/udev \ --with-firmware-path=/lib/firmware/updates:/lib/firmware \ + --sysconfdir=/etc \ + --bindir=/sbin \ + --sbindir=/sbin \ + --libexecdir=/lib \ --enable-introspection \ - --enable-floppy \ - --enable-rule_generator \ --mandir=/usr/man \ --docdir=/usr/doc/udev-$VERSION \ + --enable-floppy \ + --enable-static \ + --enable-rule_generator \ --build=$ARCH-slackware-linux || exit 1 make $NUMJOBS || make || exit 1 @@ -100,8 +103,7 @@ mv $PKG/lib/udev/udevd $PKG/sbin ln -s /sbin/udevd $PKG/lib/udev/udevd mkdir -p \ - $PKG/etc/modprobe.d \ - $PKG/lib/modprobe.d \ + $PKG/{etc,lib}/modprobe.d \ $PKG/etc/rc.d \ $PKG/etc/udev/rules.d \ $PKG/lib/firmware @@ -114,10 +116,11 @@ cp -a $CWD/config/rules.d/* $PKG/lib/udev/rules.d/ # Now the init script and module-init-tools stuff cp -a $CWD/config/rc.d/rc.udev.new $PKG/etc/rc.d/rc.udev.new -cp -a $CWD/config/modprobe.d/* $PKG/lib/modprobe.d +cp -a $CWD/config/modprobe.d/*.conf $PKG/lib/modprobe.d/ +cp -a $CWD/config/modprobe.d/README $PKG/etc/modprobe.d/ -chown -R root:root $PKG/etc -find $PKG/etc -type f -exec chmod 644 {} \; +chown -R root:root $PKG/etc $PKG/lib/modprobe.d +find $PKG/etc $PKG/lib/modprobe.d -type f -exec chmod 644 {} \; find $PKG/etc -type d -exec chmod 755 {} \; chmod 0755 $PKG/etc/rc.d/rc.udev.new @@ -129,7 +132,7 @@ chmod 0755 $PKG/lib/udev/* mkdir -p $PKG/usr/doc/udev-$VERSION cp -a \ - COPYING* README* TODO extras/keymap/README.keymap.txt \ + COPYING* README* TODO \ $PKG/usr/doc/udev-$VERSION # Don't package the API docs: |