You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
994 B
48 lines
994 B
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-forensics/memdump/memdump-1.01.ebuild,v 1.1 2011/09/27 08:52:16 radhermit Exp $
|
||
|
|
||
|
EAPI=4
|
||
|
|
||
|
inherit toolchain-funcs eutils
|
||
|
|
||
|
DESCRIPTION="Simple memory dumper for UNIX-Like systems"
|
||
|
HOMEPAGE="http://www.porcupine.org/forensics"
|
||
|
SRC_URI="http://www.porcupine.org/forensics/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="IBM"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~ppc ~x86"
|
||
|
IUSE=""
|
||
|
|
||
|
src_prepare() {
|
||
|
sed -i -e 's:$(CFLAGS):\0 $(LDFLAGS):' Makefile || die
|
||
|
epatch "${FILESDIR}"/${P}-linux3.patch
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake CC="$(tc-getCC)" XFLAGS="${CFLAGS}" OPT= DEBUG=
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
if [[ ${EUID} -ne 0 ]];
|
||
|
then
|
||
|
einfo "Cannot test with FEATURES=userpriv"
|
||
|
elif [ -x /bin/wc ];
|
||
|
then
|
||
|
einfo "testing"
|
||
|
if [ "`./memdump -s 344 | wc -c`" = "344" ];
|
||
|
then
|
||
|
einfo "passed test"
|
||
|
else
|
||
|
die "failed test"
|
||
|
fi
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dosbin memdump
|
||
|
dodoc README
|
||
|
doman memdump.1
|
||
|
}
|