From owner-freebsd-git@freebsd.org Thu Feb 25 13:20:05 2021 Return-Path: Delivered-To: freebsd-git@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 54308563091 for ; Thu, 25 Feb 2021 13:20:05 +0000 (UTC) (envelope-from dan@langille.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DmYLD3StVz4j4Y for ; Thu, 25 Feb 2021 13:20:04 +0000 (UTC) (envelope-from dan@langille.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 0F49F5C00DA for ; Thu, 25 Feb 2021 08:20:03 -0500 (EST) Received: from imap36 ([10.202.2.86]) by compute4.internal (MEProxy); Thu, 25 Feb 2021 08:20:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= mime-version:message-id:date:from:to:subject:content-type; s= fm3; bh=erb5B/89QVHoPy+zFu9Bufcgz+EVKBrYx07JEdmuM4c=; b=sDB+Msrf +LlA6CEzaOm2UesdYRMi7u/5ZihnJIU2L0+iQeWV63YdYG1UhMVE4BA7/FsP+F4w GmIwtEgY4It9v/zYR+Sn5B1DHs4u1oOm3hp6fIfO7HhDePp0yq5fpK9X5PbeRm+z EXSOI+gzGXHieodOzH4ywWvT47lhXh6XxXGefFroNqtOjVTcHyxa0ezC8qIBkXQk swkIWjKYWaq/ae75OIDo384EflKESYDfBB1AvZfxfGqTBO/2vosqr4gNBrfwVm32 qNqq52TM7hTxCTcPJRyk2o/XtPC8BErpfJG4NXnVcwR67RWBumKp0RTfWeldQvqt OxFpZy0QrKXBdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=erb5B/89QVHoPy+zFu9Bufcgz+EVK BrYx07JEdmuM4c=; b=Vni2/LLl1rk6rtdMJTS8d2pVw+p2lDNzVQcjNmO0++ZHr 6s/cTwNr6R7yF0HZI7LgTP3Q3NURmoYscUaC8/mOZzGRR6FEToFWBQU3vKsNQxEn EZb/wvv2PO7fCYOq+PSNdrrrOgZ4pwlWtYVmy/G1U9sp4Yhhx+Oev2ktzyWc1ybO AfcgaWSwPBZgEmfl5+TRPlwRFFgxmxqdpIZLzWfQhq4UpBY/8VEdX219jPjYiq9r 08r6NxrlcY4MyfWpwGxCs+tN+w/HqcmdaEOnD4t4ZjyiyQe7g8k77LrtlRseEcud 91+7ZR6RxqXKKzwkV8uSr6JvHKtKEc1D5DJVrbzvQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkeelgdehudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomhepfdffrghnucfnrghnghhilhhlvgdfuceouggrnheslhgrnhhgihhl lhgvrdhorhhgqeenucggtffrrghtthgvrhhnpefhkeeikeeitdeihffgkeetleeuudefje eltedufeduvdekkeduleelffevvddtteenucffohhmrghinhepfhhrvggvsghsugdrohhr ghdpghhithhhuhgsrdgtohhmpdhfrhgvshhhphhorhhtshdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghnsehlrghnghhilhhl vgdrohhrgh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id BBD1310E0065; Thu, 25 Feb 2021 08:20:02 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-141-gf094924a34-fm-20210210.001-gf094924a Mime-Version: 1.0 Message-Id: <0bd4ecf6-2797-41da-902a-94fed6887abd@www.fastmail.com> Date: Thu, 25 Feb 2021 08:19:38 -0500 From: "Dan Langille" To: freebsd-git@freebsd.org Subject: replacement for ident(1) Content-Type: text/plain X-Rspamd-Queue-Id: 4DmYLD3StVz4j4Y X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm3 header.b=sDB+Msrf; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=Vni2/LLl; dmarc=pass (policy=none) header.from=langille.org; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 66.111.4.29 as permitted sender) smtp.mailfrom=dan@langille.org X-Spamd-Result: default: False [-3.09 / 15.00]; XM_UA_NO_VERSION(0.01)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.29:from]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.29:from]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.111.4.29:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm3,messagingengine.com:s=fm2]; FREEFALL_USER(0.00)[dan]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-git@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[66.111.4.29:from:127.0.2.255]; MID_RHS_WWW(0.50)[]; MAILMAN_DEST(0.00)[freebsd-git] X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2021 13:20:05 -0000 Post git, what do we use instead of ident(1)? >From https://www.freebsd.org/cgi/man.cgi?query=ident&sektion=1 NAME ident -- identify RCS keyword string in files Example, pertinent to my use case: $ ident security/vuxml/vuln.xml security/vuxml/vuln.xml: $FreeBSD: head/security/vuxml/vuln.xml 566520 2021-02-25 02:33:12Z philip $ Here is the 15-year old code which uses it: https://gist.github.com/dlangille/c7aee2ce3a717443d73e3d7f86a74130 Those four bits of information are used here: https://www.freshports.org/vuxml.php?all e.g. The last vuln.xml file processed by FreshPorts is: Revision: 566519 Date: 2021-02-25 Time: 02:33:09Z Committer: philip I could extract this separately during each commit of security/vuxml but wanted to check if there was another way first. Thank you. -- Dan Langille dan@langille.org