[arch-commits] Commit in minio/repos (5 files)
Jelle van der Waa
jelle at archlinux.org
Sat Mar 7 14:38:52 UTC 2020
Date: Saturday, March 7, 2020 @ 14:38:51
Author: jelle
Revision: 591173
archrelease: copy trunk to extra-x86_64
Added:
minio/repos/extra-x86_64/
minio/repos/extra-x86_64/PKGBUILD
(from rev 591172, minio/trunk/PKGBUILD)
minio/repos/extra-x86_64/minio.conf
(from rev 591172, minio/trunk/minio.conf)
minio/repos/extra-x86_64/minio.service
(from rev 591172, minio/trunk/minio.service)
minio/repos/extra-x86_64/minio.sysusers
(from rev 591172, minio/trunk/minio.sysusers)
----------------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
minio.conf | 8 ++++++++
minio.service | 27 +++++++++++++++++++++++++++
minio.sysusers | 1 +
4 files changed, 83 insertions(+)
Copied: minio/repos/extra-x86_64/PKGBUILD (from rev 591172, minio/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD (rev 0)
+++ extra-x86_64/PKGBUILD 2020-03-07 14:38:51 UTC (rev 591173)
@@ -0,0 +1,47 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Frederik Schwan <frederik dot schwan at linux dot com>
+# Contributor: Daniel Maslowski <info at orangecms.org>
+
+pkgname=minio
+pkgver=2019.12.17
+_timever=T23:16:33Z
+_pkgver="${pkgver//./-}${_timever//:/-}"
+pkgrel=2
+pkgdesc='Object storage server compatible with Amazon S3'
+arch=('x86_64')
+url='https://minio.io'
+license=('APACHE')
+depends=('glibc')
+makedepends=('go-pie' 'git')
+options=('!strip')
+source=(git+https://github.com/minio/minio.git#tag=RELEASE.${_pkgver}
+ minio.conf
+ minio.service
+ minio.sysusers)
+backup=('etc/minio/minio.conf')
+sha512sums=('SKIP'
+ '630a5d109409074b67be71b663a43ad09104121cca3637bb0542df19e375023bff7d7e2cbf39e52cc3cd060d41c363a90bd4ff7734aed1a5ca43a600f6d6d275'
+ '59aa13b47494564c8eea23dd48fdccef0e65adc0defd4bbd9ca039fd602de0791e1311e444bddca71a1bec7a58cb4eaafad09a8d9ae61eb1e534287dfdf610c2'
+ '7e4617aed266cf48a2ff9b0e80e31641d998537c78d2c56ce97b828cfc77d96dbf64728d4235dac7382d6e5b201388bef6722959302de5e2298d93f4ec1e0e63')
+
+build() {
+ export GOPATH="${srcdir}/go"
+ mkdir -p "${GOPATH}/src/github.com/minio"
+ mv "${srcdir}/minio" "${GOPATH}/src/github.com/minio/minio"
+ cd "${GOPATH}/src/github.com/minio/minio"
+ sed -i "s/Version.*/Version = \"${pkgver//./-}${_timever}\"/g" cmd/build-constants.go
+ sed -i "s/ReleaseTag.*/ReleaseTag = \"RELEASE.${_pkgver}\"/g" cmd/build-constants.go
+ sed -i "s/CommitID.*/CommitID = \"$(git rev-parse HEAD)\"/g" cmd/build-constants.go
+ GO111MODULE=on go build -ldflags "-extldflags $LDFLAGS"
+}
+
+package() {
+ install -dm750 -o 103 -g 103 "${pkgdir}/srv/minio"
+ install -dm750 -o 103 -g 103 "${pkgdir}/var/lib/minio"
+
+ cd "${srcdir}/go/src/github.com/minio/minio"
+ install -Dm755 minio "${pkgdir}/usr/bin/minio"
+ install -Dm644 "${srcdir}/minio.conf" "${pkgdir}/etc/minio/minio.conf"
+ install -Dm644 "${srcdir}/minio.service" "${pkgdir}/usr/lib/systemd/system/minio.service"
+ install -Dm644 "${srcdir}/minio.sysusers" "${pkgdir}/usr/lib/sysusers.d/minio.conf"
+}
Copied: minio/repos/extra-x86_64/minio.conf (from rev 591172, minio/trunk/minio.conf)
===================================================================
--- extra-x86_64/minio.conf (rev 0)
+++ extra-x86_64/minio.conf 2020-03-07 14:38:51 UTC (rev 591173)
@@ -0,0 +1,8 @@
+# Local export path.
+MINIO_VOLUMES="/srv/minio/data/"
+# Access Key of the server.
+# MINIO_ACCESS_KEY=Server-Access-Key
+# Secret key of the server.
+# MINIO_SECRET_KEY=Server-Secret-Key
+# Use if you want to run Minio on a custom port.
+# MINIO_OPTS="--address :9199"
Copied: minio/repos/extra-x86_64/minio.service (from rev 591172, minio/trunk/minio.service)
===================================================================
--- extra-x86_64/minio.service (rev 0)
+++ extra-x86_64/minio.service 2020-03-07 14:38:51 UTC (rev 591173)
@@ -0,0 +1,27 @@
+[Unit]
+Description=Minio
+Documentation=https://docs.minio.io
+Wants=network-online.target
+After=network-online.target
+AssertFileIsExecutable=/usr/bin/minio
+
+[Service]
+# Specifies the maximum file descriptor number that can be opened by this process
+LimitNOFILE=65536
+
+Type=simple
+User=minio
+Group=minio
+
+EnvironmentFile=/etc/minio/minio.conf
+ExecStartPre=/bin/bash -c "{ [ -z \"${MINIO_VOLUMES}\" ] && echo \"Variable MINIO_VOLUMES not set in /etc/minio/minio.conf\" && exit 1; } || true"
+
+ExecStart=/usr/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
+
+# SIGTERM signal is used to stop Minio
+KillSignal=SIGTERM
+SendSIGKILL=no
+SuccessExitStatus=0
+
+[Install]
+WantedBy=multi-user.target
Copied: minio/repos/extra-x86_64/minio.sysusers (from rev 591172, minio/trunk/minio.sysusers)
===================================================================
--- extra-x86_64/minio.sysusers (rev 0)
+++ extra-x86_64/minio.sysusers 2020-03-07 14:38:51 UTC (rev 591173)
@@ -0,0 +1 @@
+u minio 103 "Minio Daemon User" /var/lib/minio
More information about the arch-commits
mailing list