diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-19 02:51:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-19 02:51:45 +0900 |
| commit | fb9369823c1d268b605d1fe43d487df69e94f548 (patch) | |
| tree | 620150e2004158deb48b0b82ec46997315c0018c /internal/rosa/package/netbsd-utils/package.az | |
| parent | bef495229fd6865fd838673742f5ce584c3197b4 (diff) | |
internal/rosa/package: netbsd-utils
These are otherwise provided by glibc.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/netbsd-utils/package.az')
| -rw-r--r-- | internal/rosa/package/netbsd-utils/package.az | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/internal/rosa/package/netbsd-utils/package.az b/internal/rosa/package/netbsd-utils/package.az new file mode 100644 index 00000000..caa97581 --- /dev/null +++ b/internal/rosa/package/netbsd-utils/package.az @@ -0,0 +1,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 ]; +} |
