diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/module-init-tools/module-init-tools_3.2.2.bb | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-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.bb | 63 |
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 @@ | |||
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 = "r2" | ||
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/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/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-depmod() { | ||
61 | #!/bin/sh | ||
62 | update-alternatives --remove depmod /sbin/depmod.26 | ||
63 | } | ||