Ravenports generated: 05 Aug 2023 23:27
[ravenports.git] / bucket_26 / pciutils
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               pciutils
4 VERSION=                3.10.0
5 KEYWORDS=               sysutils devel
6 VARIANTS=               standard
7 SDESC[standard]=        Library / tools to access PCI bus config registers
8 HOMEPAGE=               https://mj.ucw.cz/sw/pciutils
9 CONTACT=                Michael_Reim[kraileth@elderlinux.org]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/pciutils:pciutils:v3.10.0
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         tools
18                         dev
19                         man
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
24 RUN_DEPENDS=            pciids:single:standard
25 EXRUN[tools]=           pciutils:primary:standard
26
27 USES=                   gmake
28
29 LICENSE=                GPLv2:complete
30 LICENSE_TERMS=          complete:{{WRKDIR}}/TERMS
31 LICENSE_FILE=           GPLv2:{{WRKSRC}}/COPYING
32 LICENSE_AWK=            TERMS:"^$$"
33 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/pciutils.h
34 LICENSE_SCHEME=         solo
35
36 FPC_EQUIVALENT=         sysutils/pciutils
37
38 MAKE_ARGS=              PREFIX={{PREFIX}}
39                         SHARED=yes
40
41 INSTALL_TARGET=         install install-lib
42 SOVERSION=              3.10.0
43 PLIST_SUB=              LIBNAME={{LIBNAME:Ulibpci}}
44
45 CFLAGS=                 -fPIC
46 VAR_OPSYS[netbsd]=      MAKEFILE_LINE=LIBNAME=libpciutils
47
48 post-install-linux:
49         (cd ${STAGEDIR}${PREFIX} && mv bin/lspci sbin/lspci)
50
51 post-install:
52         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpc*.so
53
54 [FILE:123:descriptions/desc.primary]
55 libpci is a common portable library which offers access to the PCI 
56 configuration space on a variety of operating systems.
57
58
59 [FILE:379:descriptions/desc.tools]
60 The PCI Utilities are a collection of programs for inspecting and 
61 manipulating configuration of PCI devices, all based on libpci.
62
63 The utilities include:
64 - lspci: displays detailed information about all PCI buses and devices in 
65 the system
66 - setpci: allows reading from and writing to PCI device configuration 
67 registers. For example, you can adjust the latency timers with it.
68
69
70 [FILE:110:distinfo]
71 e579d87f1afe2196db7db648857023f80adb500e8194c4488c8b47f9a238c1c6       603787 pciutils-pciutils-3.10.0.tar.gz
72
73
74 [FILE:63:manifests/plist.primary]
75 lib/
76  %%LIBNAME%%.so.%%SOMAJOR%%
77  %%LIBNAME%%.so.%%SOVERSION%%
78
79
80 [FILE:50:manifests/plist.tools]
81 sbin/
82  lspci
83  setpci
84  update-pciids
85 share/pci.ids
86
87
88 [FILE:97:manifests/plist.dev]
89 lib/pkgconfig/%%LIBNAME%%.pc
90 include/pci/
91  config.h
92  header.h
93  pci.h
94  types.h
95 lib/%%LIBNAME%%.so
96
97
98 [FILE:116:manifests/plist.man]
99 share/man/man5/pci.ids.5.gz
100 share/man/man7/pcilib.7.gz
101 share/man/man8/
102  lspci.8.gz
103  setpci.8.gz
104  update-pciids.8.gz
105
106
107 [FILE:381:patches/patch-Makefile]
108 --- Makefile.orig       2023-05-01 13:00:27 UTC
109 +++ Makefile
110 @@ -37,7 +37,7 @@ BINDIR=$(PREFIX)/bin
111  SBINDIR=$(PREFIX)/sbin
112  SHAREDIR=$(PREFIX)/share
113  IDSDIR=$(SHAREDIR)
114 -MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi)
115 +MANDIR=$(PREFIX)/share/man
116  INCDIR=$(PREFIX)/include
117  LIBDIR=$(PREFIX)/lib
118  PKGCFDIR=$(LIBDIR)/pkgconfig
119
120
121 [FILE:251:patches/patch-lib_configure]
122 --- lib/configure.orig  2023-05-01 13:00:27 UTC
123 +++ lib/configure
124 @@ -31,6 +31,10 @@ if [ -z "$HOST" ] ; then
125         then
126                 sys=freebsd
127         fi
128 +       if [ "$sys" = "MidnightBSD" ]
129 +       then
130 +               sys=freebsd
131 +       fi
132         if [ "$sys" = "GNU/kFreeBSD" ]
133         then
134                 sys=kfreebsd
135
136
137 [FILE:250:patches/patch-lib_ecam.c]
138 --- lib/ecam.c.orig     2023-05-01 13:00:27 UTC
139 +++ lib/ecam.c
140 @@ -40,6 +40,10 @@
141  #define OFF_MAX (off_t)((1ULL << (sizeof(off_t) * CHAR_BIT - 1)) - 1)
142  #endif
143  
144 +#ifndef O_DSYNC
145 +#define O_DSYNC 0
146 +#endif
147 +
148  static long pagesize;
149  
150  struct acpi_rsdp {
151
152
153 [FILE:932:patches/patch-lib_fbsd-device.c]
154 --- lib/fbsd-device.c.orig      2023-05-01 13:00:27 UTC
155 +++ lib/fbsd-device.c
156 @@ -23,7 +23,7 @@
157  #  endif
158  #endif
159  
160 -#if __FreeBSD_version < 430000 && !defined(__DragonFly__)
161 +#if __FreeBSD_version < 430000 && !defined(__DragonFly__) && !defined(__MidnightBSD__)
162  #  include <pci/pcivar.h>
163  #  include <pci/pci_ioctl.h>
164  #else
165 @@ -259,7 +259,7 @@ fbsd_read(struct pci_dev *d, int pos, by
166    if (pos >= 4096)
167      return 0;
168  
169 -#if __FreeBSD_version >= 700053 || defined(__DragonFly__)
170 +#if __FreeBSD_version >= 700053 || defined(__DragonFly__) || defined(__MidnightBSD__)
171    pi.pi_sel.pc_domain = d->domain;
172  #else
173    if (d->domain)
174 @@ -311,7 +311,7 @@ fbsd_write(struct pci_dev *d, int pos, b
175    if (pos >= 4096)
176      return 0;
177  
178 -#if __FreeBSD_version >= 700053 || defined(__DragonFly__)
179 +#if __FreeBSD_version >= 700053 || defined(__DragonFly__) || defined(__MidnightBSD__)
180    pi.pi_sel.pc_domain = d->domain;
181  #else
182    if (d->domain)
183
184
185 [FILE:259:patches/patch-lib_mmio-ports.c]
186 --- lib/mmio-ports.c.orig       2023-05-01 13:00:27 UTC
187 +++ lib/mmio-ports.c
188 @@ -30,6 +30,10 @@
189  #define OFF_MAX (off_t)((1ULL << (sizeof(off_t) * CHAR_BIT - 1)) - 1)
190  #endif
191  
192 +#ifndef O_DSYNC
193 +#define O_DSYNC 0
194 +#endif
195 +
196  struct mmio_cache
197  {
198    off_t addr_page;
199