From cdf6dfeceb4be960e2409f05318a102a746f322a Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Sat, 14 Nov 2020 20:00:57 +0100 Subject: [PATCH] dev-util/reposilite: Fixes #66 Package-Manager: Portage-3.0.8, Repoman-3.0.2 --- dev-util/reposilite/ChangeLog | 6 ++ dev-util/reposilite/Manifest | 6 +- .../reposilite/files/reposilite-2.9.4.cdn | 67 +++++++++++++++++++ dev-util/reposilite/files/reposilite.service | 2 + dev-util/reposilite/reposilite-2.9.4.ebuild | 45 +++++++++++++ 5 files changed, 124 insertions(+), 2 deletions(-) create mode 100644 dev-util/reposilite/files/reposilite-2.9.4.cdn create mode 100644 dev-util/reposilite/reposilite-2.9.4.ebuild diff --git a/dev-util/reposilite/ChangeLog b/dev-util/reposilite/ChangeLog index 9765e65..bd34351 100644 --- a/dev-util/reposilite/ChangeLog +++ b/dev-util/reposilite/ChangeLog @@ -1,3 +1,9 @@ +*reposilite-2.9.4 (14 Nov 2020) + + 14 Nov 2020; Manuel Friedli +files/reposilite-2.9.4.cdn, + +reposilite-2.9.4.ebuild, files/reposilite.service: + dev-util/reposilite: Fixes #66 + 08 Oct 2020; Manuel Friedli files/reposilite-2.9.1.cdn, files/reposilite.sh, reposilite-2.9.1.ebuild: dev-util/reposilite: Apply some fixes diff --git a/dev-util/reposilite/Manifest b/dev-util/reposilite/Manifest index 9def389..23b6d7a 100644 --- a/dev-util/reposilite/Manifest +++ b/dev-util/reposilite/Manifest @@ -1,7 +1,9 @@ AUX app.ini 718 BLAKE2B 6d8abd16cc2eb522e5111d4874692a37698e59ed3db0d2072572f4ab7b6edcabe890aa9129beba932dadd9340e8d5491289ec562f1f9e7ac864fcc89d8389147 SHA512 5d2a6664c5b0bff5d1eeab2a07b7246230837273decaabbe6376b7315c18a897887530b1fdd7cd68eea9c6ffac90ef90d6769ef15e75129d6b67a0ca0ec775a5 AUX reposilite-2.9.1.cdn 1651 BLAKE2B 39ad2179a6a4d465447f03bdfa39ad7e942bde35b833a7f06befc0fa9f8afb02a87b73faac5a218dc9fe9e2c86757144033254e13929ab3b11165a7dba4d79a0 SHA512 fd1d78f50efc1f9e433a0af5261e45ff30813b988447a7729b694652d6c10da432eee9a12548d9690f57da85d3dd8d7c9ea8e720368e5db9108595eee21b433f -AUX reposilite.service 533 BLAKE2B 98490e09657c606639239d4da6397c8930cb9731a4637b9af8e59533b264c574d5626c45113aec9b11ba3cec87e7e0a8f743fb6f7cf15f03b835a1e3875cbdc8 SHA512 5687a77b44c538d6ec2da2ac19cc1b05a0fd931b9fcb6bc13016ef4f2601b0bf4a218bcd1e4e56ce892ffb876cd479cbf537dd21920a1178b61cb8de9e31bf64 +AUX reposilite-2.9.4.cdn 1992 BLAKE2B bca5082e8dff4a99312cc43c32dcdad757236c853a85bd2611177f017a56b1bdbdf43319ddcecb48580861eb0be35caef4c57ee4f4a1c2cba35a91eb59965301 SHA512 1559e93546cd16c293a0dd11900ae5fa7734313655a713d67ff2d561491c6520737803c814c0250100331ec11c7165c1b40e850c58201703d35be0d27786c987 +AUX reposilite.service 578 BLAKE2B 972c0743bc6099a1ef95606e8e62351b1de267a7d2dcbe2a138fed483a340adae8e0c94baa5ea53b60e420eb40c0d3fdc92a657965e63972f02ce5b91d3ee73f SHA512 792abddf895e6044fba9ed681639fa49ec74efffa6f60826399a9c3ccc1c9559f75bc8e4c5ed6077627e145f8f22b20037566e11967f7da31fd915e044af741f AUX reposilite.sh 744 BLAKE2B 524b3120b59b60c01e65654e4c7bf34d359e61b29f0e31a4762fda179c7b61ac91bea91ffb1c9d5d0470e0ae3683cad8ff32086125946c42b08a9fd156f65f10 SHA512 c781849ae3c116179ee3446ccf8620814514e4128df6cad917a010ffaba9efdd6cddda686a77ef348b80a920cd67b7ba19bc2a62c519ca7a795acdc8cc486c50 EBUILD reposilite-2.9.1.ebuild 953 BLAKE2B 77a1a44119f5a5fe4e012c0d6f6fbc526ee1466b076ac20653b9c09953141242c1f1f04cc22960de7944f679a5264679df602f369daef159958d8267630e1034 SHA512 44989aa39d1a89d77f5c196b69bafe8397c95f8b59ba5654ebbb1d69981c6d0679b44e0613dd5cd2a8c5812b84f6ea9339c2d2ec5b4c4879b728be480284e9f0 -MISC ChangeLog 450 BLAKE2B ccbc5736ddc2df16901a3f2e733937991383b57a76b87f9da860644e50ad7e730747b2898d1d391de28ba7f479376e02644a2d214f0da915fee2fdf9da8223b0 SHA512 7e2d91d384d3c1af259075a14569b00368a39a0f2154204b67f3c0271eead4f740ded2f71219f32b669e0ee67b8921b533f3d2124b922df460535947ade42e90 +EBUILD reposilite-2.9.4.ebuild 953 BLAKE2B 3f01740c29afc84c9873d321798d120397f74beebef9ebffb5093617a378df0070facf5b929c52c69001e17352d89ca88d61ae16c351b3f705cc3097fe71bcd5 SHA512 ff9bd200f341ddf1be14322e98d35e75e45f65853ee5229027b18eaa8f4aefd0781935d5c3f6b6073c69abcbaa515d1c957646041c78a5795d04277b43bcfbb0 +MISC ChangeLog 650 BLAKE2B 70d3bce06fc1393d2c0a47142256e7eb6c04ad40cd22e217e935946ad9c0addd92664a40917af5cdbd809e9ec7e8135b9eb22349704b58446c0deec0ae738421 SHA512 8a7be537495122374d5d28c5ac26f2038ed4a9422973e45874b5debe2832409a6a4edd2da6df3b3e06f9463a1d5cfa4953ff43b55222645213cda4847b32c58c MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 diff --git a/dev-util/reposilite/files/reposilite-2.9.4.cdn b/dev-util/reposilite/files/reposilite-2.9.4.cdn new file mode 100644 index 0000000..8c4289c --- /dev/null +++ b/dev-util/reposilite/files/reposilite-2.9.4.cdn @@ -0,0 +1,67 @@ +# ~~~~~~~~~~~~~~~~~~~~~~ # +# Reposilite # +# ~~~~~~~~~~~~~~~~~~~~~~ # + +# Hostname +hostname: 0.0.0.0 +# Port to bind +port: 80 +# Custom base path +basePath: / +# Any kind of proxy services change real ip. +# The origin ip should be available in one of the headers. +# Nginx: X-Forwarded-For +# Cloudflare: CF-Connecting-IP +# Popular: X-Real-IP +forwardedIp: X-Forwarded-For +# Debug +debugEnabled: false + +# Support encrypted connections +sslEnabled: false +# SSL port to bind +sslPort: 443 +# Key store file to use. +# You can specify absolute path to the given file or use ${WORKING_DIRECTORY} variable. +keyStorePath: ${WORKING_DIRECTORY}/keystore.jks +# Key store password to use +keyStorePassword: +# Redirect http traffic to https +enforceSsl: false + +# Control the maximum amount of data assigned to Reposilite instance +# Supported formats: 90%, 500MB, 10GB +diskQuota: 10GB +# List of supported Maven repositories. +# First directory on the list is the main (primary) repository. +# Tu mark repository as private, prefix its name with a dot, e.g. ".private" +repositories [ + releases + snapshots +] +# Allow to omit name of the main repository in request +# e.g. /org/panda-lang/reposilite will be redirected to /releases/org/panda-lang/reposilite +rewritePathsEnabled: true + +# List of proxied repositories. +# Reposilite will search for an artifact in remote repositories listed below, +# if the requested artifact was not found. +proxied [ +] +# Reposilite can store proxied artifacts locally to reduce response time and improve stability +storeProxied: true + +# Accept deployment connections +deployEnabled: true +# List of management tokens used by dashboard to access extra options. +# (By default, people are allowed to use standard dashboard options related to the associated path) +managers [ + admin +] + +# Title displayed by frontend +title: #onlypanda +# Description displayed by frontend +description: Public Maven repository hosted through the Reposilite +# Accent color used by frontend +accentColor: #2fd4aa \ No newline at end of file diff --git a/dev-util/reposilite/files/reposilite.service b/dev-util/reposilite/files/reposilite.service index 789606a..831dada 100644 --- a/dev-util/reposilite/files/reposilite.service +++ b/dev-util/reposilite/files/reposilite.service @@ -5,7 +5,9 @@ Documentation=https://reposilite.com/docs/about AssertPathIsDirectory=/var/lib/reposilite-data AssertPathIsReadWrite=/var/lib/reposilite-data +After=docker.service After=network.target +Requires=docker.service Requires=network.target [Service] diff --git a/dev-util/reposilite/reposilite-2.9.4.ebuild b/dev-util/reposilite/reposilite-2.9.4.ebuild new file mode 100644 index 0000000..331950f --- /dev/null +++ b/dev-util/reposilite/reposilite-2.9.4.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit systemd + +DESCRIPTION="Reposilite - Simple Maven Repository hosting" +HOMEPAGE="https://reposilite.com/" +#SRC_URI="" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RESTRICT="mirror" +DEPEND="" +RDEPEND="acct-user/reposilite + app-emulation/docker +" + +S="${WORKDIR}" + +src_prepare() { + sed -e "s//${PV}/g" "${FILESDIR}/reposilite.sh" > "${T}/reposilite.sh" + + eapply_user +} + +src_install() { + exeinto /usr/bin + doexe "${T}/reposilite.sh" + + systemd_dounit "${FILESDIR}/${PN}.service" + + insinto "/etc/reposilite" + doins "${FILESDIR}/app.ini" + newins "${FILESDIR}/reposilite-2.9.4.cdn" reposilite.cdn + + fowners reposilite /etc/reposilite + fperms 0700 /etc/reposilite + fowners reposilite:reposilite /etc/reposilite/app.ini /etc/reposilite/reposilite.cdn + fperms 0600 /etc/reposilite/app.ini /etc/reposilite/reposilite.cdn +}