New Package: minio

Signed-off-by: Gerardo Di Iorio <arete74@gmail.com>
Closes: #12998 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Gerardo Di Iorio 2018-03-19 21:57:51 +01:00 committed by Jürgen Buchmüller
parent b6f53f8db3
commit f5ef807c02
No known key found for this signature in database
GPG key ID: 6764EC32352D0647
6 changed files with 167 additions and 0 deletions

View file

@ -0,0 +1,5 @@
To customize minio's initialization edit:
/etc/default/minio
Before starting the service edit /etc/minio/config.json
and set the "accessKey" and "secretKey".

View file

@ -0,0 +1,120 @@
{
"version": "22",
"credential": {
"accessKey": "",
"secretKey": ""
},
"region": "",
"browser": "on",
"domain": "",
"storageclass": {
"standard": "",
"rrs": ""
},
"notify": {
"amqp": {
"1": {
"enable": false,
"url": "",
"exchange": "",
"routingKey": "",
"exchangeType": "",
"deliveryMode": 0,
"mandatory": false,
"immediate": false,
"durable": false,
"internal": false,
"noWait": false,
"autoDeleted": false
}
},
"elasticsearch": {
"1": {
"enable": false,
"format": "",
"url": "",
"index": ""
}
},
"kafka": {
"1": {
"enable": false,
"brokers": null,
"topic": ""
}
},
"mqtt": {
"1": {
"enable": false,
"broker": "",
"topic": "",
"qos": 0,
"clientId": "",
"username": "",
"password": "",
"reconnectInterval": 0,
"keepAliveInterval": 0
}
},
"mysql": {
"1": {
"enable": false,
"format": "",
"dsnString": "",
"table": "",
"host": "",
"port": "",
"user": "",
"password": "",
"database": ""
}
},
"nats": {
"1": {
"enable": false,
"address": "",
"subject": "",
"username": "",
"password": "",
"token": "",
"secure": false,
"pingInterval": 0,
"streaming": {
"enable": false,
"clusterID": "",
"clientID": "",
"async": false,
"maxPubAcksInflight": 0
}
}
},
"postgresql": {
"1": {
"enable": false,
"format": "",
"connectionString": "",
"table": "",
"host": "",
"port": "",
"user": "",
"password": "",
"database": ""
}
},
"redis": {
"1": {
"enable": false,
"format": "",
"address": "",
"password": "",
"key": ""
}
},
"webhook": {
"1": {
"enable": false,
"endpoint": ""
}
}
}
}

View file

@ -0,0 +1,2 @@
# Local export path.
MINIO_VOLUMES="/var/lib/minio/data/"

View file

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -p daemon.notice

5
srcpkgs/minio/files/minio/run Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
. /etc/default/minio
: ${MINIO_VOLUMES:="/var/lib/minio/data/"}
chown -R _minio:_minio $MINIO_VOLUMES
exec chpst -u _minio:_minio minio -C /etc/minio/ server $MINIO_VOLUMES

33
srcpkgs/minio/template Normal file
View file

@ -0,0 +1,33 @@
# Template file for 'minio'
pkgname=minio
version=2018.03.19
revision=1
_version="${version//./-}T19-22-06Z"
wrksrc=$pkgname-RELEASE.$_version
build_style=go
hostmakedepends="git"
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"
go_import_path="github.com/minio/minio"
distfiles="$homepage/archive/RELEASE.$_version.tar.gz"
checksum=91afb0b5acbfd622a5ea55495b5abca3cfdf23eef213ea15f74f1682d68eca84
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"
conf_files="/etc/default/minio /etc/minio/config.json"
do_check() {
:
}
post_install() {
vdoc README.md
vlicense LICENSE
vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname}
vinstall ${FILESDIR}/config.json 644 etc/minio config.json
vsv minio
}