blob: caa97581a482e94f4b19ce076ada9349290a9a89 (
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
|
package netbsd-utils {
description = "small utilities from NetBSD";
version = unversioned;
ccommon = true;
files = {
"getent.c";
"getconf.c";
};
exec = generic {
cross = `
QEMU="qemu-`+linuxArch+` -L `+prefix+`/`+arch+` "
`;
build = `
CC=${CC:-cc}
mkdir bin
$CC -o bin/getent /usr/src/getent.c
$CC -o bin/getconf /usr/src/getconf.c
`;
check = `
T="${QEMU:-} ./bin/"
${T}getent passwd cure
${T}getconf PAGE_SIZE
`;
install = `
mkdir /work`+prefix+`
mv bin /work`+prefix+`
`;
};
native = [ qemu ];
}
|