blob: 32222d9aeb53174ef0d46a791d5899718d81b67a (
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
43
44
45
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/systrace/systrace-1.6d.ebuild,v 1.1 2006/04/18 09:11:00 lcars Exp $
inherit eutils
DESCRIPTION="Interactive Policy Generation for System Calls"
HOMEPAGE="http://www.systrace.org/"
SRC_URI="http://www.citi.umich.edu/u/provos/systrace/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
RDEPEND="dev-libs/libevent"
DEPEND="$RDEPEND
>=sys-devel/autoconf-2.58"
SYSTR_HEADER="${ROOT}usr/src/linux/include/linux/systrace.h"
src_unpack() {
unpack ${A}
cd ${S}
if ! [ -f ${SYSTR_HEADER} ] ; then
einfo
einfo "${SYSTR_HEADER} not found. Using ptrace-based backend."
einfo
epatch "${FILESDIR}"/systrace-regress.patch
else
einfo
einfo "${SYSTR_HEADER} found. Using /dev/systrace."
einfo
sed -i -e "s/all:.\+/all:/" ./regress/Makefile.am
sed -i -e "s:linux\/systrace.h:${SYSTR_HEADER}:" ./configure
sed -i -e "s:<linux\/systrace.h>:\"${SYSTR_HEADER}\":" ./linux-syscalls.c
fi
export WANT_AUTOCONF=2.5
}
src_install() {
dobin systrace || die
doman systrace.1
}
|