From ab7d62ef414247e63a5af2076d3ad4969b2d7b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 28 Jan 2014 19:14:27 +0100 Subject: [PATCH] Add recipe for pciutils (git) * mark as untested since it points to git HEAD. --- .../patches/pciutils-3.2.1_git-0001-C89.patch | 30 +++++++ sys-apps/pciutils/pciutils-3.2.1_git.recipe | 80 +++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 sys-apps/pciutils/patches/pciutils-3.2.1_git-0001-C89.patch create mode 100644 sys-apps/pciutils/pciutils-3.2.1_git.recipe diff --git a/sys-apps/pciutils/patches/pciutils-3.2.1_git-0001-C89.patch b/sys-apps/pciutils/patches/pciutils-3.2.1_git-0001-C89.patch new file mode 100644 index 000000000..0861c4c79 --- /dev/null +++ b/sys-apps/pciutils/patches/pciutils-3.2.1_git-0001-C89.patch @@ -0,0 +1,30 @@ +From 5791b4969c8acb81a6879035269319d3140d2bfa Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= +Date: Wed, 18 Dec 2013 14:10:05 +0100 +Subject: [PATCH] C89 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: François Revol +--- + ls-caps.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ls-caps.c b/ls-caps.c +index f192510..865a999 100644 +--- a/ls-caps.c ++++ b/ls-caps.c +@@ -1260,8 +1260,8 @@ show_caps(struct device *d, int where) + + if (get_conf_word(d, PCI_STATUS) & PCI_STATUS_CAP_LIST) + { +- where = get_conf_byte(d, where) & ~3; + byte been_there[256]; ++ where = get_conf_byte(d, where) & ~3; + memset(been_there, 0, 256); + while (where) + { +-- +1.8.3.4 + diff --git a/sys-apps/pciutils/pciutils-3.2.1_git.recipe b/sys-apps/pciutils/pciutils-3.2.1_git.recipe new file mode 100644 index 000000000..7ba661e74 --- /dev/null +++ b/sys-apps/pciutils/pciutils-3.2.1_git.recipe @@ -0,0 +1,80 @@ +SUMMARY="Various utilities dealing with the PCI bus" +DESCRIPTION="Various utilities dealing with the PCI bus" +HOMEPAGE="http://mj.ucw.cz/sw/pciutils/" +SRC_URI="git://git.kernel.org/pub/scm/utils/pciutils/pciutils.git" +#CHECKSUM_MD5="" +REVISION="1" +LICENSE="GNU GPL v2" +COPYRIGHT="1997-2012 Martin Mares" + +ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86" + +PROVIDES=" + pciutils${secondaryArchSuffix} = $portVersion + cmd:lspci${secondaryArchSuffix} = $portVersion + cmd:setpci${secondaryArchSuffix} = $portVersion +# cmd:update-pciids${secondaryArchSuffix} = $portVersion +# lib:libpci${secondaryArchSuffix} +# devel:pciutils${secondaryArchSuffix} + " +REQUIRES=" + haiku${secondaryArchSuffix} >= $haikuVersion + lib:libz${secondaryArchSuffix} + " +BUILD_REQUIRES=" + haiku_devel >= $haikuVersion + devel:libz${secondaryArchSuffix} + " +BUILD_PREREQUIRES=" + cmd:make + cmd:gcc${secondaryArchSuffix} + " + +PATCHES="pciutils-3.2.1_git-0001-C89.patch" + +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.* +} + +PROVIDES_devel=" + pciutils${secondaryArchSuffix}_devel = $portVersion + devel:pciutils$secondaryArchSuffix = $portVersion + devel:libpci + " + +REQUIRES_devel=" + pciutils$secondaryArchSuffix == $portVersion base + " + +