kmod: replace module-init-tools by kmod-13.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 18 Nov 2013 18:00:51 +0000 (19:00 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 18 Nov 2013 18:00:51 +0000 (19:00 +0100)
newer udev depend on kmod.

14 files changed:
config/etc/modprobe.d/cfg80211.conf [moved from config/etc/modprobe.d/cfg80211 with 100% similarity]
config/etc/modprobe.d/pcspeaker.conf [moved from config/etc/modprobe.d/pcspeaker with 100% similarity]
config/rootfiles/common/armv5tel/linux
config/rootfiles/common/armv5tel/linux-kirkwood
config/rootfiles/common/i586/linux
config/rootfiles/common/kmod [new file with mode: 0644]
config/rootfiles/common/module-init-tools [deleted file]
config/rootfiles/common/stage2
config/rootfiles/common/udev
lfs/kmod [new file with mode: 0644]
lfs/linux
lfs/mISDN
lfs/udev
make.sh

index 2206ce3c1379bd2cefde4a8d016411a85c163ed9..8c4c97f2e9dc4ee7d2eefb1d383b23654545c2f7 100644 (file)
@@ -1,4 +1,4 @@
-etc/modprobe.d/framebuffer
-etc/modprobe.d/ipv6
-etc/modprobe.d/isdn
+etc/modprobe.d/framebuffer.conf
+etc/modprobe.d/ipv6.conf
+etc/modprobe.d/isdn.conf
 sbin/gen_init_cpio
index 3354d9eeeb5118b588186ab9d075ee216c6a1661..60374aad0989e2dec37371dbe6bc205e2dbfffe4 100644 (file)
@@ -4,9 +4,9 @@ boot/config-KVER-ipfire-kirkwood
 boot/dtb-KVER-ipfire-kirkwood
 boot/uImage-ipfire-kirkwood
 boot/vmlinuz-KVER-ipfire-kirkwood
-etc/modprobe.d/framebuffer
-etc/modprobe.d/ipv6
-etc/modprobe.d/isdn
+etc/modprobe.d/framebuffer.conf
+etc/modprobe.d/ipv6.conf
+etc/modprobe.d/isdn.conf
 lib/modules/KVER-ipfire-kirkwood
 #lib/modules/KVER-ipfire-kirkwood/build
 #lib/modules/KVER-ipfire-kirkwood/kernel
index 20b64102b1b2ae10802ece41b52ae28f1c7a33c4..c0c34365752b563f106d34d8b7a6249e0debb5b2 100644 (file)
@@ -3,9 +3,9 @@ boot/System.map-ipfire
 boot/config-KVER-ipfire
 boot/vmlinuz-KVER-ipfire
 boot/vmlinuz-ipfire
-etc/modprobe.d/framebuffer
-etc/modprobe.d/ipv6
-etc/modprobe.d/isdn
+etc/modprobe.d/framebuffer.conf
+etc/modprobe.d/ipv6.conf
+etc/modprobe.d/isdn.conf
 lib/modules/KVER-ipfire
 #lib/modules/KVER-ipfire/build
 #lib/modules/KVER-ipfire/kernel
diff --git a/config/rootfiles/common/kmod b/config/rootfiles/common/kmod
new file mode 100644 (file)
index 0000000..14e7654
--- /dev/null
@@ -0,0 +1,13 @@
+bin/kmod
+sbin/depmod
+sbin/insmod
+sbin/lsmod
+sbin/modinfo
+sbin/modprobe
+sbin/rmmod
+#usr/include/libkmod.h
+#usr/lib/libkmod.la
+usr/lib/libkmod.so
+usr/lib/libkmod.so.2
+usr/lib/libkmod.so.2.2.3
+#usr/lib/pkgconfig/libkmod.pc
diff --git a/config/rootfiles/common/module-init-tools b/config/rootfiles/common/module-init-tools
deleted file mode 100644 (file)
index 4cffddb..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-bin/lsmod
-sbin/depmod
-sbin/generate-modprobe.conf
-sbin/insmod
-sbin/insmod.static
-sbin/modinfo
-sbin/modprobe
-sbin/rmmod
-#share
-#share/man
-#share/man/man5
-#share/man/man5/depmod.conf.5
-#share/man/man5/modprobe.conf.5
-#share/man/man5/modules.dep.5
-#share/man/man8
-#share/man/man8/depmod.8
-#share/man/man8/insmod.8
-#share/man/man8/lsmod.8
-#share/man/man8/modinfo.8
-#share/man/man8/modprobe.8
-#share/man/man8/rmmod.8
index 04ef3f2cb51636767a47c69f00102b8873d74ac5..d5d1a5cebbc0638fa2e55c4aeb00934d45bcedd8 100644 (file)
@@ -20,8 +20,8 @@ etc/ld.so.conf
 etc/logrotate.conf
 etc/mime.types
 etc/modprobe.d
-etc/modprobe.d/cfg80211
-etc/modprobe.d/pcspeaker
+etc/modprobe.d/cfg80211.conf
+etc/modprobe.d/pcspeaker.conf
 etc/modules.conf
 etc/mtab
 etc/nsswitch.conf
index bacd0cbbe3c9323379b9cd1f28f169abe8f002ab..49cad7e927e1f3e0a6cc45e5ef0bf7b08d5a8c8d 100644 (file)
@@ -1,4 +1,4 @@
-etc/modprobe.d/blacklist
+etc/modprobe.d/blacklist.conf
 etc/scsi_id.config
 etc/udev
 #etc/udev/rules.d
diff --git a/lfs/kmod b/lfs/kmod
new file mode 100644 (file)
index 0000000..dc2dc10
--- /dev/null
+++ b/lfs/kmod
@@ -0,0 +1,94 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 13
+
+THISAPP    = kmod-$(VER)
+DL_FILE    = $(THISAPP).tar.xz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = d5aba43b9370cd52f3cb35e82a1aa595
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && ./configure \
+               --prefix=/usr \
+               --bindir=/bin \
+               --sysconfdir=/etc \
+               --enable-zlib \
+               --disable-manpages
+
+#              --libdir=/lib \
+
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make install
+
+       # Create symlinks
+       ln -svf ../bin/kmod /sbin/modprobe
+       ln -svf ../bin/kmod /sbin/modinfo
+       ln -svf ../bin/kmod /sbin/insmod
+       ln -svf ../bin/kmod /sbin/rmmod
+       ln -svf ../bin/kmod /sbin/depmod
+       ln -svf ../bin/kmod /sbin/lsmod
+
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
index 5fc9e1f8a92c473ee00cf20477959aea0ebd660b..306a1d14f21020e3b6274247862f153d6825dde4 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -230,25 +230,25 @@ ifeq "$(LASTKERNEL)" "1"
        cd $(DIR_APP) && install -m 755 usr/gen_init_cpio /sbin/
 
        # Blacklist matroxfb_base
-       echo "blacklist matroxfb_base" >> /etc/modprobe.d/framebuffer
+       echo "blacklist matroxfb_base" >> /etc/modprobe.d/framebuffer.conf
        # Blacklist old framebuffer modules
        for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/video -name *fb.ko); do \
