Contents of /smage/trunk/core/module-init-tools/module-init-tools-3.16-r1.smage2
Parent Directory | Revision Log
Revision 2916 -
(show annotations)
(download)
Tue Sep 6 16:48:36 2011 UTC (12 years, 9 months ago) by niro
File size: 1292 byte(s)
Tue Sep 6 16:48:36 2011 UTC (12 years, 9 months ago) by niro
File size: 1292 byte(s)
-fixed docbook issues
1 | # $Id$ |
2 | |
3 | PNAME="module-init-tools" |
4 | PVER="3.16" |
5 | PBUILD="r1" |
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 | ALX_ONLY_KEEP="bin/lsmod |
20 | sbin/depmod |
21 | sbin/insmod |
22 | sbin/lsmod |
23 | sbin/modprobe |
24 | sbin/rmmod" |
25 | sminclude mtools alx-split |
26 | |
27 | SRC_URI=( |
28 | http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE} |
29 | http://www.kernel.org/pub/linux/kernel/people/jcm/${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | ) |
32 | |
33 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | grep -v rc | grep -v latest | lasttarball" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # do not regenerate man-pages (needs docbook2man) |
41 | touch *.5 *.8 || die |
42 | } |
43 | |
44 | src_compile() |
45 | { |
46 | cd ${SRCDIR} |
47 | DOCBOOKTOMAN=true mconfigure --prefix=/ --enable-zlib || die |
48 | mmake || die |
49 | } |
50 | |
51 | alx_generic_src_install() |
52 | { |
53 | cd ${SRCDIR} |
54 | mmake DESTDIR=${BINDIR} install || die |
55 | |
56 | # installs compat symlinks |
57 | mlink ../bin/lsmod /sbin/lsmod || die |
58 | } |
59 | |
60 | postinstall() |
61 | { |
62 | if [ -x /sbin/modules-update ] |
63 | then |
64 | echo "Updating module dependencies" |
65 | /sbin/modules-update |
66 | fi |
67 | |
68 | alx-split_postinstall |
69 | } |