From 29c2dc5ece9b937ca1bd08d42af0f0303dd84bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 13 Mar 2016 17:28:08 +0100 Subject: [PATCH] pciutils: update recipe to latest release 3.4.1 --- sys-apps/pciutils/pciutils-3.4.1.recipe | 84 +++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 sys-apps/pciutils/pciutils-3.4.1.recipe diff --git a/sys-apps/pciutils/pciutils-3.4.1.recipe b/sys-apps/pciutils/pciutils-3.4.1.recipe new file mode 100644 index 000000000..4a0a5999e --- /dev/null +++ b/sys-apps/pciutils/pciutils-3.4.1.recipe @@ -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.* +}