-               echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer ; \
+               echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
        done
        # Blacklist new drm framebuffer modules
        for f in $$(ls -1 /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/gpu/drm/*/*.ko); do \
-               echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer ; \
+               echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
        done
-       sed -i -e "s|.ko||g" /etc/modprobe.d/framebuffer
+       sed -i -e "s|.ko||g" /etc/modprobe.d/framebuffer.conf
 
        # Blacklist isdn modules
        for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/isdn -name *.ko); do \
-               echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/isdn ; \
+               echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/isdn.conf ; \
        done
-       sed -i -e "s|.ko||g" /etc/modprobe.d/isdn
+       sed -i -e "s|.ko||g" /etc/modprobe.d/isdn.conf
 
        # Disable ipv6 at runtime
-       echo "options ipv6 disable_ipv6=1" > /etc/modprobe.d/ipv6
+       echo "options ipv6 disable_ipv6=1" > /etc/modprobe.d/ipv6.conf
 endif
 
        # Disable geode_aes modul if exist
index e6a7465b3a9a38e650a91bfbadad8af3c9d1e2fa..5cd4972ca3c5b576f161405fbc54365f79f5c214 100644 (file)
--- a/lfs/mISDN
+++ b/lfs/mISDN
@@ -106,9 +106,9 @@ endif
 ifneq "$(XEN)" "1"
        # Blacklist misdn modules
        for f in $$(find /lib/modules/$(KVER)-$(VERSUFIX)/mISDN -name *.ko); do \
-               echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/mISDN ; \
+               echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/mISDN.conf ; \
        done
-       sed -i -e "s|.ko||g" /etc/modprobe.d/mISDN
+       sed -i -e "s|.ko||g" /etc/modprobe.d/mISDN.conf
 endif
 
        # Remove mISDN modules that was shipped with the kernel
index 9ebec2f180fcd317075d20552456588f2f66f595..3f7b94f33943bd351d8ecfdd11db4596fc5761c0 100644 (file)
--- a/lfs/udev
+++ b/lfs/udev
@@ -95,7 +95,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        touch /etc/udev/rules.d/30-persistent-network.rules
 
        # Blacklist some modules
-       cp -vf $(DIR_SRC)/config/udev/blacklist /etc/modprobe.d/blacklist
+       cp -vf $(DIR_SRC)/config/udev/blacklist.conf /etc/modprobe.d/blacklist.conf
 
        # Install alsa rules.
        install -v -m 644 $(DIR_SRC)/config/udev/25-alsa.rules \
diff --git a/make.sh b/make.sh
index 849624e7a50757fc9c7059392d6dbcd332374b9a..dea42905522b7ae93d0b47a88aef1d3e5b32bfe4 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -360,7 +360,7 @@ buildbase() {
     lfsmake2 make
     lfsmake2 man
     lfsmake2 mktemp
-    lfsmake2 module-init-tools
+    lfsmake2 kmod
     lfsmake2 net-tools
     lfsmake2 patch
     lfsmake2 psmisc