summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/module-init-tools
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-12-13 09:15:15 +0000
committerRichard Purdie <richard@openedhand.com>2005-12-13 09:15:15 +0000
commit42406332d13e724e2abb052add98ac0e7316c7ac (patch)
treefd66b79a590bb2384c824c7263f23d4ca96283dd /openembedded/packages/module-init-tools
parent49460960154426bce8def6b2ece375da7a067d5c (diff)
downloadpoky-42406332d13e724e2abb052add98ac0e7316c7ac.tar.gz
Update hdparm, initscripts (keymap), module-init-tools
git-svn-id: https://svn.o-hand.com/repos/poky@192 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/module-init-tools')
-rw-r--r--openembedded/packages/module-init-tools/module-init-tools-3.2.1/ignore_arch_directory (renamed from openembedded/packages/module-init-tools/module-init-tools-3.2-pre9/ignore_arch_directory)0
-rw-r--r--openembedded/packages/module-init-tools/module-init-tools-3.2.1/manpagesopt (renamed from openembedded/packages/module-init-tools/module-init-tools-3.2-pre9/manpagesopt)0
-rw-r--r--openembedded/packages/module-init-tools/module-init-tools_3.2.1.bb63
3 files changed, 63 insertions, 0 deletions
diff --git a/openembedded/packages/module-init-tools/module-init-tools-3.2-pre9/ignore_arch_directory b/openembedded/packages/module-init-tools/module-init-tools-3.2.1/ignore_arch_directory
index 185ea7a3a5..185ea7a3a5 100644
--- a/openembedded/packages/module-init-tools/module-init-tools-3.2-pre9/ignore_arch_directory
+++ b/openembedded/packages/module-init-tools/module-init-tools-3.2.1/ignore_arch_directory
diff --git a/openembedded/packages/module-init-tools/module-init-tools-3.2-pre9/manpagesopt b/openembedded/packages/module-init-tools/module-init-tools-3.2.1/manpagesopt
index 5d5cac609e..5d5cac609e 100644
--- a/openembedded/packages/module-init-tools/module-init-tools-3.2-pre9/manpagesopt
+++ b/openembedded/packages/module-init-tools/module-init-tools-3.2.1/manpagesopt
diff --git a/openembedded/packages/module-init-tools/module-init-tools_3.2.1.bb b/openembedded/packages/module-init-tools/module-init-tools_3.2.1.bb
new file mode 100644
index 0000000000..bbd8cca1bf
--- /dev/null
+++ b/openembedded/packages/module-init-tools/module-init-tools_3.2.1.bb
@@ -0,0 +1,63 @@
1DESCRIPTION = "This package contains a set of programs for loading, inserting, and \
2removing kernel modules for Linux (versions 2.5.48 and above). It serves \
3the same function that the modutils package serves for Linux 2.4."
4LICENSE = "GPL"
5SECTION = "base"
6PR = "r0"
7
8PACKAGES =+ "module-init-tools-insmod-static module-init-tools-depmod"
9RDEPENDS_${PN} += "module-init-tools-depmod"
10
11FILES_module-init-tools-depmod = "${sbindir}/depmod.26"
12FILES_module-init-tools-insmod-static = "${sbindir}/insmod.static"
13
14SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-${PV}.tar.bz2 \
15 file://ignore_arch_directory;patch=1 \
16 file://modutils_extension;patch=1 \
17 file://no_man_rebuild;patch=1 \
18 file://manpagesopt;patch=1 "
19S = "${WORKDIR}/module-init-tools-${PV}"
20
21EXTRA_OECONF = "--disable-manpages"
22
23bindir = "/bin"
24sbindir = "/sbin"
25
26inherit autotools
27
28do_install() {
29 autotools_do_install
30 for f in bin/lsmod sbin/insmod sbin/rmmod sbin/modprobe sbin/modinfo sbin/depmod; do
31 mv ${D}/$f ${D}/$f.26
32 done
33}
34
35pkg_postinst_module-init-tools() {
36#!/bin/sh
37for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo; do
38bn=`basename $f`
39 update-alternatives --install /$f $bn /$f.26 60
40done
41update-alternatives --install /bin/lsmod bin-lsmod /bin/lsmod.26 60
42update-alternatives --install /sbin/lsmod lsmod /bin/lsmod.26 60
43}
44
45pkg_prerm_module-init-tools() {
46#!/bin/sh
47for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo; do
48bn=`basename $f`
49 update-alternatives --remove $bn /$f.26
50done
51update-alternatives --remove bin-lsmod /bin/lsmod.26
52update-alternatives --remove lsmod /bin/lsmod.26
53}
54
55pkg_postinst_module-init-tools-depmod() {
56#!/bin/sh
57update-alternatives --install /sbin/depmod depmod /sbin/depmod.26 60
58}
59
60pkg_prerm_module-init-tools() {
61#!/bin/sh
62update-alternatives --remove depmod /sbin/depmod.26
63}