2020-01-30 15:04:01 +00:00
|
|
|
# Template file for 'openbsd-file'
|
|
|
|
pkgname=openbsd-file
|
|
|
|
version=6.2
|
2020-02-16 11:45:22 +00:00
|
|
|
revision=3
|
2020-01-30 15:04:01 +00:00
|
|
|
wrksrc="file-${version}"
|
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--program-prefix=openbsd-"
|
|
|
|
hostmakedepends="automake libtool"
|
|
|
|
short_desc="Portable version of OpenBSD's privsep/sandboxed file(1) utility"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="ISC"
|
|
|
|
homepage="https://github.com/brynet/file/"
|
|
|
|
distfiles="https://github.com/brynet/file/archive/v${version}.tar.gz"
|
|
|
|
checksum=f6bf601f513bd83038e343bbd93b7982f373669a2ffa76dc52d48fa7251515b2
|
|
|
|
|
2020-02-16 11:45:22 +00:00
|
|
|
system_accounts="_file"
|
|
|
|
|
2020-01-30 15:04:01 +00:00
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
|
|
CFLAGS="-DREG_STARTEND=0"
|
|
|
|
makedepends+=" musl-legacy-compat"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
post_install() {
|
2020-01-30 17:59:34 +00:00
|
|
|
vinstall magic 444 /etc
|
2020-01-30 15:04:01 +00:00
|
|
|
vlicense LICENSE
|
|
|
|
}
|