Contents of /trunk/core/module-init-tools/module-init-tools-3.7-r1.smage2
Parent Directory | Revision Log
Revision 1122 -
(show annotations)
(download)
Wed Apr 22 20:03:56 2009 UTC (15 years ago) by niro
File size: 1953 byte(s)
Wed Apr 22 20:03:56 2009 UTC (15 years ago) by niro
File size: 1953 byte(s)
-removed already upstream patches
1 | # $Id$ |
2 | |
3 | PNAME="module-init-tools" |
4 | PVER="3.7" |
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.1-abort-on-modprobe-failure.patch |
28 | mirror://${PNAME}/${PNAME}-3.2.2-handle-dupliate-aliases.patch |
29 | ) |
30 | # note: we dropped buildin modutils, *no* kernel-2.4 support anymore! |
31 | |
32 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | lasttarball" |
33 | |
34 | src_prepare() |
35 | { |
36 | munpack ${SRCFILE} || die |
37 | cd ${SRCDIR} |
38 | |
39 | # support legacy .o modules |
40 | mpatch ${PNAME}-0.9.15-legacy-modext-support.patch || die |
41 | mpatch ${PNAME}-3.1-abort-on-modprobe-failure.patch || die |
42 | |
43 | # fixes an endless loop |
44 | mpatch ${PNAME}-3.2.2-handle-dupliate-aliases.patch || die |
45 | |
46 | # from gentoo: |
47 | # make sure we link dynamically with zlib; our zlib.so is in /lib vs |
48 | # /usr/lib so it's safe to link with. fixes ugly textrels as well. |
49 | sed -i 's:-Wl,-Bstatic -lz -Wl,-Bdynamic:-lz:' configure || die |
50 | |
51 | [ -e ${SRCDIR}/missing ] && rm missing || die |
52 | |
53 | export WANT_AUTOMAKE=1.10 |
54 | automake --add-missing || die |
55 | |
56 | # do not regenerate man-pages (needs docbook2man) |
57 | touch *.5 *.8 || die |
58 | } |
59 | |
60 | src_compile() |
61 | { |
62 | cd ${SRCDIR} |
63 | mconfigure --prefix=/ --enable-zlib || die |
64 | mmake || die |
65 | } |
66 | |
67 | src_install() |
68 | { |
69 | cd ${SRCDIR} |
70 | mmake DESTDIR=${BINDIR} install || die |
71 | |
72 | # installs compat symlinks |
73 | mlink ../bin/lsmod /sbin/lsmod || die |
74 | } |
75 | |
76 | postinstall() |
77 | { |
78 | if [ -x /sbin/modules-update ] |
79 | then |
80 | echo "Updating module dependencies" |
81 | /sbin/modules-update |
82 | fi |
83 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |