diff options
Diffstat (limited to 'source/a/udev')
32 files changed, 0 insertions, 1112 deletions
diff --git a/source/a/udev/60-cdrom_id.rules.diff b/source/a/udev/60-cdrom_id.rules.diff deleted file mode 100644 index 6ac5e2275..000000000 --- a/source/a/udev/60-cdrom_id.rules.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- ./src/cdrom_id/60-cdrom_id.rules.orig 2012-01-30 12:02:56.526251552 -0600 -+++ ./src/cdrom_id/60-cdrom_id.rules 2013-01-17 21:11:20.821006629 -0600 -@@ -15,6 +15,24 @@ - # enable the receiving of media eject button events - IMPORT{program}="cdrom_id --lock-media $devnode" - --KERNEL=="sr0", SYMLINK+="cdrom", OPTIONS+="link_priority=-100" -+# create default links to the first detected device -+KERNEL=="sr0", ENV{ID_CDROM}=="1", SYMLINK+="cdrom", OPTIONS+="link_priority=-100" -+KERNEL=="sr0", ENV{ID_CDROM_CD_R}=="1", SYMLINK+="cdr", OPTIONS+="link_priority=-100" -+KERNEL=="sr0", ENV{ID_CDROM_CD_R}=="1", SYMLINK+="cdwriter", OPTIONS+="link_priority=-100" -+KERNEL=="sr0", ENV{ID_CDROM_CD_RW}=="1", SYMLINK+="cdrw", OPTIONS+="link_priority=-100" -+KERNEL=="sr0", ENV{ID_CDROM_DVD}=="1", SYMLINK+="dvd", OPTIONS+="link_priority=-100" -+KERNEL=="sr0", ENV{ID_CDROM_DVD_R}=="1", SYMLINK+="dvdr", OPTIONS+="link_priority=-100" -+KERNEL=="sr0", ENV{ID_CDROM_DVD_R}=="1", SYMLINK+="dvdwriter", OPTIONS+="link_priority=-100" -+KERNEL=="sr0", ENV{ID_CDROM_DVD_RW}=="1", SYMLINK+="dvdrw", OPTIONS+="link_priority=-100" -+ -+# create all other device links -+KERNEL=="sr[0-9]*", ENV{ID_CDROM}=="1", SYMLINK+="cdrom%n", OPTIONS+="link_priority=-100" -+KERNEL=="sr[0-9]*", ENV{ID_CDROM_CD_R}=="1", SYMLINK+="cdr%n", OPTIONS+="link_priority=-100" -+KERNEL=="sr[0-9]*", ENV{ID_CDROM_CD_R}=="1", SYMLINK+="cdwriter%n", OPTIONS+="link_priority=-100" -+KERNEL=="sr[0-9]*", ENV{ID_CDROM_CD_RW}=="1", SYMLINK+="cdrw%n", OPTIONS+="link_priority=-100" -+KERNEL=="sr[0-9]*", ENV{ID_CDROM_DVD}=="1", SYMLINK+="dvd%n", OPTIONS+="link_priority=-100" -+KERNEL=="sr[0-9]*", ENV{ID_CDROM_DVD_R}=="1", SYMLINK+="dvdr%n", OPTIONS+="link_priority=-100" -+KERNEL=="sr[0-9]*", ENV{ID_CDROM_DVD_R}=="1", SYMLINK+="dvdwriter%n", OPTIONS+="link_priority=-100" -+KERNEL=="sr[0-9]*", ENV{ID_CDROM_DVD_RW}=="1", SYMLINK+="dvdrw%n", OPTIONS+="link_priority=-100" - - LABEL="cdrom_end" diff --git a/source/a/udev/config/modprobe.d/8139cp.conf b/source/a/udev/config/modprobe.d/8139cp.conf deleted file mode 100644 index 65f0af0d1..000000000 --- a/source/a/udev/config/modprobe.d/8139cp.conf +++ /dev/null @@ -1,7 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# Alternate 8139 driver. Some 8139 cards need this specific driver, though... -blacklist 8139cp - diff --git a/source/a/udev/config/modprobe.d/README b/source/a/udev/config/modprobe.d/README deleted file mode 100644 index 43355e826..000000000 --- a/source/a/udev/config/modprobe.d/README +++ /dev/null @@ -1,11 +0,0 @@ -# /etc/modprobe.d/README -# -# The monolithic "blacklist" file (and others) that used to be here in this -# directory have been split into several more fine-grained files and moved -# to the /lib/modprobe.d/ directory. Any file in /lib/modprobe.d/ will be -# overridden by an identically named file in this directory (/etc/modprobe.d/) -# or /run/modprobe.d/ (but since /run is on a tmpfs, it's not persistent -# across reboots, so you probably don't want to use it). -# -# See "man modprobe.d" for more information. -# diff --git a/source/a/udev/config/modprobe.d/bcm43xx.conf b/source/a/udev/config/modprobe.d/bcm43xx.conf deleted file mode 100644 index 55b3c2abc..000000000 --- a/source/a/udev/config/modprobe.d/bcm43xx.conf +++ /dev/null @@ -1,7 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# Deprecated BCM4318 driver. -blacklist bcm43xx - diff --git a/source/a/udev/config/modprobe.d/eepro100.conf b/source/a/udev/config/modprobe.d/eepro100.conf deleted file mode 100644 index a7ca4aaea..000000000 --- a/source/a/udev/config/modprobe.d/eepro100.conf +++ /dev/null @@ -1,8 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# Alternate Intel EtherExpress Pro/100 support driver. List it -# here so it won't conflict with an already-loaded e100 module. -blacklist eepro100 - diff --git a/source/a/udev/config/modprobe.d/eth1394.conf b/source/a/udev/config/modprobe.d/eth1394.conf deleted file mode 100644 index a2f475afd..000000000 --- a/source/a/udev/config/modprobe.d/eth1394.conf +++ /dev/null @@ -1,8 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# Ethernet over IEEE1394 module. In too many cases this will load -# when there's no eth1394 device present (just an IEEE1394 port) -blacklist eth1394 - diff --git a/source/a/udev/config/modprobe.d/evbug.conf b/source/a/udev/config/modprobe.d/evbug.conf deleted file mode 100644 index 0af0a83c6..000000000 --- a/source/a/udev/config/modprobe.d/evbug.conf +++ /dev/null @@ -1,7 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -#evbug is a debug tool and should be loaded explicitly -blacklist evbug - diff --git a/source/a/udev/config/modprobe.d/framebuffers.conf b/source/a/udev/config/modprobe.d/framebuffers.conf deleted file mode 100644 index 770ce420a..000000000 --- a/source/a/udev/config/modprobe.d/framebuffers.conf +++ /dev/null @@ -1,48 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# Hardware specific video framebuffer modules. If the user wants -# these, they can load them manually or de-blacklist them. Having -# them load automatically may lead to funny side effects with -# certain revisions of video hardware. -blacklist arcfb -blacklist aty128fb -blacklist atyfb -blacklist cirrusfb -blacklist clgenfb -blacklist cyber2000fb -blacklist fbcon-cfb2 -blacklist fbcon-cfb4 -blacklist fbcon-hga -blacklist fbcon-mfb -blacklist fbcon-vga-planes -blacklist fbgen -blacklist hgafb -blacklist i2c-matroxfb -blacklist i810fb -blacklist intelfb -blacklist kyrofb -blacklist matroxfb_DAC1064 -blacklist matroxfb_Ti3026 -blacklist matroxfb_accel -blacklist matroxfb_base -blacklist matroxfb_crtc2 -blacklist matroxfb_g450 -blacklist matroxfb_maven -blacklist matroxfb_misc -blacklist neofb -blacklist nvidiafb -blacklist pm2fb -blacklist pm3fb -blacklist radeonfb -blacklist rivafb -blacklist savagefb -blacklist sisfb -blacklist sstfb -blacklist tdfxfb -blacklist tridentfb -blacklist vga16fb -blacklist viafb -blacklist virgefb - diff --git a/source/a/udev/config/modprobe.d/hostap.conf b/source/a/udev/config/modprobe.d/hostap.conf deleted file mode 100644 index 4254d3daa..000000000 --- a/source/a/udev/config/modprobe.d/hostap.conf +++ /dev/null @@ -1,12 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# Modules used to run a wireless adapter as an access point. These -# conflict with the normal driver for the device, and so should be -# loaded manually. -blacklist hostap_cs -blacklist hostap_pci -blacklist hostap_plx -blacklist hostap - diff --git a/source/a/udev/config/modprobe.d/hw_random.conf b/source/a/udev/config/modprobe.d/hw_random.conf deleted file mode 100644 index b912e0125..000000000 --- a/source/a/udev/config/modprobe.d/hw_random.conf +++ /dev/null @@ -1,7 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# This module has also been known to cause crashes with some hardware. -blacklist hw_random - diff --git a/source/a/udev/config/modprobe.d/isapnp.conf b/source/a/udev/config/modprobe.d/isapnp.conf deleted file mode 100644 index a89ad6bb7..000000000 --- a/source/a/udev/config/modprobe.d/isapnp.conf +++ /dev/null @@ -1,24 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# These aliases are here because many PnP modules do not provide them. -# -# NOTE: Commented out due to noise pollution from udev. -# In the unlikely event that your machine needs these aliases, copy this -# file to /etc/modprobe.d/isapnp.conf and uncomment them there. - -#alias pnp:dPNP0400 parport_pc -#alias pnp:dPNP0401 parport_pc -#alias pnp:dPNP0510 irtty-sir -#alias pnp:dPNP0511 irtty-sir -#alias pnp:dPNP0700 floppy -#alias pnp:dPNP0B00 rtc -#alias acpi:PNP0B00: rtc-cmos -#alias acpi:PNP0B01: rtc-cmos -#alias acpi:PNP0B02: rtc-cmos -#alias pnp:dPNPB02F analog -#alias pnp:dPNP0F13 psmouse -#alias pnp:dPNP0800 pcspkr -#alias pnp:dPNP0303 atkbd - diff --git a/source/a/udev/config/modprobe.d/isdn.conf b/source/a/udev/config/modprobe.d/isdn.conf deleted file mode 100644 index 7f7367536..000000000 --- a/source/a/udev/config/modprobe.d/isdn.conf +++ /dev/null @@ -1,11 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# These two come from the hwdata project -# Bug numbers are Fedora/RH specific - -# ISDN - see bugs 154799, 159068 -blacklist hisax -blacklist hisax_fcpcipnp - diff --git a/source/a/udev/config/modprobe.d/oss.conf b/source/a/udev/config/modprobe.d/oss.conf deleted file mode 100644 index 52ed2f59c..000000000 --- a/source/a/udev/config/modprobe.d/oss.conf +++ /dev/null @@ -1,61 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# OSS (Open Sound System) modules. This is the old and deprecated Linux -# sound system. If you want to use OSS, remove the alsa-driver package -# and cut out (or comment out) this list. With these modules -# blacklisted ALSA will load by default. -blacklist ac97 -blacklist ac97_codec -blacklist aci -blacklist ad1816 -blacklist ad1848 -blacklist ad1889 -blacklist adlib_card -blacklist aedsp16 -blacklist ali5455 -blacklist awe_wave -blacklist btaudio -blacklist cmpci -blacklist cs4232 -blacklist cs4281 -blacklist cs46xx -blacklist emu10k1 -blacklist es1370 -blacklist es1371 -blacklist esssolo1 -blacklist forte -blacklist gus -blacklist i810_audio -blacklist kahlua -blacklist mad16 -blacklist maestro -blacklist maestro3 -blacklist maui -blacklist mpu401 -blacklist msnd -blacklist msnd_classic -blacklist msnd_pinnacle -blacklist nm256_audio -blacklist opl3 -blacklist opl3sa -blacklist opl3sa2 -blacklist pas2 -blacklist pss -blacklist rme96xx -blacklist sb -blacklist sb_lib -blacklist sgalaxy -blacklist sonicvibes -blacklist sound -blacklist sscape -blacklist trident -blacklist trix -blacklist uart401 -blacklist uart6850 -blacklist v_midi -blacklist via82cxxx_audio -blacklist wavefront -blacklist ymfpci - diff --git a/source/a/udev/config/modprobe.d/pcspkr.conf b/source/a/udev/config/modprobe.d/pcspkr.conf deleted file mode 100644 index 66de6b749..000000000 --- a/source/a/udev/config/modprobe.d/pcspkr.conf +++ /dev/null @@ -1,9 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# PC Speaker support: -# This one is loaded by /etc/rc.d/rc.modules. If you don't like -# the beeps and buzz from speaker, edit /etc/rc.d/rc.modules. -blacklist pcspkr - diff --git a/source/a/udev/config/modprobe.d/psmouse.conf b/source/a/udev/config/modprobe.d/psmouse.conf deleted file mode 100644 index cc414141e..000000000 --- a/source/a/udev/config/modprobe.d/psmouse.conf +++ /dev/null @@ -1,10 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# PS/2 mouse support: -# The default options when the psmouse module can cause problems with KVM -# switches. If you experience this, you may want to uncomment the line -# below to use a more basic mouse protocol with the psmouse module: -#options psmouse proto=imps - diff --git a/source/a/udev/config/modprobe.d/scsi-sata-controllers.conf b/source/a/udev/config/modprobe.d/scsi-sata-controllers.conf deleted file mode 100644 index 61470416d..000000000 --- a/source/a/udev/config/modprobe.d/scsi-sata-controllers.conf +++ /dev/null @@ -1,81 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# SCSI and SATA controller modules. Typically these are either -# built into the kernel or loaded with an initrd already. -blacklist 3w-xxxx -blacklist 53c7,8xx -blacklist AM53C974 -blacklist BusLogic -blacklist NCR53c406a -blacklist a100u2w -blacklist advansys -blacklist aha152x -blacklist aha1542 -blacklist aha1740 -blacklist aic79xx -blacklist aic7xxx -blacklist aic7xxx_old -blacklist aic94xx -blacklist ata_piix -blacklist atp870u -blacklist cpqfc -blacklist dc395x -blacklist dmx3191d -blacklist dpt_i2o -blacklist dtc -blacklist eata -blacklist eata_dma -blacklist eata_pio -blacklist fdomain -blacklist g_NCR5380 -blacklist g_NCR5380_mmio -blacklist gdth -blacklist ide-scsi -blacklist imm -blacklist in2000 -blacklist initio -blacklist ipr -blacklist ips -blacklist libata -blacklist megaraid -blacklist ncr53c8xx -blacklist nsp32 -blacklist osst -blacklist pas16 -blacklist pci2000 -blacklist pci2220i -blacklist ppa -blacklist psi240i -blacklist qla1280 -blacklist qla2100 -blacklist qla2200 -blacklist qla2300 -blacklist qla2322 -blacklist qla2xxx -blacklist qla6312 -blacklist qla6322 -blacklist qlogicfas -blacklist qlogicfas408 -blacklist qlogicfc -blacklist qlogicisp -blacklist seagate -blacklist sim710 -blacklist sata_promise -blacklist sata_sil -blacklist sata_sis -blacklist sata_svw -blacklist sata_sx4 -blacklist sata_via -blacklist sata_vsc -blacklist scsi_debug -blacklist scsi_transport_fc -blacklist scsi_transport_spi -blacklist sym53c416 -blacklist sym53c8xx -blacklist sym53c8xx -blacklist t128 -blacklist tmscsim -blacklist u14-34f - diff --git a/source/a/udev/config/modprobe.d/sound-modems.conf b/source/a/udev/config/modprobe.d/sound-modems.conf deleted file mode 100644 index f458346de..000000000 --- a/source/a/udev/config/modprobe.d/sound-modems.conf +++ /dev/null @@ -1,10 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# ALSA modules to support sound modems. These should be loaded manually -# if needed. For most people they just break sound support... -blacklist snd-atiixp-modem -blacklist snd-intel8x0m -blacklist snd-via82xx-modem - diff --git a/source/a/udev/config/modprobe.d/tulip.conf b/source/a/udev/config/modprobe.d/tulip.conf deleted file mode 100644 index 64b6a5ca5..000000000 --- a/source/a/udev/config/modprobe.d/tulip.conf +++ /dev/null @@ -1,11 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# tulip ... de4x5, xircom_tulip_cb, dmfe (...) handle same devices -blacklist de4x5 - -# At least 2.4.3 and later xircom_tulip doesn't have that conflict -# xircom_tulip_cb -blacklist dmfe - diff --git a/source/a/udev/config/modprobe.d/usb-controller.conf b/source/a/udev/config/modprobe.d/usb-controller.conf deleted file mode 100644 index f5e4e5025..000000000 --- a/source/a/udev/config/modprobe.d/usb-controller.conf +++ /dev/null @@ -1,9 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# The EHCI driver should be loaded before the ones for low speed controllers -# or some devices may be confused when they are disconnected and reconnected. -softdep uhci-hcd pre: ehci-hcd -softdep ohci-hcd pre: ehci-hcd - diff --git a/source/a/udev/config/modprobe.d/via-ircc.conf b/source/a/udev/config/modprobe.d/via-ircc.conf deleted file mode 100644 index 3dfa57315..000000000 --- a/source/a/udev/config/modprobe.d/via-ircc.conf +++ /dev/null @@ -1,7 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# The kernel lists this as "experimental", but for now it's "broken" -blacklist via-ircc - diff --git a/source/a/udev/config/modprobe.d/watchdog.conf b/source/a/udev/config/modprobe.d/watchdog.conf deleted file mode 100644 index 66d1f837d..000000000 --- a/source/a/udev/config/modprobe.d/watchdog.conf +++ /dev/null @@ -1,43 +0,0 @@ -############################################################################## -# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that -############################################################################## - -# Blacklist all watchdog modules. Many motherboards hang with them, and -# if you really need a watchdog, you probably know how to load the module -blacklist acquirewdt -blacklist advantechwdt -blacklist alim1535_wdt -blacklist alim7101_wdt -blacklist cpu5wdt -blacklist eurotechwdt -blacklist hpwdt -blacklist i6300esb -blacklist i8xx_tco -blacklist iTCO_vendor_support -blacklist iTCO_wdt -blacklist ib700wdt -blacklist ibmasr -blacklist it8712f_wdt -blacklist machzwd -blacklist mixcomwd -blacklist pc87413_wdt -blacklist pcwd -blacklist pcwd_pci -blacklist pcwd_usb -blacklist sbc60xxwdt -blacklist sbc7240_wdt -blacklist sbc8360 -blacklist sbc_epx_c3 -blacklist sc1200wdt -blacklist sc520_wdt -blacklist scx200_wdt -blacklist smsc37b787_wdt -blacklist softdog -blacklist w83627hf_wdt -blacklist w83697hf_wdt -blacklist w83877f_wdt -blacklist w83977f_wdt -blacklist wafer5823wdt -blacklist wdt -blacklist wdt_pci - diff --git a/source/a/udev/config/rc.d/rc.udev.new b/source/a/udev/config/rc.d/rc.udev.new deleted file mode 100644 index f000e938e..000000000 --- a/source/a/udev/config/rc.d/rc.udev.new +++ /dev/null @@ -1,174 +0,0 @@ -#!/bin/sh -# This is a script to initialize udev, which populates the /dev -# directory with device nodes, scans for devices, loads the -# appropriate kernel modules, and configures the devices. - -PATH="/sbin:/bin" - -. /etc/udev/udev.conf - -# remove trailing slash from udev_root -UDEV_ROOT=$(echo "${udev_root}" |sed 's/\/*$//') - -check_mounted() { - grep -E -q "^[^[:space:]]+ $1 $2" /proc/mounts - return $? -} - -mount_devpts() { - if ! check_mounted $UDEV_ROOT/pts devpts ; then - mkdir $UDEV_ROOT/pts 2> /dev/null - mount -n -o mode=0620,gid=5 -t devpts devpts $UDEV_ROOT/pts - fi -} - -case "$1" in - start) - # Sanity check #1, udev requires that the kernel support devtmpfs: - if ! grep -wq devtmpfs /proc/filesystems ; then - echo "Sorry, but you need devtmpfs support in the kernel to use udev." - echo "Both of these options are needed: CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y" - echo - echo "FATAL: Refusing to run /etc/rc.d/rc.udev." - sleep 10 - exit 1 - fi - - # Sanity check #2, udev requires that the kernel support tmpfs: - if ! grep -wq tmpfs /proc/filesystems ; then - echo "Sorry, but you need tmpfs support in the kernel to use udev." - echo - echo "FATAL: Refusing to run /etc/rc.d/rc.udev." - sleep 10 - exit 1 - fi - - # Sanity check #3, make sure that a 2.6.x kernel is new enough: - if [ "$(uname -r | cut -f 1,2 -d .)" = "2.6" ]; then - if [ "$(uname -r | cut -f 3 -d . | sed 's/[^[:digit:]].*//')" -lt "32" ]; then - echo "Sorry, but you need a 2.6.32+ kernel to use this udev." - echo "Your kernel version is only $(uname -r)." - echo - echo "FATAL: Refusing to run /etc/rc.d/rc.udev." - sleep 10 - exit 1 - fi - fi - - # Sanity check #4, make sure the udev package was not removed. If udevd - # is not there, this will also shut off this script to prevent further - # problems: - if [ ! -x /sbin/udevd ]; then - chmod 0644 /etc/rc.d/rc.udev - echo "No udevd daemon found." - echo "Turning off udev: chmod 644 /etc/rc.d/rc.udev" - echo "FATAL: Refusing to run /etc/rc.d/rc.udev." - sleep 10 - exit 1 - fi - - # Disable hotplug helper since udevd listens to netlink: - if [ -e /proc/sys/kernel/hotplug ]; then - echo "" > /proc/sys/kernel/hotplug - fi - - if grep -qw devtmpfs /proc/filesystems ; then - if ! check_mounted $UDEV_ROOT devtmpfs ; then - # umount shm if needed - check_mounted $UDEV_ROOT/shm tmpfs && umount -l $UDEV_ROOT/shm - - # Umount pts if needed, we will remount it later: - check_mounted $UDEV_ROOT/pts devpts && umount -l $UDEV_ROOT/pts - - # Mount tmpfs on $UDEV_ROOT: - mount -n -t devtmpfs devtmpfs $UDEV_ROOT - fi - else - # Mount tmpfs on $UDEV_ROOT: - if ! check_mounted $UDEV_ROOT tmpfs ; then - # umount shm if needed - check_mounted $UDEV_ROOT/shm tmpfs && umount -l $UDEV_ROOT/shm - - # Umount pts if needed, we will remount it later: - check_mounted $UDEV_ROOT/pts devpts && umount -l $UDEV_ROOT/pts - - # Mount tmpfs on $UDEV_ROOT: - # the -n is because we don't want $UDEV_ROOT umounted when - # someone (rc.[06]) calls umount -a - mount -n -o mode=0755 -t tmpfs tmpfs $UDEV_ROOT - - fi - fi - # Mount devpts - mount_devpts - - if ! /sbin/pidof udevd 1>/dev/null 2>/dev/null; then # start udevd - echo "Starting udevd: /sbin/udevd --daemon" - /sbin/udevd --daemon - # Since udev is just now being started we want to use add events: - echo "Triggering udev events: /sbin/udevadm trigger --action=add" - # Call udevtrigger and udevsettle to do the device configuration: - /sbin/udevadm trigger --type=subsystems --action=add - /sbin/udevadm trigger --type=devices --action=add - else # trigger changes for already running udevd - # If the persistent rules files do not exist, trigger an add event: - if [ ! -r /etc/udev/rules.d/70-persistent-net.rules -o ! -r /etc/udev/rules.d/70-persistent-cd.rules ]; then - # Test that we can actually write to the directory first: - if touch /etc/udev/rules.d/testfile 2> /dev/null ; then - rm -f /etc/udev/rules.d/testfile - # This should add persistent net/cd rules: - echo "Triggering udev to write persistent rules to /etc/udev/rules.d/" - /sbin/udevadm trigger --type=devices --action=add - sleep 3 - # Create the files if they don't exist at this point. - # If a machine does not have a network device or an optical - # device, we don't want to waste time trying to generate - # rules at every boot. - # To force another attempt, delete the file(s). - touch /etc/udev/rules.d/70-persistent-net.rules - touch /etc/udev/rules.d/70-persistent-cd.rules - fi - fi - # Since udevd is running, most of the time we only need change events: - echo "Triggering udev events: /sbin/udevadm trigger --action=change" - /sbin/udevadm trigger --type=subsystems --action=change - /sbin/udevadm trigger --type=devices --action=change - fi - /sbin/udevadm settle --timeout=120 - ;; - stop) - echo "Stopping udevd is STRONGLY discouraged and not supported." - echo "If you are sure you want to do this, use 'force-stop' instead." - ;; - force-stop) - echo "Stopping udevd" - udevadm control --exit - killall udevd 2>/dev/null - ;; - restart) - echo "Restarting udevd is STRONGLY discouraged and not supported." - echo "If you are sure you want to do this, use 'force-restart' instead." - ;; - force-restart) - echo "Restarting udevd" - udevadm control --exit - sleep 3 - udevd --daemon - ;; - reload) - echo "Reloading udev rules" - udevadm control --reload - cp --preserve=all --recursive --update /lib/udev/devices/* $UDEV_ROOT - ;; - force-reload) - echo "Updating all available device nodes in $UDEV_ROOT" - udevadm control --reload - rm -rf $UDEV_ROOT/.udev $UDEV_ROOT/disk - cp --preserve=all --recursive --update /lib/udev/devices/* $UDEV_ROOT - ;; - - *) - echo "Usage: $0 {start|stop|restart|reload|force-reload}" - exit 1 - ;; -esac diff --git a/source/a/udev/config/rules.d/40-slackware.rules b/source/a/udev/config/rules.d/40-slackware.rules deleted file mode 100644 index 9e8c63428..000000000 --- a/source/a/udev/config/rules.d/40-slackware.rules +++ /dev/null @@ -1,22 +0,0 @@ -# /lib/udev/rules.d/40-slackware.rules -# -# Slackware custom udev rules -# Also see the following Slackware-provided custom rules files: -# 65-permissions.rules and 90-network.rules -# -# Any change in this file will be overwritten in upgrades. Put your -# custom rules somewhere else (90-local.rules is a good idea). -# -# See the udev man page to know the parameters you can use in udev -# rules. -# - -# input devices -KERNEL=="mice", SYMLINK+="mouse" - -# Set rfkill device writable by netdev group -KERNEL=="rfkill", GROUP:="netdev", MODE:="0664" - -# Mount fusectl filesystem -KERNEL=="fuse", ACTION=="add", RUN+="/bin/mount -t fusectl fusectl /sys/fs/fuse/connections" - diff --git a/source/a/udev/config/rules.d/59-non-libata-devices.rules b/source/a/udev/config/rules.d/59-non-libata-devices.rules deleted file mode 100644 index 4b1238a43..000000000 --- a/source/a/udev/config/rules.d/59-non-libata-devices.rules +++ /dev/null @@ -1,44 +0,0 @@ -# Support for the deprecated IDE devices has been removed from the -# default set of rules shipped with udev, but some administrators -# might want (or need) the old ata drivers and thus build a custom -# kernel, so we'll carry these on our own for now... - -############################################################################# - -# Old 50-udev-default.rules - -# floppy -KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="floppy" - -# cdrom -SUBSYSTEM=="block", KERNEL=="hd*", SUBSYSTEMS=="ide", ATTRS{media}=="cdrom", GROUP="cdrom" - -############################################################################# - -# Old 60-persistent-storage.rules - -# never access non-cdrom removable ide devices, the drivers are causing event loops on open() -KERNEL=="hd*[!0-9]", ATTR{removable}=="1", SUBSYSTEMS=="ide", ATTRS{media}=="disk|floppy", GOTO="old_persistent_storage_end" -KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GOTO="old_persistent_storage_end" - -# by-id (hardware serial number) -KERNEL=="hd*[!0-9]", IMPORT{program}="ata_id --export $tempnode" -KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_SERIAL}" -KERNEL=="hd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_SERIAL}-part%n" - -LABEL="old_persistent_storage_end" - -############################################################################# - -# Old ide stuff from our custom 65-permissions.rules - -# permissions for IDE floppy devices -KERNEL=="hd*[!0-9]", SUBSYSTEMS=="ide", ATTRS{media}=="floppy", SYMLINK+="floppy floppy-%k" -KERNEL=="hd*[0-9]", ATTRS{media}=="floppy", ATTRS{removable}=="1", SYMLINK+="floppy-%k" - -# put all removable devices in group "plugdev" -KERNEL=="hd*[!0-9]", ATTR{removable}=="1", GROUP="plugdev" -KERNEL=="hd*[0-9]", ATTRS{removable}=="1", GROUP="plugdev" - -############################################################################# - diff --git a/source/a/udev/config/rules.d/65-permissions.rules b/source/a/udev/config/rules.d/65-permissions.rules deleted file mode 100644 index 6f82b0f36..000000000 --- a/source/a/udev/config/rules.d/65-permissions.rules +++ /dev/null @@ -1,41 +0,0 @@ -# Slackware permission rules -# -# These rules are here instead of 40-slackware.rules because -# many of them need to run after the block section in -# 50-udev.default.rules -# -# Remember, in any upgrade, this file will be overwritten. -# Put your custom rules somewhere else (90-local.rules is -# a good idea). -# - -# all disks with group disk -KERNEL!="fd*", SUBSYSTEM=="block", GROUP="disk" - -# put all removable devices in group "plugdev" -KERNEL=="sd*[!0-9]", ATTR{removable}=="1", GROUP="plugdev" -KERNEL=="sd*[0-9]", ATTRS{removable}=="1", GROUP="plugdev" - -# Many hot-pluggable devices (ZIP, Jazz, LS-120, etc...) -# need to be in plugdev, too. -KERNEL=="diskonkey*", GROUP="plugdev" -KERNEL=="jaz*", GROUP="plugdev" -KERNEL=="pocketzip*", GROUP="plugdev" -KERNEL=="zip*", GROUP="plugdev" -KERNEL=="ls120", GROUP="plugdev" -KERNEL=="microdrive*", GROUP="plugdev" - -# CD group and permissions -ENV{ID_CDROM}=="?*", GROUP="cdrom", MODE="0660" -KERNEL=="pktcdvd", GROUP="cdrom", MODE="0660" -KERNEL=="pktcdvd[0-9]*", GROUP="cdrom", MODE="0660" -# permissions for SCSI sg devices -SUBSYSTEMS=="scsi", KERNEL=="s[gt][0-9]*", ATTRS{type}=="5", \ - GROUP="cdrom", MODE="0660" - -# Make DRI video devices usable by anyone in group "video": -KERNEL=="card[0-9]*",GROUP:="video" - -# Make the real time clock readable by all, and writable by root: -KERNEL=="rtc|rtc0", MODE="0644" - diff --git a/source/a/udev/config/udev.conf b/source/a/udev/config/udev.conf deleted file mode 100644 index c8506e4b0..000000000 --- a/source/a/udev/config/udev.conf +++ /dev/null @@ -1,14 +0,0 @@ -# udev.conf -# The main config file for udev -# -# This file can be used to override some of udev's default values for where it -# looks for files, and where it places device nodes. - -# udev_root - where in the filesystem to place the device nodes -udev_root="/dev/" - -# udev_log - The initial syslog(3) priority: "err", "info", "debug" or -# its numerical equivalent. For runtime debugging, the daemons -# internal state can be changed with: udevadm control log_priority=<value> -udev_log="err" - diff --git a/source/a/udev/doinst.sh b/source/a/udev/doinst.sh deleted file mode 100644 index 2912e5c86..000000000 --- a/source/a/udev/doinst.sh +++ /dev/null @@ -1,36 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -# Keep same perms on rc.udev.new: -if [ -e etc/rc.d/rc.udev ]; then - cp -a etc/rc.d/rc.udev etc/rc.d/rc.udev.new.incoming - cat etc/rc.d/rc.udev.new > etc/rc.d/rc.udev.new.incoming - mv etc/rc.d/rc.udev.new.incoming etc/rc.d/rc.udev.new -fi - -# There's no reason for a user to edit rc.udev, so overwrite it: -if [ -r etc/rc.d/rc.udev.new ]; then - mv etc/rc.d/rc.udev.new etc/rc.d/rc.udev -fi - -# This should catch *all* files in /etc/modprobe.d/ and move them over to -# have .conf extensions -for modfile in $(ls etc/modprobe.d/ | grep -v "\.\(conf\|bak\|orig\|new\)"); do - if [ "$modfile" = README ]; then - true # do nothing - elif [ -e etc/modprobe.d/$modfile -a ! -e etc/modprobe.d/$modfile.conf ]; then - mv etc/modprobe.d/$modfile etc/modprobe.d/$modfile.conf - elif [ -e etc/modprobe.d/$modfile -a -e etc/modprobe.d/$modfile.conf ]; then - mv etc/modprobe.d/$modfile etc/modprobe.d/$modfile.bak - fi -done - diff --git a/source/a/udev/fix-42-usb-hid-pm.rules.diff b/source/a/udev/fix-42-usb-hid-pm.rules.diff deleted file mode 100644 index 2a1d529f7..000000000 --- a/source/a/udev/fix-42-usb-hid-pm.rules.diff +++ /dev/null @@ -1,18 +0,0 @@ -diff -u -r --new-file udev-182.orig/rules/42-usb-hid-pm.rules udev-182/rules/42-usb-hid-pm.rules ---- udev-182.orig/rules/42-usb-hid-pm.rules 2012-03-12 16:40:40.569534100 -0500 -+++ udev-182/rules/42-usb-hid-pm.rules 2012-09-10 13:36:44.171054934 -0500 -@@ -43,7 +43,13 @@ - ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="04b3", ATTR{idProduct}=="4012", TEST=="power/control", ATTR{power/control}="auto" - - # Raritan Computer, Inc KVM. --ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="14dd", ATTR{idProduct}="0002", TEST=="power/control", ATTR{power/control}="auto" -+ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="14dd", ATTR{idProduct}=="0002", TEST=="power/control", ATTR{power/control}="auto" - - # USB HID devices that are internal to the machine should also be safe to autosuspend -+ -+ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="removable", GOTO="usb_hid_pm_end" -+ACTION=="add", SUBSYSTEM=="usb", SUBSYSTEMS=="usb", ATTRS{removable}=="unknown", GOTO="usb_hid_pm_end" -+ - ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", ATTRS{removable}=="fixed", TEST=="../power/control", ATTR{../power/control}="auto" -+ -+LABEL="usb_hid_pm_end" diff --git a/source/a/udev/rule_generator.diff b/source/a/udev/rule_generator.diff deleted file mode 100644 index ff2acf808..000000000 --- a/source/a/udev/rule_generator.diff +++ /dev/null @@ -1,129 +0,0 @@ ---- ./src/rule_generator/write_cd_rules.orig 2012-01-28 18:15:46.958827013 -0600 -+++ ./src/rule_generator/write_cd_rules 2013-01-17 22:58:27.294859303 -0600 -@@ -3,7 +3,8 @@ - # This script is run if an optical drive lacks a rule for persistent naming. - # - # It adds symlinks for optical drives based on the device class determined --# by cdrom_id and used ID_PATH to identify the device. -+# by cdrom_id and uses ID_SERIAL or ID_MODEL and ID_REVISION to -+# identify the device. - - # (C) 2006 Marco d'Itri <md@Linux.IT> - # -@@ -66,37 +67,16 @@ - exit 1 - fi - --if [ "$1" ]; then -- METHOD="$1" -+# ID_PATH is gone from the ata subsystem used in recent kernels, so -+# always use the by-id method: -+if [ "$ID_SERIAL" ]; then -+ RULE="ENV{ID_SERIAL}==\"$ID_SERIAL\"" -+elif [ "$ID_MODEL" -a "$ID_REVISION" ]; then -+ RULE="ENV{ID_MODEL}==\"$ID_MODEL\", ENV{ID_REVISION}==\"$ID_REVISION\"" - else -- METHOD='by-path' --fi -- --case "$METHOD" in -- by-path) -- if [ -z "$ID_PATH" ]; then -- echo "$DEVPATH not supported by path_id. by-id may work." >&2 -- exit 1 -- fi -- RULE="ENV{ID_PATH}==\"$ID_PATH\"" -- ;; -- -- by-id) -- if [ "$ID_SERIAL" ]; then -- RULE="ENV{ID_SERIAL}==\"$ID_SERIAL\"" -- elif [ "$ID_MODEL" -a "$ID_REVISION" ]; then -- RULE="ENV{ID_MODEL}==\"$ID_MODEL\", ENV{ID_REVISION}==\"$ID_REVISION\"" -- else -- echo "$DEVPATH not supported by ata_id. by-path may work." >&2 -- exit 1 -- fi -- ;; -- -- *) -- echo "Invalid argument (must be either by-path or by-id)." >&2 -+ echo "$DEVPATH not supported by ata_id. Unable to generate persistent rules." >&2 - exit 1 -- ;; --esac -+fi - - # Prevent concurrent processes from modifying the file at the same time. - lock_rules_file -@@ -105,18 +85,62 @@ - choose_rules_file - - link_num=$(find_next_available 'cdrom[0-9]*') -+[ "$link_num" = "" ] && link_num=0 - - match="SUBSYSTEM==\"block\", ENV{ID_CDROM}==\"?*\", $RULE" - --comment="$ID_MODEL ($ID_PATH)" -- -+comment="$ID_MODEL ($ID_SERIAL)" - write_rule "$match" "cdrom$link_num" "$comment" --[ "$ID_CDROM_CD_R" -o "$ID_CDROM_CD_RW" ] && \ -- write_rule "$match" "cdrw$link_num" --[ "$ID_CDROM_DVD" ] && \ -- write_rule "$match" "dvd$link_num" --[ "$ID_CDROM_DVD_R" -o "$ID_CDROM_DVD_RW" -o "$ID_CDROM_DVD_RAM" ] && \ -- write_rule "$match" "dvdrw$link_num" -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "cdrom" -+ fi -+ -+ if [ "$ID_CDROM_CD_R" ]; then -+ write_rule "$match" "cdr$link_num" -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "cdr" -+ fi -+ -+ write_rule "$match" "cdwriter$link_num" -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "cdwriter" -+ fi -+ -+ if [ "$ID_CDROM_CD_RW" ]; then -+ write_rule "$match" "cdrw$link_num" -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "cdrw" -+ fi -+ fi -+ -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "writer" -+ fi -+ fi -+ -+ if [ "$ID_CDROM_DVD" ]; then -+ write_rule "$match" "dvd$link_num" -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "dvd" -+ fi -+ -+ if [ "$ID_CDROM_DVD_R" -o "$ID_CDROM_DVD_RW" -o "$ID_CDROM_DVD_RAM" ]; then -+ write_rule "$match" "dvdr$link_num" -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "dvdr" -+ fi -+ -+ write_rule "$match" "dvdrw$link_num" -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "dvdrw" -+ fi -+ -+ write_rule "$match" "dvdwriter$link_num" -+ if [ "$link_num" = "0" ]; then -+ write_rule "$match" "dvdwriter" -+ fi -+ fi -+ fi - echo >> $RULES_FILE - - unlock_rules_file diff --git a/source/a/udev/slack-desc b/source/a/udev/slack-desc deleted file mode 100644 index c411756c8..000000000 --- a/source/a/udev/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler-------------------------------------------------------| -udev: udev (dynamic device directory system) -udev: -udev: udev provides a dynamic device directory containing only the files -udev: for the devices which are actually present. It creates or removes -udev: device node files usually located in the /dev directory. -udev: -udev: udev requires a 2.6 or newer kernel. -udev: -udev: Kay Sievers is the udev maintainer. -udev: -udev: diff --git a/source/a/udev/udev-ata_id-fixup-all-8-not-only-6-bytes-of-the-fw_rev.patch b/source/a/udev/udev-ata_id-fixup-all-8-not-only-6-bytes-of-the-fw_rev.patch deleted file mode 100644 index bfa0c76ae..000000000 --- a/source/a/udev/udev-ata_id-fixup-all-8-not-only-6-bytes-of-the-fw_rev.patch +++ /dev/null @@ -1,27 +0,0 @@ -Adapted from the following patch (path and actual line number changes): - -From daa9cf546ce7265645ced9592dd54c6b2fc04302 Mon Sep 17 00:00:00 2001 -From: Kay Sievers <kay@vrfy.org> -Date: Thu, 5 Jul 2012 16:53:08 +0200 -Subject: [PATCH] udev: ata_id - fixup all 8 not only 6 bytes of the fw_rev - string - -The last two digits are in the wrong order: - $ hdparm -I /dev/sda | grep Revision - 4PC10362 - - $ /lib/udev/ata_id -x /dev/sda | grep REVISION - 4PC10326 - -diff -Nur udev-182.orig/src/ata_id/ata_id.c udev-182/src/ata_id/ata_id.c ---- udev-182.orig/src/ata_id/ata_id.c 2012-03-13 19:00:51.220734316 -0500 -+++ udev-182/src/ata_id/ata_id.c 2012-07-14 19:48:34.224478831 -0500 -@@ -511,7 +511,7 @@ - * use and copy it into the hd_driveid struct for convenience - */ - disk_identify_fixup_string (identify, 10, 20); /* serial */ -- disk_identify_fixup_string (identify, 23, 6); /* fwrev */ -+ disk_identify_fixup_string (identify, 23, 8); /* fwrev */ - disk_identify_fixup_string (identify, 27, 40); /* model */ - disk_identify_fixup_uint16 (identify, 0); /* configuration */ - disk_identify_fixup_uint16 (identify, 75); /* queue depth */ diff --git a/source/a/udev/udev.SlackBuild b/source/a/udev/udev.SlackBuild deleted file mode 100755 index d39da2629..000000000 --- a/source/a/udev/udev.SlackBuild +++ /dev/null @@ -1,169 +0,0 @@ -#!/bin/sh - -# Copyright 2006, 2008, 2009, 2010, 2011, 2012, 2013 Patrick J. Volkerding, Sebeka, MN, USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -VERSION=${VERSION:-$(echo udev-*.tar.* | cut -d - -f 2 | rev | cut -f 3- -d . | rev)} -BUILD=${BUILD:-7} - -NUMJOBS=${NUMJOBS:-" -j7 "} - -# Automatically determine the architecture we're building on: -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) export ARCH=i486 ;; - arm*) export ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$( uname -m ) ;; - esac -fi - -if [ "$ARCH" = "x86_64" ]; then - LIBDIRSUFFIX="64" -else - LIBDIRSUFFIX="" -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp} -PKG=$TMP/package-udev - -rm -rf $PKG -mkdir -p $TMP $PKG/lib/udev -cd $TMP -rm -rf udev-$VERSION -tar xvf $CWD/udev-$VERSION.tar.xz || exit 1 -cd udev-$VERSION || exit 1 -chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# 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 --verbose || exit 1 - -# Fixup the rule generator for our use -zcat $CWD/rule_generator.diff.gz | patch -p1 --verbose || exit 1 - -# Patch 60-cdrom_id.rules to create a full set of symlinks. -# This is needed for a hotplugged optical device since the generated -# rules will not be used until the second time the device is plugged. -zcat $CWD/60-cdrom_id.rules.diff.gz | patch -p1 --verbose || 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 - -LDFLAGS="$LDFLAGS -lrt" \ -./configure \ - --prefix=/usr \ - --with-rootprefix=/ \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --with-rootlibdir=/lib${LIBDIRSUFFIX} \ - --with-firmware-path=/lib/firmware/updates:/lib/firmware \ - --sysconfdir=/etc \ - --bindir=/sbin \ - --sbindir=/sbin \ - --libexecdir=/lib \ - --enable-introspection \ - --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 -make install DESTDIR=$PKG || exit 1 - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -# scsi_id is needed by multipath -( cd $PKG/sbin ; ln -s ../lib/udev/scsi_id scsi_id ) - -# Put udevd back in /sbin -mv $PKG/lib/udev/udevd $PKG/sbin -ln -s /sbin/udevd $PKG/lib/udev/udevd - -mkdir -p \ - $PKG/run \ - $PKG/{etc,lib}/modprobe.d \ - $PKG/etc/rc.d \ - $PKG/etc/udev/rules.d \ - $PKG/lib/firmware - -# Yes, these will clobber existing config files. -cp -a $CWD/config/udev.conf $PKG/etc/udev/udev.conf - -# Copy Slackware custom rules -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/*.conf $PKG/lib/modprobe.d/ -cp -a $CWD/config/modprobe.d/README $PKG/etc/modprobe.d/ - -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 - -# Add extra device nodes to the package that udev doesn't make: -tar xvf $CWD/udev-fixed-devices.tar.gz -C $PKG - -chown -R root:root $PKG/lib/udev -chmod 0755 $PKG/lib/udev/* - -mkdir -p $PKG/usr/doc/udev-$VERSION -cp -a \ - COPYING* README* TODO \ - $PKG/usr/doc/udev-$VERSION - -# Don't package the API docs: -rm -rf $PKG/usr/share/gtk-doc ; rmdir $PKG/usr/share 2>/dev/null - -# Compress and fix manpage symlinks: -if [ -d $PKG/usr/man ]; then - ( cd $PKG/usr/man - for manpagedir in $(find . -type d -name "man*") ; do - ( cd $manpagedir - for eachpage in $( find . -type l -maxdepth 1) ; do - ln -s $( readlink $eachpage ).gz $eachpage.gz - rm $eachpage - done - gzip -9 *.? - ) - done - ) -fi - -mkdir -p $PKG/install -zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c y $TMP/udev-$VERSION-$ARCH-$BUILD.txz |