/[gentoo-x86]/app-forensics/memdump/memdump-1.01.ebuild
Gentoo

Contents of /app-forensics/memdump/memdump-1.01.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jan 11 20:38:27 2012 UTC (2 years, 5 months ago) by ranger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Marking memdump-1.01 ppc for bug 390013

(Portage version: 2.1.10.11/cvs/Linux ppc64)

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-forensics/memdump/memdump-1.01.ebuild,v 1.3 2011/11/11 09:28:56 phajdan.jr Exp $
4
5 EAPI=4
6
7 inherit toolchain-funcs eutils
8
9 DESCRIPTION="Simple memory dumper for UNIX-Like systems"
10 HOMEPAGE="http://www.porcupine.org/forensics"
11 SRC_URI="http://www.porcupine.org/forensics/${P}.tar.gz"
12
13 LICENSE="IBM"
14 SLOT="0"
15 KEYWORDS="amd64 ppc x86"
16 IUSE=""
17
18 src_prepare() {
19 sed -i -e 's:$(CFLAGS):\0 $(LDFLAGS):' Makefile || die
20 epatch "${FILESDIR}"/${P}-linux3.patch
21 }
22
23 src_compile() {
24 emake CC="$(tc-getCC)" XFLAGS="${CFLAGS}" OPT= DEBUG=
25 }
26
27 src_test() {
28 if [[ ${EUID} -ne 0 ]];
29 then
30 einfo "Cannot test with FEATURES=userpriv"
31 elif [ -x /bin/wc ];
32 then
33 einfo "testing"
34 if [ "`./memdump -s 344 | wc -c`" = "344" ];
35 then
36 einfo "passed test"
37 else
38 die "failed test"
39 fi
40 fi
41 }
42
43 src_install() {
44 dosbin memdump
45 dodoc README
46 doman memdump.1
47 }

  ViewVC Help
Powered by ViewVC 1.1.20