pciutils: update recipe to latest release 3.4.1

This commit is contained in:
François Revol
2016-03-13 17:28:08 +01:00
parent 39cce21e02
commit 29c2dc5ece

View File

@@ -0,0 +1,84 @@
SUMMARY="Utilities for inspecting and manipulating PCI devices"
DESCRIPTION="The PCI Utilities are a collection of programs for inspecting \
and manipulating configuration of PCI devices, all based on a common \
portable library libpci which offers access to the PCI configuration space \
on a variety of operating systems.
The utilities include:
- lspci - displays detailed information about all PCI buses and devices in \
the system
- setpci - allows reading from and writing to PCI device configuration \
registers. For example, you can adjust the latency timers with it."
HOMEPAGE="http://mj.ucw.cz/sw/pciutils/"
COPYRIGHT="1997-2012 Martin Mares"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-3.4.1.tar.gz"
CHECKSUM_SHA256="0196624282c33a9bcd4bd097d4100271c82af47797ecd7488ef2711fa5f043b2"
#PATCHES="pciutils-3.4.1_git-0001-C89.patch"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
pciutils${secondaryArchSuffix} = $portVersion
cmd:lspci${secondaryArchSuffix} = $portVersion
cmd:setpci${secondaryArchSuffix} = $portVersion
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libz${secondaryArchSuffix}
"
PROVIDES_devel="
pciutils${secondaryArchSuffix}_devel = $portVersion
devel:pciutils$secondaryArchSuffix = $portVersion
devel:libpci$secondaryArchSuffix
"
REQUIRES_devel="
pciutils$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libz${secondaryArchSuffix}
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc${secondaryArchSuffix}
"
BUILD()
{
make \
ZLIB=yes \
PREFIX=$prefix \
SHAREDIR=$dataDir \
SBINDIR=$binDir \
MANDIR=$manDir \
INCDIR=$headersDir \
LIBDIR=$developLibDir
}
#TODO: SHARED=yes?
# XXX: remove update-pciids (packages are read-only anyway)
INSTALL()
{
make \
ZLIB=yes \
PREFIX=$prefix \
SHAREDIR=$dataDir \
SBINDIR=$binDir \
MANDIR=$manDir \
INCDIR=$includeDir \
LIBDIR=$developLibDir \
install install-lib
rm -f $binDir/update-pciids
rm -f $manDir/man*/update-pciids.*
# devel package
packageEntries devel \
$developDir \
$manDir/man*/pcilib.*
}