/[gentoo-x86]/app-admin/paxtest/paxtest-0.9.9-r2.ebuild
Gentoo

Contents of /app-admin/paxtest/paxtest-0.9.9-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Apr 23 13:54:18 2011 UTC (3 years, 5 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Rev bump removing dependency on deprecated chpax

(Portage version: 2.1.9.42/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/paxtest/paxtest-0.9.9-r1.ebuild,v 1.1 2010/09/18 17:11:25 blueness Exp $
4
5 EAPI="2"
6
7 inherit eutils multilib toolchain-funcs
8
9 DESCRIPTION="PaX regression test suite"
10 HOMEPAGE="http://pax.grsecurity.net"
11 SRC_URI="http://grsecurity.net/~spender/${P}.tgz -> ${PF}.tgz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
16 IUSE=""
17
18 RDEPEND=""
19 DEPEND="${RDEPEND}
20 sys-apps/paxctl"
21
22 # EI_PAX flags are not strip safe.
23 RESTRICT="strip"
24
25 QA_EXECSTACK="usr/bin/${PN}
26 usr/$(get_libdir)/${PN}/getamap
27 usr/$(get_libdir)/${PN}/shlibtest2.so
28 usr/$(get_libdir)/${PN}/execheap
29 usr/$(get_libdir)/${PN}/mprotstack
30 usr/$(get_libdir)/${PN}/mprotdata
31 usr/$(get_libdir)/${PN}/mprotheap
32 usr/$(get_libdir)/${PN}/randshlib
33 usr/$(get_libdir)/${PN}/randmain1
34 usr/$(get_libdir)/${PN}/getshlib
35 usr/$(get_libdir)/${PN}/randheap2
36 usr/$(get_libdir)/${PN}/rettofunc2x
37 usr/$(get_libdir)/${PN}/shlibdata
38 usr/$(get_libdir)/${PN}/shlibbss
39 usr/$(get_libdir)/${PN}/getmain1
40 usr/$(get_libdir)/${PN}/execdata
41 usr/$(get_libdir)/${PN}/execstack
42 usr/$(get_libdir)/${PN}/rettofunc2
43 usr/$(get_libdir)/${PN}/mprotshdata
44 usr/$(get_libdir)/${PN}/getstack1
45 usr/$(get_libdir)/${PN}/randamap
46 usr/$(get_libdir)/${PN}/rettofunc1x
47 usr/$(get_libdir)/${PN}/getheap2
48 usr/$(get_libdir)/${PN}/getheap1
49 usr/$(get_libdir)/${PN}/randheap1
50 usr/$(get_libdir)/${PN}/getstack2
51 usr/$(get_libdir)/${PN}/getmain2
52 usr/$(get_libdir)/${PN}/rettofunc1
53 usr/$(get_libdir)/${PN}/randstack2
54 usr/$(get_libdir)/${PN}/mprotshbss
55 usr/$(get_libdir)/${PN}/randstack1
56 usr/$(get_libdir)/${PN}/mprotanon
57 usr/$(get_libdir)/${PN}/randmain2
58 usr/$(get_libdir)/${PN}/writetext
59 usr/$(get_libdir)/${PN}/mprotbss
60 usr/$(get_libdir)/${PN}/anonmap
61 usr/$(get_libdir)/${PN}/execbss
62 usr/$(get_libdir)/${PN}/shlibtest.so"
63
64 src_prepare() {
65 mv Makefile.psm Makefile
66 epatch "${FILESDIR}/${P}-Makefile.patch"
67 sed -i "s/^CC := gcc/CC := $(tc-getCC)/" Makefile
68 sed -i "s/^LD := ld/LD := $(tc-getLD)/" Makefile
69 }
70
71 src_compile() {
72 emake RUNDIR=/usr/$(get_libdir)/paxtest || die
73 }
74
75 src_install() {
76 emake DESTDIR="${D}" BINDIR=/usr/bin RUNDIR=/usr/$(get_libdir)/paxtest install || die
77
78 newman debian/manpage.1.ex paxtest.1 || die
79 dodoc ChangeLog README || die
80 }

  ViewVC Help
Powered by ViewVC 1.1.20