Contents of /trunk/core/pciutils/pciutils-3.6.0-r1.smage2
Parent Directory | Revision Log
Revision 31408 -
(show annotations)
(download)
Tue Jul 3 12:44:57 2018 UTC (6 years, 2 months ago) by niro
File size: 1403 byte(s)
Tue Jul 3 12:44:57 2018 UTC (6 years, 2 months ago) by niro
File size: 1403 byte(s)
auto added: ver bump to 3.6.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="pciutils" |
4 | PVER="3.6.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="Various utilities dealing with the PCI bus." |
10 | HOMEPAGE="http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html" |
11 | |
12 | DEPEND=">= net-misc/wget-1.12 |
13 | >= sys-apps/which-2.20 |
14 | >= virtual/glibc" |
15 | |
16 | SDEPEND=">= virtual/sed" |
17 | |
18 | PROVIDE="virtual/pciutils" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mtools |
24 | |
25 | SRC_URI=( |
26 | http://www.kernel.org/pub/software/utils/${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${PNAME}-2.2.0-scan.patch |
29 | ) |
30 | |
31 | UP2DATE="updatecmd http://www.kernel.org/pub/software/utils/${PNAME}/ | highesttarball gz" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # fix segfaults |
39 | mpatch ${PNAME}-2.2.0-scan.patch || die |
40 | |
41 | # fix pathes |
42 | sed -i -e '/^PREFIX=/s:=.*:=/usr:' \ |
43 | -e '/^IDSDIR=/s:=.*:=$(PREFIX)/share/misc:' \ |
44 | -e "/^LIBDIR=/s:/lib:/$(mlibdir):" \ |
45 | Makefile || die |
46 | |
47 | # update pci-ids via internet (needs wget) |
48 | ./update-pciids.sh || die |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | cd ${SRCDIR} |
54 | # disable zlib support, or it breaks hal-0.5.10 pci support |
55 | mmake ZLIB=no DNS=yes OPT="${CFLAGS} -fPIC" SHARED=yes || die |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | cd ${SRCDIR} |
61 | |
62 | # needed directories |
63 | minstalldir /usr/$(mlibdir) || die |
64 | minstalldir /usr/{include/pci,share/man} || die |
65 | |
66 | mmake PREFIX=${BINDIR}/usr install install-lib || die |
67 | |
68 | # docs |
69 | minstalldocs ChangeLog README TODO || die |
70 | } |