Magellan Linux

Contents of /trunk/core/module-init-tools/module-init-tools-3.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id