Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 679422
Collapse All | Expand All

(-)a/app-forensics/memdump/memdump-1.01-r1.ebuild (+47 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
inherit toolchain-funcs
7
8
DESCRIPTION="Simple memory dumper for UNIX-Like systems"
9
HOMEPAGE="http://www.porcupine.org/forensics"
10
SRC_URI="http://www.porcupine.org/forensics/${P}.tar.gz"
11
12
LICENSE="IBM"
13
SLOT="0"
14
KEYWORDS="~amd64 ~ppc ~x86"
15
16
PATCHES=( "${FILESDIR}"/${P}-linux3.patch )
17
18
src_prepare() {
19
	default
20
	sed -i -e 's:$(CFLAGS):\0 $(LDFLAGS):' Makefile || die
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
}

Return to bug 679422