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 ]; }