debian/0000775000000000000000000000000012321517557007200 5ustar debian/module-init-tools.postrm0000664000000000000000000000043412100160055014011 0ustar #!/bin/sh -e dpkg-maintscript-helper rm_conffile /etc/init.d/module-init-tools 3.16-1 -- "$@" dpkg-maintscript-helper rm_conffile /etc/modprobe.d/aliases.conf 3.16-1 -- "$@" dpkg-maintscript-helper rm_conffile /etc/init/module-init-tools.conf 9-2ubuntu5 -- "$@" #DEBHELPER# exit 0 debian/kmod.postinst0000664000000000000000000000070312077516252011736 0ustar #!/bin/sh -e create_etc_modules() { [ -e /etc/modules ] && return 0 cat < /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. # Parameters can be specified after the module name. END chmod 644 /etc/modules } case "$1" in configure) create_etc_modules esac #DEBHELPER# exit 0 debian/depmod.d/0000775000000000000000000000000012077516405010671 5ustar debian/depmod.d/ubuntu.conf0000664000000000000000000000003712077516252013062 0ustar search updates ubuntu built-in debian/modprobe.d/0000775000000000000000000000000012105032451011212 5ustar debian/modprobe.d/mlx4.conf0000664000000000000000000000015012105032451012741 0ustar # mlx4_core gets automatically loaded, load mlx4_en also (LP: #1115710) softdep mlx4_core post: mlx4_en debian/modprobe.d/blacklist-watchdog.conf0000664000000000000000000000206512077516252015650 0ustar # Watchdog drivers should not be loaded automatically, but only if a # watchdog daemon is installed. blacklist acquirewdt blacklist advantechwdt blacklist alim1535_wdt blacklist alim7101_wdt blacklist booke_wdt blacklist cpu5wdt blacklist eurotechwdt blacklist i6300esb blacklist i8xx_tco blacklist ib700wdt blacklist ibmasr blacklist indydog blacklist iTCO_wdt blacklist it8712f_wdt blacklist it87_wdt blacklist ixp2000_wdt blacklist ixp4xx_wdt blacklist machzwd blacklist mixcomwd blacklist mpc8xx_wdt blacklist mpcore_wdt blacklist mv64x60_wdt blacklist pc87413_wdt blacklist pcwd blacklist pcwd_pci blacklist pcwd_usb blacklist s3c2410_wdt blacklist sa1100_wdt blacklist sbc60xxwdt blacklist sbc7240_wdt blacklist sb8360 blacklist sc1200wdt blacklist sc520_wdt blacklist sch311_wdt blacklist scx200_wdt blacklist shwdt blacklist smsc37b787_wdt blacklist softdog blacklist twl4030_wdt blacklist w83627hf_wdt blacklist w83697hf_wdt blacklist w83697ug_wdt blacklist w83877f_wdt blacklist w83977f_wdt blacklist wafer5823wdt blacklist wdt blacklist wdt_pci blacklist wm8350_wdt debian/modprobe.d/blacklist-framebuffer.conf0000664000000000000000000000124512077516252016333 0ustar # Framebuffer drivers are generally buggy and poorly-supported, and cause # suspend failures, kernel panics and general mayhem. For this reason we # never load them automatically. blacklist aty128fb blacklist atyfb blacklist radeonfb blacklist cirrusfb blacklist cyber2000fb blacklist cyblafb blacklist gx1fb blacklist hgafb blacklist i810fb blacklist intelfb blacklist kyrofb blacklist lxfb blacklist matroxfb_base blacklist neofb blacklist nvidiafb blacklist pm2fb blacklist rivafb blacklist s1d13xxxfb blacklist savagefb blacklist sisfb blacklist sstfb blacklist tdfxfb blacklist tridentfb #blacklist vesafb blacklist vfb blacklist viafb blacklist vt8623fb blacklist udlfb debian/modprobe.d/iwlwifi.conf0000664000000000000000000000053312077516252013552 0ustar # /etc/modprobe.d/iwlwifi.conf # iwlwifi will dyamically load either iwldvm or iwlmvm depending on the # microcode file installed on the system. When removing iwlwifi, first # remove the iwl?vm module and then iwlwifi. remove iwlwifi \ (/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \ && /sbin/modprobe -r mac80211 debian/modprobe.d/blacklist.conf0000664000000000000000000000310312077516252014044 0ustar # This file lists those modules which we don't want to be loaded by # alias expansion, usually so some other driver will be loaded for the # device instead. # evbug is a debug tool that should be loaded explicitly blacklist evbug # these drivers are very simple, the HID drivers are usually preferred blacklist usbmouse blacklist usbkbd # replaced by e100 blacklist eepro100 # replaced by tulip blacklist de4x5 # causes no end of confusion by creating unexpected network interfaces blacklist eth1394 # snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much # hardware on its own (Ubuntu bug #2011, #6810) blacklist snd_intel8x0m # Conflicts with dvb driver (which is better for handling this device) blacklist snd_aw2 # causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306) blacklist i2c_i801 # replaced by p54pci blacklist prism54 # replaced by b43 and ssb. blacklist bcm43xx # most apps now use garmin usb driver directly (Ubuntu: #114565) blacklist garmin_gps # replaced by asus-laptop (Ubuntu: #184721) blacklist asus_acpi # low-quality, just noise when being used for sound playback, causes # hangs at desktop session start (Ubuntu: #246969) blacklist snd_pcsp # ugly and loud noise, getting on everyone's nerves; this should be done by a # nice pulseaudio bing (Ubuntu: #77010) blacklist pcspkr # EDAC driver for amd76x clashes with the agp driver preventing the aperture # from being initialised (Ubuntu: #297750). Blacklist so that the driver # continues to build and is installable for the few cases where its # really needed. blacklist amd76x_edac debian/modprobe.d/blacklist-ath_pci.conf0000664000000000000000000000050512077516252015454 0ustar # For some Atheros 5K RF MACs, the madwifi driver loads buts fails to # correctly initialize the hardware, leaving it in a state from # which ath5k cannot recover. To prevent this condition, stop # madwifi from loading by default. Use Jockey to select one driver # or the other. (Ubuntu: #315056, #323830) blacklist ath_pci debian/modprobe.d/blacklist-rare-network.conf0000664000000000000000000000110712077516252016464 0ustar # Many less commonly used network protocols have recently had various # security flaws discovered. In an effort to reduce the scope of future # vulnerability exploitations, they are being blacklisted here so that # unprivileged users cannot use them by default. System owners can still # either modify this file, or specifically modprobe any needed protocols. # ax25 alias net-pf-3 off # netrom alias net-pf-6 off # x25 alias net-pf-9 off # rose alias net-pf-11 off # decnet alias net-pf-12 off # econet alias net-pf-19 off # rds alias net-pf-21 off # af_802154 alias net-pf-36 off debian/modprobe.d/blacklist-firewire.conf0000664000000000000000000000032212077516252015656 0ustar # Select the legacy firewire stack over the new CONFIG_FIREWIRE one. blacklist ohci1394 blacklist sbp2 blacklist dv1394 blacklist raw1394 blacklist video1394 #blacklist firewire-ohci #blacklist firewire-sbp2 debian/kmod.init0000664000000000000000000000370612077516252011024 0ustar #!/bin/sh -e ### BEGIN INIT INFO # Provides: kmod # Required-Start: # Required-Stop: # Should-Start: checkroot # Should-Stop: # Default-Start: S # Default-Stop: # Short-Description: Load the modules listed in /etc/modules. # Description: Load the modules listed in /etc/modules. ### END INIT INFO # Silently exit if the kernel does not support modules. [ -f /proc/modules ] || exit 0 [ -x /sbin/modprobe ] || exit 0 [ -f /etc/default/rcS ] && . /etc/default/rcS . /lib/lsb/init-functions PATH='/sbin:/bin' case "$1" in start) ;; stop|restart|reload|force-reload) log_warning_msg "Action '$1' is meaningless for this init script" exit 0 ;; *) log_success_msg "Usage: $0 start" exit 1 esac load_module() { local module args module="$1" args="$2" if [ "$VERBOSE" != no ]; then log_action_msg "Loading kernel module $module" modprobe $module $args || true else modprobe $module $args > /dev/null 2>&1 || true fi } modules_files() { local modules_load_dirs='/etc/modules-load.d /run/modules-load.d /lib/modules-load.d' local processed=' ' local add_etc_modules=true for dir in $modules_load_dirs; do [ -d $dir ] || continue for file in $(run-parts --list --regex='\.conf$' $dir 2> /dev/null || true); do local base=${file##*/} if echo -n "$processed" | grep -qF " $base "; then continue fi if [ "$add_etc_modules" -a -L $file \ -a "$(readlink -f $file)" = /etc/modules ]; then add_etc_modules= fi processed="$processed$base " echo $file done done if [ "$add_etc_modules" ]; then echo /etc/modules fi } if [ "$VERBOSE" = no ]; then log_action_begin_msg 'Loading kernel modules' fi files=$(modules_files) if [ "$files" ] ; then grep -h '^[^#]' $files | while read module args; do [ "$module" ] || continue load_module "$module" "$args" done fi if [ "$VERBOSE" = no ]; then log_action_end_msg 0 fi debian/module-init-tools.postinst0000664000000000000000000000203012100160043014337 0ustar #!/bin/sh -e replace_mit_part2() { dpkg-maintscript-helper rm_conffile /etc/init.d/module-init-tools 3.16-1 -- "$@" dpkg-maintscript-helper rm_conffile /etc/modprobe.d/aliases.conf 3.16-1 -- "$@" dpkg-maintscript-helper rm_conffile /etc/init/module-init-tools.conf 9-2ubuntu5 -- "$@" if [ -d /usr/share/doc/module-init-tools -a \ ! -L /usr/share/doc/module-init-tools ]; then rmdir /usr/share/doc/module-init-tools ln -s /usr/share/doc/libkmod2 /usr/share/doc/module-init-tools fi if [ -e /etc/modprobe.d/aliases.conf.dpkg-bak ]; then { cat < /etc/modprobe.d/aliases-m-i-t.conf rm /etc/modprobe.d/aliases.conf.dpkg-bak fi } case "$1" in configure) replace_mit_part2 "$@" esac #DEBHELPER# exit 0 debian/module-init-tools.dirs0000664000000000000000000000002112077516252013437 0ustar /etc/modprobe.d/ debian/copyright0000664000000000000000000000101312077516252011125 0ustar This is the Debian GNU/Linux prepackaged version of kmod. It has been packaged by Marco d'Itri . Original sources were obtained from: http://www.kernel.org/pub/linux/utils/kernel/kmod/ Copyright (C) 2011 ProFUSION embedded systems. The kmod tools are licensed under the GNU GPL version 2 or newer. libkmod is licensed under the GNU LGPL version 2.1 or newer. On Debian systems the complete text of the licenses can be found in /usr/share/common-licenses/GPL-2 and /usr/share/common-licenses/LGPL-2.1 . debian/kmod.postrm0000664000000000000000000000013012077516252011371 0ustar #!/bin/sh -e case "$1" in purge) rm -f /etc/modules ;; esac #DEBHELPER# exit 0 debian/libkmod2.symbols0000664000000000000000000000546012077516252012321 0ustar libkmod.so.2 libkmod2 #MINVER# LIBKMOD_5@LIBKMOD_5 5~ LIBKMOD_6@LIBKMOD_6 6~ kmod_config_get_aliases@LIBKMOD_5 5~ kmod_config_get_blacklists@LIBKMOD_5 5~ kmod_config_get_install_commands@LIBKMOD_5 5~ kmod_config_get_options@LIBKMOD_5 5~ kmod_config_get_remove_commands@LIBKMOD_5 5~ kmod_config_get_softdeps@LIBKMOD_5 5~ kmod_config_iter_free_iter@LIBKMOD_5 5~ kmod_config_iter_get_key@LIBKMOD_5 5~ kmod_config_iter_get_value@LIBKMOD_5 5~ kmod_config_iter_next@LIBKMOD_5 5~ kmod_dump_index@LIBKMOD_5 5~ kmod_get_log_priority@LIBKMOD_5 5~ kmod_get_userdata@LIBKMOD_5 5~ kmod_list_last@LIBKMOD_5 5~ kmod_list_next@LIBKMOD_5 5~ kmod_list_prev@LIBKMOD_5 5~ kmod_load_resources@LIBKMOD_5 5~ kmod_module_apply_filter@LIBKMOD_6 6~ kmod_module_dependency_symbol_get_bind@LIBKMOD_5 5~ kmod_module_dependency_symbol_get_crc@LIBKMOD_5 5~ kmod_module_dependency_symbol_get_symbol@LIBKMOD_5 5~ kmod_module_dependency_symbols_free_list@LIBKMOD_5 5~ kmod_module_get_dependencies@LIBKMOD_5 5~ kmod_module_get_dependency_symbols@LIBKMOD_5 5~ kmod_module_get_filtered_blacklist@LIBKMOD_5 5~ kmod_module_get_holders@LIBKMOD_5 5~ kmod_module_get_info@LIBKMOD_5 5~ kmod_module_get_initstate@LIBKMOD_5 5~ kmod_module_get_install_commands@LIBKMOD_5 5~ kmod_module_get_module@LIBKMOD_5 5~ kmod_module_get_name@LIBKMOD_5 5~ kmod_module_get_options@LIBKMOD_5 5~ kmod_module_get_path@LIBKMOD_5 5~ kmod_module_get_refcnt@LIBKMOD_5 5~ kmod_module_get_remove_commands@LIBKMOD_5 5~ kmod_module_get_sections@LIBKMOD_5 5~ kmod_module_get_size@LIBKMOD_5 5~ kmod_module_get_softdeps@LIBKMOD_5 5~ kmod_module_get_symbols@LIBKMOD_5 5~ kmod_module_get_versions@LIBKMOD_5 5~ kmod_module_info_free_list@LIBKMOD_5 5~ kmod_module_info_get_key@LIBKMOD_5 5~ kmod_module_info_get_value@LIBKMOD_5 5~ kmod_module_initstate_str@LIBKMOD_5 5~ kmod_module_insert_module@LIBKMOD_5 5~ kmod_module_new_from_loaded@LIBKMOD_5 5~ kmod_module_new_from_lookup@LIBKMOD_5 5~ kmod_module_new_from_name@LIBKMOD_5 5~ kmod_module_new_from_path@LIBKMOD_5 5~ kmod_module_probe_insert_module@LIBKMOD_5 5~ kmod_module_ref@LIBKMOD_5 5~ kmod_module_remove_module@LIBKMOD_5 5~ kmod_module_section_free_list@LIBKMOD_5 5~ kmod_module_section_get_address@LIBKMOD_5 5~ kmod_module_section_get_name@LIBKMOD_5 5~ kmod_module_symbol_get_crc@LIBKMOD_5 5~ kmod_module_symbol_get_symbol@LIBKMOD_5 5~ kmod_module_symbols_free_list@LIBKMOD_5 5~ kmod_module_unref@LIBKMOD_5 5~ kmod_module_unref_list@LIBKMOD_5 5~ kmod_module_version_get_crc@LIBKMOD_5 5~ kmod_module_version_get_symbol@LIBKMOD_5 5~ kmod_module_versions_free_list@LIBKMOD_5 5~ kmod_new@LIBKMOD_5 5~ kmod_ref@LIBKMOD_5 5~ kmod_set_log_fn@LIBKMOD_5 5~ kmod_set_log_priority@LIBKMOD_5 5~ kmod_set_userdata@LIBKMOD_5 5~ kmod_unload_resources@LIBKMOD_5 5~ kmod_unref@LIBKMOD_5 5~ kmod_validate_resources@LIBKMOD_5 5~ debian/source/0000775000000000000000000000000012077516405010477 5ustar debian/source/format0000664000000000000000000000001412077516252011705 0ustar 3.0 (quilt) debian/libkmod2.files0000664000000000000000000000002412077516252011722 0ustar /lib/*/libkmod.so.* debian/changelog0000664000000000000000000001730312321517557011056 0ustar kmod (15-0ubuntu6) trusty; urgency=medium * debian/rules: Install mlx4.conf in the udeb as well (LP: #1305874) * debian/kmod.upstart: Process all the modules-load.d (LP: #1302767) -- Adam Conrad Tue, 08 Apr 2014 13:40:16 -0600 kmod (15-0ubuntu5) trusty; urgency=low * Build-depend on gtk-doc-tools too. -- Matthias Klose Wed, 04 Dec 2013 20:53:33 +0100 kmod (15-0ubuntu4) trusty; urgency=low * Use dh-autoreconf. -- Matthias Klose Wed, 04 Dec 2013 20:32:14 +0100 kmod (15-0ubuntu3) trusty; urgency=low * Update libtool.m4. -- Matthias Klose Wed, 04 Dec 2013 20:08:56 +0100 kmod (15-0ubuntu2) trusty; urgency=low * Add missing build-dep on xsltproc to resolve FTBFS on all arches. * Restore dropped check_builtin_kver to keep delta with Debian low. -- Adam Conrad Wed, 23 Oct 2013 23:00:46 -0600 kmod (15-0ubuntu1) trusty; urgency=low * New upstream release. (See Debian #716739) * Drop patches included upstream: dot_kcmdline, bad_alias_assertion, blacklist_aliased. * Drop check_builtin_kver, this would only apply to lucid and is otherwise unnecessary. * Drop --disable-shared/--enable-static, this got dropped in this version and isn't necessary any more. /bin/kmod does not dynamically link to libkmod by default now. -- Martin Pitt Thu, 24 Oct 2013 06:16:30 +0200 kmod (9-3ubuntu1) raring; urgency=low * Merge with Debian unstable, bringing in a backport of upstream's comprehensive fix for the bad alias assertion bug (LP: #1073062) -- Adam Conrad Thu, 18 Apr 2013 13:16:44 -0600 kmod (9-3) unstable; urgency=low * Added backported patch dot_kcmdline: correctly parse kcmdline parameters containing a dot. (Closes: #689872) * Added backported patch bad_alias_assertion: stop modprobe from aborting from an assertion because of some invalid but common configuration directives. (Closes: #674110) * Removed the nfs4 alias from aliases.conf as requested by the kernel team. (Closes: #683972) * Removed the unnecessary build-dependency on perl. (Closes: #697750) -- Marco d'Itri Sun, 07 Apr 2013 18:19:01 +0200 kmod (9-2ubuntu8) raring; urgency=low * Add debian/patches/do_not_raise_on_null_alias to avoid raising errors when dealing with modules whose aliases are set to either "null" or "off" (LP: #1073062). -- Alberto Milone Wed, 13 Mar 2013 18:02:53 +0100 kmod (9-2ubuntu7) raring; urgency=low * Add /etc/modprobe.d/mlx4.conf for loading mlx4_en when mlx4_core gets loaded (LP: #1115710). -- Scott Moser Tue, 05 Feb 2013 15:36:49 -0500 kmod (9-2ubuntu6) raring; urgency=low * Remove /etc/init/module-init-tools.conf on upgrade (LP: #1082006) -- Adam Conrad Thu, 24 Jan 2013 00:11:39 -0700 kmod (9-2ubuntu5) raring; urgency=low * Fix permissions on /etc/depmod.d, /etc/modprobe.d. (LP: #1082598) -- Anders Kaseorg Tue, 22 Jan 2013 15:06:45 +0100 kmod (9-2ubuntu4) raring; urgency=low * Drop unused build-dependency on perl, to simplify cross-building. -- Colin Watson Wed, 09 Jan 2013 10:41:07 +0000 kmod (9-2ubuntu3) raring; urgency=low * Add debian/patches/allow_dots_in_params to fix parsing of commandline arguments with dots in them (closes: #689872) -- Adam Conrad Tue, 30 Oct 2012 21:20:10 +0000 kmod (9-2ubuntu2) raring; urgency=low * Don't copy /lib/modprobe.d/* in our version of the kmod initramfs hook; we currently don't ship anything there. -- Adam Conrad Mon, 29 Oct 2012 13:27:18 +0000 kmod (9-2ubuntu1) raring; urgency=low * Sync with Debian unstable; remaining Ubuntu changes: - Ubuntu-specific depmod.d and modprobe.d contents. - Mark module-init-tools Multi-Arch: foreign. - Don't install Debian's extra/aliases.conf file. - Install upstart job instead of the sysvinit script. -- Adam Conrad Fri, 21 Sep 2012 16:05:32 -0600 kmod (9-2) unstable; urgency=low * Backported upstream fixes to make modprobe work like in module-init-tools and not load a blacklisted module even if modprobe is invoked with one of its aliases. * Report an error when some .bin files do not exist. (Closes: #684901) * Really build the udeb with -Os -fomit-frame-pointer. -- Marco d'Itri Mon, 27 Aug 2012 00:40:18 +0200 kmod (9-1ubuntu1) quantal; urgency=low * Initial sync with debian 9-1, remaining (module-init-tools) changes: - Ubuntu specific depmod.d and modprobe.d contents. -- Andy Whitcroft Wed, 04 Jul 2012 19:18:01 +0100 kmod (9-1) unstable; urgency=medium * New upstream release. -- Marco d'Itri Mon, 25 Jun 2012 02:48:38 +0200 kmod (8-2) unstable; urgency=medium * Implemented systemd-compatible processing of modules-load.d directories, courtesy of Josh Triplett. (Closes: #672960) * Properly fix kmod on ia64 with backported patch commit-d30319e. -- Marco d'Itri Sun, 20 May 2012 23:19:47 +0200 kmod (8-1) unstable; urgency=medium * New upstream release. Fixes: + An unclear error message. (Closes: #668216) * Moved libkmod.pc to the multiarch directory. (Closes: #670005) * Do not warn about a missing modules.builtin file for kernel versions < 2.6.33. (Closes: #670965) * Removed patch work_around_linking_issues, which is properly fixed by upstream patch commit-9625375. * Made the init script exit without processing /etc/modules if the /etc/modules-load.d/modules.conf symlink exists. -- Marco d'Itri Mon, 14 May 2012 02:45:06 +0200 kmod (6-2) unstable; urgency=low * Applied a few upstream changesets to fix: + depmod correctly processing a kernel versions different from the running one. (Closes: #662891) + modprobe -q still too much verbose. (Closes: #662822) + modprobe -r removing only the first argument. (Closes: #662984) * Restored the code from the old module-init-tools package which deletes obsolete conffiles. Abort upgrading from releases older than lenny. (Closes: #663159) -- Marco d'Itri Fri, 16 Mar 2012 02:21:00 +0100 kmod (6-1.1) unstable; urgency=low * Non-maintainer upload with maintainer approval. * Work around FTBFS on ia64 (probable toolchain bug) due to undefined references to kmod_log when linking tools/kmod: Add libkmod-private.la to kmod's LDADD variable to ensure that linking happens properly. + Patch: work_around_linking_issues; tested on merulo. -- Cyril Brulebois Wed, 07 Mar 2012 01:40:37 +0000 kmod (6-1) unstable; urgency=low * New upstream release. Fixes: + Documented the modprobe.blacklist parameter. (Closes: #630338) -- Marco d'Itri Sat, 03 Mar 2012 16:53:33 +0100 kmod (5-2) experimental; urgency=high * Added patch check_if_exists to fix loops caused by install directives. (Closes: #659838) -- Marco d'Itri Sun, 19 Feb 2012 13:07:21 +0100 kmod (5-1) experimental; urgency=low * New upstream release. (Closes: #659195) -- Marco d'Itri Sun, 12 Feb 2012 04:48:24 +0100 kmod (3-1) experimental; urgency=low * Initial release. (Closes: #652284) * When replacing module-init-tools: - /etc/modules is preserved - /etc/modprobe.d/aliases.conf is deleted if unmodified, otherwise it is renamed to aliases-m-i-t.conf and will be used by kmod - /etc/init.d/module-init-tools is deleted if unmodified, otherwise it is renamed to /etc/init.d/module-init-tools.dpkg-bak -- Marco d'Itri Sun, 08 Jan 2012 20:47:12 +0100 debian/compat0000664000000000000000000000000212077516252010375 0ustar 8 debian/kmod.initramfs-hook0000664000000000000000000000054512077516252013011 0ustar #!/bin/sh -e # Copy the compatibility symlinks until initramfs-tools will be converted # to use the kmod program. if [ "$1" = "prereqs" ]; then exit 0; fi . /usr/share/initramfs-tools/hook-functions copy_exec /bin/kmod cp -a /sbin/modprobe /sbin/rmmod $DESTDIR/sbin/ #mkdir -p $DESTDIR/lib/modprobe.d/ #cp -a /lib/modprobe.d/* $DESTDIR/lib/modprobe.d/ debian/rules0000775000000000000000000001001212321050221010226 0ustar #!/usr/bin/make -f SHELL+= -e BUILD_UDEB := 1 D := $(CURDIR)/debian/kmod DK := $(CURDIR)/debian/libkmod2 DD := $(CURDIR)/debian/libkmod-dev DKU := $(CURDIR)/debian/libkmod2-udeb CONFFLAGS = --sysconfdir=/etc --bindir=/bin CONFFLAGS_deb = $(CONFFLAGS) \ $(shell DEB_BUILD_MAINT_OPTIONS="hardening=+pie" \ dpkg-buildflags --export=configure || true) \ --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ --with-rootlibdir=/lib/$(DEB_HOST_MULTIARCH) \ --enable-debug CONFFLAGS_udeb = $(CONFFLAGS) \ $(subst -O2,-Os -fomit-frame-pointer,$(shell DEB_BUILD_MAINT_OPTIONS="hardening=-all" \ dpkg-buildflags --export=configure || true)) \ --libdir=/lib --with-rootlibdir=/lib ############################################################################## DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) CONFFLAGS += --build $(DEB_HOST_GNU_TYPE) else CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) endif ifdef BUILD_UDEB BUILD_UDEB_TARGET := .stamp-build-udeb else NO_PACKAGE := --no-package=libkmod2-udeb endif KMOD_RECONFIGURE = yes ############################################################################## clean: rm -rf .stamp-* build-*deb ifdef KMOD_RECONFIGURE rm -f aclocal.m4 autom4te.cache/* config.h.in config.h.in~ configure \ Makefile.in $$(find m4/ -type l) endif dh_clean # if enabled, must build-depend on autoconf, automake, libtool ifdef KMOD_RECONFIGURE configure: configure.ac gtkdocize --docdir libkmod/docs autoreconf --force --install --symlink endif build-deb/config.status: configure [ -d build-deb ] || mkdir build-deb cd build-deb/ && \ ../configure $(CONFFLAGS_deb) build-udeb/config.status: configure [ -d build-udeb ] || mkdir build-udeb cd build-udeb/ && \ ../configure $(CONFFLAGS_udeb) build: build-arch build-indep build-arch: .stamp-build $(BUILD_UDEB_TARGET) build-indep: .stamp-build $(BUILD_UDEB_TARGET) .stamp-build: build-deb/config.status dh_testdir cd build-deb/ && \ $(MAKE) all V=1 touch $@ build-udeb: .stamp-build-udeb .stamp-build-udeb: build-udeb/config.status dh_testdir cd build-udeb/ && \ $(MAKE) all V=1 touch $@ binary-all: .stamp-binary .stamp-binary: build checkroot dh_testdir dh_prep cd build-deb/ && \ $(MAKE) install DESTDIR=$D rm $D/usr/lib/*/*.la dh_movefiles --sourcedir=debian/kmod rmdir --parents --ignore-fail-on-non-empty $$(find $D -type d -empty) dh_installdirs install --mode=755 debian/kmod.initramfs-hook \ $D/usr/share/initramfs-tools/hooks/kmod install --mode=755 -d $D/etc/modprobe.d install --mode=644 -t $D/etc/modprobe.d debian/modprobe.d/* install --mode=755 -d $D/etc/depmod.d install --mode=644 -t $D/etc/depmod.d debian/depmod.d/* ifdef BUILD_UDEB cd build-udeb/ && \ $(MAKE) install-exec DESTDIR=$(DKU) install --mode=755 -d $(DKU)/etc/modprobe.d install --mode=644 -t $(DKU)/etc/modprobe.d debian/modprobe.d/mlx4.conf rm -r $(DKU)/lib/ endif #mv $D/usr/share/doc/kmod $D/usr/share/doc/libkmod2 dh_installdocs -pkmod -plibkmod-dev -pmodule-init-tools \ --link-doc=libkmod2 dh_installdocs -pkmod --link-doc=libkmod2 README TODO dh_installdocs -plibkmod2 cp libkmod/README $(DD)/usr/share/doc/libkmod2/README.libkmod dh_installchangelogs NEWS dh_installman extra/*.5 dh_installinit --no-start -- start 15 S . dh_link dh_strip dh_compress dh_fixperms dh_makeshlibs --add-udeb=libkmod2-udeb -- -c4 dh_shlibdeps -- --warnings=7 dh_installdeb dh_gencontrol $(NO_PACKAGE) dh_md5sums touch $@ binary-arch: .stamp-binary dh_builddeb -a $(NO_PACKAGE) binary-indep: .stamp-binary dh_builddeb -i binary: binary-arch binary-indep checkroot: test root = "`whoami`" get-orig-source: cd $(dir $(firstword $(MAKEFILE_LIST)))../ && \ uscan --rename --force-download --watchfile debian/watch --destdir $(CURDIR) .PHONY: clean build build-arch build-indep binary binary-arch binary-indep checkroot debian/kmod.upstart0000664000000000000000000000126112321517454011552 0ustar # kmod - load modules from /etc/modules # # This task loads the kernel modules specified in the /etc/modules file description "load modules from /etc/modules" start on (startup and started udev) task script [ -f /etc/modules ] && files="/etc/modules" || files="" hash="#" dirs="/etc/modules-load.d /run/modules-load.d /lib/modules-load.d" for dir in $dirs; do files="$files $(run-parts --list --regex='\.conf$' $dir 2> /dev/null || true)" done for file in $files; do while read module args; do [ -n "$module" ] && [ "${module#${hash}}" = "${module}" ] || continue modprobe $module $args || : done < $file done end script debian/libkmod-dev.dirs0000664000000000000000000000003112077516252012251 0ustar /usr/share/doc/libkmod2/ debian/control0000664000000000000000000000364512247704236010612 0ustar Source: kmod Section: admin Priority: important Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Marco d'Itri Build-Depends: debhelper (>> 8.1.3), xsltproc, automake, autoconf, gtk-doc-tools, libtool Standards-Version: 3.9.3.1 Package: kmod Priority: important Architecture: linux-any Multi-Arch: foreign Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6) Replaces: module-init-tools (<< 4) Breaks: module-init-tools (<< 4) Description: tools for managing Linux kernel modules This package contains a set of programs for loading, inserting, and removing kernel modules for Linux. It replaces module-init-tools. Package: module-init-tools Priority: extra Architecture: all Multi-Arch: foreign Depends: ${misc:Depends}, kmod, libkmod2 Pre-Depends: dpkg (>= 1.15.7.2) Description: transitional dummy package (module-init-tools to kmod) This dummy package is provided to support the transition from module-init-tools to kmod and should be removed afterwards. Package: libkmod2 Section: libs Priority: important Architecture: linux-any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: libkmod shared library This library provides an API for insertion, removal, configuration and listing of kernel modules. Package: libkmod-dev Section: libdevel Priority: optional Architecture: linux-any Multi-Arch: same Depends: ${shlibs:Depends}, ${misc:Depends}, libkmod2 (= ${binary:Version}) Description: libkmod development files This package contains the files needed for developing applications that use libkmod. Package: libkmod2-udeb XC-Package-Type: udeb Section: debian-installer Priority: important Architecture: linux-any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: libkmod shared library This is a minimal version of libkmod2, only for use in the installation system. debian/libkmod2-udeb.links0000664000000000000000000000024012077516252012655 0ustar /bin/kmod /sbin/depmod /bin/kmod /sbin/insmod /bin/kmod /sbin/lsmod /bin/kmod /sbin/modinfo /bin/kmod /sbin/modprobe /bin/kmod /sbin/rmmod /bin/kmod /bin/lsmod debian/libkmod-dev.files0000664000000000000000000000007112077516252012416 0ustar /usr/include/ /usr/lib/*/pkgconfig/ /usr/lib/*/libkmod.* debian/watch0000664000000000000000000000012012077516252010221 0ustar version=3 http://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-(\d+)\.tar\.xz debian/module-init-tools.preinst0000664000000000000000000000322712100160046014154 0ustar #!/bin/sh -e dpkg-maintscript-helper rm_conffile /etc/init.d/module-init-tools 3.16-1 -- "$@" dpkg-maintscript-helper rm_conffile /etc/modprobe.d/aliases.conf 3.16-1 -- "$@" dpkg-maintscript-helper rm_conffile /etc/init/module-init-tools.conf 9-2ubuntu5 -- "$@" rm_conffile() { mv_conffile "$1" "$1.dpkg-bak" } mv_conffile() { local package='module-init-tools' local name="$1" local newname="$2" [ -e "$name" ] || return 0 local md5="$(md5sum $name | sed -e 's/ .*//')" oldmd5="$(dpkg-query -W -f='${Conffiles}' $package | \ sed -n -e "\' $name ' { s/ obsolete$//; s/.* //; p }")" if [ "$md5" = "$oldmd5" ]; then rm -f "$name" else mv "$name" "$newname" fi } upgrade_quirks() { # $2 is non-empty when installing from the "config-files" state [ "$2" ] || return 0 if dpkg --compare-versions $2 lt 3.10-3; then if dpkg --compare-versions $2 lt 3.3-pre11-4; then echo 'Upgrading from packages older than 3.3-pre11-4 is not supported.' echo 'Please purge module-init-tools before installing this package.' echo '(But remember to keep a copy of /etc/modules!)' exit 1 fi # lt 3.1-pre11-1 for file in i386 x86_64 mips s390 parisc sparc powerpc.apus \ powerpc.generic powerpc.pmac m68k.amiga m68k.atari m68k.generic; do rm_conffile /etc/modprobe.d/arch/$file done rmdir /etc/modprobe.d/arch/ 2> /dev/null || true if [ -L /etc/modprobe.d/arch-aliases \ -a ! -e /etc/modprobe.d/arch-aliases ]; then rm /etc/modprobe.d/arch-aliases fi mv_conffile /etc/modprobe.d/aliases /etc/modprobe.d/aliases.conf fi # lt 3.10-3 } case "$1" in install|upgrade) upgrade_quirks "$@" ;; esac #DEBHELPER# exit 0 debian/libkmod2-udeb.dirs0000664000000000000000000000002112077516252012473 0ustar /etc/modprobe.d/ debian/patches/0000775000000000000000000000000012247676704010636 5ustar debian/patches/verbose_missing_bin0000664000000000000000000000125712077516252014604 0ustar Description: Report an error when some .bin files do not exist Author: Marco d'Itri Bug-Debian: http://bugs.debian.org/684901 --- --- a/libkmod/libkmod.c +++ b/libkmod/libkmod.c @@ -502,7 +502,7 @@ int kmod_lookup_alias_from_builtin_file( idx = index_file_open(fn); if (idx == NULL) { - DBG(ctx, "could not open builtin file '%s'\n", fn); + ERR(ctx, "could not open builtin file '%s'\n", fn); goto finish; } @@ -551,7 +551,7 @@ char *kmod_search_moddep(struct kmod_ctx idx = index_file_open(fn); if (idx == NULL) { - DBG(ctx, "could not open moddep file '%s'\n", fn); + ERR(ctx, "could not open moddep file '%s'\n", fn); return NULL; } debian/patches/debian_manpages0000664000000000000000000000225212077516252013647 0ustar --- /dev/null +++ module-init-tools-3.13/extra/modules.5 @@ -0,0 +1,14 @@ +.TH MODULES 5 "Version 1.2" "Debian GNU/Linux" +.SH NAME +/etc/modules - kernel modules to load at boot time +.SH DESCRIPTION +.PP +The +.B /etc/modules +file contains the names of kernel modules that are to be loaded at boot +time, one per line. Arguments can be given in the same line as the module +name. Lines beginning with a '#' are ignored. +.SH "SEE ALSO" +.BR depmod (8) +.BR modprobe (8) +.BR modprobe.conf (5) --- /dev/null +++ module-init-tools-3.13/extra/modules.fr.5 @@ -0,0 +1,19 @@ +.\"Traduction Lundi 14 octobre 2002 par Antoine Gémis +.\"(agemis@netuup.com) +.TH MODULES 5 "Version 1.1" "Debian GNU/Linux" +.SH NOM +/etc/modules - modules du noyau à charger au démarrage +.SH DESCRIPTION +.PP +Le fichier +.B /etc/modules +contient la liste des modules du noyau à charger au démarrage, un module par +ligne. Une ligne peut inclure, après le nom du module, des paramètres à lui +passer. Sur une ligne, tout ce qui suit «\ #\ » sera considéré comme commentaire +et ignoré. +.SH "VOIR AUSSI" +.BR depmod (8) +.BR modprobe (8) +.BR modprobe.conf (5) +.SH TRADUCTION +Antoine Gémis . debian/patches/aliases_conf0000664000000000000000000001165612134043172013176 0ustar --- /dev/null +++ b/extra/aliases.conf @@ -0,0 +1,165 @@ +# These are the standard aliases for devices and kernel drivers. +# This file does not need to be modified. +# +# No new aliases should be added to this file, please file a bug against +# the kernel for any aliases which are still not built-in. + +# network protocols ########################################################## +# alias net-pf-1 unix +# alias net-pf-2 ipv4 +# alias net-pf-3 ax25 +# alias net-pf-4 ipx +# alias net-pf-5 appletalk +# alias net-pf-6 netrom +# 7 BRIDGE +# alias net-pf-8 atm +# alias net-pf-9 x25 +# alias net-pf-10 ipv6 +# alias net-pf-11 rose +# alias net-pf-12 decnet +# 13 NETBEUI +# alias net-pf-15 af_key +# alias net-pf-16 af_netlink +# alias net-pf-17 af_packet +# 18 ASH +# alias net-pf-19 econet +# alias net-pf-20 atm +# 22 SNA +# alias net-pf-23 irda +# alias net-pf-24 pppoe +# 25 WANROUTER +# alias net-pf-26 llc2 +# alias net-pf-31 bluetooth +# alias net-pf-33 af_rxrpc + +alias net-pf-16-proto-1 wire +alias net-pf-16-proto-3 ip_queue +# alias net-pf-16-proto-4 inet_diag +# alias net-pf-16-proto-5 ipt_ULOG +# alias net-pf-16-proto-6 xfrm_user +alias net-pf-16-proto-8 scsi_transport_iscsi +alias net-pf-16-proto-9 audit +alias net-pf-16-proto-11 cn +# alias net-pf-16-proto-12 nfnetlink +alias net-pf-16-proto-13 ip6_queue +# alias net-pf-16-proto-14 dn_rtmsg + +# executables formats ######################################################## +install binfmt-0000 /bin/true +alias binfmt-204 binfmt_aout +alias binfmt-263 binfmt_aout +alias binfmt-264 binfmt_aout +alias binfmt-267 binfmt_aout +alias binfmt-387 binfmt_aout + +# block devices ############################################################## +alias block-major-3-* ide_generic +alias block-major-22-* ide_generic +alias block-major-33-* ide_generic +alias block-major-34-* ide_generic +alias block-major-37-* ide_tape +alias block-major-44-* ftl +alias block-major-46-* pcd +alias block-major-47-* pf +alias block-major-56-* ide_generic +alias block-major-57-* ide_generic +alias block-major-58-* lvm_mod +alias block-major-88-* ide_generic +alias block-major-89-* ide_generic +alias block-major-90-* ide_generic +alias block-major-91-* ide_generic +alias block-major-93-* nftl +alias block-major-97-* pg + +# character devices ########################################################## +alias char-major-10-1 psmouse +alias char-major-10-139 openprom +alias char-major-10-157 applicom +alias char-major-10-181 toshiba +alias char-major-10-183 hw_random +alias char-major-10-187 irnet +alias char-major-10-189 ussp +alias char-major-10-250 hci_vhci +alias char-major-13-0 joydev +alias char-major-13-1 joydev +alias char-major-13-2 joydev +alias char-major-13-3 joydev +alias char-major-13-32 mousedev +alias char-major-13-33 mousedev +alias char-major-13-34 mousedev +alias char-major-13-35 mousedev +alias char-major-13-63 mousedev +alias char-major-13-64 evdev +alias char-major-13-65 evdev +alias char-major-13-66 evdev +alias char-major-13-67 evdev +alias char-major-19-* cyclades +alias char-major-20-* cyclades +alias char-major-22-* pcxx +alias char-major-23-* pcxx +alias char-major-27-* ftape +alias char-major-34-* scc +alias char-major-35-* tclmidi +alias char-major-48-* riscom8 +alias char-major-49-* riscom8 +alias char-major-57-* esp +alias char-major-58-* esp +alias char-major-63-* kdebug +alias char-major-67-* coda +alias char-major-75-* specialix +alias char-major-76-* specialix +alias char-major-81-* videodev +alias char-major-83-* vtx +alias char-major-89-* i2c_dev +alias char-major-90-* mtdchar +alias char-major-96-* pt +alias char-major-97-* pg +alias char-major-107-* 3dfx +alias char-major-109-* lvm_mod +alias char-major-166-* cdc_acm +alias char-major-171-0 raw1394 +alias char-major-171-1 video1394 +alias char-major-171-2 dv1394 +alias char-major-171-3 amdtp +alias char-major-180-* usbcore +alias char-major-195-* nvidia +alias char-major-200-* vxspec +alias char-major-202-* msr +alias char-major-203-* cpuid +alias char-major-206-* osst +alias char-major-208-* ussp +alias char-major-227-* tub3270 +#alias char-major-240-* usb-serial +#alias char-major-240-* hsfserial +#alias char-major-241-* hsfserial + +# misc ####################################################################### +#alias bt-proto-0 l2cap +#alias bt-proto-2 sco +#alias bt-proto-3 rfcomm +#alias bt-proto-4 bnep +#alias bt-proto-5 cmtp +#alias bt-proto-6 hidp +alias bt-proto-7 avdtp + +alias cipcb0 cipcb +alias cipcb1 cipcb +alias cipcb2 cipcb +alias cipcb3 cipcb +alias dummy0 dummy +alias dummy1 dummy +alias plip0 plip +alias plip1 plip +alias slip0 slip +alias slip1 slip +alias tunl0 ipip +alias gre0 ip_gre + +alias usbdevfs usbcore + +# work around other kernel issues ############################################ +# 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 + debian/patches/libtool-update.diff0000664000000000000000000000441412247676625014421 0ustar Index: b/configure =================================================================== --- a/configure +++ b/configure @@ -7004,7 +7004,7 @@ rm -rf conftest* ;; -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext @@ -7020,9 +7020,19 @@ LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) - LD="${LD-ld} -m elf_i386" + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -7041,7 +7051,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) Index: b/m4/libtool.m4 =================================================================== --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1267,7 +1267,7 @@ rm -rf conftest* ;; -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext @@ -1279,9 +1279,19 @@ LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) - LD="${LD-ld} -m elf_i386" + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -1300,7 +1310,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) debian/patches/check_builtin_kver0000664000000000000000000000066212077516252014407 0ustar --- a/tools/depmod.c +++ b/tools/depmod.c @@ -2111,6 +2111,13 @@ static int output_builtin_bin(struct dep FILE *in; struct index_node *idx; char infile[PATH_MAX], line[PATH_MAX], modname[PATH_MAX]; + unsigned int d1, d2; + + /* This file only exists for kernels >= 2.6.33 */ + if (sscanf(depmod->cfg->kversion, "%u.%u", &d1, &d2) == 2) { + if (d1 * 256 + d2 < 2 * 256 + 6) + return 0; + } if (out == stdout) return 0; debian/patches/series0000664000000000000000000000025712247676704012057 0ustar # fixes to be pushed upstream verbose_missing_bin check_builtin_kver # features to be pushed upstream # Debian integration aliases_conf debian_manpages libtool-update.diff debian/kmod.dirs0000664000000000000000000000014412077516252011013 0ustar /etc/modprobe.d/ /lib/modprobe.d/ /sbin/ /usr/share/doc/libkmod2/ /usr/share/initramfs-tools/hooks/ debian/kmod.links0000664000000000000000000000024012077516252011167 0ustar /bin/kmod /sbin/depmod /bin/kmod /sbin/insmod /bin/kmod /sbin/lsmod /bin/kmod /sbin/modinfo /bin/kmod /sbin/modprobe /bin/kmod /sbin/rmmod /bin/kmod /bin/lsmod