summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAgostino Sarubbo <ago@gentoo.org>2013-09-29 14:49:59 +0000
committerAgostino Sarubbo <ago@gentoo.org>2013-09-29 14:49:59 +0000
commitc6da12059823c4b05e169a5626183652a06ed8bf (patch)
tree8d253a2529bb131b72a78ad9548e889799ebe10c /app-admin
parentDrop old. (diff)
downloadgentoo-2-c6da12059823c4b05e169a5626183652a06ed8bf.tar.gz
gentoo-2-c6da12059823c4b05e169a5626183652a06ed8bf.tar.bz2
gentoo-2-c6da12059823c4b05e169a5626183652a06ed8bf.zip
First commit for hardening-check, the tool to verify the hardened status of the ELF files
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 7194459F)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/hardening-check/ChangeLog10
-rw-r--r--app-admin/hardening-check/hardening-check-2.4.ebuild32
-rw-r--r--app-admin/hardening-check/metadata.xml9
3 files changed, 51 insertions, 0 deletions
diff --git a/app-admin/hardening-check/ChangeLog b/app-admin/hardening-check/ChangeLog
new file mode 100644
index 000000000000..4a0bf2371296
--- /dev/null
+++ b/app-admin/hardening-check/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-admin/hardening-check
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/hardening-check/ChangeLog,v 1.1 2013/09/29 14:49:59 ago Exp $
+
+*hardening-check-2.4 (29 Sep 2013)
+
+ 29 Sep 2013; Agostino Sarubbo <ago@gentoo.org> +hardening-check-2.4.ebuild,
+ +metadata.xml:
+ First commit for hardening-check, the tool to verify the hardened status of
+ the ELF files
diff --git a/app-admin/hardening-check/hardening-check-2.4.ebuild b/app-admin/hardening-check/hardening-check-2.4.ebuild
new file mode 100644
index 000000000000..4092c567b1fe
--- /dev/null
+++ b/app-admin/hardening-check/hardening-check-2.4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/hardening-check/hardening-check-2.4.ebuild,v 1.1 2013/09/29 14:49:59 ago Exp $
+
+EAPI="5"
+
+MY_PN="hardening-wrapper"
+
+DESCRIPTION="Report the hardening characterists of a set of binaries"
+HOMEPAGE="https://wiki.debian.org/Hardening"
+SRC_URI="mirror://debian/pool/main/h/${MY_PN}/${MY_PN}_${PV}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+LICENSE="GPL-2+"
+SLOT="0"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}"
+
+src_prepare() {
+ # This is what the Makefile does to detect FORTIFY_SOURCE
+ perl -pi -e "s/^my %libc;/my %libc = (\n$(perl hardening-check --find-libc-functions /bin/ls)\n);/;" ${PN} || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ dobin ${PN}
+}
diff --git a/app-admin/hardening-check/metadata.xml b/app-admin/hardening-check/metadata.xml
new file mode 100644
index 000000000000..6c08151bd39f
--- /dev/null
+++ b/app-admin/hardening-check/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>ago@gentoo.org</email>
+ <name>Agostino Sarubbo</name>
+ </maintainer>
+</pkgmetadata>
+