Contents of /trunk/core/module-init-tools/module-init-tools-3.4-r1.smage2
Parent Directory | Revision Log
Revision 2 -
(show annotations)
(download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 2355 byte(s)
Fri Oct 10 13:29:42 2008 UTC (15 years, 8 months ago) by niro
File size: 2355 byte(s)
import repo
1 | # $Header: /magellan-cvs/smage/module-init-tools/module-init-tools-3.4-r1.smage2,v 1.9 2008/02/10 10:51:27 niro Exp $ |
2 | |
3 | PNAME="module-init-tools" |
4 | PVER="3.4" |
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.14" |
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/kernel/people/jcm/${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-0.9.15-legacy-modext-support.patch |
26 | mirror://${PNAME}/${PNAME}-3.1-generate-modprobe-assume-kernel.patch |
27 | mirror://${PNAME}/${PNAME}-3.1-abort-on-modprobe-failure.patch |
28 | mirror://${PNAME}/${PNAME}-3.2.2-handle-dupliate-aliases.patch |
29 | mirror://${PNAME}/${PNAME}-${PVER}-manpages.patch |
30 | ) |
31 | # note: we dropped buildin modutils, *no* kernel-2.4 support anymore! |
32 | |
33 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | lasttarball" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # support legacy .o modules |
41 | mpatch ${PNAME}-0.9.15-legacy-modext-support.patch || die |
42 | mpatch ${PNAME}-3.1-generate-modprobe-assume-kernel.patch || die |
43 | mpatch ${PNAME}-3.1-abort-on-modprobe-failure.patch || die |
44 | |
45 | # fixes an endless loop |
46 | mpatch ${PNAME}-3.2.2-handle-dupliate-aliases.patch || die |
47 | |
48 | # workaround docbook2man dependency; provide prebuild man-pages |
49 | # -Np1 must be given, this patch creates new files! |
50 | mpatch -Np1 ${PNAME}-${PVER}-manpages.patch || die |
51 | |
52 | # from gentoo: |
53 | # make sure we link dynamically with zlib; our zlib.so is in /lib vs |
54 | # /usr/lib so it's safe to link with. fixes ugly textrels as well. |
55 | sed -i 's:-Wl,-Bstatic -lz -Wl,-Bdynamic:-lz:' configure || die |
56 | |
57 | [ -e ${SRCDIR}/missing ] && rm missing || die |
58 | |
59 | export WANT_AUTOMAKE=1.9 |
60 | automake --add-missing || die |
61 | |
62 | # do not regenerate man-pages (needs docbook2man) |
63 | touch *.5 *.8 || die |
64 | } |
65 | |
66 | src_compile() |
67 | { |
68 | cd ${SRCDIR} |
69 | mconfigure --prefix=/ --enable-zlib || die |
70 | mmake || die |
71 | } |
72 | |
73 | src_install() |
74 | { |
75 | cd ${SRCDIR} |
76 | mmake DESTDIR=${BINDIR} install || die |
77 | |
78 | # installs compat symlinks |
79 | mlink ../bin/lsmod /sbin/lsmod || die |
80 | } |
81 | |
82 | postinstall() |
83 | { |
84 | if [ -x /sbin/modules-update ] |
85 | then |
86 | echo "Updating module dependencies" |
87 | /sbin/modules-update |
88 | fi |
89 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |