From nobody Thu Jul 13 20:23:43 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R25fS1W7pz4n5wf; Thu, 13 Jul 2023 20:23:44 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R25fS11N0z3PBR; Thu, 13 Jul 2023 20:23:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689279824; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vEM/AilPcrHRrfSqD+x8i/9r02MLAu4ZBZVFyifvuPg=; b=r7zM7ygtLGaj7ZUXVET5i0588SOp7jXz148uGabQjxamxeyblzHdIcaX1eJUHarjkvvY0N gZiGjtESLJJ4cZXlVbS0C53K3zf3sEwlZg2pLF2zu7NtTSL5rfHDGKHbISeaADbUh9OWrm On01nnYSmm/kj1u0CFHKN1TnS2i+z2rZ5u5oeewxGstPTyfqc4Uf1Tsy0+eJ1S0ZOFzz3r Im2S1vvwIn5RXo6pC2BUEc9wS9d7eZRiQ9IVk4tYsOShv+RTc6cuvZYzaYWdDU7JWzDMZD 5KViwAzajxyoT9bDD3amgtetSX9/isnrX6CANx0NtkZfiotFHCYWP6sx6ISfDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689279824; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vEM/AilPcrHRrfSqD+x8i/9r02MLAu4ZBZVFyifvuPg=; b=rME4R9YosSPo/BV7MyLLCw79yOx3p80OS2+YVcLAl6bGo1w6Dcjot0SGgr+TvI2/M07+a9 gfUTyL+RyO0g7i4VNGvm/2xM5RM9UxcKYvcgUz1ruiewl3X8kJuafC8e0aodiCS4CojGwe jTkES85bnu4ZbAcidFQm5vo719e6Se9KGU/L6YSfo8OrkiwDfvy7OE8VjYpq0RMph+Hxtv jEvuIj2CMf/GV37UHI+wAtkDmOykAfA0NmO3zUhbUFfSZSKQ6q+aK/pnfLFAmgw4SMkTSR ek8yS5dOYRvBa6npqgCftgFgO1UVrEFUIcePH6e/AUsewAJ6cf2zxu5YuNcPBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689279824; a=rsa-sha256; cv=none; b=H25I2Bj6Yxz8ri+kMJEZ4z/iStR21+5Pp4G28W8EGnJAPfRgjaIOOv8OtsYBmzPM/LvNUI VjG0HfSJHOj3tvTozdlZMQ/oRG00krh3KB/z7qVEid1JEj6S/t4hUdFdrwmsYXw+snIYHD N4i8PRXdxMrsjjAx9/n/QxWhDsG6K4r7qm9lP2M7RVYIPZ4xzE3efXBSrRwyc16jUJGoqQ d/w8mNafCyuAw260+wG0/39LKidtW61f1+ctC9A7oWF1+fA8ZwMKK+CUk8v15OsCIsOHKP 6Zy7Xtd69gLEs0mOywqzhXzPlnlK9hG2TP6Xrsfw4Y/wijSDyMfrovuJusXP4g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R25fS05hDz14yp; Thu, 13 Jul 2023 20:23:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36DKNhR6006548; Thu, 13 Jul 2023 20:23:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36DKNhjL006547; Thu, 13 Jul 2023 20:23:43 GMT (envelope-from git) Date: Thu, 13 Jul 2023 20:23:43 GMT Message-Id: <202307132023.36DKNhjL006547@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Felix Palmen Subject: git: ca20c3923e51 - main - security/unix-selfauth-helper: Update to 1.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zirias X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ca20c3923e519d174cb60b81f28c89d45b9b066d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=ca20c3923e519d174cb60b81f28c89d45b9b066d commit ca20c3923e519d174cb60b81f28c89d45b9b066d Author: Felix Palmen AuthorDate: 2023-07-13 17:46:54 +0000 Commit: Felix Palmen CommitDate: 2023-07-13 20:23:24 +0000 security/unix-selfauth-helper: Update to 1.1 Changes: https://github.com/Zirias/unix-selfauth-helper/releases/tag/v1.1 Also remove the post-install script checking for FreeBSD versions with unpatched pam_exec.so. 13.0 and 13.1 were affected, 13.0 is long since EOL, 13.1 will be EOL in a few days and the issue was already fixed in -p1. Approved by: tcberner (mentor, implicit) --- security/unix-selfauth-helper/Makefile | 14 +++--- security/unix-selfauth-helper/distinfo | 6 +-- security/unix-selfauth-helper/pkg-post-install.lua | 53 ---------------------- 3 files changed, 9 insertions(+), 64 deletions(-) diff --git a/security/unix-selfauth-helper/Makefile b/security/unix-selfauth-helper/Makefile index 583fef50e42c..414cb4e19ab5 100644 --- a/security/unix-selfauth-helper/Makefile +++ b/security/unix-selfauth-helper/Makefile @@ -1,20 +1,18 @@ PORTNAME= unix-selfauth-helper -DISTVERSION= 1.0.1 -DISTVERSIONPREFIX= v +DISTVERSION= 1.1 CATEGORIES= security +MASTER_SITES= ${WWW}/releases/download/v${DISTVERSION}/ MAINTAINER= zirias@FreeBSD.org COMMENT= Local self-authentication for pam_exec -WWW= https://github.com/Zirias/unix-selfauth-helper +WWW= https://github.com/Zirias/${PORTNAME} LICENSE= BSD2CLAUSE -USES= uidfix +USES= tar:xz -USE_GITHUB= yes -GH_ACCOUNT= Zirias - -PLIST_FILES= libexec/unix-selfauth-helper \ +PLIST_FILES= etc/pam.d/unix-selfauth \ + libexec/unix-selfauth-helper \ man/man8/unix-selfauth-helper.8.gz .include diff --git a/security/unix-selfauth-helper/distinfo b/security/unix-selfauth-helper/distinfo index b87f0b8f8154..66064486906e 100644 --- a/security/unix-selfauth-helper/distinfo +++ b/security/unix-selfauth-helper/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1659607930 -SHA256 (Zirias-unix-selfauth-helper-v1.0.1_GH0.tar.gz) = 24d72c04cc6f42b198378926af0e3d3c0efd7d39e68616482c8b218d4732d261 -SIZE (Zirias-unix-selfauth-helper-v1.0.1_GH0.tar.gz) = 3927 +TIMESTAMP = 1689275552 +SHA256 (unix-selfauth-helper-1.1.tar.xz) = a92c1269c5950425df4eee9cba3d96509807a68ac7973f430f3a7c2538a3ff29 +SIZE (unix-selfauth-helper-1.1.tar.xz) = 3960 diff --git a/security/unix-selfauth-helper/pkg-post-install.lua b/security/unix-selfauth-helper/pkg-post-install.lua deleted file mode 100644 index 24b211cc0246..000000000000 --- a/security/unix-selfauth-helper/pkg-post-install.lua +++ /dev/null @@ -1,53 +0,0 @@ -function getfbsduvers () - local osrel = io.open("/etc/os-release") - if (not osrel) then return nil end - local reldat = {} - for line in osrel:lines() do - local k, v = string.match(line, - '%s*(.+)%s*=%s*"?%s*([^"]+)%s*"?') - if (k and v) then reldat[k] = v end - end - osrel:close() - if (not reldat["ID"] or reldat["ID"] ~= "freebsd") then return nil end - return reldat["VERSION"] -end - -function printwarning (uvers, required) - local msg=[=[ -====== -Message from $pkg: - -!!! ATTENTION !!! - -You are currently running FreeBSD $vcurr. - -Correct operation of $pkg requires a bugfix that was delivered -in $vreq. - -This package is probably installed as a dependency of some screen locker, -and without the bugfix, YOU WILL PROBABLY BE UNABLE TO UNLOCK YOUR SCREEN. - -Please use freebsd-update(8) to update your system before you continue. - -See also: - -]=] - local warning = string.gsub(msg, '$(%w+)', - {pkg = pkg_name, vcurr = uvers, vreq = required}) - pkg.print_msg(warning) -end - -fbsduvers = getfbsduvers() -if (fbsduvers and string.match(fbsduvers, '-RELEASE')) then - umaj = tonumber(string.match(fbsduvers, '^[0-9]+')) - umin = tonumber(string.match(fbsduvers, '%.([0-9]+)-')) - uplv = tonumber(string.match(fbsduvers, '-p([0-9]+)')) - if (not uplv) then uplv = 0 end - if (umaj == 13 and umin <= 1) then - if (umin == 0 and uplv < 12) then - printwarning(fbsduvers, "13.0-RELEASE-p12") - elseif (umin == 1 and uplv < 1) then - printwarning(fbsduvers, "13.1-RELEASE-p1") - end - end -end