summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/module-init-tools/module-init-tools_3.2-pre9.bb
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/packages/module-init-tools/module-init-tools_3.2-pre9.bb')
-rw-r--r--openembedded/packages/module-init-tools/module-init-tools_3.2-pre9.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/openembedded/packages/module-init-tools/module-init-tools_3.2-pre9.bb b/openembedded/packages/module-init-tools/module-init-tools_3.2-pre9.bb
new file mode 100644
index 0000000000..bbd8cca1bf
--- /dev/null
+++ b/openembedded/packages/module-init-tools/module-init-tools_3.2-pre9.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}