From 69cb6dd2040863e61f95ded7d405b4c60b6b01fb Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 15 Aug 2022 03:26:38 +0200 Subject: [PATCH 1/4] dev-util/reposilite: Let's see how v3 works :) Package-Manager: Portage-3.0.30, Repoman-3.0.3 --- dev-util/reposilite/ChangeLog | 6 +++ dev-util/reposilite/Manifest | 5 +- .../reposilite/files/reposilite-3.service | 19 +++++++ dev-util/reposilite/reposilite-3.0.1.ebuild | 51 +++++++++++++++++++ 4 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 dev-util/reposilite/files/reposilite-3.service create mode 100644 dev-util/reposilite/reposilite-3.0.1.ebuild diff --git a/dev-util/reposilite/ChangeLog b/dev-util/reposilite/ChangeLog index 728740f..1288b1a 100644 --- a/dev-util/reposilite/ChangeLog +++ b/dev-util/reposilite/ChangeLog @@ -1,3 +1,9 @@ +*reposilite-3.0.1 (15 Aug 2022) + + 15 Aug 2022; Manuel Friedli +files/reposilite-3.service, + +reposilite-3.0.1.ebuild: + dev-util/reposilite: Let's see how v3 works :) + *reposilite-2.9.26 (27 Dec 2021) 27 Dec 2021; Manuel Friedli +files/reposilite-2.9.26.cdn, diff --git a/dev-util/reposilite/Manifest b/dev-util/reposilite/Manifest index 18633d1..cfc393c 100644 --- a/dev-util/reposilite/Manifest +++ b/dev-util/reposilite/Manifest @@ -1,7 +1,10 @@ AUX app.ini 718 BLAKE2B 6d8abd16cc2eb522e5111d4874692a37698e59ed3db0d2072572f4ab7b6edcabe890aa9129beba932dadd9340e8d5491289ec562f1f9e7ac864fcc89d8389147 SHA512 5d2a6664c5b0bff5d1eeab2a07b7246230837273decaabbe6376b7315c18a897887530b1fdd7cd68eea9c6ffac90ef90d6769ef15e75129d6b67a0ca0ec775a5 AUX reposilite-2.9.26.cdn 2372 BLAKE2B fdfa36d7ab9992f467f9f59383670dcbb0db7181f4c716dfad61b3790ce1dd53ad644cf536b4a3136e22359e0e3c2507e0b08cc24e24847604c29774f9c2c214 SHA512 ab1b5457b0ac569e593442ca544819377ec3c57c3f5aa6887c130ba56cdb0d899e4a0d0406c52992f98b718b906ff47b0e28ef79c84425f9e145ea87e27cfea8 +AUX reposilite-3.service 417 BLAKE2B 5daf93164c3488870d1cd4a8c135ed29c9c6815ee24cabd291ac0fed70d6bb5adc45119303fb99b221807efb2cb6df33c26c877ca8af8eed99aa1a47a46fb30b SHA512 257111e615213ca4379dcd731f926299cd96f1aff03706ae980a12e3aaaebf3c2148989e9d47b68e32578b72d2207643e01d581ed75f63b99d5586850d1778a3 AUX reposilite.service 483 BLAKE2B 3a808346b9250020d0d089519bbbdbad2be919e44a1f3d578945ba3a1b2fcda416678048d0648e97b1821fb6c9e23990788334e22c69ad0cb5b5b489e449eaa2 SHA512 9c182670a37cf7f48f7e7d1350fdbf60cd39b1b065c4928f5cf7e5f8d6e6d0bd2ceafff8e091ebb09125fa707a70e4b30b4ee0224668de79434547fc3e78f839 AUX reposilite.sh 744 BLAKE2B 524b3120b59b60c01e65654e4c7bf34d359e61b29f0e31a4762fda179c7b61ac91bea91ffb1c9d5d0470e0ae3683cad8ff32086125946c42b08a9fd156f65f10 SHA512 c781849ae3c116179ee3446ccf8620814514e4128df6cad917a010ffaba9efdd6cddda686a77ef348b80a920cd67b7ba19bc2a62c519ca7a795acdc8cc486c50 +DIST reposilite.jar 48898529 BLAKE2B cd71c5a636d3ae351409335cbc1cf190c018b06f9a4ec4451fa0eaa859adfc539dbc7d97de1847ace11a75fe79eb8e842e661b06ef931c45bb979ea519d5c731 SHA512 3cd8851be2d0ab917a1f8331327f99f9069f350c8d922e9d2481be954c8bf9b68bcb50b4243fa1b25b1ba0523df1bcc09ed00c641059228ed2579068d4d45f8d EBUILD reposilite-2.9.26.ebuild 944 BLAKE2B bff282682e0bbab5de6ccaa71653a75f36a5a91d1b200c8b83d487a6b16d93ddacb92ea3f0681b358c7ea4b5f29641711c04fa892291dcaea22a99b5c649bc0f SHA512 6990f57a449f33bf544110ce141a9d4ce47f686ab7ca68c9821cee2abda71aa749a37fe0aca5fdd4207e50143c560efd49ed8ebaaf97dc553ff12f3daa88a675 -MISC ChangeLog 2413 BLAKE2B df0c0ecdc8da493651ea0fc0e7cb0cce08a953be13457b1e4d39002edb0929f8db94a53f263251a31f612042bad49c8310b1e58cf3e0a60ac10d550bd364a54a SHA512 243a1af2f86b661eebcff981d819dd7b9a6ff79f21ad0d9666e12000625460edf0e27a94821cf93341997b9e99718f60992b4cb5809c5abc4cc0745fae1aaaa5 +EBUILD reposilite-3.0.1.ebuild 1219 BLAKE2B 781673dc539e4368ad9b460c07294a5b396fde8d4a30796dd2a49a1ebc555023d6c4b5919cd6f0d6d7ace2dd6456643afd8079e0af66d823eec42d51989f0338 SHA512 e672c4eba64b6c57f58159bf2e6ff17cfcc6c26d0750fb4bc96b1843013ccc40857f2bb5e1739a06eb35b21310083b6c3b7803574bb15d2e4c6c5b97fa083db4 +MISC ChangeLog 2603 BLAKE2B 9a550a4a541ca0e9af40dfb2ef1e00144750da24ad54b9469a2742c539786604f7b88a3327d991e20271d128111610acc3b4f79c5973368f0f3a86fce60260d3 SHA512 5bd5d3cf7dada03314af579e3aff025ac3118ee97d9e5e160fe003486e58a53bc42482d7a02b73437fd343ac6a59de6e7abbe522f3c458af0145ae19a758483d MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 diff --git a/dev-util/reposilite/files/reposilite-3.service b/dev-util/reposilite/files/reposilite-3.service new file mode 100644 index 0000000..c028d5b --- /dev/null +++ b/dev-util/reposilite/files/reposilite-3.service @@ -0,0 +1,19 @@ +[Unit] +Description=Reposilite Maven Repository hosting server +Documentation=https://reposilite.com/guide/about + +After=network.target +Requires=network.target + +[Service] +User=reposilite +Group=reposilite +WorkingDirectory=/opt/reposilite +ExecStart=java -jar reposilite.jar --config=/etc/reposilite/reposilite.cdn +SuccessExitStatus=0 +TimeoutStopSec=10 +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target diff --git a/dev-util/reposilite/reposilite-3.0.1.ebuild b/dev-util/reposilite/reposilite-3.0.1.ebuild new file mode 100644 index 0000000..c9a1f4b --- /dev/null +++ b/dev-util/reposilite/reposilite-3.0.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd + +DESCRIPTION="Reposilite - Simple Maven Repository hosting" +HOMEPAGE="https://reposilite.com/" +SRC_URI="https://maven.reposilite.com/releases/com/reposilite/reposilite/${PV}/reposilite-${PV}-all.jar -> reposilite.jar" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RESTRICT="mirror" +DEPEND="" +RDEPEND="acct-user/reposilite + || ( >=virtual/jdk-11 >=virtual/jre-11 ) +" + +S="${WORKDIR}" + +src_unpack() { + cp "${DISTDIR}/${A}" "${WORKDIR}" +} + +src_install() { + insinto /opt/reposilite + doins "${WORKDIR}/reposilite.jar" + + systemd_newunit "${FILESDIR}/${PN}-3.service" "${PN}.service" + + keepdir "/etc/reposilite" + + fowners reposilite /etc/reposilite + fperms 0700 /etc/reposilite + fowners reposilite:reposilite /opt/reposilite + fperms 0750 /opt/reposilite +} + +pkg_postinst() { + ewarn "If you upgrade from Reposilite version 2.x, you **must**" + ewarn "migrate the data from the docker volume. Otherwise, your" + ewarn "existing artifacts will be lost." + einfo + einfo "Copy or move all the files from" + einfo " /var/lib/docker/volumes/reposilite-data/_data" + einfo "to /opt/reposilite." +} From 3c67e1aef7c855a2fcd8af04767ba5405ac61fb8 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 15 Aug 2022 03:27:21 +0200 Subject: [PATCH 2/4] acct-group/reposilite: Cosmetics. Package-Manager: Portage-3.0.30, Repoman-3.0.3 --- acct-group/reposilite/ChangeLog | 3 +++ acct-group/reposilite/Manifest | 4 ++-- acct-group/reposilite/reposilite-0.ebuild | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/acct-group/reposilite/ChangeLog b/acct-group/reposilite/ChangeLog index de2a7ab..280a5a9 100644 --- a/acct-group/reposilite/ChangeLog +++ b/acct-group/reposilite/ChangeLog @@ -1,3 +1,6 @@ + 15 Aug 2022; Manuel Friedli reposilite-0.ebuild: + acct-group/reposilite: Cosmetics. + *reposilite-0 (08 Oct 2020) 08 Oct 2020; Manuel Friedli +metadata.xml, diff --git a/acct-group/reposilite/Manifest b/acct-group/reposilite/Manifest index 7873c1d..c380e64 100644 --- a/acct-group/reposilite/Manifest +++ b/acct-group/reposilite/Manifest @@ -1,3 +1,3 @@ -EBUILD reposilite-0.ebuild 308 BLAKE2B 82aace3f87ee7b232ff932be1346af2d17ea0a9eaa64bd725bb5f1b32f6eaebd49a0874cf0e4c804482874261d6bdc6894168d95afde48e5fd3125c04204f018 SHA512 80a8719849b0502e1663552b3f0bc38d4ca20bbcd397d13b7bd5f4d7316f81b3f03add9712bbd133fa9e0bac5dd225d853161036b6c0753d29f543191f6053ae -MISC ChangeLog 177 BLAKE2B 9240c515998841e085db4cc85bfabff8e3557e544133e1f90a47a4187a0e2760a1d2c75b416e78510356a4370eb8ab92501f0ca508997879e718314525a1b01f SHA512 66778b7ac22211a10c05937aa416f9d69e1b33be0b856340fff3e593f10f8253bec138f86a5b37a2a3e7916d49a745af6cc907c29ec6014b2d6a57a577d50762 +EBUILD reposilite-0.ebuild 309 BLAKE2B 34f7234ce3c375842eb37855788b005b34a7ea9b17eaf1d2159fd2aade2b69385be2403f7d3e85fd60ba179542edb0904c45ab6a15f6f4e90b54c7ce79ec4f77 SHA512 4c5fe21bdbab533028df431aa268b965b56eb6380abb569ecad56655be77de7c2c21e682eabfaa4cad8b673f2365e0559154fd68817b3a8ab62975428850e404 +MISC ChangeLog 285 BLAKE2B 49b7dc9d40ddd0e53d433a6798380489f179fcbbe5b6ea097eee49114a7c5d5bed9a6797c3b05942c5300c97cc1fa9f664286e1c852600fceed17d71d37f12df SHA512 f6c087910e788aeb4126ca84227f5416d8f5b996af5a2ec374055b2d24c69c26f86b9f96c27ba6806c19e753650949fc3bd5ea2dfcd31414b40f1127fdaa8b31 MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 diff --git a/acct-group/reposilite/reposilite-0.ebuild b/acct-group/reposilite/reposilite-0.ebuild index 59c8bce..f2daa99 100644 --- a/acct-group/reposilite/reposilite-0.ebuild +++ b/acct-group/reposilite/reposilite-0.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit acct-group + DESCRIPTION="Group used for the reposilite maven repo server" KEYWORDS="~amd64" From 08dd071e41e04f47b07fe344e29946efc1ce046a Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 15 Aug 2022 03:28:04 +0200 Subject: [PATCH 3/4] acct-user/reposilite: No dep on docker anymore. Package-Manager: Portage-3.0.30, Repoman-3.0.3 --- acct-user/reposilite/ChangeLog | 5 +++++ acct-user/reposilite/Manifest | 3 ++- acct-user/reposilite/reposilite-1.ebuild | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 acct-user/reposilite/reposilite-1.ebuild diff --git a/acct-user/reposilite/ChangeLog b/acct-user/reposilite/ChangeLog index 2b16022..e279252 100644 --- a/acct-user/reposilite/ChangeLog +++ b/acct-user/reposilite/ChangeLog @@ -1,3 +1,8 @@ +*reposilite-1 (15 Aug 2022) + + 15 Aug 2022; Manuel Friedli +reposilite-1.ebuild: + acct-user/reposilite: No dep on docker anymore. + *reposilite-0 (08 Oct 2020) 08 Oct 2020; Manuel Friedli +metadata.xml, diff --git a/acct-user/reposilite/Manifest b/acct-user/reposilite/Manifest index a8baaa5..92f2a9f 100644 --- a/acct-user/reposilite/Manifest +++ b/acct-user/reposilite/Manifest @@ -1,3 +1,4 @@ EBUILD reposilite-0.ebuild 331 BLAKE2B 833d690c07eecd84236e0ffd15a2e0290f1c406afe3c745b0323107f590a53b65f01beda3f2f1b012062c6e186c02fa2cb1bf8e992fbe8115d343c6f4a53ac63 SHA512 a429ebf96c7cfa06fc1b01c5f4c038681b8e436215718ca598563caf46337c761928b255c38c31edd482664a5f0feaf065b52596a71680faebc5912a7709aede -MISC ChangeLog 175 BLAKE2B c67cebcad4f57fa69afedc56312a9933f36e6e52ff959bb3a2a054bf0af506fd6f95f630e9dbfb8cf13e7a8bf28090b32d2ee27d84dd0ab648c97dbe40868a2c SHA512 c94ec4d193e80aafce6bd0d4bb0088377345b9c544bc48281a5cfe4b281be44a8cc7770bba2e5bc1cdc5fc9daf71f416cc818f275f84b68741305c97db958ed5 +EBUILD reposilite-1.ebuild 270 BLAKE2B a78959245678f35cdde982f644a876a0f45636bf05e34291b277b161e4ff8aae810ebaa259252d786305e043e898e8d53f1ec4e195fd72e7d69c6a35a05b7598 SHA512 36f1cf967abafa3d75034f015400490601c7c2070a44f12b1bd1fb9223be192b6956523b08aafde4278fac23a355f7b6b948251206d0c8bd9b72cc10b082c826 +MISC ChangeLog 327 BLAKE2B 30d90bffe571b9604f41c9715aea2fb427b8019365a3a7f0a867723ba92777d1e7296f793645f33c40e2155ea1d096ecd5d8ab375adf036174b5edfd19df87ac SHA512 9d794b0e0622564da8112bf766e9053bccf2175e173263ee3f357a561c6518364b7c16967c9cc840ab380b70bc1141a11251122763c4b47e45d337fff9cbacfd MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 diff --git a/acct-user/reposilite/reposilite-1.ebuild b/acct-user/reposilite/reposilite-1.ebuild new file mode 100644 index 0000000..d136404 --- /dev/null +++ b/acct-user/reposilite/reposilite-1.ebuild @@ -0,0 +1,14 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit acct-user + +DESCRIPTION="User for the reposilite maven repo server" +KEYWORDS="~amd64" + +ACCT_USER_ID=-1 +ACCT_USER_GROUPS=( ${PN} ) + +acct-user_add_deps From d99a0ee34b73dc0407da948319fdf0500120d8e7 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 15 Aug 2022 03:37:25 +0200 Subject: [PATCH 4/4] dev-util/reposilite: Dep on user >=1 Package-Manager: Portage-3.0.30, Repoman-3.0.3 --- dev-util/reposilite/ChangeLog | 3 +++ dev-util/reposilite/Manifest | 4 ++-- dev-util/reposilite/reposilite-3.0.1.ebuild | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dev-util/reposilite/ChangeLog b/dev-util/reposilite/ChangeLog index 1288b1a..780dd2a 100644 --- a/dev-util/reposilite/ChangeLog +++ b/dev-util/reposilite/ChangeLog @@ -1,3 +1,6 @@ + 15 Aug 2022; Manuel Friedli reposilite-3.0.1.ebuild: + dev-util/reposilite: Dep on user >=1 + *reposilite-3.0.1 (15 Aug 2022) 15 Aug 2022; Manuel Friedli +files/reposilite-3.service, diff --git a/dev-util/reposilite/Manifest b/dev-util/reposilite/Manifest index cfc393c..9777137 100644 --- a/dev-util/reposilite/Manifest +++ b/dev-util/reposilite/Manifest @@ -5,6 +5,6 @@ AUX reposilite.service 483 BLAKE2B 3a808346b9250020d0d089519bbbdbad2be919e44a1f3 AUX reposilite.sh 744 BLAKE2B 524b3120b59b60c01e65654e4c7bf34d359e61b29f0e31a4762fda179c7b61ac91bea91ffb1c9d5d0470e0ae3683cad8ff32086125946c42b08a9fd156f65f10 SHA512 c781849ae3c116179ee3446ccf8620814514e4128df6cad917a010ffaba9efdd6cddda686a77ef348b80a920cd67b7ba19bc2a62c519ca7a795acdc8cc486c50 DIST reposilite.jar 48898529 BLAKE2B cd71c5a636d3ae351409335cbc1cf190c018b06f9a4ec4451fa0eaa859adfc539dbc7d97de1847ace11a75fe79eb8e842e661b06ef931c45bb979ea519d5c731 SHA512 3cd8851be2d0ab917a1f8331327f99f9069f350c8d922e9d2481be954c8bf9b68bcb50b4243fa1b25b1ba0523df1bcc09ed00c641059228ed2579068d4d45f8d EBUILD reposilite-2.9.26.ebuild 944 BLAKE2B bff282682e0bbab5de6ccaa71653a75f36a5a91d1b200c8b83d487a6b16d93ddacb92ea3f0681b358c7ea4b5f29641711c04fa892291dcaea22a99b5c649bc0f SHA512 6990f57a449f33bf544110ce141a9d4ce47f686ab7ca68c9821cee2abda71aa749a37fe0aca5fdd4207e50143c560efd49ed8ebaaf97dc553ff12f3daa88a675 -EBUILD reposilite-3.0.1.ebuild 1219 BLAKE2B 781673dc539e4368ad9b460c07294a5b396fde8d4a30796dd2a49a1ebc555023d6c4b5919cd6f0d6d7ace2dd6456643afd8079e0af66d823eec42d51989f0338 SHA512 e672c4eba64b6c57f58159bf2e6ff17cfcc6c26d0750fb4bc96b1843013ccc40857f2bb5e1739a06eb35b21310083b6c3b7803574bb15d2e4c6c5b97fa083db4 -MISC ChangeLog 2603 BLAKE2B 9a550a4a541ca0e9af40dfb2ef1e00144750da24ad54b9469a2742c539786604f7b88a3327d991e20271d128111610acc3b4f79c5973368f0f3a86fce60260d3 SHA512 5bd5d3cf7dada03314af579e3aff025ac3118ee97d9e5e160fe003486e58a53bc42482d7a02b73437fd343ac6a59de6e7abbe522f3c458af0145ae19a758483d +EBUILD reposilite-3.0.1.ebuild 1223 BLAKE2B afcfc51c610e2a3487bfa94ec96c54a94307777ee9f68ebb95723c0ca4d6942dd8df21f1aae1f3dcac94815e1047caa743fa701097bff76b14331938648a05d6 SHA512 9a2a683a8efd9cb0ed50771e979e3f1c940137731c68f448238e19c53030abe587c43f806396f63828c7a1a95c6a2e5159467ab23afefa33133dd50ffaa99277 +MISC ChangeLog 2718 BLAKE2B e354a490734cf60939913a724cd59fb1abc52e28f6960df73e0f3c3e7e6db4ddebc9be645d82c9be88626605911283babbb27b9f9a539d14e23d76e2f6bee097 SHA512 8b47ee364b837bdc821975b199b28b942bc29df87a0717fbfe27a6ad66b48e585989a9c59d81754f4842b391e02c7fea5c150a957cfbc183785b57b7c4650daf MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 diff --git a/dev-util/reposilite/reposilite-3.0.1.ebuild b/dev-util/reposilite/reposilite-3.0.1.ebuild index c9a1f4b..e5f5d52 100644 --- a/dev-util/reposilite/reposilite-3.0.1.ebuild +++ b/dev-util/reposilite/reposilite-3.0.1.ebuild @@ -16,7 +16,7 @@ IUSE="" RESTRICT="mirror" DEPEND="" -RDEPEND="acct-user/reposilite +RDEPEND=">=acct-user/reposilite-1 || ( >=virtual/jdk-11 >=virtual/jre-11 ) "