summaryrefslogtreecommitdiff
blob: 65abbbf9e36fd50c1456aa247b7475ae18d3d17f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header $

EAPI="4"
RESTRICT="mirror"
inherit eutils

DESCRIPTION="Check for hardened protections like RELRO, NoExec, Stack protection, ASLR, PIE"
HOMEPAGE="http://www.trapkit.de/tools/checksec.html"
SRC_URI="http://www.trapkit.de/tools/${PN}.sh -> ${P}.sh"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="zsh-completion"
S="${WORKDIR}"

src_prepare() {
	epatch_user
}

src_install() {
	newbin "${DISTDIR}/${P}.sh" "${PN}"
	if use zsh-completion
	then	insinto /usr/share/zsh/site-functions
			doins "${FILESDIR}/_${PN}"
	fi
}