minio: Import packages, bump to latest release
Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2
acct-group/minio/Manifest
Normal file
2
acct-group/minio/Manifest
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
EBUILD minio-0-r1.ebuild 151 BLAKE2B a1eb2387786c441ef267100e082d57a23e1e218c5c4733d9c48188c08a29b655bd0f047eb3c396b38286d2d217480c9afe16e1d318c5ce8ba18febc7a621df36 SHA512 5c19401688f509f5782a53f7c30ed290f0751051c999ff832d95a804aaeaa4258ee10ef56046fadd3a478cedeabc115912a7a7e6c12e20557dc7520aadcef553
|
||||||
|
MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3
|
||||||
5
acct-group/minio/metadata.xml
Normal file
5
acct-group/minio/metadata.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<!-- maintainer-needed -->
|
||||||
|
</pkgmetadata>
|
||||||
8
acct-group/minio/minio-0-r1.ebuild
Normal file
8
acct-group/minio/minio-0-r1.ebuild
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Copyright 2021-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-group
|
||||||
|
|
||||||
|
ACCT_GROUP_ID=309
|
||||||
2
acct-user/minio/Manifest
Normal file
2
acct-user/minio/Manifest
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
EBUILD minio-0-r1.ebuild 257 BLAKE2B a1af238c427ced933f7b70304c4a4fd63a4ac863579e1d5bdd44c3268c2738157c5e77d0b7d8e6d21c373e0ff1d2f8fc15e5616534021f5d503f501496df6562 SHA512 672ed14aa3a00c45c6e2b8b5809b3d58a8dbaff91489e879dabc17149f0c92ea662c181812f9064ea3566b08cf0374c1f954af2b2c85d1bf39481811c57b0b1f
|
||||||
|
MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3
|
||||||
5
acct-user/minio/metadata.xml
Normal file
5
acct-user/minio/metadata.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<!-- maintainer-needed -->
|
||||||
|
</pkgmetadata>
|
||||||
13
acct-user/minio/minio-0-r1.ebuild
Normal file
13
acct-user/minio/minio-0-r1.ebuild
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 2019-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="A user for minio"
|
||||||
|
ACCT_USER_ID=309
|
||||||
|
ACCT_USER_HOME=/var/lib/minio
|
||||||
|
ACCT_USER_GROUPS=( minio )
|
||||||
|
|
||||||
|
acct-user_add_deps
|
||||||
7
net-fs/minio/Manifest
Normal file
7
net-fs/minio/Manifest
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
AUX minio.default 140 BLAKE2B 24d558333df7ddd2fcb2a337ad5caf3c93ff2795e49a4e7718c5a4dda69ed521b5127577a2792ed53dec594f6fe46d0242788efdc3dea80b524c5a6debfa4fc1 SHA512 48bb3e09ed385c80ed7ee2dd1b5538d957cd9da83e27037142991641970c6cc59ea3b7275467786828ca95685fd4e6e731b7371f4158f78ea182ebcf5b8934fa
|
||||||
|
AUX minio.initd 410 BLAKE2B bedce560151142afc4961569f6fb803c9d7bb4263d56061191e3dc7e867dccd62fa1a363d41c16afa931d0ad138bd8cd858d7dc636851c6a0130bb1405396e3b SHA512 01610c5dd7e5887f85b1246d475e5b5c23cf3fbaa0de21e9579bfa929f3634cccbab1b7a7b8e66fa9bec41ed3feaae033c4380cc3911a7af6f64286c4ed0cf78
|
||||||
|
AUX minio.service 781 BLAKE2B 48cdaeba0dd8be71a7f0edf564b35f3a2ff77e56e11cfb5a33a01e075a590cc14b45281afe79956522280bcdfffa6c8a11d063cd4ef37a93cf3a0b387505a824 SHA512 6b3270c2a202b911ac839b69e910cdfcb0a530b903136e3902847b3e5570d16d8b05e1189adccd9d8967a562edadaf2688db5dd5301d31fe89d12257000926d7
|
||||||
|
DIST minio-2023.09.07.02.05.02-deps.tar.xz 404188020 BLAKE2B 7bcc32878484d5a36e315a17a1634445c9b34647617e3058341ca9311bd76e2dd529a3802eccb5db512c27f0abfdac9923dea4a1a5a6f818c9cdbe207b67ffe1 SHA512 a781e09240eac67f5954797031c1a120e416062fc76aec9a139167deed31c51e692577a27987dc0dec27aaff70b71a187da4d5efffccb53a7a843802d352db19
|
||||||
|
DIST minio-2023.09.07.02.05.02.tar.gz 13963175 BLAKE2B d79b8ec1a86f3cf1bea32415a439a6d9ec4be3426876d3fd612bbe30c9fd54207000f11bdb96f64f54eb308a911056c9f08c3cb33b588a813195bc41b75f3b59 SHA512 46363de62a4eeaa50afd3f252274287e856ffbb1eb5003a33266667e16ad1cebac36a1c37df1efe465862ce04a51f9059d679b05c765e1a112033e8aabc7b8a0
|
||||||
|
EBUILD minio-2023.09.07.02.05.02.ebuild 1386 BLAKE2B 161426d755362a60e44c212cd1f07764e9763ea331e6fcf1467485691e7eb3372316c4316e129f14816d7d51fe60625c0348a42fa60eabe8e7bd3fe77392edbf SHA512 5643217b436b835052f9283276c41a5824040c2792f866cca774a5c6928e6b0227f83e909711636eb5227225463538cc56480c3e56d4c7efe305d581f01b31e1
|
||||||
|
MISC metadata.xml 244 BLAKE2B c5d9514ff2875f3ed7ecbd81773083e2a1550da7d7a9ac6d306a2054eb777ebd0e824984e38b668ab36d728b7033d5d6f21e4ba326fa7a3277324411eb9e0950 SHA512 f95c60df8151e483b866730c18fb5ab79d595116f75a037a82b7967fc104bb981904e46bd5667519c09bec7bce4e969cc5becfbeb775f767c516d6fddc27a7c7
|
||||||
4
net-fs/minio/files/minio.default
Normal file
4
net-fs/minio/files/minio.default
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
MINIO_ACCESS_KEY="minio"
|
||||||
|
MINIO_VOLUMES="/var/lib/minio"
|
||||||
|
MINIO_OPTS="-C /etc/minio --address 127.0.0.1:9000"
|
||||||
|
MINIO_SECRET_KEY="miniostorage"
|
||||||
11
net-fs/minio/files/minio.initd
Normal file
11
net-fs/minio/files/minio.initd
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/sbin/openrc-run
|
||||||
|
# Copyright 2016-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
description="Minio Object Storage Server"
|
||||||
|
pidfile=${pidfile:-"/run/${SVCNAME}.pid"}
|
||||||
|
command="/usr/bin/minio"
|
||||||
|
command_args="${command_args:-server /var/lib/minio}"
|
||||||
|
command_background="true"
|
||||||
|
start_stop_daemon_args="--stdout /var/log/${SVCNAME}.log \
|
||||||
|
--stderr /var/log/${SVCNAME}.log"
|
||||||
30
net-fs/minio/files/minio.service
Normal file
30
net-fs/minio/files/minio.service
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=MinIO
|
||||||
|
Documentation=https://docs.min.io
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
AssertFileIsExecutable=/usr/bin/minio
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=minio
|
||||||
|
Group=minio
|
||||||
|
|
||||||
|
EnvironmentFile=/etc/default/minio
|
||||||
|
ExecStartPre=/bin/sh -c "if [ -z \"${MINIO_VOLUMES}\" ]; then echo \"Variable MINIO_VOLUMES not set in /etc/default/minio\"; exit 1; fi"
|
||||||
|
|
||||||
|
ExecStart=/usr/bin/minio server $MINIO_OPTS $MINIO_VOLUMES
|
||||||
|
|
||||||
|
# Let systemd restart this service always
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
# Specifies the maximum file descriptor number that can be opened by this process
|
||||||
|
LimitNOFILE=65536
|
||||||
|
|
||||||
|
# Disable timeout logic and wait until process is stopped
|
||||||
|
TimeoutStopSec=infinity
|
||||||
|
SendSIGKILL=no
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
# Built for ${project.name}-${project.version} (${project.name})
|
||||||
8
net-fs/minio/metadata.xml
Normal file
8
net-fs/minio/metadata.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<!-- maintainer-needed -->
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">minio/minio</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
59
net-fs/minio/minio-2023.09.07.02.05.02.ebuild
Normal file
59
net-fs/minio/minio-2023.09.07.02.05.02.ebuild
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit go-module systemd
|
||||||
|
|
||||||
|
MY_PV="$(ver_cut 1-3)T$(ver_cut 4-7)Z"
|
||||||
|
MY_PV=${MY_PV//./-}
|
||||||
|
EGIT_COMMIT=703ed46d79bba51d5d781e2297ca0216c99c8536
|
||||||
|
|
||||||
|
DESCRIPTION="An Amazon S3 compatible object storage server"
|
||||||
|
HOMEPAGE="https://github.com/minio/minio"
|
||||||
|
SRC_URI="https://github.com/minio/minio/archive/RELEASE.${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
SRC_URI+=" https://git.bitplumber.de/api/packages/stkn/generic/gentoo-overlay/distfiles/${P}-deps.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0 BSD BSD-2 MIT MPL-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~riscv ~amd64-linux"
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
acct-user/minio
|
||||||
|
acct-group/minio
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-RELEASE.${MY_PV}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s/commitTime()\.Format(time\.RFC3339)/\"${MY_PV}\"/" \
|
||||||
|
-e "s/+ commitID()/+ \"${EGIT_COMMIT}\"/" \
|
||||||
|
buildscripts/gen-ldflags.go || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
MINIO_RELEASE="${MY_PV}"
|
||||||
|
go run buildscripts/gen-ldflags.go || die
|
||||||
|
go build \
|
||||||
|
--ldflags "$(go run buildscripts/gen-ldflags.go)" -o ${PN} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin minio
|
||||||
|
|
||||||
|
insinto /etc/default
|
||||||
|
doins "${FILESDIR}"/minio.default
|
||||||
|
|
||||||
|
dodoc -r README.md CONTRIBUTING.md docs
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}"/minio.service
|
||||||
|
newinitd "${FILESDIR}"/minio.initd minio
|
||||||
|
|
||||||
|
keepdir /var/{lib,log}/minio
|
||||||
|
fowners minio:minio /var/{lib,log}/minio
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user