From owner-svn-ports-all@freebsd.org Sun Sep 16 00:06:38 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 61559108D96E; Sun, 16 Sep 2018 00:06:38 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 16E4774E48; Sun, 16 Sep 2018 00:06:38 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 11C381A7C2; Sun, 16 Sep 2018 00:06:38 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8G06b0u028559; Sun, 16 Sep 2018 00:06:37 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8G06bTk028553; Sun, 16 Sep 2018 00:06:37 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201809160006.w8G06bTk028553@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 16 Sep 2018 00:06:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479853 - in head/sysutils/dmidecode: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/sysutils/dmidecode: . files X-SVN-Commit-Revision: 479853 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2018 00:06:38 -0000 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 + #include + #include ++#include -+#ifdef __FreeBSD__ -+#include -+#include -+#endif - #include - #include - #include -@@ -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 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