void-packages/srcpkgs/minio/template

30 lines
957 B
Bash

# Template file for 'minio'
pkgname=minio
version=2021.04.06
revision=4
_version="${version//./-}T23-11-00Z"
build_style=go
go_import_path="github.com/minio/minio"
conf_files="/etc/default/minio /etc/minio/config.json"
short_desc="Object storage server compatible with Amazon S3"
maintainer="Gerardo Di Iorio <arete74@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/minio/minio"
distfiles="${homepage}/archive/RELEASE.${_version}.tar.gz"
checksum=c5c7828eaf15e89c2347afa200d01e22e74a2087f425ecfa656e1d06d5bc29b4
system_accounts="_minio"
_minio_homedir="/var/lib/minio"
_minio_descr="Minio Daemon User"
make_dirs="/etc/minio 0755 _minio _minio
/var/lib/minio 0755 _minio _minio
/var/lib/minio/data 0755 _minio _minio"
make_check=no
post_install() {
vdoc README.md
vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname}
vinstall ${FILESDIR}/config.json 644 etc/minio config.json
vsv minio
vdoc "${FILESDIR}/README.voidlinux"
}