From 70cb516df0a4924ede59e9bb1a70512f7b9e84ce Mon Sep 17 00:00:00 2001 From: Smita Ghosh Date: Thu, 21 Jun 2012 08:33:53 -0700 Subject: [PATCH 1/1] do not install unnecessary udev rules --- ...alling-do-not-install-unnecessary-udev-ru.patch | 33 ++++++++++++++++ Makefile.am | 41 ++++++------------- 2 files changed, 46 insertions(+), 28 deletions(-) create mode 100644 0001-remove-installing-do-not-install-unnecessary-udev-ru.patch diff --git a/0001-remove-installing-do-not-install-unnecessary-udev-ru.patch b/0001-remove-installing-do-not-install-unnecessary-udev-ru.patch new file mode 100644 index 0000000..e656bd1 --- /dev/null +++ b/0001-remove-installing-do-not-install-unnecessary-udev-ru.patch @@ -0,0 +1,33 @@ +From 08c21ba4006f5d22591e4d979be75afa36b39876 Mon Sep 17 00:00:00 2001 +From: Smita Ghosh +Date: Thu, 21 Jun 2012 08:33:53 -0700 +Subject: [PATCH 1/1] remove installing do not install unnecessary udev rules + +--- + Makefile.am | 10 +--------- + 1 files changed, 1 insertions(+), 9 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index 4dbdfd9..de850d5 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -106,15 +106,7 @@ EXTRA_DIST += \ + rules/misc + + udevrulesdir = $(libexecdir)/rules.d +-dist_udevrules_DATA = \ +- rules/rules.d/50-udev-default.rules \ +- rules/rules.d/60-persistent-storage.rules \ +- rules/rules.d/60-persistent-storage-tape.rules \ +- rules/rules.d/60-persistent-serial.rules \ +- rules/rules.d/60-persistent-input.rules \ +- rules/rules.d/60-persistent-alsa.rules \ +- rules/rules.d/80-drivers.rules \ +- rules/rules.d/95-udev-late.rules ++dist_udevrules_DATA = + + udevconfdir = $(sysconfdir)/udev + dist_udevconf_DATA = udev.conf +-- +1.7.8.3 + diff --git a/Makefile.am b/Makefile.am index 4dbdfd9..2ad369e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -106,15 +106,7 @@ EXTRA_DIST += \ rules/misc udevrulesdir = $(libexecdir)/rules.d -dist_udevrules_DATA = \ - rules/rules.d/50-udev-default.rules \ - rules/rules.d/60-persistent-storage.rules \ - rules/rules.d/60-persistent-storage-tape.rules \ - rules/rules.d/60-persistent-serial.rules \ - rules/rules.d/60-persistent-input.rules \ - rules/rules.d/60-persistent-alsa.rules \ - rules/rules.d/80-drivers.rules \ - rules/rules.d/95-udev-late.rules +dist_udevrules_DATA = udevconfdir = $(sysconfdir)/udev dist_udevconf_DATA = udev.conf @@ -209,9 +201,7 @@ dist_libexec_SCRIPTS = \ udevhomedir = $(libexecdir) dist_udevhome_DATA = extras/rule_generator/rule_generator.functions -dist_udevrules_DATA += \ - extras/rule_generator/75-cd-aliases-generator.rules \ - extras/rule_generator/75-persistent-net-generator.rules +dist_udevrules_DATA += # ------------------------------------------------------------------------------ # firmware - firmware loading @@ -235,8 +225,7 @@ libexec_PROGRAMS += extras/ata_id/ata_id extras_cdrom_id_cdrom_id_SOURCES = extras/cdrom_id/cdrom_id.c extras_cdrom_id_cdrom_id_LDADD = libudev/libudev-private.la libexec_PROGRAMS += extras/cdrom_id/cdrom_id -dist_udevrules_DATA += extras/cdrom_id/60-cdrom_id.rules - +dist_udevrules_DATA += # ------------------------------------------------------------------------------ # collect - trigger action when a collection of devices appeared # ------------------------------------------------------------------------------ @@ -250,7 +239,7 @@ libexec_PROGRAMS += extras/collect/collect extras_edd_id_edd_id_SOURCES = extras/edd_id/edd_id.c extras_edd_id_edd_id_LDADD = libudev/libudev-private.la libexec_PROGRAMS += extras/edd_id/edd_id -dist_udevrules_DATA += extras/edd_id/61-persistent-storage-edd.rules +dist_udevrules_DATA += # ------------------------------------------------------------------------------ # create_floppy_devices - historical floppy kernel device nodes (/dev/fd0h1440, ...) @@ -258,7 +247,7 @@ dist_udevrules_DATA += extras/edd_id/61-persistent-storage-edd.rules extras_floppy_create_floppy_devices_SOURCES = extras/floppy/create_floppy_devices.c extras_floppy_create_floppy_devices_LDADD = libudev/libudev-private.la libexec_PROGRAMS += extras/floppy/create_floppy_devices -dist_udevrules_DATA += extras/floppy/60-floppy.rules +dist_udevrules_DATA += # ------------------------------------------------------------------------------ # input_id - import input device class @@ -280,7 +269,7 @@ libexec_PROGRAMS += extras/path_id/path_id extras_fstab_import_fstab_import_SOURCES = extras/fstab_import/fstab_import.c extras_fstab_import_fstab_import_LDADD = libudev/libudev-private.la libexec_PROGRAMS += extras/fstab_import/fstab_import -dist_udevrules_DATA += extras/fstab_import/79-fstab_import.rules +dist_udevrules_DATA += # ------------------------------------------------------------------------------ # scsi_id - SCSI inquiry to get various serial numbers @@ -307,16 +296,13 @@ libexec_PROGRAMS += extras/usb_id/usb_id extras_v4l_id_v4l_id_SOURCES = extras/v4l_id/v4l_id.c extras_v4l_id_v4l_id_LDADD = libudev/libudev-private.la libexec_PROGRAMS += extras/v4l_id/v4l_id -dist_udevrules_DATA += extras/v4l_id/60-persistent-v4l.rules +dist_udevrules_DATA += if ENABLE_EXTRAS # ------------------------------------------------------------------------------ # conditional extras (need glib, libusb, libacl, ...) # ------------------------------------------------------------------------------ -dist_udevrules_DATA += \ - rules/rules.d/75-net-description.rules \ - rules/rules.d/75-tty-description.rules \ - rules/rules.d/78-sound-card.rules +dist_udevrules_DATA += # ------------------------------------------------------------------------------ # GUdev - libudev gobject interface @@ -455,7 +441,7 @@ UNINSTALL_EXEC_HOOKS += libgudev-uninstall-move-hook extras_hid2hci_hid2hci_SOURCES = extras/hid2hci/hid2hci.c extras_hid2hci_hid2hci_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB_CFLAGS) extras_hid2hci_hid2hci_LDADD = libudev/libudev-private.la $(LIBUSB_LIBS) -dist_udevrules_DATA += extras/hid2hci/70-hid2hci.rules +dist_udevrules_DATA += libexec_PROGRAMS += extras/hid2hci/hid2hci # ------------------------------------------------------------------------------ @@ -501,8 +487,7 @@ extras_mobile_action_modeswitch_mobile_action_modeswitch_SOURCES =\ extras_mobile_action_modeswitch_mobile_action_modeswitch_CPPFLAGS = $(AM_CPPFLAGS) $(LIBUSB_CFLAGS) extras_mobile_action_modeswitch_mobile_action_modeswitch_LDADD = libudev/libudev-private.la $(LIBUSB_LIBS) -dist_udevrules_DATA += \ - extras/mobile-action-modeswitch/61-mobile-action.rules +dist_udevrules_DATA += libexec_PROGRAMS += extras/mobile-action-modeswitch/mobile-action-modeswitch @@ -516,7 +501,7 @@ extras_mtd_probe_mtd_probe_SOURCES = \ extras_mtd_probe_mtd_probe_CPPFLAGS = $(AM_CPPFLAGS) -dist_udevrules_DATA += extras/mtd_probe/75-probe_mtd.rules +dist_udevrules_DATA += libexec_PROGRAMS += extras/mtd_probe/mtd_probe @@ -532,8 +517,8 @@ nodist_extras_keymap_keymap_SOURCES = \ BUILT_SOURCES += $(nodist_extras_keymap_keymap_SOURCES) EXTRA_DIST += extras/keymap/check-keymaps.sh -dist_udevrules_DATA += extras/keymap/95-keymap.rules -dist_udevrules_DATA += extras/keymap/95-keyboard-force-release.rules +dist_udevrules_DATA += +dist_udevrules_DATA += libexec_PROGRAMS += extras/keymap/keymap dist_libexec_SCRIPTS += extras/keymap/findkeyboards dist_libexec_SCRIPTS += extras/keymap/keyboard-force-release.sh -- 1.7.8.3