From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1677058-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id E02AC15807A
	for <garchives@archives.gentoo.org>; Sun,  6 Oct 2024 13:20:06 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D8FE0E29A2;
	Sun,  6 Oct 2024 13:20:05 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(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)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id BD16BE29A2
	for <gentoo-commits@lists.gentoo.org>; Sun,  6 Oct 2024 13:20:05 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(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)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C5DAE343161
	for <gentoo-commits@lists.gentoo.org>; Sun,  6 Oct 2024 13:20:04 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1C8021BF8
	for <gentoo-commits@lists.gentoo.org>; Sun,  6 Oct 2024 13:20:03 +0000 (UTC)
From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" <sping@gentoo.org>
Message-ID: <1728220755.dee272f84b2d085ffaa4d3420bcad75632a93f24.sping@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/checksec/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-admin/checksec/checksec-2.7.1-r1.ebuild
X-VCS-Directories: app-admin/checksec/
X-VCS-Committer: sping
X-VCS-Committer-Name: Sebastian Pipping
X-VCS-Revision: dee272f84b2d085ffaa4d3420bcad75632a93f24
X-VCS-Branch: master
Date: Sun,  6 Oct 2024 13:20:03 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b909177c-7b2f-4127-85bf-398ee6f4469f
X-Archives-Hash: 08d1fc649b877f49e0ef6539f3c60a6f

commit:     dee272f84b2d085ffaa4d3420bcad75632a93f24
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  6 13:16:57 2024 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sun Oct  6 13:19:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee272f8

app-admin/checksec: Require sys-apps/grep[pcre] at runtime

Also address warnings EmptyGlobalAssignment for ${IUSE} and
VariableOrderWrong for ${S}

Closes: https://bugs.gentoo.org/937014
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>

 app-admin/checksec/checksec-2.7.1-r1.ebuild | 39 +++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/app-admin/checksec/checksec-2.7.1-r1.ebuild b/app-admin/checksec/checksec-2.7.1-r1.ebuild
new file mode 100644
index 000000000000..6fd29bc8d3d3
--- /dev/null
+++ b/app-admin/checksec/checksec-2.7.1-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+MY_PN=${PN}.sh
+DESCRIPTION="Tool to check properties of executables (e.g. ASLR/PIE, RELRO, PaX, Canaries)"
+HOMEPAGE="https://github.com/slimm609/checksec.sh"
+SRC_URI="https://github.com/slimm609/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+S="${WORKDIR}"/${MY_PN}-${PV}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+	sys-apps/grep[pcre]
+	!<dev-util/pwntools-4.10.0_beta0-r2
+"
+
+DOCS=( ChangeLog README.md )
+
+src_prepare() {
+	sed 's,^pkg_release=false,pkg_release=true,' -i ${PN} || die
+	rm Makefile || die
+	default
+}
+
+src_install() {
+	default
+
+	doman extras/man/*
+
+	insinto /usr/share/zsh/site-functions
+	doins extras/zsh/_${PN}
+
+	dobin ${PN}
+}