# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= pciutils VERSION= 3.10.0 KEYWORDS= sysutils devel VARIANTS= standard SDESC[standard]= Library / tools to access PCI bus config registers HOMEPAGE= https://mj.ucw.cz/sw/pciutils CONTACT= Michael_Reim[kraileth@elderlinux.org] DOWNLOAD_GROUPS= main SITES[main]= GITHUB/pciutils:pciutils:v3.10.0 DISTFILE[1]= generated:main DF_INDEX= 1 SPKGS[standard]= complete primary tools dev man OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none RUN_DEPENDS= pciids:single:standard EXRUN[tools]= pciutils:primary:standard USES= gmake LICENSE= GPLv2:complete LICENSE_TERMS= complete:{{WRKDIR}}/TERMS LICENSE_FILE= GPLv2:{{WRKSRC}}/COPYING LICENSE_AWK= TERMS:"^$$" LICENSE_SOURCE= TERMS:{{WRKSRC}}/pciutils.h LICENSE_SCHEME= solo FPC_EQUIVALENT= sysutils/pciutils MAKE_ARGS= PREFIX={{PREFIX}} SHARED=yes INSTALL_TARGET= install install-lib SOVERSION= 3.10.0 PLIST_SUB= LIBNAME={{LIBNAME:Ulibpci}} CFLAGS= -fPIC VAR_OPSYS[netbsd]= MAKEFILE_LINE=LIBNAME=libpciutils post-install-linux: (cd ${STAGEDIR}${PREFIX} && mv bin/lspci sbin/lspci) post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpc*.so [FILE:123:descriptions/desc.primary] libpci is a common portable library which offers access to the PCI configuration space on a variety of operating systems. [FILE:379:descriptions/desc.tools] The PCI Utilities are a collection of programs for inspecting and manipulating configuration of PCI devices, all based on libpci. The utilities include: - lspci: displays detailed information about all PCI buses and devices in the system - setpci: allows reading from and writing to PCI device configuration registers. For example, you can adjust the latency timers with it. [FILE:110:distinfo] e579d87f1afe2196db7db648857023f80adb500e8194c4488c8b47f9a238c1c6 603787 pciutils-pciutils-3.10.0.tar.gz [FILE:63:manifests/plist.primary] lib/ %%LIBNAME%%.so.%%SOMAJOR%% %%LIBNAME%%.so.%%SOVERSION%% [FILE:50:manifests/plist.tools] sbin/ lspci setpci update-pciids share/pci.ids [FILE:97:manifests/plist.dev] lib/pkgconfig/%%LIBNAME%%.pc include/pci/ config.h header.h pci.h types.h lib/%%LIBNAME%%.so [FILE:116:manifests/plist.man] share/man/man5/pci.ids.5.gz share/man/man7/pcilib.7.gz share/man/man8/ lspci.8.gz setpci.8.gz update-pciids.8.gz [FILE:381:patches/patch-Makefile] --- Makefile.orig 2023-05-01 13:00:27 UTC +++ Makefile @@ -37,7 +37,7 @@ BINDIR=$(PREFIX)/bin SBINDIR=$(PREFIX)/sbin SHAREDIR=$(PREFIX)/share IDSDIR=$(SHAREDIR) -MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi) +MANDIR=$(PREFIX)/share/man INCDIR=$(PREFIX)/include LIBDIR=$(PREFIX)/lib PKGCFDIR=$(LIBDIR)/pkgconfig [FILE:251:patches/patch-lib_configure] --- lib/configure.orig 2023-05-01 13:00:27 UTC +++ lib/configure @@ -31,6 +31,10 @@ if [ -z "$HOST" ] ; then then sys=freebsd fi + if [ "$sys" = "MidnightBSD" ] + then + sys=freebsd + fi if [ "$sys" = "GNU/kFreeBSD" ] then sys=kfreebsd [FILE:250:patches/patch-lib_ecam.c] --- lib/ecam.c.orig 2023-05-01 13:00:27 UTC +++ lib/ecam.c @@ -40,6 +40,10 @@ #define OFF_MAX (off_t)((1ULL << (sizeof(off_t) * CHAR_BIT - 1)) - 1) #endif +#ifndef O_DSYNC +#define O_DSYNC 0 +#endif + static long pagesize; struct acpi_rsdp { [FILE:932:patches/patch-lib_fbsd-device.c] --- lib/fbsd-device.c.orig 2023-05-01 13:00:27 UTC +++ lib/fbsd-device.c @@ -23,7 +23,7 @@ # endif #endif -#if __FreeBSD_version < 430000 && !defined(__DragonFly__) +#if __FreeBSD_version < 430000 && !defined(__DragonFly__) && !defined(__MidnightBSD__) # include # include #else @@ -259,7 +259,7 @@ fbsd_read(struct pci_dev *d, int pos, by if (pos >= 4096) return 0; -#if __FreeBSD_version >= 700053 || defined(__DragonFly__) +#if __FreeBSD_version >= 700053 || defined(__DragonFly__) || defined(__MidnightBSD__) pi.pi_sel.pc_domain = d->domain; #else if (d->domain) @@ -311,7 +311,7 @@ fbsd_write(struct pci_dev *d, int pos, b if (pos >= 4096) return 0; -#if __FreeBSD_version >= 700053 || defined(__DragonFly__) +#if __FreeBSD_version >= 700053 || defined(__DragonFly__) || defined(__MidnightBSD__) pi.pi_sel.pc_domain = d->domain; #else if (d->domain) [FILE:259:patches/patch-lib_mmio-ports.c] --- lib/mmio-ports.c.orig 2023-05-01 13:00:27 UTC +++ lib/mmio-ports.c @@ -30,6 +30,10 @@ #define OFF_MAX (off_t)((1ULL << (sizeof(off_t) * CHAR_BIT - 1)) - 1) #endif +#ifndef O_DSYNC +#define O_DSYNC 0 +#endif + struct mmio_cache { off_t addr_page;