blob: a8558cb701cc266545e8cd1b6f81c3e8707ab410 (
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
|
SUMMARY = "a Linux System call fuzz teste."
DESCRIPTION = "Trinity, a Linux System call fuzz tester."
HOMEPAGE = "http://codemonkey.org.uk/projects/trinity/"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=96094d47cfbd2cc45eb46ce0fc423c04"
COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
PV = "1.5"
SRCREV = "edc2e693e298e0372010a361354c4a79a3cd93f3"
SRC_URI = "git://github.com/kernelslacker/trinity.git;protocol=https;nobranch=1 \
"
S = "${WORKDIR}/git"
inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system --create-home --shell /bin/sh ${PN} "
do_configure () {
./configure.sh
}
# workaround random build failures
do_compile () {
${MAKE}
}
do_install () {
oe_runmake install DESTDIR=${D}/usr
install -o ${PN} -d -m 0755 ${D}/${datadir}/${PN}
install -o ${PN} -m 0755 ${S}/scripts/test-all-syscalls-parallel.sh ${D}/${datadir}/${PN}
install -o ${PN} -m 0755 ${S}/scripts/test-all-syscalls-sequentially.sh ${D}/${datadir}/${PN}
install -o ${PN} -m 0755 ${S}/scripts/test-multi.sh ${D}/${datadir}/${PN}
install -o ${PN} -m 0755 ${S}/scripts/test-vm.sh ${D}/${datadir}/${PN}
}
PACKAGES =+ "${PN}-example"
FILES:${PN} = "${bindir}/trinity"
FILES:${PN}-example = "${datadir}/${PN}"
|