Contents of /smage/branches/alx-0_6_0/core/module-init-tools/module-init-tools-3.12-r1.smage2
Parent Directory | Revision Log
Revision 2062 -
(show annotations)
(download)
Wed May 11 20:59:25 2011 UTC (13 years, 1 month ago) by niro
File size: 2041 byte(s)
Wed May 11 20:59:25 2011 UTC (13 years, 1 month ago) by niro
File size: 2041 byte(s)
-use alx-split_postinstall
1 | # $Id$ |
2 | |
3 | PNAME="module-init-tools" |
4 | PVER="3.12" |
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.5 |
15 | >= virtual/debianutils" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
21 | ALX_ONLY_KEEP="bin/lsmod |
22 | sbin/depmod |
23 | sbin/insmod |
24 | sbin/lsmod |
25 | sbin/modprobe |
26 | sbin/rmmod" |
27 | sminclude mtools alx-split |
28 | |
29 | SRC_URI=( |
30 | http://www.kernel.org/pub/linux/utils/kernel/${PNAME}/${SRCFILE} |
31 | http://www.kernel.org/pub/linux/kernel/people/jcm/${PNAME}/${SRCFILE} |
32 | mirror://${PNAME}/${SRCFILE} |
33 | mirror://${PNAME}/${PNAME}-0.9.15-legacy-modext-support.patch |
34 | mirror://${PNAME}/${PNAME}-3.2.2-handle-dupliate-aliases.patch |
35 | ) |
36 | # note: we dropped buildin modutils, *no* kernel-2.4 support anymore! |
37 | |
38 | UP2DATE="updatecmd http://www.kernel.org/pub/linux/utils/kernel/${PNAME} | grep -v rc | lasttarball" |
39 | |
40 | src_prepare() |
41 | { |
42 | munpack ${SRCFILE} || die |
43 | cd ${SRCDIR} |
44 | |
45 | # support legacy .o modules |
46 | mpatch ${PNAME}-0.9.15-legacy-modext-support.patch || die |
47 | |
48 | # fixes an endless loop |
49 | mpatch ${PNAME}-3.2.2-handle-dupliate-aliases.patch || die |
50 | |
51 | # from gentoo: |
52 | # make sure we link dynamically with zlib; our zlib.so is in /lib vs |
53 | # /usr/lib so it's safe to link with. fixes ugly textrels as well. |
54 | sed -i 's:-Wl,-Bstatic -lz -Wl,-Bdynamic:-lz:' configure || die |
55 | |
56 | [ -e ${SRCDIR}/missing ] && rm missing || die |
57 | |
58 | export WANT_AUTOMAKE=1.10 |
59 | autoreconf --verbose --install --force || die |
60 | |
61 | # do not regenerate man-pages (needs docbook2man) |
62 | touch *.5 *.8 || die |
63 | } |
64 | |
65 | src_compile() |
66 | { |
67 | cd ${SRCDIR} |
68 | DOCBOOKTOMAN=true mconfigure --prefix=/ --enable-zlib || die |
69 | mmake || die |
70 | } |
71 | |
72 | alx_generic_src_install() |
73 | { |
74 | cd ${SRCDIR} |
75 | mmake DESTDIR=${BINDIR} install || die |
76 | |
77 | # installs compat symlinks |
78 | mlink ../bin/lsmod /sbin/lsmod || die |
79 | } |
80 | |
81 | postinstall() |
82 | { |
83 | if [ -x /sbin/modules-update ] |
84 | then |
85 | echo "Updating module dependencies" |
86 | /sbin/modules-update |
87 | fi |
88 | |
89 | alx-split_postinstall |
90 | } |