Contents of /smage/branches/alx-0_6_0/core/module-init-tools/module-init-tools-3.12-r3.smage2
Parent Directory | Revision Log
Revision 3616 -
(show annotations)
(download)
Wed Jul 11 10:02:26 2012 UTC (11 years, 9 months ago) by niro
File size: 1349 byte(s)
Wed Jul 11 10:02:26 2012 UTC (11 years, 9 months ago) by niro
File size: 1349 byte(s)
-include modinfo to satisfy the new firmware inclusion machnism in mkinitrd
1 | # $Id$ |
2 | |
3 | PNAME="module-init-tools" |
4 | PVER="3.12" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | |
9 | DESCRIPTION="Kernel module utilities for 2.6x kernel series." |
10 | HOMEPAGE="http://www.kerneltools.org/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= sys-libs/zlib-1.2.5 |
14 | >= virtual/debianutils" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
20 | ALX_ONLY_KEEP="bin/lsmod |
21 | sbin/depmod |
22 | sbin/insmod |
23 | sbin/lsmod |
24 | sbin/modprobe |
25 | sbin/rmmod |
26 | sbin/modinfo" |
27 | sminclude mtools alx-split |
28 | |
29 | SRC_URI=( |
30 | http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE} |
31 | http://www.kernel.org/pub/linux/kernel/people/jcm/${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | ) |
34 | |
35 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | grep -v rc | lasttarball" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | cd ${SRCDIR} |
41 | |
42 | # do not regenerate man-pages (needs docbook2man) |
43 | touch *.5 *.8 || die |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | cd ${SRCDIR} |
49 | mconfigure --prefix=/ --enable-zlib --enable-zlib-dynamic --disable-static-utils || die |
50 | mmake || die |
51 | } |
52 | |
53 | alx_generic_src_install() |
54 | { |
55 | cd ${SRCDIR} |
56 | mmake DESTDIR=${BINDIR} install || die |
57 | |
58 | # installs compat symlinks |
59 | mlink ../bin/lsmod /sbin/lsmod || die |
60 | } |
61 | |
62 | postinstall() |
63 | { |
64 | if [ -x /sbin/modules-update ] |
65 | then |
66 | echo "Updating module dependencies" |
67 | /sbin/modules-update |
68 | fi |
69 | |
70 | alx-split_postinstall |
71 | } |