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