Annotation of /smage/trunk/core/module-init-tools/module-init-tools-3.12-r1.smage2
Parent Directory | Revision Log
Revision 718 -
(hide annotations)
(download)
Thu Oct 21 15:12:28 2010 UTC (13 years, 6 months ago) by niro
File size: 1943 byte(s)
Thu Oct 21 15:12:28 2010 UTC (13 years, 6 months ago) by niro
File size: 1943 byte(s)
auto added: ver bump to 3.12-r1
1 | niro | 718 | # $Id: module-init-tools-3.10-r1.smage2 3065 2009-10-07 21:52:46Z niro $ |
2 | |||
3 | PNAME="module-init-tools" | ||
4 | PVER="3.12" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="sys-apps" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Kernel module utilities for 2.6x kernel series." | ||
11 | HOMEPAGE="http://www.kerneltools.org/" | ||
12 | |||
13 | DEPEND=">= virtual/glibc | ||
14 | >= sys-libs/zlib-1.2.3 | ||
15 | >= sys-apps/debianutils-2.30" | ||
16 | |||
17 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
19 | |||
20 | sminclude mtools | ||
21 | |||
22 | SRC_URI=( | ||
23 | http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE} | ||
24 | http://www.kernel.org/pub/linux/kernel/people/jcm/${PNAME}/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | mirror://${PNAME}/${PNAME}-0.9.15-legacy-modext-support.patch | ||
27 | mirror://${PNAME}/${PNAME}-3.2.2-handle-dupliate-aliases.patch | ||
28 | ) | ||
29 | # note: we dropped buildin modutils, *no* kernel-2.4 support anymore! | ||
30 | |||
31 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | grep -v rc | lasttarball" | ||
32 | |||
33 | src_prepare() | ||
34 | { | ||
35 | munpack ${SRCFILE} || die | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | # support legacy .o modules | ||
39 | mpatch ${PNAME}-0.9.15-legacy-modext-support.patch || die | ||
40 | |||
41 | # fixes an endless loop | ||
42 | mpatch ${PNAME}-3.2.2-handle-dupliate-aliases.patch || die | ||
43 | |||
44 | # from gentoo: | ||
45 | # make sure we link dynamically with zlib; our zlib.so is in /lib vs | ||
46 | # /usr/lib so it's safe to link with. fixes ugly textrels as well. | ||
47 | sed -i 's:-Wl,-Bstatic -lz -Wl,-Bdynamic:-lz:' configure || die | ||
48 | |||
49 | [ -e ${SRCDIR}/missing ] && rm missing || die | ||
50 | |||
51 | export WANT_AUTOMAKE=1.10 | ||
52 | autoreconf --verbose --install --force || die | ||
53 | |||
54 | # do not regenerate man-pages (needs docbook2man) | ||
55 | touch *.5 *.8 || die | ||
56 | } | ||
57 | |||
58 | src_compile() | ||
59 | { | ||
60 | cd ${SRCDIR} | ||
61 | DOCBOOKTOMAN=true mconfigure --prefix=/ --enable-zlib || die | ||
62 | mmake || die | ||
63 | } | ||
64 | |||
65 | src_install() | ||
66 | { | ||
67 | cd ${SRCDIR} | ||
68 | mmake DESTDIR=${BINDIR} install || die | ||
69 | |||
70 | # installs compat symlinks | ||
71 | mlink ../bin/lsmod /sbin/lsmod || die | ||
72 | } | ||
73 | |||
74 | postinstall() | ||
75 | { | ||
76 | if [ -x /sbin/modules-update ] | ||
77 | then | ||
78 | echo "Updating module dependencies" | ||
79 | /sbin/modules-update | ||
80 | fi | ||
81 | } |