| 1 |
blueness |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
johu |
1.5 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/paxctl/paxctl-0.7-r2.ebuild,v 1.4 2012/08/05 05:53:06 blueness Exp $
|
| 4 |
blueness |
1.1 |
|
| 5 |
|
|
EAPI="4"
|
| 6 |
|
|
|
| 7 |
|
|
inherit toolchain-funcs
|
| 8 |
|
|
|
| 9 |
jlec |
1.2 |
DESCRIPTION="Manages various PaX related program header flags for Elf32, Elf64, binaries"
|
| 10 |
blueness |
1.1 |
SRC_URI="http://pax.grsecurity.net/${P}.tar.bz2"
|
| 11 |
|
|
HOMEPAGE="http://pax.grsecurity.net"
|
| 12 |
jlec |
1.2 |
|
| 13 |
johu |
1.5 |
KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux"
|
| 14 |
blueness |
1.1 |
IUSE=""
|
| 15 |
|
|
LICENSE="GPL-2"
|
| 16 |
|
|
SLOT="0"
|
| 17 |
|
|
|
| 18 |
|
|
DEPEND=">=sys-devel/binutils-2.14.90.0.8-r1"
|
| 19 |
|
|
RDEPEND=""
|
| 20 |
|
|
|
| 21 |
|
|
DOCS=( README ChangeLog )
|
| 22 |
|
|
|
| 23 |
|
|
src_prepare() {
|
| 24 |
|
|
sed \
|
| 25 |
|
|
"s:--owner 0 --group 0::g" \
|
| 26 |
|
|
-i Makefile || die
|
| 27 |
|
|
}
|
| 28 |
|
|
|
| 29 |
|
|
src_compile() {
|
| 30 |
|
|
emake \
|
| 31 |
|
|
CC="$(tc-getCC)" \
|
| 32 |
|
|
CFLAGS="${CFLAGS}" \
|
| 33 |
|
|
LDFLAGS="${LDFLAGS}"
|
| 34 |
|
|
}
|
| 35 |
|
|
|
| 36 |
|
|
src_install () {
|
| 37 |
|
|
emake DESTDIR="${ED}" install
|
| 38 |
|
|
}
|