Magellan Linux

Annotation of /trunk/deprecated/kudzu-knoppix/kudzu-knoppix-1.1.36-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2411 - (hide annotations) (download)
Thu Jul 9 19:52:36 2009 UTC (14 years, 11 months ago) by niro
Original Path: trunk/todo/kudzu-knoppix/kudzu-knoppix-1.1.36-r5.smage2
File size: 1601 byte(s)
-moved to 'todo'
1 niro 2 # $Header: /magellan-cvs/smage/kudzu-knoppix/kudzu-knoppix-1.1.36-r5.smage2,v 1.2 2008/02/07 14:23:41 niro Exp $
2    
3     PNAME="kudzu-knoppix"
4     PVER="1.1.36"
5     PBUILD="r5"
6    
7     PCATEGORIE="sys-apps"
8     STATE="testing"
9    
10     DESCRIPTION="kudzu - knoppix version."
11     HOMEPAGE="http://www.knopper.net"
12    
13     DEPEND=">= dev-libs/newt-0.50.35"
14     SDEPEND=">= sys-apps/pciutils-2.1
15     >= dev-libs/dietlibc-0.23"
16    
17     PLEVEL="2"
18    
19     SRCFILE="${PNAME}_${PVER}-${PLEVEL}.tar.gz"
20     SRCDIR="${BUILDDIR}/${PNAME/-knoppix/}-${PVER}"
21    
22     sminclude mtools
23    
24     SRC_URI=(
25     http://debian-knoppix.alioth.debian.org/sources/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     )
28    
29     src_prepare()
30     {
31     munpack ${SRCFILE} || die
32     cd ${SRCDIR}
33    
34     # fix module file location
35     # we rebuild the modprobe.conf in the boot process !!
36     sed -i "s:/etc/modutils/kudzu:/etc/modules.d/kudzu:g" *.* || die
37    
38     # fix asm build issues with gcc4 and newest binutils
39     # ( at time of writing: 2.16.91.0.3 20050821)
40     sed -i "s:movl %:mov %:g" ddcprobe/lrmi.c || die
41    
42     # fix gcc4 issues with pci.c
43     sed -i "s:byte:u_int8_t:g" pci.c || die
44     }
45    
46     src_compile()
47     {
48     cd ${SRCDIR}
49     mmake || die
50    
51     if [[ ${ARCH} = i*86 ]]
52     then
53     cd ddcprobe || die
54     mmake || die
55     fi
56     }
57    
58     src_install()
59     {
60     cd ${SRCDIR}
61    
62     # needed directories
63     minstalldir /sbin || die
64    
65     minstall DESTDIR=${BINDIR} \
66     PREFIX=/usr \
67     MANDIR=/usr/share/man \
68     install-program || die
69    
70     if [[ ${ARCH} = i*86 ]]
71     then
72     cd ${SRCDIR}/ddcprobe
73     minstallexec svgamodes /sbin || die
74     minstallexec modetest /sbin || die
75     minstallexec ddcxinfo /sbin || die
76     minstallexec ddcprobe /sbin || die
77     fi
78    
79     cd ${SRCDIR}; minstalldocs CHANGELOG COPYING README || die
80     }

Properties

Name Value
svn:keywords Id