| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/elfix/elfix-0.8.1.ebuild,v 1.9 2013/02/20 15:01:19 jer Exp $
|
| 4 |
|
| 5 |
EAPI="5"
|
| 6 |
|
| 7 |
DESCRIPTION="A suite of tools to work with ELF objects on Hardened Gentoo."
|
| 8 |
HOMEPAGE="http://www.gentoo.org/proj/en/hardened/pax-quickstart.xml
|
| 9 |
http://dev.gentoo.org/~blueness/elfix/"
|
| 10 |
SRC_URI="http://dev.gentoo.org/~blueness/elfix/${P}.tar.gz"
|
| 11 |
|
| 12 |
LICENSE="GPL-3"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
|
| 15 |
IUSE="+ptpax +xtpax"
|
| 16 |
|
| 17 |
REQUIRED_USE="|| ( ptpax xtpax )"
|
| 18 |
|
| 19 |
# These only work with a properly configured PaX kernel
|
| 20 |
RESTRICT="test"
|
| 21 |
|
| 22 |
DEPEND="~dev-python/pypax-${PV}[ptpax=,xtpax=]
|
| 23 |
ptpax? ( dev-libs/elfutils )
|
| 24 |
xtpax? ( sys-apps/attr )"
|
| 25 |
|
| 26 |
RDEPEND="${DEPEND}"
|
| 27 |
|
| 28 |
src_configure() {
|
| 29 |
rm -f "${S}/scripts/setup.py"
|
| 30 |
econf --disable-tests \
|
| 31 |
$(use_enable ptpax) \
|
| 32 |
$(use_enable xtpax)
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
emake DESTDIR="${D}" install
|
| 37 |
dodoc AUTHORS ChangeLog INSTALL README THANKS TODO
|
| 38 |
}
|