SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,34 @@
# builds on aarch64 but for !x86 it requires code to lookup the entry
# point from EFI and only FreeBSD/Linux implementations are present.
ONLY_FOR_ARCHS= amd64 i386
COMMENT= dump DMI/SMBIOS contents in human-readable format
DISTNAME= dmidecode-3.5
EXTRACT_SUFX= .tar.xz
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SAVANNAH:=dmidecode/}
HOMEPAGE= https://www.nongnu.org/dmidecode/
# GPLv2+
PERMIT_PACKAGE= Yes
WANTLIB= c
MAKE_FLAGS= CC="${CC}"
FAKE_FLAGS= mandir="${PREFIX}/man"
NO_TEST= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dmidecode/
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dmidecode/
.if ${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == i386
PKG_ARGS+= -Dx86=1
.else
PKG_ARGS+= -Dx86=0
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (dmidecode-3.5.tar.xz) = eddnNe6OJRluKnIpZM+Wg/WglYFQNTeISyVrATicwHM=
SIZE (dmidecode-3.5.tar.xz) = 65068

View file

@ -0,0 +1,11 @@
Index: util.c
--- util.c.orig
+++ util.c
@@ -192,6 +192,7 @@ void *mem_chunk(off_t base, size_t len, const char *de
|| (geteuid() == 0 && !S_ISCHR(statbuf.st_mode)))
{
fprintf(stderr, "Can't read memory from %s\n", devmem);
+ fprintf(stderr, "Do you need to set kern.allowkmem=1 in sysctl.conf and reboot?\n");
if (fd == -1)
return NULL;
goto out;

View file

@ -0,0 +1,8 @@
dmidecode reports information about your system's hardware as described
in your system BIOS according to the SMBIOS/DMI standard. This typically
includes system manufacturer, model name, serial number, BIOS version,
asset tag as well as a lot of other details of varying level of interest
and reliability depending on the manufacturer. This will often include
usage status for the CPU sockets, expansion slots (e.g. AGP, PCI,
ISA) and memory module slots, and the list of I/O ports (e.g. serial,
parallel, USB).

View file

@ -0,0 +1,6 @@
@man man/man8/biosdecode.8
@man man/man8/ownership.8
@man man/man8/vpddecode.8
@bin sbin/biosdecode
@bin sbin/ownership
@bin sbin/vpddecode

View file

@ -0,0 +1,7 @@
%%x86%%
@man man/man8/dmidecode.8
@bin sbin/dmidecode
share/doc/dmidecode/
share/doc/dmidecode/AUTHORS
share/doc/dmidecode/NEWS
share/doc/dmidecode/README