Magellan Linux

Contents of /smage/branches/branch_0.9.0/pciutils/pciutils-2.2.9-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations) (download)
Sun Jan 11 00:50:17 2009 UTC (15 years, 4 months ago) by niro
File size: 1778 byte(s)
"copied"
1 # $Header: /alx-cvs/smage-eglibc/pciutils/pciutils-2.2.9-r4.smage2,v 1.1 2008/05/29 16:16:27 niro Exp $
2
3 PNAME="pciutils"
4 PVER="2.2.9"
5 PBUILD="r4"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Various utilities dealing with the PCI bus."
11 HOMEPAGE="http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html"
12
13 DEPEND=">= net-misc/wget-1.9
14 >= sys-apps/which-2.16
15 >= virtual/glibc"
16
17 SDEPEND=">= sys-apps/sed-4"
18
19 SRCFILE="${PNAME}-${PVER}.tar.gz"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude mtools alx
23
24 SRC_URI=(
25 ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-2.2.0-scan.patch
28 mirror://${PNAME}/${PNAME}-2.2.0-havepread.patch
29 mirror://${PNAME}/${PNAME}-2.2.4-buf.patch
30 )
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # fix segfaults
38 mpatch ${PNAME}-2.2.0-scan.patch || die
39
40 # always assume that pread exist; all newer glibc support this
41 mpatch ${PNAME}-2.2.0-havepread.patch || die
42
43 # truncate long device names
44 mpatch ${PNAME}-2.2.4-buf.patch || die
45
46 # fix pathes
47 sed -i -e '/^PREFIX=/s:=.*:=/usr:' \
48 -e '/^IDSDIR=/s:=.*:=$(PREFIX)/share/misc:' \
49 -e "/^LIBDIR=/s:/lib:/$(mlibdir):" \
50 Makefile || die
51
52 # update pci-ids via internet (needs wget)
53 ./update-pciids.sh || die
54 }
55
56 src_compile()
57 {
58 cd ${SRCDIR}
59 # disable zlib support, or it breaks hal-0.5.10 pci support
60 mmake ZLIB=no OPT="${CFLAGS} -fPIC" || die
61 }
62
63 src_install()
64 {
65 cd ${SRCDIR}
66
67 # needed directories
68 minstalldir /usr/$(mlibdir) || die
69 minstalldir /usr/{include/pci,share/man} || die
70
71 mmake PREFIX=${BINDIR}/usr install || die
72
73 # our lib
74 minstallfile lib/libpci.\* /usr/$(mlibdir) || die
75
76 # missing header
77 minstallfile lib/\*.h /usr/include/pci || die
78
79 # docs
80 minstalldocs ChangeLog README TODO || die
81 }

Properties

Name Value
svn:keywords Id