openbsd-file: create system account for dropping privileges

This commit is contained in:
Anthony Iliopoulos 2020-02-16 12:45:22 +01:00 committed by Juan RP
parent f920b95d2c
commit e3861f0ba9

View file

@ -1,7 +1,7 @@
# Template file for 'openbsd-file'
pkgname=openbsd-file
version=6.2
revision=2
revision=3
wrksrc="file-${version}"
build_style=gnu-configure
configure_args="--program-prefix=openbsd-"
@ -13,6 +13,8 @@ homepage="https://github.com/brynet/file/"
distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
system_accounts="_file"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
CFLAGS="-DREG_STARTEND=0"
makedepends+=" musl-legacy-compat"