Magellan Linux

Annotation of /smage/trunk/core/module-init-tools/module-init-tools-3.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id