mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 18:43:18 -04:00
Merge updates from master
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
DIST lego-4.14.2-deps.tar.xz 204384528 BLAKE2B 5db3b7b6c194b4042b4c81a490c99f79339c9c0c4571bf31061a352626f08afcf8508edaf104af784243476264edd03c3e992aef711d05f26f5270f27b98e7bd SHA512 a07c5bf3fa0b99e3b2af06141b1049ff030b7d74c2a38fbe7c15fc46a622d4cc02c2e563e03eb5aede1ef8dc0ea3d16b775f2381a41caafbe3c6e45831d56544
|
||||
DIST lego-4.14.2-docs.tar.gz 3639965 BLAKE2B deb991244c93cd317a8e3acb90acc5f6712d5f5a1cf65ce615a13830e5a91fb35070b1eb9ce808322fa1e6e3cc9a6ee4253b488c1c8cbef0d7899b000a00d45f SHA512 13ea06e72581aee038d8cc4906b357d506b1dd20f1c8bd32a1c3fcfa364bdac2ccb76416bf6328f07e8feabc934329358ab75b0a440ede859caf350febac69fd
|
||||
DIST lego-4.14.2.tar.gz 672197 BLAKE2B b633d6ed12fd7d38c35db392a58785fd32c3475961a49c5dbb3fe4986ca17c322a39ff604e73688928db1fa26eee70c8d9774fb560f96c5e017b680e2f89dbf2 SHA512 089788d1df077bdf8731250664628c9dbf44c8db7f2755242029c69b450eb892845b4c0b549a7affe80e351a29a6cc9d07514df3d0b7d1d17b42e20d1c85eca1
|
||||
DIST lego-4.15.0-deps.tar.xz 211464468 BLAKE2B 545c8029f4bd337a73d9ba68b7c07e9c38a67e2ab35db31b3c79d3b438f4db88317be4715bcc642e41cb29d920e9dcbb0c9de75a1ecf14fff08f14b1056a43b8 SHA512 551532265fa0f42530ef428f798e293bc96530ad307b4bd658c77e4ca74fd8323766868b8b75e5657aa0f5f627705b3f1990430042cb7a8338269d7234179039
|
||||
DIST lego-4.15.0-docs.tar.gz 3650516 BLAKE2B b08d587ec1ee9dad15c568ab979270cf112ba8cf29c1eabd818f30bf38dd29c0625df1fff7d54ce1ed87dfe191378ad0ec288a11d3f029d55c1593c50301061a SHA512 34b1172aa9e4ef53cd2efb1e84ab0b94de2280f81440477471ebf0091cad2996ae0dbef9797b7f652c6ec13053eb6557cd809dbd48b1936747d3c0e4eda63a3d
|
||||
DIST lego-4.15.0.tar.gz 683931 BLAKE2B b4bcdca4ea72e7826b690b15c297b37c186567d0167715542279acad6173d8e77883ffb79ab9cdb53f505421f67326ceca52a698f9a977cffc738b77dd8d29ed SHA512 a6cc56cbd430ed4b05451783c81d95bbd16e1c4874078b96a9057e2e7b3fde581be1b3663fdc7713079df7f2f24c8581b2f6af5b6c64737303f98e7e2bde8602
|
||||
|
||||
82
app-crypt/lego/lego-4.15.0.ebuild
Normal file
82
app-crypt/lego/lego-4.15.0.ebuild
Normal file
@@ -0,0 +1,82 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go"
|
||||
HOMEPAGE="https://github.com/go-acme/lego/"
|
||||
|
||||
DOCUMENTATION_COMMIT=9fcb88b9d6914c456d6800cc84c3cd0a6ac93f18
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/go-acme/lego.git"
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/go-acme/lego/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/rahilarious/gentoo-distfiles/releases/download/${P}/deps.tar.xz -> ${P}-deps.tar.xz
|
||||
doc? ( https://github.com/go-acme/lego/archive/${DOCUMENTATION_COMMIT}.tar.gz -> ${P}-docs.tar.gz )
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
fi
|
||||
|
||||
# main
|
||||
LICENSE="MIT"
|
||||
# deps
|
||||
LICENSE+=" Apache-2.0 BSD-2 BSD ISC MPL-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc"
|
||||
|
||||
# some tests require network access otherwise get following error
|
||||
# expected: "zoneee: unexpected status code: [status code: 401] body: Unauthorized"
|
||||
# actual : "zoneee: could not find zone for domain \"prefix.example.com\" (_acme-challenge.prefix.example.com.): could not find the start of authority for _acme-challenge.prefix.example.com.: read udp 10.0.0.1:54729->10.0.0.1:53: read: connection refused"
|
||||
PROPERTIES="test_network"
|
||||
RESTRICT="test"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
if use doc; then
|
||||
EGIT_BRANCH="gh-pages"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}-doc"
|
||||
git-r3_src_unpack
|
||||
fi
|
||||
else
|
||||
go-module_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export CGO_ENABLED=0
|
||||
|
||||
local VERSION
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
VERSION="$(git rev-parse HEAD)" || die
|
||||
else
|
||||
VERSION="${PV}"
|
||||
fi
|
||||
|
||||
ego build -trimpath -ldflags "-X main.version=${VERSION}" -o dist/"${PN}" ./cmd/lego/
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test -v -cover ./...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# primary program
|
||||
dobin dist/"${PN}"
|
||||
|
||||
# docs
|
||||
einstalldocs
|
||||
if use doc; then
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
dodoc -r ../"${P}"-doc/*
|
||||
else
|
||||
dodoc -r ../"${PN}"-"${DOCUMENTATION_COMMIT}"/*
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@@ -8,7 +8,7 @@ inherit go-module
|
||||
DESCRIPTION="Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go"
|
||||
HOMEPAGE="https://github.com/go-acme/lego/"
|
||||
|
||||
DOCUMENTATION_COMMIT=e28a6ff22f2b7f75b8aaae5012672cfcca2be690
|
||||
DOCUMENTATION_COMMIT=9fcb88b9d6914c456d6800cc84c3cd0a6ac93f18
|
||||
|
||||
if [[ ${PV} == 9999* ]]; then
|
||||
inherit git-r3
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
DIST auto-cpufreq-1.9.6.tar.gz 28393 BLAKE2B a4204cdfe549743c6781c4cf26c97133e488735d806d97205af2d956500b7b867c1635f6f20ee9940d9b98377b20fc83a31953099319e4e245a381754e35e8ee SHA512 55892a4ed27fbc8ffad8b67c9cfa9f70e510342bb2c4fbf8b84c8e4da0a4ca51940f34e02a052f97efdc41085cf4ff8db5323328a1b7ce948d9a87338a209798
|
||||
DIST auto-cpufreq-2.1.0.tar.gz 211221 BLAKE2B ee376e44b31cd93ae37c3a800fd1b7e89af3b696e1d128d2bc8d335b1240d2e2b0d5aa0e90cd1465185bfff9cee02069ee1d46120be014b1dc61ce056308d4a1 SHA512 e01e6f03e7fcd3e0640ebd829234a07043c8d88bd1feabbcc6df463007b2e93410935394257bc28ed1297b294292425adfe4079a3dff0ec5636c23c3cbdd9ee0
|
||||
|
||||
84
sys-power/auto-cpufreq/auto-cpufreq-2.1.0.ebuild
Normal file
84
sys-power/auto-cpufreq/auto-cpufreq-2.1.0.ebuild
Normal file
@@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
|
||||
inherit distutils-r1 systemd
|
||||
|
||||
DESCRIPTION="Automatic CPU speed & power optimizer for Linux"
|
||||
HOMEPAGE="https://github.com/AdnanHodzic/auto-cpufreq"
|
||||
SRC_URI="https://github.com/AdnanHodzic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
KEYWORDS="~amd64"
|
||||
SLOT="0"
|
||||
IUSE="systemd"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/click[${PYTHON_USEDEP}]
|
||||
dev-python/distro[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( README.md )
|
||||
PATCHES=( "${FILESDIR}/${PN}-remove-poetry_versioning.patch" )
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's|usr/local|usr|g' "scripts/${PN}.service" "scripts/${PN}-openrc" auto_cpufreq/core.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
exeinto "/usr/share/${PN}/scripts"
|
||||
doexe scripts/cpufreqctl.sh
|
||||
|
||||
if use systemd; then
|
||||
systemd_douserunit "scripts/${PN}.service"
|
||||
else
|
||||
doinitd "scripts/${PN}-openrc"
|
||||
mv "${D}/etc/init.d/${PN}-openrc" "${D}/etc/init.d/${PN}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
touch /var/log/auto-cpufreq.log
|
||||
|
||||
elog ""
|
||||
elog "Enable auto-cpufreq daemon service at boot:"
|
||||
if use systemd; then
|
||||
elog "systemctl enable --now auto-cpufreq"
|
||||
else
|
||||
elog "rc-update add auto-cpufreq default"
|
||||
fi
|
||||
elog ""
|
||||
elog "To view live log, run:"
|
||||
elog "auto-cpufreq --stats"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Remove auto-cpufreq log file
|
||||
if [ -f "/var/log/auto-cpufreq.log" ]; then
|
||||
rm /var/log/auto-cpufreq.log || die
|
||||
fi
|
||||
|
||||
# Remove auto-cpufreq's cpufreqctl binary
|
||||
# it overwrites cpufreqctl.sh
|
||||
if [ -f "/usr/bin/cpufreqctl" ]; then
|
||||
rm /usr/bin/cpufreqctl || die
|
||||
fi
|
||||
|
||||
# Restore original cpufreqctl binary if backup was made
|
||||
if [ -f "/usr/bin/cpufreqctl.auto-cpufreq.bak" ]; then
|
||||
mv /usr/bin/cpufreqctl.auto-cpufreq.bak /usr/bin/cpufreqctl || die
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
index c555726..f3ea0ab 100644
|
||||
--- a/pyproject.toml
|
||||
+++ b/pyproject.toml
|
||||
@@ -33,7 +33,7 @@ poetry = "^1.6.1"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
|
||||
-build-backend = "poetry_dynamic_versioning.backend"
|
||||
+build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
auto-cpufreq = "auto_cpufreq.bin.auto_cpufreq:main"
|
||||
Reference in New Issue
Block a user