Magellan Linux

Annotation of /branches/magellan-next/core/module-init-tools/module-init-tools-3.16-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8775 - (hide annotations) (download)
Thu Jul 28 16:33:43 2011 UTC (12 years, 10 months ago) by niro
File size: 1877 byte(s)
auto added: ver bump to 3.16-r1
1 niro 8775 # $Id$
2    
3     PNAME="module-init-tools"
4     PVER="3.16"
5     PBUILD="r1"
6    
7     PCATEGORIE="sys-apps"
8    
9     DESCRIPTION="Kernel module utilities for 2.6x kernel series."
10     HOMEPAGE="http://www.kerneltools.org/"
11    
12     DEPEND=">= virtual/glibc
13     >= sys-libs/zlib-1.2.5
14     >= sys-apps/debianutils-2.30"
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 | grep -v latest | 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     }