Contents of /smage/trunk/core/module-init-tools/module-init-tools-3.4-r1.smage2
Parent Directory | Revision Log
Revision 5 -
(show annotations)
(download)
Sun Jan 11 00:59:57 2009 UTC (15 years, 8 months ago) by niro
File size: 2272 byte(s)
Sun Jan 11 00:59:57 2009 UTC (15 years, 8 months ago) by niro
File size: 2272 byte(s)
-moved several base packages to 'core'
1 | # $Header: /alx-cvs/smage-eglibc/module-init-tools/module-init-tools-3.4-r1.smage2,v 1.1 2008/02/27 10:19:53 niro Exp $ |
2 | |
3 | PNAME="module-init-tools" |
4 | PVER="3.4" |
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.14" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | sminclude mtools alx |
21 | |
22 | SRC_URI=( |
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.1-generate-modprobe-assume-kernel.patch |
27 | mirror://${PNAME}/${PNAME}-3.1-abort-on-modprobe-failure.patch |
28 | mirror://${PNAME}/${PNAME}-3.2.2-handle-dupliate-aliases.patch |
29 | mirror://${PNAME}/${PNAME}-${PVER}-manpages.patch |
30 | ) |
31 | # note: we dropped buildin modutils, *no* kernel-2.4 support anymore! |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # support legacy .o modules |
39 | mpatch ${PNAME}-0.9.15-legacy-modext-support.patch || die |
40 | mpatch ${PNAME}-3.1-generate-modprobe-assume-kernel.patch || die |
41 | mpatch ${PNAME}-3.1-abort-on-modprobe-failure.patch || die |
42 | |
43 | # fixes an endless loop |
44 | mpatch ${PNAME}-3.2.2-handle-dupliate-aliases.patch || die |
45 | |
46 | # workaround docbook2man dependency; provide prebuild man-pages |
47 | # -Np1 must be given, this patch creates new files! |
48 | mpatch -Np1 ${PNAME}-${PVER}-manpages.patch || die |
49 | |
50 | # from gentoo: |
51 | # make sure we link dynamically with zlib; our zlib.so is in /lib vs |
52 | # /usr/lib so it's safe to link with. fixes ugly textrels as well. |
53 | sed -i 's:-Wl,-Bstatic -lz -Wl,-Bdynamic:-lz:' configure || die |
54 | |
55 | [ -e ${SRCDIR}/missing ] && rm missing || die |
56 | |
57 | export WANT_AUTOMAKE=1.9 |
58 | automake --add-missing || die |
59 | |
60 | # do not regenerate man-pages (needs docbook2man) |
61 | touch *.5 *.8 || die |
62 | } |
63 | |
64 | src_compile() |
65 | { |
66 | cd ${SRCDIR} |
67 | mconfigure --prefix=/ --enable-zlib || die |
68 | mmake || die |
69 | } |
70 | |
71 | src_install() |
72 | { |
73 | cd ${SRCDIR} |
74 | mmake DESTDIR=${BINDIR} install || die |
75 | |
76 | # installs compat symlinks |
77 | mlink ../bin/lsmod /sbin/lsmod || die |
78 | } |
79 | |
80 | postinstall() |
81 | { |
82 | if [ -x /sbin/modules-update ] |
83 | then |
84 | echo "Updating module dependencies" |
85 | /sbin/modules-update |
86 | fi |
87 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |