Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

6
sysutils/pciutils/DESCR Normal file
View File

@@ -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.

View File

@@ -0,0 +1,47 @@
# $NetBSD: Makefile,v 1.22 2012/12/19 14:05:26 jperkin Exp $
DISTNAME= pciutils-3.1.10
CATEGORIES= sysutils
MASTER_SITES= ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ \
ftp://ftp.kernel.org/pub/software/utils/pciutils/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mj.ucw.cz/pciutils.shtml
COMMENT= PCI bus manipulation utility similar to NetBSD pcictl(8)
LICENSE= gnu-gpl-v2
MAKE_JOBS_SAFE= no
ONLY_FOR_PLATFORM= AIX-*-* FreeBSD-*-* Linux-*-* NetBSD-*-*
ONLY_FOR_PLATFORM+= DragonFly-*-* OpenBSD-*-* SunOS-5.11-*
INSTALL_TARGET= install install-lib
USE_TOOLS+= gmake pkg-config
REPLACE_SH= *.sh
PKGCONFIG_OVERRIDE= lib/libpci.pc.in
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
PCIUTILS_LIBNAME= pciutils
.else
PCIUTILS_LIBNAME= pci
.endif
PLIST_SUBST+= PCIUTILS_LIBNAME=${PCIUTILS_LIBNAME}
SUBST_CLASSES= pc
SUBST_FILES.pc= lib/libpci.pc.in
SUBST_MESSAGE.pc= Fixing library link specification in pkg-config file.
SUBST_STAGE.pc= pre-configure
SUBST_VARS.pc= PCIUTILS_LIBNAME
.if ${OPSYS} == "SunOS"
SUBST_CLASSES= dns
SUBST_MESSAGE.dns= Disabling DNS support on Solaris
SUBST_STAGE.dns= pre-configure
SUBST_FILES.dns= Makefile
SUBST_SED.dns= -e 's/^DNS=/DNS=no/'
.endif
.include "../../mk/bsd.pkg.mk"

15
sysutils/pciutils/PLIST Normal file
View File

@@ -0,0 +1,15 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:16:12 joerg Exp $
include/pciutils/config.h
include/pciutils/header.h
include/pciutils/pci.h
include/pciutils/types.h
lib/lib${PCIUTILS_LIBNAME}.a
lib/pkgconfig/libpci.pc
man/man7/pcilib.7
man/man8/lspci.8
man/man8/setpci.8
man/man8/update-pciids.8
sbin/lspci
sbin/setpci
sbin/update-pciids
share/pciutils/pci.ids

View File

@@ -0,0 +1,13 @@
# $NetBSD: buildlink3.mk,v 1.8 2009/03/20 19:25:26 joerg Exp $
BUILDLINK_TREE+= pciutils
.if !defined(PCIUTILS_BUILDLINK3_MK)
PCIUTILS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.pciutils+= pciutils>=3.0.2
BUILDLINK_PKGSRCDIR.pciutils?= ../../sysutils/pciutils
BUILDLINK_DEPMETHOD.pciutils?= build
.endif # PCIUTILS_BUILDLINK3_MK
BUILDLINK_TREE+= -pciutils

View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.9 2012/07/01 15:49:14 wiz Exp $
SHA1 (pciutils-3.1.10.tar.gz) = 01eed212edfa5bbfedcf86d177ae2df4a4007d61
RMD160 (pciutils-3.1.10.tar.gz) = e22ad4b49b077c210c5bdb8ee8e0373fc72d11de
Size (pciutils-3.1.10.tar.gz) = 345149 bytes
SHA1 (patch-aa) = 87071b0cb4173499b778ddccb633c88b490922a7
SHA1 (patch-ab) = 1448bb418cdc908eb6652cc98994d23d0d78cea0
SHA1 (patch-ac) = 4b90e99c051391b9cd3a6c1f5781f41b4a855c29
SHA1 (patch-ad) = bfe9069e96fd46798afec73c93ad71db3a0e0e37

View File

@@ -0,0 +1,100 @@
$NetBSD: patch-aa,v 1.7 2012/07/01 15:49:14 wiz Exp $
--- Makefile.orig 2012-06-25 12:45:14.000000000 +0000
+++ Makefile
@@ -1,8 +1,7 @@
# Makefile for The PCI Utilities
# (c) 1998--2012 Martin Mares <mj@ucw.cz>
-OPT=-O2
-CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
+CFLAGS=-Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes
VERSION=3.1.10
DATE=2012-06-25
@@ -13,7 +12,7 @@ RELEASE=
CROSS_COMPILE=
# Support for compressed pci.ids (yes/no, default: detect)
-ZLIB=
+ZLIB=no
# Support for resolving ID's by DNS (yes/no, default: detect)
DNS=
@@ -22,23 +21,23 @@ DNS=
SHARED=no
# ABI version suffix in the name of the shared library
-ABI_VERSION=.3
+ABI_VERSION=-version-info 3:0
# Installation directories
-PREFIX=/usr/local
+#PREFIX=/usr/local
SBINDIR=$(PREFIX)/sbin
-SHAREDIR=$(PREFIX)/share
+SHAREDIR=$(PREFIX)/share/pciutils
IDSDIR=$(SHAREDIR)
-MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
-INCDIR=$(PREFIX)/include
+MANDIR=$(PREFIX)/$(PKGMANDIR)
+INCDIR=$(PREFIX)/include/pciutils
LIBDIR=$(PREFIX)/lib
PKGCFDIR=$(LIBDIR)/pkgconfig
# Commands
-INSTALL=install
-DIRINSTALL=install -d
-STRIP=-s
-CC=$(CROSS_COMPILE)gcc
+#INSTALL=install
+#DIRINSTALL=install -d
+#STRIP=-s
+#CC=$(CROSS_COMPILE)gcc
AR=$(CROSS_COMPILE)ar
RANLIB=$(CROSS_COMPILE)ranlib
@@ -100,23 +99,31 @@ distclean: clean
install: all
# -c is ignored on Linux, but required on FreeBSD
- $(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7
- $(INSTALL) -c -m 755 $(STRIP) lspci setpci $(DESTDIR)$(SBINDIR)
- $(INSTALL) -c -m 755 update-pciids $(DESTDIR)$(SBINDIR)
- $(INSTALL) -c -m 644 $(PCI_IDS) $(DESTDIR)$(IDSDIR)
- $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8
- $(INSTALL) -c -m 644 pcilib.7 $(DESTDIR)$(MANDIR)/man7
+ $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(SBINDIR)
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(IDSDIR)
+ $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(MANDIR)/man8
+ $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(MANDIR)/man7
+ $(BSD_INSTALL_PROGRAM) lspci $(DESTDIR)$(SBINDIR)
+ $(BSD_INSTALL_PROGRAM) setpci $(DESTDIR)$(SBINDIR)
+ $(BSD_INSTALL_SCRIPT) update-pciids $(DESTDIR)$(SBINDIR)
+ $(BSD_INSTALL_DATA) $(PCI_IDS) $(DESTDIR)$(IDSDIR)
+ for fn in lspci.8 setpci.8 update-pciids.8; do \
+ $(BSD_INSTALL_MAN) $$fn $(DESTDIR)$(MANDIR)/man8; \
+ done
+ $(BSD_INSTALL_MAN) pcilib.7 $(DESTDIR)$(MANDIR)/man7
ifeq ($(SHARED),yes)
- $(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR)
- $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
+ $(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(LIBDIR)
+ $(BSD_INSTALL_LIB) lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
ln -sf $(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so$(ABI_VERSION)
endif
install-lib: $(PCIINC_INS) lib/$(PCILIB) lib/$(PCILIBPC)
- $(DIRINSTALL) -m 755 $(DESTDIR)$(INCDIR)/pci $(DESTDIR)$(LIBDIR) $(DESTDIR)$(PKGCFDIR)
- $(INSTALL) -c -m 644 $(PCIINC_INS) $(DESTDIR)$(INCDIR)/pci
- $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
- $(INSTALL) -c -m 644 lib/$(PCILIBPC) $(DESTDIR)$(PKGCFDIR)
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(INCDIR)
+ $(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(LIBDIR)
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PKGCFDIR)
+ $(BSD_INSTALL_DATA) $(PCIINC_INS) $(DESTDIR)$(INCDIR)
+ $(BSD_INSTALL_LIB) lib/$(PCILIB) $(DESTDIR)$(LIBDIR)
+ $(BSD_INSTALL_DATA) lib/$(PCILIBPC) $(DESTDIR)$(PKGCFDIR)
ifeq ($(SHARED),yes)
ln -sf $(LIBNAME).so$(ABI_VERSION) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so
endif

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1 2008/11/03 22:01:29 bjs Exp $
--- lib/configure.orig 2008-09-19 14:04:37.000000000 -0400
+++ lib/configure
@@ -179,7 +179,7 @@ else
echo >>$m 'SONAME=-Wl,-soname,$(LIBNAME).so$(ABI_VERSION)'
fi
fi
-echo >>$m 'PCILIBPC=$(LIBNAME).pc'
+echo >>$m 'PCILIBPC=libpci.pc'
echo >>$c "#define PCILIB_VERSION \"$VERSION\""
sed '/"/{s/^#define \([^ ]*\) "\(.*\)"$/\1=\2/;p;d;};s/^#define \(.*\)/\1=1/' <$c >>$m

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ac,v 1.2 2012/04/22 16:00:38 wiz Exp $
--- lib/libpci.pc.in.orig 2011-10-02 09:52:11.000000000 +0000
+++ lib/libpci.pc.in
@@ -6,6 +6,6 @@ idsdir=@IDSDIR@
Name: libpci
Description: libpci
Version: @VERSION@
-Libs: -L${libdir} -lpci
+Libs: -L${libdir} -l@PCIUTILS_LIBNAME@
Libs.private: @LDLIBS@
Cflags: -I${includedir}

View File

@@ -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;