summaryrefslogtreecommitdiff
blob: 29dc9101748658733080265a33a5bb343d7e2bad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systrace/systrace-1.0-r4.ebuild,v 1.3 2003/11/09 19:41:21 vapier Exp $

DESCRIPTION="Systrace userland binary"
HOMEPAGE="http://www.systrace.org/"
SRC_URI="http://www.citi.umich.edu/u/provos/systrace/usr-systrace-2003-06-23.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="gtk"

DEPEND="dev-libs/libevent
	gtk? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1.2* )"

pkg_setup() {
	if ! [ -f /usr/include/linux/systrace.h ] ;
	then
		einfo
		einfo "ERROR: It does not look like you have a systrace capable kernel. If"
		einfo "this is incorrect, please copy /usr/src/linux/include/linux/systrace.h"
		einfo "to /usr/include/linux/ and restart the build."
		einfo
		einfo "The latest systrace Linux kernel patches can be found at:"
		einfo
		einfo "http://www.citi.umich.edu/u/provos/systrace/linux.html"
		einfo
		#die "need systrace in the kernel"
	fi
}

src_unpack() {
	unpack ${A}
	cd ${S}
	[ `use gtk` ] || epatch ${FILESDIR}/${PV}-no-gtk.patch
}

src_install() {
	dobin systrace
	doman systrace.1
}