diff options
author | marcus <marcus@FreeBSD.org> | 2003-06-13 18:48:01 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-06-13 18:48:01 +0000 |
commit | f0d3fedeaa10268d28a5acfd9680a8ba1bacdc0f (patch) | |
tree | 4d82b2a4702a1b919070f7f4280e8318bc04ecba /sysutils/pciutils | |
parent | 46164367784b472e93fb18d0b48ca0441cdf1654 (diff) | |
download | FreeBSD-ports-f0d3fedeaa10268d28a5acfd9680a8ba1bacdc0f.zip FreeBSD-ports-f0d3fedeaa10268d28a5acfd9680a8ba1bacdc0f.tar.gz |
Add pciutils, a group of Linux utilities ported to FreeBSD that allow one
to list and manipulate PCI bus parameters.
Submitted by: Samy Al Bahra <samy@kerneled.com>
Diffstat (limited to 'sysutils/pciutils')
-rw-r--r-- | sysutils/pciutils/Makefile | 44 | ||||
-rw-r--r-- | sysutils/pciutils/distinfo | 1 | ||||
-rw-r--r-- | sysutils/pciutils/files/patch-Makefile | 13 | ||||
-rw-r--r-- | sysutils/pciutils/files/patch-lib::Makefile | 12 | ||||
-rw-r--r-- | sysutils/pciutils/files/patch-lib::fbsd-device.c | 24 | ||||
-rw-r--r-- | sysutils/pciutils/pkg-descr | 10 | ||||
-rw-r--r-- | sysutils/pciutils/pkg-plist | 4 |
7 files changed, 108 insertions, 0 deletions
diff --git a/sysutils/pciutils/Makefile b/sysutils/pciutils/Makefile new file mode 100644 index 0000000..fc7f12b --- /dev/null +++ b/sysutils/pciutils/Makefile @@ -0,0 +1,44 @@ +# New ports collection makefile for: pciutils +# Date created: June 12, 2003 +# Whom: Samy Al Bahra <samy@kerneled.com> +# +# $FreeBSD$ +# + +PORTNAME= pciutils +PORTVERSION= 2.1.11 +CATEGORIES= sysutils +MASTER_SITES= http://www.kerneled.com/freebsd/ports/ \ + ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \ + ftp://ftp.kernel.org/pub/software/utils/pciutils/ + +MAINTAINER= samy@kerneled.com +COMMENT= PCI configuration utilities + +USE_BZIP2= yes +USE_GMAKE= yes + +MAN8= lspci.8 setpci.8 update-pciids.8 + +pre-everything:: + @${ECHO} "" + @${ECHO} " W A R N I N G" + @${ECHO} "************************************************" + @${ECHO} "* pciutils requires that you have your kernel *" + @${ECHO} "* sources installed. If your kernel sources *" + @${ECHO} "* are somewhere other than /usr/src/sys, you *" + @${ECHO} "* may set the FREEBSD_SYS variable to the *" + @${ECHO} "* correct path. *" + @${ECHO} "************************************************" + @${ECHO} "" + +do-install: + @${INSTALL_MAN} ${WRKSRC}/lspci.8 ${PREFIX}/man/man8 + @${INSTALL_MAN} ${WRKSRC}/setpci.8 ${PREFIX}/man/man8 + @${INSTALL_MAN} ${WRKSRC}/update-pciids.8 ${PREFIX}/man/man8 + @${INSTALL_PROGRAM} ${WRKSRC}/lspci ${PREFIX}/bin + @${INSTALL_PROGRAM} ${WRKSRC}/setpci ${PREFIX}/bin + @${INSTALL_SCRIPT} ${WRKSRC}/update-pciids ${PREFIX}/sbin + @${INSTALL_DATA} ${WRKSRC}/pci.ids ${PREFIX}/share + +.include <bsd.port.mk> diff --git a/sysutils/pciutils/distinfo b/sysutils/pciutils/distinfo new file mode 100644 index 0000000..05b42be --- /dev/null +++ b/sysutils/pciutils/distinfo @@ -0,0 +1 @@ +MD5 (pciutils-2.1.11.tar.bz2) = 2b3b2147b7bc91f362be55cb49fa1c4e diff --git a/sysutils/pciutils/files/patch-Makefile b/sysutils/pciutils/files/patch-Makefile new file mode 100644 index 0000000..a17952c --- /dev/null +++ b/sysutils/pciutils/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig Sat Jan 4 15:53:01 2003 ++++ Makefile Fri Jun 13 21:20:28 2003 +@@ -2,9 +2,7 @@ + # Makefile for Linux PCI Utilities + # (c) 1998--2003 Martin Mares <mj@ucw.cz> + +-OPT=-O2 -fomit-frame-pointer +-#OPT=-O2 -g +-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes ++CFLAGS += -Wall -W -Wno-parentheses -Wstrict-prototypes + + VERSION=2.1.11 + #SUFFIX=-pre2 diff --git a/sysutils/pciutils/files/patch-lib::Makefile b/sysutils/pciutils/files/patch-lib::Makefile new file mode 100644 index 0000000..31a456e --- /dev/null +++ b/sysutils/pciutils/files/patch-lib::Makefile @@ -0,0 +1,12 @@ +--- lib/Makefile.orig Thu Dec 26 22:28:33 2002 ++++ lib/Makefile Thu Jun 12 02:46:13 2003 +@@ -28,6 +28,9 @@ + ifdef HAVE_PM_FBSD_DEVICE + OBJS += fbsd-device.o + CFLAGS += -I/usr/src/sys ++ifdef FREEBSD_SYS ++CFLAGS += -I${FREEBSD_SYS} ++endif + endif + + ifdef HAVE_PM_AIX_DEVICE diff --git a/sysutils/pciutils/files/patch-lib::fbsd-device.c b/sysutils/pciutils/files/patch-lib::fbsd-device.c new file mode 100644 index 0000000..1f168f5 --- /dev/null +++ b/sysutils/pciutils/files/patch-lib::fbsd-device.c @@ -0,0 +1,24 @@ +--- lib/fbsd-device.c.orig Fri Jun 13 11:11:29 2003 ++++ lib/fbsd-device.c Fri Jun 13 11:21:52 2003 +@@ -14,9 +14,19 @@ + #include <fcntl.h> + #include <string.h> + #include <unistd.h> ++#include <osreldate.h> + +-#include <pci/pcivar.h> +-#include <pci/pci_ioctl.h> ++#if __FreeBSD_version < 500000 ++# include <pci/pcivar.h> ++#else ++# include <dev/pci/pcivar.h> ++#endif ++ ++#if __FreeBSD_version < 430000 ++# include <pci/pci_ioctl.h> ++#else ++# include <sys/pciio.h> ++#endif + + #include "internal.h" + diff --git a/sysutils/pciutils/pkg-descr b/sysutils/pciutils/pkg-descr new file mode 100644 index 0000000..f62fab1 --- /dev/null +++ b/sysutils/pciutils/pkg-descr @@ -0,0 +1,10 @@ +The PCI Utilities package contains various utilities dealing +with the PCI bus, and also a library for portable access to +PCI configuration registers. It includes `lspci' for listing +all PCI devices (very useful for debugging of both kernel and +device drivers) and `setpci' for manual configuration of PCI +devices. + + WWW: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html + +- Samy Al Bahra <samy@kerneled.com> diff --git a/sysutils/pciutils/pkg-plist b/sysutils/pciutils/pkg-plist new file mode 100644 index 0000000..0b29aea --- /dev/null +++ b/sysutils/pciutils/pkg-plist @@ -0,0 +1,4 @@ +bin/lspci +bin/setpci +sbin/update-pciids +share/pci.ids |