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}
+}

Reply via email to