Annotation of /smage/trunk/core/module-init-tools/module-init-tools-3.16-r1.smage2
Parent Directory | Revision Log
Revision 1855 -
(hide annotations)
(download)
Thu Sep 29 14:55:57 2011 UTC (12 years, 7 months ago) by niro
File size: 1354 byte(s)
Thu Sep 29 14:55:57 2011 UTC (12 years, 7 months ago) by niro
File size: 1354 byte(s)
auto added: ver bump to 3.16-r1
1 | niro | 1855 | # $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 | MCORE_ONLY_KEEP="bin/lsmod | ||
20 | sbin/depmod | ||
21 | sbin/insmod | ||
22 | sbin/lsmod | ||
23 | sbin/modprobe | ||
24 | sbin/rmmod" | ||
25 | sminclude mtools mcore-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 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} | ||
31 | mirror://${PNAME}/${SRCFILE} | ||
32 | ) | ||
33 | |||
34 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | grep -v rc | grep -v latest | 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 | DOCBOOKTOMAN=true mconfigure --prefix=/ --enable-zlib || die | ||
49 | mmake || die | ||
50 | } | ||
51 | |||
52 | mcore_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 | } |