diff options
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.bb | 63 |
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 @@ | |||
1 | DESCRIPTION = "This package contains a set of programs for loading, inserting, and \ | ||
2 | removing kernel modules for Linux (versions 2.5.48 and above). It serves \ | ||
3 | the same function that the modutils package serves for Linux 2.4." | ||
4 | LICENSE = "GPL" | ||
5 | SECTION = "base" | ||
6 | PR = "r0" | ||
7 | |||
8 | PACKAGES =+ "module-init-tools-insmod-static module-init-tools-depmod" | ||
9 | RDEPENDS_${PN} += "module-init-tools-depmod" | ||
10 | |||
11 | FILES_module-init-tools-depmod = "${sbindir}/depmod.26" | ||
12 | FILES_module-init-tools-insmod-static = "${sbindir}/insmod.static" | ||
13 | |||
14 | SRC_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 " | ||
19 | S = "${WORKDIR}/module-init-tools-${PV}" | ||
20 | |||
21 | EXTRA_OECONF = "--disable-manpages" | ||
22 | |||
23 | bindir = "/bin" | ||
24 | sbindir = "/sbin" | ||
25 | |||
26 | inherit autotools | ||
27 | |||
28 | do_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 | |||
35 | pkg_postinst_module-init-tools() { | ||
36 | #!/bin/sh | ||
37 | for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo; do | ||
38 | bn=`basename $f` | ||
39 | update-alternatives --install /$f $bn /$f.26 60 | ||
40 | done | ||
41 | update-alternatives --install /bin/lsmod bin-lsmod /bin/lsmod.26 60 | ||
42 | update-alternatives --install /sbin/lsmod lsmod /bin/lsmod.26 60 | ||
43 | } | ||
44 | |||
45 | pkg_prerm_module-init-tools() { | ||
46 | #!/bin/sh | ||
47 | for f in sbin/insmod sbin/modprobe sbin/rmmod sbin/depmod sbin/modinfo; do | ||
48 | bn=`basename $f` | ||
49 | update-alternatives --remove $bn /$f.26 | ||
50 | done | ||
51 | update-alternatives --remove bin-lsmod /bin/lsmod.26 | ||
52 | update-alternatives --remove lsmod /bin/lsmod.26 | ||
53 | } | ||
54 | |||
55 | pkg_postinst_module-init-tools-depmod() { | ||
56 | #!/bin/sh | ||
57 | update-alternatives --install /sbin/depmod depmod /sbin/depmod.26 60 | ||
58 | } | ||
59 | |||
60 | pkg_prerm_module-init-tools() { | ||
61 | #!/bin/sh | ||
62 | update-alternatives --remove depmod /sbin/depmod.26 | ||
63 | } | ||