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