Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2018 00:06:37 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479853 - in head/sysutils/dmidecode: . files
Message-ID:  <201809160006.w8G06bTk028553@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Sep 16 00:06:36 2018
New Revision: 479853
URL: https://svnweb.freebsd.org/changeset/ports/479853

Log:
  Update to 3.2
  
  - Convert PLIST_FILES and PORTDOCS to PLIST
  
  Changes:	https://git.savannah.gnu.org/cgit/dmidecode.git/tree/NEWS

Added:
  head/sysutils/dmidecode/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/dmidecode/Makefile
  head/sysutils/dmidecode/distinfo
  head/sysutils/dmidecode/files/patch-dmidecode.c

Modified: head/sysutils/dmidecode/Makefile
==============================================================================
--- head/sysutils/dmidecode/Makefile	Sun Sep 16 00:05:34 2018	(r479852)
+++ head/sysutils/dmidecode/Makefile	Sun Sep 16 00:06:36 2018	(r479853)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	dmidecode
-PORTVERSION=	3.1
-PORTREVISION=	1
+PORTVERSION=	3.2
 CATEGORIES=	sysutils
 MASTER_SITES=	SAVANNAH
 
@@ -20,16 +19,6 @@ OPTIONS_DEFINE=	DOCS
 MAKE_ENV=	DOCSDIR="${DOCSDIR}"
 USES=		tar:xz
 
-PLIST_FILES=	etc/periodic/daily/dmidecode \
-		man/man8/biosdecode.8.gz \
-		man/man8/dmidecode.8.gz \
-		man/man8/ownership.8.gz \
-		man/man8/vpddecode.8.gz \
-		sbin/biosdecode \
-		sbin/dmidecode \
-		sbin/ownership \
-		sbin/vpddecode
-PORTDOCS=	AUTHORS CHANGELOG README
 SUB_FILES=	dmidecode
 
 post-install:

Modified: head/sysutils/dmidecode/distinfo
==============================================================================
--- head/sysutils/dmidecode/distinfo	Sun Sep 16 00:05:34 2018	(r479852)
+++ head/sysutils/dmidecode/distinfo	Sun Sep 16 00:06:36 2018	(r479853)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1495555101
-SHA256 (dmidecode-3.1.tar.xz) = d766ce9b25548c59b1e7e930505b4cad9a7bb0b904a1a391fbb604d529781ac0
-SIZE (dmidecode-3.1.tar.xz) = 61204
+TIMESTAMP = 1537020822
+SHA256 (dmidecode-3.2.tar.xz) = 077006fa2da0d06d6383728112f2edef9684e9c8da56752e97cd45a11f838edd
+SIZE (dmidecode-3.2.tar.xz) = 54440

Modified: head/sysutils/dmidecode/files/patch-dmidecode.c
==============================================================================
--- head/sysutils/dmidecode/files/patch-dmidecode.c	Sun Sep 16 00:05:34 2018	(r479852)
+++ head/sysutils/dmidecode/files/patch-dmidecode.c	Sun Sep 16 00:06:36 2018	(r479853)
@@ -1,58 +1,10 @@
---- dmidecode.c.orig	2017-05-23 13:34:14 UTC
+--- dmidecode.c.orig	2018-09-14 13:52:12 UTC
 +++ dmidecode.c
-@@ -58,6 +58,10 @@
-  *    https://trustedcomputinggroup.org/pc-client-platform-tpm-profile-ptp-specification/
-  */
+@@ -66,6 +66,7 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <arpa/inet.h>
++#include <sys/socket.h>
  
-+#ifdef __FreeBSD__
-+#include <errno.h>
-+#include <kenv.h>
-+#endif
- #include <stdio.h>
- #include <string.h>
- #include <strings.h>
-@@ -4934,13 +4938,18 @@ static int legacy_decode(u8 *buf, const 
- #define EFI_NO_SMBIOS   (-2)
- static int address_from_efi(off_t *address)
- {
-+#if defined(__linux__)
- 	FILE *efi_systab;
- 	const char *filename;
- 	char linebuf[64];
-+#elif defined(__FreeBSD__)
-+	char addrstr[KENV_MVALLEN + 1];
-+#endif
- 	int ret;
- 
- 	*address = 0; /* Prevent compiler warning */
- 
-+#if defined(__linux__)
- 	/*
- 	 * Linux up to 2.6.6: /proc/efi/systab
- 	 * Linux 2.6.7 and up: /sys/firmware/efi/systab
-@@ -4973,6 +4982,25 @@ static int address_from_efi(off_t *addre
- 	if (ret == EFI_NO_SMBIOS)
- 		fprintf(stderr, "%s: SMBIOS entry point missing\n", filename);
- 	return ret;
-+#elif defined(__FreeBSD__)
-+	/*
-+	 * On FreeBSD, SMBIOS anchor base address in UEFI mode is exposed
-+	 * via kernel environment:
-+	 * https://svnweb.freebsd.org/base?view=revision&revision=307326
-+	 */
-+	ret = kenv(KENV_GET, "hint.smbios.0.mem", addrstr, sizeof(addrstr));
-+	if (ret == -1) {
-+		if (errno != ENOENT)
-+			perror("kenv");
-+		return EFI_NOT_FOUND;
-+	}
-+
-+	*address = strtoull(addrstr, NULL, 0);
-+	if (!(opt.flags & FLAG_QUIET))
-+		printf("# SMBIOS entry point at 0x%08llx\n",
-+		    (unsigned long long)*address);
-+	return 0;
-+#endif
- }
- 
- int main(int argc, char * const argv[])
+ #ifdef __FreeBSD__
+ #include <errno.h>

Added: head/sysutils/dmidecode/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/dmidecode/pkg-plist	Sun Sep 16 00:06:36 2018	(r479853)
@@ -0,0 +1,12 @@
+etc/periodic/daily/dmidecode
+man/man8/biosdecode.8.gz
+man/man8/dmidecode.8.gz
+man/man8/ownership.8.gz
+man/man8/vpddecode.8.gz
+sbin/biosdecode
+sbin/dmidecode
+sbin/ownership
+sbin/vpddecode
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809160006.w8G06bTk028553>