Magellan Linux

Annotation of /trunk/deprecated/module-init-tools/module-init-tools-3.16-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10982 - (hide annotations) (download)
Mon Feb 6 12:07:10 2012 UTC (12 years, 4 months ago) by niro
File size: 1951 byte(s)
-moved to 'deprecated'
1 niro 10931 # $Id$
2    
3     PNAME="module-init-tools"
4     PVER="3.16"
5     PBUILD="r2"
6    
7     PCAT="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-4"
15    
16     PROVIDE="virtual/module-tools"
17    
18     SRCFILE="${PNAME}-${PVER}.tar.bz2"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     sminclude mtools
22    
23     SRC_URI=(
24     http://ftp.uni-frankfurt.de/kernel/linux/utils/kernel/${PNAME}/${SRCFILE}
25     http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE}
26     http://www.kernel.org/pub/linux/kernel/people/jcm/${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${SRCFILE}
28     mirror://${PNAME}/${PNAME}-0.9.15-legacy-modext-support.patch
29     mirror://${PNAME}/${PNAME}-3.2.2-handle-dupliate-aliases.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} | grep -v rc | grep -v latest | 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    
43     # fixes an endless loop
44     mpatch ${PNAME}-3.2.2-handle-dupliate-aliases.patch || die
45    
46     # from gentoo:
47     # make sure we link dynamically with zlib; our zlib.so is in /lib vs
48     # /usr/lib so it's safe to link with. fixes ugly textrels as well.
49 niro 10932 sed -i 's:-Wl,-Bstatic -lz -Wl,-Bdynamic:-lz:' configure.ac || die
50 niro 10931
51     [ -e ${SRCDIR}/missing ] && rm missing || die
52    
53     export WANT_AUTOMAKE=1.10
54     mautoreconf || die
55    
56     # do not regenerate man-pages (needs docbook2man)
57     touch *.5 *.8 || die
58     }
59    
60     src_compile()
61     {
62     cd ${SRCDIR}
63     DOCBOOKTOMAN=true mconfigure --prefix=/ --enable-zlib || die
64     mmake || die
65     }
66    
67     src_install()
68     {
69     cd ${SRCDIR}
70     mmake DESTDIR=${BINDIR} install || die
71    
72     # installs compat symlinks
73     mlink ../bin/lsmod /sbin/lsmod || die
74     }
75    
76     postinstall()
77     {
78     if [ -x /sbin/modules-update ]
79     then
80     echo "Updating module dependencies"
81     /sbin/modules-update
82     fi
83     }