summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2019-07-24 16:46:27 +0200
committerSebastian Pipping <sping@gentoo.org>2019-07-24 16:48:36 +0200
commit4b9d9990641bf16c6b7d4c6101ff576427b02b54 (patch)
tree4b202d8d725bc9937e6b8bf220ed4aa5b0027718 /app-admin/checksec
parentdev-db/lmdb: Bump to version 0.9.24 (diff)
downloadgentoo-4b9d9990641bf16c6b7d4c6101ff576427b02b54.tar.gz
gentoo-4b9d9990641bf16c6b7d4c6101ff576427b02b54.tar.bz2
gentoo-4b9d9990641bf16c6b7d4c6101ff576427b02b54.zip
app-admin/checksec: 2.0.0
Ping: https://github.com/slimm609/checksec.sh/issues/34 Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-2.3.68, Repoman-2.3.16
Diffstat (limited to 'app-admin/checksec')
-rw-r--r--app-admin/checksec/Manifest1
-rw-r--r--app-admin/checksec/checksec-2.0.0.ebuild39
-rw-r--r--app-admin/checksec/files/checksec-2.0.0-usage.patch34
3 files changed, 74 insertions, 0 deletions
diff --git a/app-admin/checksec/Manifest b/app-admin/checksec/Manifest
index 04346d38f857..ef54154a9cb9 100644
--- a/app-admin/checksec/Manifest
+++ b/app-admin/checksec/Manifest
@@ -2,3 +2,4 @@ DIST checksec-1.11.1.tar.gz 198151 BLAKE2B 2b45834adb045dbf75a0ffab4f03b2640d068
DIST checksec-1.7.5.tar.gz 51266 BLAKE2B a77e6d0bf52bc8a0ec18c0f1ffe883b68acccaaee6fd0d1714d456c31c3004b5d9279c3926885be168befba1dc7a75b1269dac5cb5847c247470e765601f08e6 SHA512 7269fb3628907f6fe4e8b720d2dcbd5bf8586e1821bd758533dff6255c6a52be9146b58f60abea798ee92471c3d5ad9e867fa7ad4b8e5ea2d8aa03d5a3b83098
DIST checksec-1.8.0.tar.gz 52391 BLAKE2B 3720e4faae5aa82172c673ce7ddc662db1433b82d25f25be4c219f1664da8af687d2a5ee9c05703e9f151a998be9226e896e125b7cff05d3881e61e8a9f5c918 SHA512 0236e40ba8b4f7c13ebd3b51f22dd05e6c4442e8646b5a1ee814556d9a6ca19f9bae638af33a6bfec2f8ef95567d222a20dcdcd9eae6ffb7ea5261919f020283
DIST checksec-1.9.0.tar.gz 196168 BLAKE2B f9095a516f166e9a407c9796e28ed7da4ffd97686923745e46b0ab4110f084690781995b6cc190234b8a26fe1e6eb2c8f32f7f15191f0dbc26b38048c87e9a2d SHA512 8bf68dd0b86a6eceb6f5eb016a15ed1bf7d086777c3ec1c62848ec23e62dceed4579404d76824f17b8e1305e679ba6204f0dc4c224f7a11067651f33c2d96515
+DIST checksec-2.0.0.tar.gz 199959 BLAKE2B 916b256c353c2a0303d9ff310ffe1663152babf8a85bed687b37f703c1be53de4736f6cb29cc7a892eb358050fd94e3ca64716049b59cc259abf910a6ad1caea SHA512 1e5f95473ef6012aede06539e51c5c51b0ede2ddfcdca47027b49a56f021772e900361cad52835caccfbab35e40ecb7f8369b8af2044168581a4b4fd7caac366
diff --git a/app-admin/checksec/checksec-2.0.0.ebuild b/app-admin/checksec/checksec-2.0.0.ebuild
new file mode 100644
index 000000000000..644c15137be8
--- /dev/null
+++ b/app-admin/checksec/checksec-2.0.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+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"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
+IUSE=""
+
+S="${WORKDIR}"/${MY_PN}-${PV}
+
+DOCS=( ChangeLog README.md )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.7.2-path.patch
+ "${FILESDIR}"/${P}-usage.patch
+)
+
+src_prepare() {
+ sed 's,^pkg_release=false,pkg_release=true,' -i ${PN} || die
+ default
+}
+
+src_install() {
+ default
+
+ doman extras/man/*
+
+ insinto /usr/share/zsh/site-functions
+ doins extras/zsh/_${PN}
+
+ dobin ${PN}
+}
diff --git a/app-admin/checksec/files/checksec-2.0.0-usage.patch b/app-admin/checksec/files/checksec-2.0.0-usage.patch
new file mode 100644
index 000000000000..9b2141d1f0f7
--- /dev/null
+++ b/app-admin/checksec/files/checksec-2.0.0-usage.patch
@@ -0,0 +1,34 @@
+From 2f427b0d3654509f180d8c717dfbb590b907fff5 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Wed, 24 Jul 2019 16:41:57 +0200
+Subject: [PATCH] checksec: Fix usage
+
+---
+ checksec | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/checksec b/checksec
+index fd83b0b..00a602f 100755
+--- a/checksec
++++ b/checksec
+@@ -232,7 +232,7 @@ version() {
+
+ # help
+ help() {
+- echo "Usage: checksec [--output {cli|csv|xml|json}] [OPTION]"
++ echo "Usage: checksec [--format={cli|csv|xml|json}] [OPTION]"
+ echo
+ echo
+ echo "Options:"
+@@ -255,7 +255,7 @@ help() {
+ echo " ## Modifiers"
+ echo " --debug"
+ echo " --verbose"
+- echo " --format=[cli|csv|xml|json]"
++ echo " --format={cli|csv|xml|json}"
+ echo
+ echo "For more information, see:"
+ echo " http://github.com/slimm609/checksec.sh"
+--
+2.21.0
+