From f5ef807c02744fa2bfd24e58ef5af5ef5cbf0e78 Mon Sep 17 00:00:00 2001 From: Gerardo Di Iorio Date: Mon, 19 Mar 2018 21:57:51 +0100 Subject: [PATCH] New Package: minio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gerardo Di Iorio Closes: #12998 [via git-merge-pr] Signed-off-by: Jürgen Buchmüller --- srcpkgs/minio/INSTALL.msg | 5 ++ srcpkgs/minio/files/config.json | 120 ++++++++++++++++++++++++++++++ srcpkgs/minio/files/minio.confd | 2 + srcpkgs/minio/files/minio/log/run | 2 + srcpkgs/minio/files/minio/run | 5 ++ srcpkgs/minio/template | 33 ++++++++ 6 files changed, 167 insertions(+) create mode 100644 srcpkgs/minio/INSTALL.msg create mode 100644 srcpkgs/minio/files/config.json create mode 100644 srcpkgs/minio/files/minio.confd create mode 100644 srcpkgs/minio/files/minio/log/run create mode 100755 srcpkgs/minio/files/minio/run create mode 100644 srcpkgs/minio/template diff --git a/srcpkgs/minio/INSTALL.msg b/srcpkgs/minio/INSTALL.msg new file mode 100644 index 0000000000..24b83de99c --- /dev/null +++ b/srcpkgs/minio/INSTALL.msg @@ -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". diff --git a/srcpkgs/minio/files/config.json b/srcpkgs/minio/files/config.json new file mode 100644 index 0000000000..faf38153be --- /dev/null +++ b/srcpkgs/minio/files/config.json @@ -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": "" + } + } + } +} diff --git a/srcpkgs/minio/files/minio.confd b/srcpkgs/minio/files/minio.confd new file mode 100644 index 0000000000..be5e6deba5 --- /dev/null +++ b/srcpkgs/minio/files/minio.confd @@ -0,0 +1,2 @@ +# Local export path. +MINIO_VOLUMES="/var/lib/minio/data/" diff --git a/srcpkgs/minio/files/minio/log/run b/srcpkgs/minio/files/minio/log/run new file mode 100644 index 0000000000..b36c4dafa4 --- /dev/null +++ b/srcpkgs/minio/files/minio/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -p daemon.notice diff --git a/srcpkgs/minio/files/minio/run b/srcpkgs/minio/files/minio/run new file mode 100755 index 0000000000..af23959022 --- /dev/null +++ b/srcpkgs/minio/files/minio/run @@ -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 diff --git a/srcpkgs/minio/template b/srcpkgs/minio/template new file mode 100644 index 0000000000..a1f52dc641 --- /dev/null +++ b/srcpkgs/minio/template @@ -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 " +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 +}