From 0598a58bda08c36488aa4c9247abd10d3e32da4e Mon Sep 17 00:00:00 2001 From: hasso Date: Mon, 20 Jul 2009 05:58:44 +0000 Subject: PCI domains support for recent DragonFly. Bump PKGREVISION. --- sysutils/pciutils/Makefile | 3 ++- sysutils/pciutils/distinfo | 3 ++- sysutils/pciutils/patches/patch-ad | 22 ++++++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 sysutils/pciutils/patches/patch-ad (limited to 'sysutils') diff --git a/sysutils/pciutils/Makefile b/sysutils/pciutils/Makefile index 422fea361ca..bbd61f00bd1 100644 --- a/sysutils/pciutils/Makefile +++ b/sysutils/pciutils/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.15 2009/07/08 06:00:47 hasso Exp $ +# $NetBSD: Makefile,v 1.16 2009/07/20 05:58:44 hasso Exp $ DISTNAME= pciutils-3.1.3 +PKGREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \ ftp://ftp.kernel.org/pub/software/utils/pciutils/ diff --git a/sysutils/pciutils/distinfo b/sysutils/pciutils/distinfo index 7acf1ad174c..90d5ed4c1b3 100644 --- a/sysutils/pciutils/distinfo +++ b/sysutils/pciutils/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2009/07/08 06:00:47 hasso Exp $ +$NetBSD: distinfo,v 1.7 2009/07/20 05:58:44 hasso Exp $ SHA1 (pciutils-3.1.3.tar.gz) = 7b7e473fe6778829db5cac9de60b3f10030a6c0d RMD160 (pciutils-3.1.3.tar.gz) = f0f23de4582a2d66a551588e80c5001256ba5f71 @@ -6,3 +6,4 @@ Size (pciutils-3.1.3.tar.gz) = 296808 bytes SHA1 (patch-aa) = 16e03deaec5e918bca910f3b53e86920d8b4e9b2 SHA1 (patch-ab) = 1448bb418cdc908eb6652cc98994d23d0d78cea0 SHA1 (patch-ac) = c917e8ad2d1e87fa65a2d8f3256afd40d5a87396 +SHA1 (patch-ad) = bfe9069e96fd46798afec73c93ad71db3a0e0e37 diff --git a/sysutils/pciutils/patches/patch-ad b/sysutils/pciutils/patches/patch-ad new file mode 100644 index 00000000000..ea342164890 --- /dev/null +++ b/sysutils/pciutils/patches/patch-ad @@ -0,0 +1,22 @@ +$NetBSD: patch-ad,v 1.1 2009/07/20 05:58:44 hasso Exp $ + +--- lib/fbsd-device.c.orig 2009-07-20 08:16:03 +0300 ++++ lib/fbsd-device.c 2009-07-20 08:17:55 +0300 +@@ -77,7 +77,7 @@ fbsd_read(struct pci_dev *d, int pos, by + if (pos >= 256) + return 0; + +-#if __FreeBSD_version >= 700053 ++#if __FreeBSD_version >= 700053 || __DragonFly_version >= 200203 + pi.pi_sel.pc_domain = d->domain; + #endif + pi.pi_sel.pc_bus = d->bus; +@@ -120,7 +120,7 @@ fbsd_write(struct pci_dev *d, int pos, b + if (pos >= 256) + return 0; + +-#if __FreeBSD_version >= 700053 ++#if __FreeBSD_version >= 700053 || __DragonFly_version >= 200203 + pi.pi_sel.pc_domain = d->domain; + #endif + pi.pi_sel.pc_bus = d->bus; -- cgit v1.2.3