# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= pciutils VERSION= 3.12.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.12.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.12.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] 3a76ca02581fed03d0470ba822e72ee06e492442a990062f9638dec90018505f 653111 pciutils-pciutils-3.12.0.tar.gz [FILE:63:manifests/plist.primary] lib/ %%LIBNAME%%.so.%%SOMAJOR%% %%LIBNAME%%.so.%%SOVERSION%% [FILE:58:manifests/plist.tools] sbin/ lspci pcilmr setpci update-pciids share/pci.ids [FILE:97:manifests/plist.dev] include/pci/ config.h header.h pci.h types.h lib/%%LIBNAME%%.so lib/pkgconfig/%%LIBNAME%%.pc [FILE:129:manifests/plist.man] share/man/man5/pci.ids.5.gz share/man/man7/pcilib.7.gz share/man/man8/ lspci.8.gz pcilmr.8.gz setpci.8.gz update-pciids.8.gz [FILE:381:patches/patch-Makefile] --- Makefile.orig 2024-02-24 23:11:10 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 2024-02-24 23:11:10 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:932:patches/patch-lib_fbsd-device.c] --- lib/fbsd-device.c.orig 2024-02-24 23:11:10 UTC +++ lib/fbsd-device.c @@ -25,7 +25,7 @@ # endif #endif -#if __FreeBSD_version < 430000 && !defined(__DragonFly__) +#if __FreeBSD_version < 430000 && !defined(__DragonFly__) && !defined(__MidnightBSD__) # include # include #else @@ -261,7 +261,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) @@ -313,7 +313,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:263:patches/patch-lib_physmem-posix.c] --- lib/physmem-posix.c.orig 2024-02-24 23:11:10 UTC +++ lib/physmem-posix.c @@ -29,6 +29,10 @@ #define OFF_MAX ((((off_t)1 << (sizeof(off_t) * CHAR_BIT - 2)) - 1) * 2 + 1) #endif +#ifndef O_DSYNC +#define O_DSYNC 0 +#endif + struct physmem { int fd; };