summaryrefslogtreecommitdiffstats
path: root/meta/packages/module-init-tools/module-init-tools_3.2.2.bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/module-init-tools/module-init-tools_3.2.2.bb
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/module-init-tools/module-init-tools_3.2.2.bb')
-rw-r--r--meta/packages/module-init-tools/module-init-tools_3.2.2.bb63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/packages/module-init-tools/module-init-tools_3.2.2.bb b/meta/packages/module-init-tools/module-init-tools_3.2.2.bb
new file mode 100644
index 0000000000..727bfaac1b
--- /dev/null
+++ b/meta/packages/module-init-tools/module-init-tools_3.2.2.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 = "r2"
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/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/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-depmod() {
61#!/bin/sh
62update-alternatives --remove depmod /sbin/depmod.26
63}