diff options
-rw-r--r-- | sysutils/pciutils/DESCR | 6 | ||||
-rw-r--r-- | sysutils/pciutils/Makefile | 15 | ||||
-rw-r--r-- | sysutils/pciutils/PLIST | 15 | ||||
-rw-r--r-- | sysutils/pciutils/buildlink2.mk | 19 | ||||
-rw-r--r-- | sysutils/pciutils/distinfo | 5 | ||||
-rw-r--r-- | sysutils/pciutils/patches/patch-aa | 40 |
6 files changed, 100 insertions, 0 deletions
diff --git a/sysutils/pciutils/DESCR b/sysutils/pciutils/DESCR new file mode 100644 index 00000000000..c3ddf89312b --- /dev/null +++ b/sysutils/pciutils/DESCR @@ -0,0 +1,6 @@ +pciutils is a set of utilities used to access the PCI +bus. lspci(8) lists devices and information about their +resources, and setpci(8) enables the user to control the +PCI bus by writing to config registers. Additionnally, +liblspci.a, the library upon which those utilities are +built is provided. diff --git a/sysutils/pciutils/Makefile b/sysutils/pciutils/Makefile new file mode 100644 index 00000000000..a66a9d23652 --- /dev/null +++ b/sysutils/pciutils/Makefile @@ -0,0 +1,15 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/02/26 00:12:42 kristerw Exp $ + +DISTNAME= pciutils-2.1.11 +CATEGORIES= sysutils +MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \ + ftp://ftp.kernel.org/pub/software/utils/pciutils/ \ + ftp://metalab.unc.edu/pub/Linux/hardware/ + +MAINTAINER= cube@cubidou.net +HOMEPAGE= http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml +COMMENT= PCI bus manipulation utility similar to NetBSD pcictl(8) + +USE_GMAKE= YES + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/pciutils/PLIST b/sysutils/pciutils/PLIST new file mode 100644 index 00000000000..5dd0898bfd4 --- /dev/null +++ b/sysutils/pciutils/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/26 00:12:43 kristerw Exp $ +include/pciutils/config.h +include/pciutils/header.h +include/pciutils/pci.h +lib/libpciutils.a +man/man8/lspci.8 +man/man8/setpci.8 +man/man8/update-pciids.8 +sbin/lspci +sbin/setpci +sbin/update-pciids +share/pciutils/README +share/pciutils/pci.ids +@dirrm share/pciutils +@dirrm include/pciutils diff --git a/sysutils/pciutils/buildlink2.mk b/sysutils/pciutils/buildlink2.mk new file mode 100644 index 00000000000..702c0f5954a --- /dev/null +++ b/sysutils/pciutils/buildlink2.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/02/26 00:12:43 kristerw Exp $ + +.if !defined(PCIUTILS_BUILDLINK2_MK) +PCIUTILS_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= pciutils +BUILDLINK_DEPENDS.pciutils?= pciutils>=2.1.11 +BUILDLINK_PKGSRCDIR.pciutils?= ../../local/pciutils + +EVAL_PREFIX+= BUILDLINK_PREFIX.pciutils=pciutils +BUILDLINK_PREFIX.pciutils_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.pciutils= include/pciutils/* +BUILDLINK_FILES.pciutils+= lib/libpciutils.a + +BUILDLINK_TARGETS+= pciutils-buildlink + +pciutils-buildlink: _BUILDLINK_USE + +.endif # PCIUTILS_BUILDLINK2_MK diff --git a/sysutils/pciutils/distinfo b/sysutils/pciutils/distinfo new file mode 100644 index 00000000000..0c4819b38b7 --- /dev/null +++ b/sysutils/pciutils/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/02/26 00:12:43 kristerw Exp $ + +SHA1 (pciutils-2.1.11.tar.gz) = bb1e107a745a40e208f676cffc0826ca8b928688 +Size (pciutils-2.1.11.tar.gz) = 120948 bytes +SHA1 (patch-aa) = 7d3cf856dc5493cc83c2310b57175d593753cea4 diff --git a/sysutils/pciutils/patches/patch-aa b/sysutils/pciutils/patches/patch-aa new file mode 100644 index 00000000000..be8f615f1c8 --- /dev/null +++ b/sysutils/pciutils/patches/patch-aa @@ -0,0 +1,40 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/02/26 00:12:43 kristerw Exp $ + +--- Makefile.orig 2003-01-04 13:53:01.000000000 +0100 ++++ Makefile +@@ -10,13 +10,15 @@ VERSION=2.1.11 + #SUFFIX=-pre2 + DATE=2003-01-04 + +-PREFIX=/usr/local ++#PREFIX=/usr/local + SBINDIR=$(PREFIX)/sbin +-SHAREDIR=$(PREFIX)/share +-MANDIR=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi) ++SHAREDIR=$(PREFIX)/share/pciutils ++MANDIR=$(PREFIX)/man + INSTALL=install +-DIRINSTALL=install -d ++DIRINSTALL=$(INSTALL) -d + PCILIB=libpci.a ++LIBDIR=$(PREFIX)/lib ++INCLUDEDIR=$(PREFIX)/include/pciutils + + ifeq ($(shell uname),NetBSD) + PCILIB=libpciutils.a +@@ -58,11 +60,14 @@ clean: + + install: all + # -c is ignored on Linux, but required on FreeBSD +- $(DIRINSTALL) -m 755 $(SBINDIR) $(SHAREDIR) $(MANDIR)/man8 ++ $(DIRINSTALL) -m 755 $(SBINDIR) $(SHAREDIR) $(MANDIR)/man8 $(LIBDIR) $(INCLUDEDIR) + $(INSTALL) -c -m 755 -s lspci setpci $(SBINDIR) + $(INSTALL) -c -m 755 update-pciids $(SBINDIR) + $(INSTALL) -c -m 644 pci.ids $(SHAREDIR) ++ $(INSTALL) -c -m 644 README $(SHAREDIR) + $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(MANDIR)/man8 ++ $(INSTALL) -c -m 444 lib/$(PCILIB) $(LIBDIR) ++ $(INSTALL) -c -m 644 lib/pci.h lib/header.h lib/config.h $(INCLUDEDIR) + + uninstall: all + rm -f $(SBINDIR)/lspci $(SBINDIR)/setpci $(SBINDIR)/update-pciids |