| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/pax-utils/pax-utils-0.4.ebuild,v 1.2 2012/06/13 05:59:56 jdhore Exp $ |
| 4 |
|
| 5 |
inherit eutils toolchain-funcs unpacker |
| 6 |
|
| 7 |
DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties" |
| 8 |
HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml" |
| 9 |
SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz |
| 10 |
http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz |
| 11 |
http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz" |
| 12 |
|
| 13 |
LICENSE="GPL-2" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
| 16 |
IUSE="caps" |
| 17 |
#RESTRICT="mirror" |
| 18 |
|
| 19 |
RDEPEND="caps? ( sys-libs/libcap )" |
| 20 |
DEPEND="${RDEPEND} |
| 21 |
app-arch/xz-utils" |
| 22 |
|
| 23 |
src_compile() { |
| 24 |
emake CC="$(tc-getCC)" USE_CAP=$(usex caps) || die |
| 25 |
} |
| 26 |
|
| 27 |
src_install() { |
| 28 |
emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install || die |
| 29 |
prepalldocs |
| 30 |
} |