Contents of /smage/branches/alx-0_6_0/core/module-init-tools/module-init-tools-3.12-r2.smage2
Parent Directory | Revision Log
Revision 2835 -
(show annotations)
(download)
Fri Sep 2 18:01:52 2011 UTC (13 years ago) by niro
File size: 1335 byte(s)
Fri Sep 2 18:01:52 2011 UTC (13 years ago) by niro
File size: 1335 byte(s)
-no buildin modutils anymore
1 | # $Id$ |
2 | |
3 | PNAME="module-init-tools" |
4 | PVER="3.12" |
5 | PBUILD="r2" |
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 | sminclude mtools alx-split |
27 | |
28 | SRC_URI=( |
29 | http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE} |
30 | http://www.kernel.org/pub/linux/kernel/people/jcm/${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | ) |
33 | |
34 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | grep -v rc | lasttarball" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | cd ${SRCDIR} |
40 | |
41 | # do not regenerate man-pages (needs docbook2man) |
42 | touch *.5 *.8 || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | mconfigure --prefix=/ --enable-zlib --enable-zlib-dynamic --disable-static-utils || die |
49 | mmake || die |
50 | } |
51 | |
52 | alx_generic_src_install() |
53 | { |
54 | cd ${SRCDIR} |
55 | mmake DESTDIR=${BINDIR} install || die |
56 | |
57 | # installs compat symlinks |
58 | mlink ../bin/lsmod /sbin/lsmod || die |
59 | } |
60 | |
61 | postinstall() |
62 | { |
63 | if [ -x /sbin/modules-update ] |
64 | then |
65 | echo "Updating module dependencies" |
66 | /sbin/modules-update |
67 | fi |
68 | |
69 | alx-split_postinstall |
70 | } |