From owner-svn-ports-all@freebsd.org Fri Dec 20 05:18:18 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A13531CD6B0; Fri, 20 Dec 2019 05:18:18 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47fH8B2sGLz4Vsw; Fri, 20 Dec 2019 05:18:18 +0000 (UTC) (envelope-from danfe@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 5851B21ED4; Fri, 20 Dec 2019 05:18:18 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBK5IIZr022257; Fri, 20 Dec 2019 05:18:18 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBK5IHPq022253; Fri, 20 Dec 2019 05:18:17 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201912200518.xBK5IHPq022253@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Fri, 20 Dec 2019 05:18:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520468 - in head/sysutils: . cpuid2cpuflags X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/sysutils: . cpuid2cpuflags X-SVN-Commit-Revision: 520468 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.29 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: Fri, 20 Dec 2019 05:18:18 -0000 Author: danfe Date: Fri Dec 20 05:18:17 2019 New Revision: 520468 URL: https://svnweb.freebsd.org/changeset/ports/520468 Log: The program attempts to obtain the identification and capabilities of the currently used CPU, and print the matching set of CPU_FLAGS_* flags for Gentoo Linux, but it could be useful for FreeBSD as well. WWW: https://github.com/mgorny/cpuid2cpuflags Added: head/sysutils/cpuid2cpuflags/ head/sysutils/cpuid2cpuflags/Makefile (contents, props changed) head/sysutils/cpuid2cpuflags/distinfo (contents, props changed) head/sysutils/cpuid2cpuflags/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Fri Dec 20 05:15:15 2019 (r520467) +++ head/sysutils/Makefile Fri Dec 20 05:18:17 2019 (r520468) @@ -204,6 +204,7 @@ SUBDIR += cpu-x SUBDIR += cpuburn SUBDIR += cpuid + SUBDIR += cpuid2cpuflags SUBDIR += cpulimit SUBDIR += cpupdate SUBDIR += cramfs Added: head/sysutils/cpuid2cpuflags/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/cpuid2cpuflags/Makefile Fri Dec 20 05:18:17 2019 (r520468) @@ -0,0 +1,28 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= cpuid2cpuflags +PORTVERSION= 8 +DISTVERSIONPREFIX= v +CATEGORIES= sysutils + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Tool to generate CPU_FLAGS_* for your CPU + +LICENSE= BSD2CLAUSE + +USES= autoreconf +USE_GITHUB= yes +GH_ACCOUNT= mgorny +GNU_CONFIGURE= yes + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +.include Added: head/sysutils/cpuid2cpuflags/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/cpuid2cpuflags/distinfo Fri Dec 20 05:18:17 2019 (r520468) @@ -0,0 +1,3 @@ +TIMESTAMP = 1568752858 +SHA256 (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = c768a3a8e8028b35e9695fceef2cdbc9f8c5e2dcfd43349d9326884fb25d1faf +SIZE (mgorny-cpuid2cpuflags-v8_GH0.tar.gz) = 10065 Added: head/sysutils/cpuid2cpuflags/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/cpuid2cpuflags/pkg-descr Fri Dec 20 05:18:17 2019 (r520468) @@ -0,0 +1,15 @@ +The program attempts to obtain the identification and capabilities +of the currently used CPU, and print the matching set of CPU_FLAGS_* +flags for Gentoo Linux, but it could be useful for FreeBSD as well. + +The output format is compatible both with Portage (package.use) and +Paludis (use.conf/options.conf). + +On x86 platforms, the program issues the CPUID instruction to obtain +processor capabilities. + +On ARM platforms, the userspace processes are not allowed to obtain +processor information directly. Instead, the program is relying on +kernel identification of the CPU provided via the system interfaces. + +WWW: https://github.com/mgorny/cpuid2cpuflags