parent
2aa5f483d1
commit
1ce65495e1
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST kontrast-22.08.3.tar.xz 128100 BLAKE2B c30380c716ace5f9d1987a9244350fb58592babc963d3b0bf312ca75e966fd9abe254898bd80b4f7bfdeb1d7bccc7424781ccdb0cd1b28784add6bf4edafe764 SHA512 18a1df4c888457f42c9a7273d6462479b8c44d87529b54868ea80c8fd8d9a8a20a96c25b9508a8cb4e93e94d6dd23d7251af1ca908d81a588002d1a29410d843
|
|
||||||
DIST kontrast-22.12.3.tar.xz 201576 BLAKE2B 9a5e931e6654ba45952b5b1be1290643b45f7e9ac5de3ef540812d8a58348f770d24c3df5aaf491a3ba8dd83a2e1582d7b6d7f334f6212629c51b943f2f9acc6 SHA512 e60a60866d805c7d0934257892da4e4a8176d776c20a06fa50ae9931dc2b7e620d32ba076e10d5e8a3a0bd1b04ede48100b45bbf4d64c97f977bd320cb1a2396
|
DIST kontrast-22.12.3.tar.xz 201576 BLAKE2B 9a5e931e6654ba45952b5b1be1290643b45f7e9ac5de3ef540812d8a58348f770d24c3df5aaf491a3ba8dd83a2e1582d7b6d7f334f6212629c51b943f2f9acc6 SHA512 e60a60866d805c7d0934257892da4e4a8176d776c20a06fa50ae9931dc2b7e620d32ba076e10d5e8a3a0bd1b04ede48100b45bbf4d64c97f977bd320cb1a2396
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
KFMIN=5.96.0
|
|
||||||
QTMIN=5.15.5
|
|
||||||
inherit ecm gear.kde.org
|
|
||||||
|
|
||||||
DESCRIPTION="Tool to check contrast for colors to verify they are correctly accessible"
|
|
||||||
HOMEPAGE="https://apps.kde.org/kontrast/"
|
|
||||||
|
|
||||||
LICENSE="GPL-3+"
|
|
||||||
SLOT="5"
|
|
||||||
KEYWORDS="amd64 arm64 ~riscv x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
>=dev-qt/qtdbus-${QTMIN}:5
|
|
||||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
|
||||||
>=dev-qt/qtgui-${QTMIN}:5
|
|
||||||
>=dev-qt/qtquickcontrols2-${QTMIN}:5
|
|
||||||
>=dev-qt/qtsql-${QTMIN}:5
|
|
||||||
>=dev-qt/qtsvg-${QTMIN}:5
|
|
||||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
|
||||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
|
||||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
|
||||||
>=kde-frameworks/kirigami-${KFMIN}:5
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
kde-plasma/xdg-desktop-portal-kde
|
|
||||||
"
|
|
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
DIST ansible-lint-6.12.1.tar.gz 466371 BLAKE2B f43b3403c5d3db80d3ec3e3526cafc22bee68b31b5458e378a73bbec900de5411c597e9fc079a77cffc66a278a37bf0fc9ecfcaba3beccf74c6eecbe5b6148b9 SHA512 05c92c930d91419c212a9513aed5506c99e993acbce9437b6f8f3b95bd78ca5b0ff8e1a7d39f32907df72d858a2e4e6c74f47443c0f937b3644c7a18d1d59252
|
DIST ansible-lint-6.12.1.tar.gz 466371 BLAKE2B f43b3403c5d3db80d3ec3e3526cafc22bee68b31b5458e378a73bbec900de5411c597e9fc079a77cffc66a278a37bf0fc9ecfcaba3beccf74c6eecbe5b6148b9 SHA512 05c92c930d91419c212a9513aed5506c99e993acbce9437b6f8f3b95bd78ca5b0ff8e1a7d39f32907df72d858a2e4e6c74f47443c0f937b3644c7a18d1d59252
|
||||||
DIST ansible-lint-6.14.2.tar.gz 473090 BLAKE2B 7ee73ab0b9539ae56cdf0220d79b271c45747fc1379f818e14f99b0d361e87cd7410548261e369a1d90cb3dceeb53bd46d614b041c837253ef643b653430bf51 SHA512 bb7350b56b9f81d398509b612cf1631020c21bed4f08ea8dda482460c18a1c0388269af513833778f29f1003a114366af885e7b7f31149731bad2067a904d30a
|
DIST ansible-lint-6.14.2.tar.gz 473090 BLAKE2B 7ee73ab0b9539ae56cdf0220d79b271c45747fc1379f818e14f99b0d361e87cd7410548261e369a1d90cb3dceeb53bd46d614b041c837253ef643b653430bf51 SHA512 bb7350b56b9f81d398509b612cf1631020c21bed4f08ea8dda482460c18a1c0388269af513833778f29f1003a114366af885e7b7f31149731bad2067a904d30a
|
||||||
DIST ansible-lint-6.14.3.tar.gz 474969 BLAKE2B ea32928ccb27750bfa410907cdf03b8b5bd29cafafe04615782b06705ef540e5d7f92fafdb824bbf86337d4a4b63e377362fb758d59a7942c7891a1d80a94762 SHA512 a8dcc8ba7920da141f235a9b70156a3d65f45ac335511a6caf708c81b29f47fcde38cc02a9e1eedb1cb70643c98a0a9d92218b7723da94319b2a220ee181868c
|
DIST ansible-lint-6.14.4.tar.gz 475223 BLAKE2B 01649f9890ca8c78097a810524fe6e6737cf77359d7537e799210ba25dd6aa0f7bb9f1e4a1ba80bb9dafcdedcde73d5c15bb71c47cc2ae18176e9d5cd91db093 SHA512 5274cab25bd648b87f1edaf55b480e3daf29d3ccc7c9d7c5f4013b96b7101c95ed264a2456789ad819be41712c8faad6206133ad26fa100353ef7d2d36c5fe43
|
||||||
|
@ -1,55 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYPI_NO_NORMALIZE=1
|
|
||||||
PYTHON_COMPAT=( python3_{10..11} )
|
|
||||||
|
|
||||||
inherit distutils-r1 pypi
|
|
||||||
|
|
||||||
DESCRIPTION="Checks ansible playbooks for practices and behaviour that can be improved"
|
|
||||||
HOMEPAGE="https://github.com/ansible/ansible-lint"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~riscv"
|
|
||||||
|
|
||||||
# Upstream has stated explicitly that all tests require Internet access
|
|
||||||
PROPERTIES="test_network"
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=app-admin/ansible-core-2.12.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ansible-compat-2.2.7[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/black-22.8.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/filelock-3.8.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jsonschema-4.17.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/packaging-21.3[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pyyaml-5.4.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/rich-12.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ruamel-yaml-0.17.21[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/wcmatch-8.3.2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-util/yamllint-1.26.3[${PYTHON_USEDEP}]
|
|
||||||
dev-vcs/git"
|
|
||||||
BDEPEND="
|
|
||||||
>=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
|
|
||||||
test? (
|
|
||||||
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-plus-0.2[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-xdist-2.5.0[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
|
|
||||||
# test_call_from_outside_venv doesn't play nicely with the sandbox
|
|
||||||
# irrespective of whether Internet access is allowed or not
|
|
||||||
EPYTEST_DESELECT=(
|
|
||||||
test/test_main.py::test_call_from_outside_venv
|
|
||||||
)
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
# Test suite fails to start without this
|
|
||||||
python_test() {
|
|
||||||
epytest test
|
|
||||||
}
|
|
@ -0,0 +1,55 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYPI_NO_NORMALIZE=1
|
||||||
|
PYTHON_COMPAT=( python3_{10..11} )
|
||||||
|
|
||||||
|
inherit distutils-r1 pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Checks ansible playbooks for practices and behaviour that can be improved"
|
||||||
|
HOMEPAGE="https://github.com/ansible/ansible-lint"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~riscv"
|
||||||
|
|
||||||
|
# Upstream has stated explicitly that all tests require Internet access
|
||||||
|
PROPERTIES="test_network"
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=app-admin/ansible-core-2.12.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/ansible-compat-2.2.7[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/black-22.8.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/filelock-3.8.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jsonschema-4.17.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/packaging-21.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-5.4.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/rich-12.0.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/ruamel-yaml-0.17.21[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/wcmatch-8.3.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-util/yamllint-1.30.0[${PYTHON_USEDEP}]
|
||||||
|
dev-vcs/git"
|
||||||
|
BDEPEND="
|
||||||
|
>=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytest-plus-0.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytest-xdist-2.5.0[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
# test_call_from_outside_venv doesn't play nicely with the sandbox
|
||||||
|
# irrespective of whether Internet access is allowed or not
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
test/test_main.py::test_call_from_outside_venv
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
# Test suite fails to start without this
|
||||||
|
python_test() {
|
||||||
|
epytest test
|
||||||
|
}
|
@ -1,8 +1,4 @@
|
|||||||
DIST aws-cli-1.27.100.gh.tar.gz 2389951 BLAKE2B 02fac88ec2451c7c0f8b96c17c08e767ab629ab4480abf195023298aaf8b3f98f2fe5805da0051cbcc2fad0a93e5277dfaa38ffdf979d991f3873268ee530ffd SHA512 2a6f0be41d0d20edef0d5d2b75d455e928d82e373cdfc921f1fed5a189b42c11c5f08eb516d312caa5de13fd4a6139240233a7b0d4784640bb3b6dbfe5485895
|
|
||||||
DIST aws-cli-1.27.101.gh.tar.gz 2390624 BLAKE2B ccb01bf7d3349c709b095b7a1fe3b0e39f6fbc0e7239d39f7fd0ff4c6f716fe0df0190518cbf9765d04e38111bbca934c74970f5e1f55d5f69ceee1eb3f49160 SHA512 9184326d067c59517aeb5178fc308cf753c6b6a3b2e3489b040c1053a24b63d637e9b775e7de52e0e501f4ec69bb410bff4e4e8f8ec294d089b7aaa7f604e514
|
|
||||||
DIST aws-cli-1.27.102.gh.tar.gz 2390826 BLAKE2B b756ebd3f73d24f3456f4a1ece5230bc91335e2fd655220cfdfb85a4d853f6e18370adbf83ac650e6e5b375c681280bea414a1411fcda4a952f3788ddc11f1f5 SHA512 9a4018224bf1cd22377650ac5beabf44db3069196ef7bf21880edeb2e547e85b1ef9febb3355f22957d8c69e321a3be934ccf01ae817ab2151e1e51a503ad1b1
|
|
||||||
DIST aws-cli-1.27.103.gh.tar.gz 2392724 BLAKE2B 294a0cfc4d5ad4a258edf38728dced04d50937cadd5418b5be8fde36f75a3c0ffd8367db19b79ecbe0adc3467a09d8552222625bb0e6d6fde8d43ea0a04b7255 SHA512 771f28f6a6c3526aeee6b6487a018093b7ac60f4ecab4dec1af70a9dbc90ebcc39b56ffab6c5f3b965e27c545accc99910bfd28639f540dccb19461ccb237623
|
|
||||||
DIST aws-cli-1.27.104.gh.tar.gz 2392876 BLAKE2B 860f0d8ddf4c283d7b4e98ded1c9ca66b23e6a63107be0810b1ec3a513a05196aaa3d613a0597af84f4637621b05ab30e89f221bd47478342693611be5ee306d SHA512 57e26dcca866ab7c30abf0c2e15ea7ce617c0abe123a983157ab188c6c7c8d217d8515f1c9e329ae1fd53561e6aa6711e2ee50d9258fe3aadeca7a9b5de92ac4
|
DIST aws-cli-1.27.104.gh.tar.gz 2392876 BLAKE2B 860f0d8ddf4c283d7b4e98ded1c9ca66b23e6a63107be0810b1ec3a513a05196aaa3d613a0597af84f4637621b05ab30e89f221bd47478342693611be5ee306d SHA512 57e26dcca866ab7c30abf0c2e15ea7ce617c0abe123a983157ab188c6c7c8d217d8515f1c9e329ae1fd53561e6aa6711e2ee50d9258fe3aadeca7a9b5de92ac4
|
||||||
DIST aws-cli-1.27.89.gh.tar.gz 2382599 BLAKE2B 3a2dae3cc1928e149dd605de1e9a350989e1cf4f813dc14466ba40c0a2747e69b6a8c5716d48f2526920798f0d341dcaa7ec0c2fd95af1b5decd3830814a243b SHA512 9a90c933e5ae3f25271ec369607cb6c44adf96dc9d324205714c9790b6744d7f2c8e4c6b901d4bb4f58b6871c315e0543b3f846cf530e7f95ed31d196f8c3326
|
DIST aws-cli-1.27.106.gh.tar.gz 2394080 BLAKE2B a83e50310ba5db667fb999f2f8dc4a32159b3934c7e305d48f09075f8210a298acce56f63827ac22a3686fd4c948fcde3382da005b9989287a09724734718c83 SHA512 8659a92851f0bffc3d92430aa955a319c689783ff907c51ed0b42bc0edd5301293c390269504cfee5833f69c69c372dae3995964460d41adf755966124b22579
|
||||||
DIST aws-cli-1.27.94.gh.tar.gz 2385480 BLAKE2B 8712056c53d704e368f81d38779201d0ef28d0b633ac4a877957b5d6338a6daf45b5408dcf0bee3f6c48a0b10af625bfee835f63e837814b42ec3a57745e4d61 SHA512 48dc09f0af71eb9b9d93ffd2c008511e2379f2a47d4913c6c4296804d3ec3c30a1811564c017388329cac9261b1c3021fadc60771ca9d0952982401f5e4f7c59
|
DIST aws-cli-1.27.107.gh.tar.gz 2394636 BLAKE2B f64dec24fbebaf22aa734c54cf54084b036ea627f1c004705f3a630a6efef59b5c826c5ffd4372dffebf86c4cfa507ed465f965a3a200e2a997cde5f166e0b6e SHA512 3e32ab758eba1d7b4bc8b4e5bc6c71bbe72a69d6b50dc5b51c6f8a0eb44cc53a4f91680ca84003f7692c1b1bdc727de41772df03940e0f19bddbc7b40682fd4c
|
||||||
DIST aws-cli-1.27.99.gh.tar.gz 2388286 BLAKE2B f9be204722470fdbc5b4a1f7453370033c78800dac6d4ca63480705988e6bd02899f0646c034f39a3e87a2988f79d9d23989ba9f4036e931102ca4c0e46989b1 SHA512 a07ac30eab8cd8f19f35bb7d203b6ef150c585a61df63dfa54d469591e57766f3cbdab3053a155837da82d1c9f702302f4821558c7b7cb9dc985fec7a58dacf1
|
DIST aws-cli-1.27.99.gh.tar.gz 2388286 BLAKE2B f9be204722470fdbc5b4a1f7453370033c78800dac6d4ca63480705988e6bd02899f0646c034f39a3e87a2988f79d9d23989ba9f4036e931102ca4c0e46989b1 SHA512 a07ac30eab8cd8f19f35bb7d203b6ef150c585a61df63dfa54d469591e57766f3cbdab3053a155837da82d1c9f702302f4821558c7b7cb9dc985fec7a58dacf1
|
||||||
|
@ -1,80 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_COMPAT=( python3_{10..11} )
|
|
||||||
|
|
||||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
|
||||||
|
|
||||||
MY_P=aws-cli-${PV}
|
|
||||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/aws/aws-cli/
|
|
||||||
https://pypi.org/project/awscli/
|
|
||||||
"
|
|
||||||
SRC_URI="
|
|
||||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
|
||||||
-> ${MY_P}.gh.tar.gz
|
|
||||||
"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
||||||
|
|
||||||
# botocore is x.(y+2).z
|
|
||||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
|
||||||
dev-python/colorama[${PYTHON_USEDEP}]
|
|
||||||
dev-python/docutils[${PYTHON_USEDEP}]
|
|
||||||
dev-python/rsa[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
!app-admin/awscli-bin
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# do not rely on bundled deps in botocore (sic!)
|
|
||||||
find -name '*.py' -exec sed -i \
|
|
||||||
-e 's:from botocore[.]vendored import:import:' \
|
|
||||||
-e 's:from botocore[.]vendored[.]:from :' \
|
|
||||||
{} + || die
|
|
||||||
# strip overzealous upper bounds on requirements
|
|
||||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
local EPYTEST_DESELECT=(
|
|
||||||
# TODO
|
|
||||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
|
||||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
|
||||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
|
||||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
|
||||||
)
|
|
||||||
|
|
||||||
# integration tests require AWS credentials and Internet access
|
|
||||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
newbashcomp bin/aws_bash_completer aws
|
|
||||||
|
|
||||||
insinto /usr/share/zsh/site-functions
|
|
||||||
newins bin/aws_zsh_completer.sh _aws
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
|
||||||
}
|
|
@ -1,80 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_COMPAT=( python3_{10..11} )
|
|
||||||
|
|
||||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
|
||||||
|
|
||||||
MY_P=aws-cli-${PV}
|
|
||||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/aws/aws-cli/
|
|
||||||
https://pypi.org/project/awscli/
|
|
||||||
"
|
|
||||||
SRC_URI="
|
|
||||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
|
||||||
-> ${MY_P}.gh.tar.gz
|
|
||||||
"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
||||||
|
|
||||||
# botocore is x.(y+2).z
|
|
||||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
|
||||||
dev-python/colorama[${PYTHON_USEDEP}]
|
|
||||||
dev-python/docutils[${PYTHON_USEDEP}]
|
|
||||||
dev-python/rsa[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
!app-admin/awscli-bin
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# do not rely on bundled deps in botocore (sic!)
|
|
||||||
find -name '*.py' -exec sed -i \
|
|
||||||
-e 's:from botocore[.]vendored import:import:' \
|
|
||||||
-e 's:from botocore[.]vendored[.]:from :' \
|
|
||||||
{} + || die
|
|
||||||
# strip overzealous upper bounds on requirements
|
|
||||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
local EPYTEST_DESELECT=(
|
|
||||||
# TODO
|
|
||||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
|
||||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
|
||||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
|
||||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
|
||||||
)
|
|
||||||
|
|
||||||
# integration tests require AWS credentials and Internet access
|
|
||||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
newbashcomp bin/aws_bash_completer aws
|
|
||||||
|
|
||||||
insinto /usr/share/zsh/site-functions
|
|
||||||
newins bin/aws_zsh_completer.sh _aws
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
|
||||||
}
|
|
@ -1,80 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_COMPAT=( python3_{10..11} )
|
|
||||||
|
|
||||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
|
||||||
|
|
||||||
MY_P=aws-cli-${PV}
|
|
||||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/aws/aws-cli/
|
|
||||||
https://pypi.org/project/awscli/
|
|
||||||
"
|
|
||||||
SRC_URI="
|
|
||||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
|
||||||
-> ${MY_P}.gh.tar.gz
|
|
||||||
"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86"
|
|
||||||
|
|
||||||
# botocore is x.(y+2).z
|
|
||||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
|
||||||
dev-python/colorama[${PYTHON_USEDEP}]
|
|
||||||
dev-python/docutils[${PYTHON_USEDEP}]
|
|
||||||
dev-python/rsa[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
!app-admin/awscli-bin
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# do not rely on bundled deps in botocore (sic!)
|
|
||||||
find -name '*.py' -exec sed -i \
|
|
||||||
-e 's:from botocore[.]vendored import:import:' \
|
|
||||||
-e 's:from botocore[.]vendored[.]:from :' \
|
|
||||||
{} + || die
|
|
||||||
# strip overzealous upper bounds on requirements
|
|
||||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
local EPYTEST_DESELECT=(
|
|
||||||
# TODO
|
|
||||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
|
||||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
|
||||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
|
||||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
|
||||||
)
|
|
||||||
|
|
||||||
# integration tests require AWS credentials and Internet access
|
|
||||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
newbashcomp bin/aws_bash_completer aws
|
|
||||||
|
|
||||||
insinto /usr/share/zsh/site-functions
|
|
||||||
newins bin/aws_zsh_completer.sh _aws
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
|
||||||
}
|
|
@ -1,80 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_COMPAT=( python3_{10..11} )
|
|
||||||
|
|
||||||
inherit bash-completion-r1 distutils-r1 multiprocessing
|
|
||||||
|
|
||||||
MY_P=aws-cli-${PV}
|
|
||||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/aws/aws-cli/
|
|
||||||
https://pypi.org/project/awscli/
|
|
||||||
"
|
|
||||||
SRC_URI="
|
|
||||||
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
|
||||||
-> ${MY_P}.gh.tar.gz
|
|
||||||
"
|
|
||||||
S=${WORKDIR}/${MY_P}
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
|
||||||
|
|
||||||
# botocore is x.(y+2).z
|
|
||||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
|
||||||
dev-python/colorama[${PYTHON_USEDEP}]
|
|
||||||
dev-python/docutils[${PYTHON_USEDEP}]
|
|
||||||
dev-python/rsa[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/s3transfer-0.6.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
!app-admin/awscli-bin
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# do not rely on bundled deps in botocore (sic!)
|
|
||||||
find -name '*.py' -exec sed -i \
|
|
||||||
-e 's:from botocore[.]vendored import:import:' \
|
|
||||||
-e 's:from botocore[.]vendored[.]:from :' \
|
|
||||||
{} + || die
|
|
||||||
# strip overzealous upper bounds on requirements
|
|
||||||
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
|
||||||
distutils-r1_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
local EPYTEST_DESELECT=(
|
|
||||||
# TODO
|
|
||||||
tests/functional/eks/test_kubeconfig.py::TestKubeconfigLoader::test_load_simple
|
|
||||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_env_only
|
|
||||||
tests/unit/customizations/eks/test_update_kubeconfig.py::TestKubeconfigSelector::test_choose_existing
|
|
||||||
tests/unit/customizations/eks/test_kubeconfig.py::TestKubeconfigValidator::test_valid
|
|
||||||
)
|
|
||||||
|
|
||||||
# integration tests require AWS credentials and Internet access
|
|
||||||
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
newbashcomp bin/aws_bash_completer aws
|
|
||||||
|
|
||||||
insinto /usr/share/zsh/site-functions
|
|
||||||
newins bin/aws_zsh_completer.sh _aws
|
|
||||||
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
|
||||||
}
|
|
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Displays the last new messages of a logfile"
|
||||||
|
HOMEPAGE="https://fetchlog.sourceforge.net/"
|
||||||
|
SRC_URI="mirror://sourceforge/fetchlog/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||||
|
IUSE="snmp"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
snmp? (
|
||||||
|
>=dev-perl/Net-SNMP-4.0.1-r2
|
||||||
|
>=net-analyzer/net-snmp-5.0.6
|
||||||
|
)"
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}"/${PN}-1.4-fix-build-system.patch )
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
tc-export CC
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin fetchlog
|
||||||
|
einstalldocs
|
||||||
|
dodoc *cfg*
|
||||||
|
doman fetchlog.1
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_preinst() {
|
||||||
|
elog
|
||||||
|
elog "This utility can be used together with Nagios"
|
||||||
|
elog "To make use of these features you need to"
|
||||||
|
elog "install net-analyzer/nagios."
|
||||||
|
elog "This feature depends on SNMP, so make sure you"
|
||||||
|
elog "have 'snmp' in your USE flags"
|
||||||
|
elog
|
||||||
|
}
|
@ -1 +0,0 @@
|
|||||||
DIST gixy-0.1.20.tar.gz 710691 BLAKE2B 09043925d950a9a35de4df91ef3c2f9e5ca4458227320555a109e50d0838fb10ae22d086cdfc39c0d76bcd051c1a7e1d5e291354cc457cff398be8d164cbfde6 SHA512 d666e758c2746c201a11b67b4b99cee1bd3406085eb1c0aa9ae520b72d3a1273e09e3475226a6e54fbfbcefe65b3be0fc877e66cbaa81f384f757767852bc08e
|
|
@ -1,76 +0,0 @@
|
|||||||
diff --git a/gixy/core/regexp.py b/gixy/core/regexp.py
|
|
||||||
index 7a96187..f360604 100644
|
|
||||||
--- a/gixy/core/regexp.py
|
|
||||||
+++ b/gixy/core/regexp.py
|
|
||||||
@@ -3,7 +3,11 @@ import logging
|
|
||||||
import re
|
|
||||||
import random
|
|
||||||
import itertools
|
|
||||||
-from cached_property import cached_property
|
|
||||||
+
|
|
||||||
+try:
|
|
||||||
+ from functools import cached_property
|
|
||||||
+except ImportError:
|
|
||||||
+ from cached_property import cached_property
|
|
||||||
|
|
||||||
import gixy.core.sre_parse.sre_parse as sre_parse
|
|
||||||
|
|
||||||
diff --git a/gixy/directives/block.py b/gixy/directives/block.py
|
|
||||||
index 5e5b1ed..cc9bcb0 100644
|
|
||||||
--- a/gixy/directives/block.py
|
|
||||||
+++ b/gixy/directives/block.py
|
|
||||||
@@ -1,4 +1,7 @@
|
|
||||||
-from cached_property import cached_property
|
|
||||||
+try:
|
|
||||||
+ from functools import cached_property
|
|
||||||
+except ImportError:
|
|
||||||
+ from cached_property import cached_property
|
|
||||||
|
|
||||||
from gixy.directives.directive import Directive
|
|
||||||
from gixy.core.variable import Variable
|
|
||||||
diff --git a/gixy/parser/raw_parser.py b/gixy/parser/raw_parser.py
|
|
||||||
index 6a30b7f..0f43308 100644
|
|
||||||
--- a/gixy/parser/raw_parser.py
|
|
||||||
+++ b/gixy/parser/raw_parser.py
|
|
||||||
@@ -1,7 +1,11 @@
|
|
||||||
import logging
|
|
||||||
import codecs
|
|
||||||
import six
|
|
||||||
-from cached_property import cached_property
|
|
||||||
+
|
|
||||||
+try:
|
|
||||||
+ from functools import cached_property
|
|
||||||
+except ImportError:
|
|
||||||
+ from cached_property import cached_property
|
|
||||||
|
|
||||||
from pyparsing import (
|
|
||||||
Literal, Suppress, White, Word, alphanums, Forward, Group, Optional, Combine,
|
|
||||||
diff --git a/requirements.txt b/requirements.txt
|
|
||||||
index dbf6d5f..47a1b54 100644
|
|
||||||
--- a/requirements.txt
|
|
||||||
+++ b/requirements.txt
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
pyparsing>=1.5.5
|
|
||||||
-cached-property>=1.2.0
|
|
||||||
+cached-property>=1.2.0;python_version<"3.8"
|
|
||||||
argparse>=1.4.0
|
|
||||||
six>=1.1.0
|
|
||||||
Jinja2>=2.8
|
|
||||||
-ConfigArgParse>=0.11.0
|
|
||||||
\ No newline at end of file
|
|
||||||
+ConfigArgParse>=0.11.0
|
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index e4314a6..e57842b 100644
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -18,8 +18,8 @@ setup(
|
|
||||||
url='https://github.com/yandex/gixy',
|
|
||||||
install_requires=[
|
|
||||||
'pyparsing>=1.5.5',
|
|
||||||
- 'cached-property>=1.2.0',
|
|
||||||
- 'argparse>=1.4.0',
|
|
||||||
+ 'cached-property>=1.2.0;python_version<"3.8"',
|
|
||||||
+ 'argparse>=1.4.0;python_version<"3.2"',
|
|
||||||
'six>=1.1.0',
|
|
||||||
'Jinja2>=2.8',
|
|
||||||
'ConfigArgParse>=0.11.0'
|
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{9..10} )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Nginx configuration static analyzer"
|
|
||||||
HOMEPAGE="https://github.com/yandex/gixy"
|
|
||||||
# Use GitHub source insted PyPi to get tarball with tests
|
|
||||||
SRC_URI="https://github.com/yandex/gixy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MPL-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/pyparsing-1.5.5[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ConfigArgParse-0.11.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jinja-2.8[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/six-1.1.0[${PYTHON_USEDEP}]"
|
|
||||||
|
|
||||||
distutils_enable_tests nose
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${P}-backports.patch
|
|
||||||
)
|
|
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
|
||||||
<pkgmetadata>
|
|
||||||
<maintainer type="person">
|
|
||||||
<email>jsmolic@gentoo.org</email>
|
|
||||||
<name>Jakov Smolić</name>
|
|
||||||
</maintainer>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type="github">yandex/gixy</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
|
@ -1,3 +1,2 @@
|
|||||||
DIST mcelog-190.tar.gz 314409 BLAKE2B 287b5ccba24ef7afe4b2653f2ab8ddd9ae94451e1131941d61031042a039cb9ed633f75b0ddf0035f3fef023cdf67c5c0b01169d0afac4ae47f9badcc55d16ef SHA512 26347d5255c602189961c63f8bf44f0c73b8f7fb0d455108c604a84e73e00303646961759101aab42157d12a7678f8c47277829b0460b0832a64c8b5c913d952
|
|
||||||
DIST mcelog-191.tar.gz 317354 BLAKE2B a02df41304aac994a37f4abd7be65408bd19d72e2aa20a15a3b55b6b152aebfad09309c9bfbb710e6bde493da980004a9f664ca71efeaf5ccd2ca0f0e1452adf SHA512 8716c2a63660d61da0fc9f1f8c5065cacc77c696456eed2167cd451e74e665e838bf5ab1d865d073379cb2fda2ff7c71e946cb74e905585d6c5d714159603a78
|
|
||||||
DIST mcelog-192.tar.gz 317443 BLAKE2B 071c9e29aa049a2b559feb692d258df0685baaec614c4866d09cc8e9c8e8dad1e5064e661215c179649792cf3375e98aaa70fbe2629f5ba2b51b489ed9198b20 SHA512 dbdab35a4d3d2a3d395adb6384143d6ce53a2f598a9868e8777bd0588837621f7be74fdf6299b9949a4195ab6b242d9069686d07fe14fe23447d13e2dcfe7966
|
DIST mcelog-192.tar.gz 317443 BLAKE2B 071c9e29aa049a2b559feb692d258df0685baaec614c4866d09cc8e9c8e8dad1e5064e661215c179649792cf3375e98aaa70fbe2629f5ba2b51b489ed9198b20 SHA512 dbdab35a4d3d2a3d395adb6384143d6ce53a2f598a9868e8777bd0588837621f7be74fdf6299b9949a4195ab6b242d9069686d07fe14fe23447d13e2dcfe7966
|
||||||
|
DIST mcelog-193.tar.gz 317427 BLAKE2B cd83a671e79549ecf38908de6ae5f2561ef48d0d210d26786f6f0299c31ee5c712df8a37a9e0969f3a88e43c9ec092befb599dca3a72eb2f5368daa6d110d882 SHA512 d0854222ce651ef583d0ebc8ec5cdeb8a06354c514a9e1465dd96b9bc914a32b6e730e8cd2dff71b08cd20a7a5ef13c8e191b47955cdcbbe9eee3ae9906491ec
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{9..11} )
|
|
||||||
|
|
||||||
inherit linux-info python-any-r1 systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A tool to log and decode Machine Check Exceptions"
|
|
||||||
HOMEPAGE="http://mcelog.org/"
|
|
||||||
SRC_URI="https://github.com/andikleen/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86"
|
|
||||||
IUSE="selinux"
|
|
||||||
|
|
||||||
RDEPEND="selinux? ( sec-policy/selinux-mcelog )"
|
|
||||||
DEPEND="${PYTHON_DEPS}"
|
|
||||||
|
|
||||||
# TODO: add mce-inject to the tree to support test phase
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if [[ ${MERGE_TYPE} != buildonly ]]; then
|
|
||||||
local CONFIG_CHECK="~X86_MCE"
|
|
||||||
kernel_is -ge 4 12 && CONFIG_CHECK+=" ~X86_MCELOG_LEGACY"
|
|
||||||
check_extra_config
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eapply "${FILESDIR}"/${PN}-0.8_pre1-timestamp-${PN}.patch \
|
|
||||||
"${FILESDIR}"/${PN}-129-debugflags.patch
|
|
||||||
eapply_user
|
|
||||||
tc-export CC
|
|
||||||
python_fix_shebang genconfig.py
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d/
|
|
||||||
newins ${PN}.logrotate ${PN}
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/${PN}.init-r1 ${PN}
|
|
||||||
systemd_dounit ${PN}.service
|
|
||||||
|
|
||||||
dodoc *.pdf
|
|
||||||
}
|
|
@ -1,495 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{9..11} )
|
|
||||||
|
|
||||||
inherit autotools linux-info python-any-r1 systemd
|
|
||||||
|
|
||||||
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
|
|
||||||
HOMEPAGE="https://www.rsyslog.com/"
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"
|
|
||||||
|
|
||||||
DOC_REPO_URI="https://github.com/rsyslog/${PN}-doc.git"
|
|
||||||
|
|
||||||
inherit git-r3
|
|
||||||
else
|
|
||||||
KEYWORDS="amd64 arm arm64 ~hppa ~ia64 x86"
|
|
||||||
|
|
||||||
SRC_URI="
|
|
||||||
https://www.rsyslog.com/files/download/${PN}/${P}.tar.gz
|
|
||||||
doc? ( https://www.rsyslog.com/files/download/${PN}/${PN}-doc-${PV}.tar.gz )
|
|
||||||
"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="GPL-3 LGPL-3 Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
IUSE="clickhouse curl dbi debug doc elasticsearch +gcrypt gnutls imhttp"
|
|
||||||
IUSE+=" impcap jemalloc kafka kerberos kubernetes mdblookup"
|
|
||||||
IUSE+=" mongodb mysql normalize omhttp omhttpfs omudpspoof +openssl"
|
|
||||||
IUSE+=" postgres rabbitmq redis relp rfc3195 rfc5424hmac snmp +ssl"
|
|
||||||
IUSE+=" systemd test usertools +uuid xxhash zeromq"
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
REQUIRED_USE="
|
|
||||||
kubernetes? ( normalize )
|
|
||||||
ssl? ( || ( gnutls openssl ) )
|
|
||||||
"
|
|
||||||
|
|
||||||
BDEPEND=">=sys-devel/autoconf-archive-2015.02.24
|
|
||||||
sys-apps/lsb-release
|
|
||||||
virtual/pkgconfig
|
|
||||||
test? (
|
|
||||||
jemalloc? ( <sys-libs/libfaketime-0.9.7 )
|
|
||||||
!jemalloc? ( sys-libs/libfaketime )
|
|
||||||
${PYTHON_DEPS}
|
|
||||||
)"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-libs/libfastjson-0.99.8:=
|
|
||||||
>=dev-libs/libestr-0.1.9
|
|
||||||
>=sys-libs/zlib-1.2.5
|
|
||||||
curl? ( >=net-misc/curl-7.35.0 )
|
|
||||||
dbi? ( >=dev-db/libdbi-0.8.3 )
|
|
||||||
elasticsearch? ( >=net-misc/curl-7.35.0 )
|
|
||||||
gcrypt? ( >=dev-libs/libgcrypt-1.5.3:= )
|
|
||||||
imhttp? (
|
|
||||||
dev-libs/apr-util
|
|
||||||
www-servers/civetweb
|
|
||||||
virtual/libcrypt:=
|
|
||||||
)
|
|
||||||
impcap? ( net-libs/libpcap )
|
|
||||||
jemalloc? ( >=dev-libs/jemalloc-3.3.1:= )
|
|
||||||
kafka? ( >=dev-libs/librdkafka-0.9.0.99:= )
|
|
||||||
kerberos? ( virtual/krb5 )
|
|
||||||
kubernetes? ( >=net-misc/curl-7.35.0 )
|
|
||||||
mdblookup? ( dev-libs/libmaxminddb:= )
|
|
||||||
mongodb? ( >=dev-libs/mongo-c-driver-1.1.10:= )
|
|
||||||
mysql? ( dev-db/mysql-connector-c:= )
|
|
||||||
normalize? (
|
|
||||||
>=dev-libs/liblognorm-2.0.3:=
|
|
||||||
)
|
|
||||||
clickhouse? ( >=net-misc/curl-7.35.0 )
|
|
||||||
omhttpfs? ( >=net-misc/curl-7.35.0 )
|
|
||||||
omudpspoof? ( >=net-libs/libnet-1.1.6 )
|
|
||||||
postgres? ( >=dev-db/postgresql-8.4.20:= )
|
|
||||||
rabbitmq? ( >=net-libs/rabbitmq-c-0.3.0:= )
|
|
||||||
redis? (
|
|
||||||
>=dev-libs/hiredis-0.11.0:=
|
|
||||||
dev-libs/libevent[threads(+)]
|
|
||||||
)
|
|
||||||
relp? ( >=dev-libs/librelp-1.2.17:= )
|
|
||||||
rfc3195? ( >=dev-libs/liblogging-1.0.1:=[rfc3195] )
|
|
||||||
rfc5424hmac? (
|
|
||||||
>=dev-libs/openssl-0.9.8y:0=
|
|
||||||
)
|
|
||||||
snmp? ( >=net-analyzer/net-snmp-5.7.2 )
|
|
||||||
ssl? (
|
|
||||||
gnutls? ( >=net-libs/gnutls-2.12.23:0= )
|
|
||||||
openssl? (
|
|
||||||
dev-libs/openssl:0=
|
|
||||||
)
|
|
||||||
)
|
|
||||||
systemd? ( >=sys-apps/systemd-234 )
|
|
||||||
uuid? ( sys-apps/util-linux:0= )
|
|
||||||
xxhash? ( dev-libs/xxhash:= )
|
|
||||||
zeromq? (
|
|
||||||
>=net-libs/czmq-4:=[drafts]
|
|
||||||
)"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
elibc_musl? ( sys-libs/queue-standalone )
|
|
||||||
"
|
|
||||||
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
BDEPEND+=" doc? ( >=dev-python/sphinx-1.1.3-r7 )"
|
|
||||||
BDEPEND+=" >=sys-devel/flex-2.5.39-r1"
|
|
||||||
BDEPEND+=" >=sys-devel/bison-2.4.3"
|
|
||||||
BDEPEND+=" >=dev-python/docutils-0.12"
|
|
||||||
fi
|
|
||||||
|
|
||||||
CONFIG_CHECK="~INOTIFY_USER"
|
|
||||||
WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER isn't set. Imfile module on this system will only support polling mode!"
|
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${PN}-8.2112.0-pr5024-configure.patch )
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
use test && python-any-r1_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
git-r3_fetch
|
|
||||||
git-r3_checkout
|
|
||||||
else
|
|
||||||
unpack ${P}.tar.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use doc; then
|
|
||||||
if [[ ${PV} == "9999" ]]; then
|
|
||||||
local _EGIT_BRANCH=
|
|
||||||
if [[ -n "${EGIT_BRANCH}" ]]; then
|
|
||||||
# Cannot use rsyslog commits/branches for documentation repository
|
|
||||||
_EGIT_BRANCH=${EGIT_BRANCH}
|
|
||||||
unset EGIT_BRANCH
|
|
||||||
fi
|
|
||||||
|
|
||||||
git-r3_fetch "${DOC_REPO_URI}"
|
|
||||||
git-r3_checkout "${DOC_REPO_URI}" "${S}"/docs
|
|
||||||
|
|
||||||
if [[ -n "${_EGIT_BRANCH}" ]]; then
|
|
||||||
# Restore previous EGIT_BRANCH information
|
|
||||||
EGIT_BRANCH=${_EGIT_BRANCH}
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
cd "${S}" || die "Cannot change dir into '${S}'"
|
|
||||||
mkdir docs || die "Failed to create docs directory"
|
|
||||||
cd docs || die "Failed to change dir into '${S}/docs'"
|
|
||||||
unpack ${PN}-doc-${PV}.tar.gz
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
# https://github.com/rsyslog/rsyslog/issues/3626
|
|
||||||
sed -i \
|
|
||||||
-e '\|^#!/bin/bash$|a exit 77' \
|
|
||||||
tests/mmkubernetes-cache-expir*.sh \
|
|
||||||
|| die "Failed to disabled known test failure mmkubernetes-cache-expir*.sh"
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# Maintainer notes:
|
|
||||||
# * Guardtime support is missing because libgt isn't yet available
|
|
||||||
# in portage.
|
|
||||||
# * Hadoop's HDFS file system output module is currently not
|
|
||||||
# supported in Gentoo because nobody is able to test it
|
|
||||||
# (JAVA dependency).
|
|
||||||
# * dev-libs/hiredis doesn't provide pkg-config (see #504614,
|
|
||||||
# upstream PR 129 and 136) so we need to export HIREDIS_*
|
|
||||||
# variables because rsyslog's build system depends on pkg-config.
|
|
||||||
|
|
||||||
if use redis; then
|
|
||||||
export HIREDIS_LIBS="-L${EPREFIX}/usr/$(get_libdir) -lhiredis"
|
|
||||||
export HIREDIS_CFLAGS="-I${EPREFIX}/usr/include"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local myeconfargs=(
|
|
||||||
--disable-debug-symbols
|
|
||||||
--disable-generate-man-pages
|
|
||||||
--without-valgrind-testbench
|
|
||||||
--disable-liblogging-stdlog
|
|
||||||
$(use_enable test testbench)
|
|
||||||
$(use_enable test libfaketime)
|
|
||||||
$(use_enable test extended-tests)
|
|
||||||
# Input Plugins without dependencies
|
|
||||||
--enable-imbatchreport
|
|
||||||
--enable-imdiag
|
|
||||||
--enable-imdocker
|
|
||||||
--enable-imfile
|
|
||||||
--enable-improg
|
|
||||||
--enable-impstats
|
|
||||||
--enable-imptcp
|
|
||||||
# Message Modificiation Plugins without dependencies
|
|
||||||
--enable-mmanon
|
|
||||||
--enable-mmaudit
|
|
||||||
--enable-mmcount
|
|
||||||
--enable-mmfields
|
|
||||||
--enable-mmjsonparse
|
|
||||||
--enable-mmpstrucdata
|
|
||||||
--enable-mmrm1stspace
|
|
||||||
--enable-mmsequence
|
|
||||||
--enable-mmtaghostname
|
|
||||||
--enable-mmutf8fix
|
|
||||||
# Output Modification Plugins without dependencies
|
|
||||||
--enable-mail
|
|
||||||
--enable-omprog
|
|
||||||
--enable-omruleset
|
|
||||||
--enable-omstdout
|
|
||||||
--enable-omuxsock
|
|
||||||
# Misc
|
|
||||||
--enable-fmhash
|
|
||||||
--enable-fmunflatten
|
|
||||||
$(use_enable xxhash fmhash-xxhash)
|
|
||||||
--enable-pmaixforwardedfrom
|
|
||||||
--enable-pmciscoios
|
|
||||||
--enable-pmcisconames
|
|
||||||
--enable-pmdb2diag
|
|
||||||
--enable-pmlastmsg
|
|
||||||
$(use_enable normalize pmnormalize)
|
|
||||||
--enable-pmnull
|
|
||||||
--enable-pmpanngfw
|
|
||||||
--enable-pmsnare
|
|
||||||
# DB
|
|
||||||
$(use_enable dbi libdbi)
|
|
||||||
$(use_enable mongodb ommongodb)
|
|
||||||
$(use_enable mysql)
|
|
||||||
$(use_enable postgres pgsql)
|
|
||||||
$(use_enable redis imhiredis)
|
|
||||||
$(use_enable redis omhiredis)
|
|
||||||
# Debug
|
|
||||||
$(use_enable debug)
|
|
||||||
$(use_enable debug diagtools)
|
|
||||||
$(use_enable debug valgrind)
|
|
||||||
# Misc
|
|
||||||
$(use_enable clickhouse)
|
|
||||||
$(use_enable curl fmhttp)
|
|
||||||
$(use_enable elasticsearch)
|
|
||||||
$(use_enable gcrypt libgcrypt)
|
|
||||||
$(use_enable imhttp)
|
|
||||||
$(use_enable impcap)
|
|
||||||
$(use_enable jemalloc)
|
|
||||||
$(use_enable kafka imkafka)
|
|
||||||
$(use_enable kafka omkafka)
|
|
||||||
$(use_enable kerberos gssapi-krb5)
|
|
||||||
$(use_enable kubernetes mmkubernetes)
|
|
||||||
$(use_enable normalize mmnormalize)
|
|
||||||
$(use_enable mdblookup mmdblookup)
|
|
||||||
$(use_enable omhttp)
|
|
||||||
$(use_enable omhttpfs)
|
|
||||||
$(use_enable omudpspoof)
|
|
||||||
$(use_enable rabbitmq omrabbitmq)
|
|
||||||
$(use_enable relp)
|
|
||||||
$(use_enable rfc3195)
|
|
||||||
$(use_enable rfc5424hmac mmrfc5424addhmac)
|
|
||||||
$(use_enable snmp)
|
|
||||||
$(use_enable snmp mmsnmptrapd)
|
|
||||||
$(use_enable gnutls)
|
|
||||||
$(use_enable openssl)
|
|
||||||
$(use_enable systemd imjournal)
|
|
||||||
$(use_enable systemd omjournal)
|
|
||||||
$(use_enable usertools)
|
|
||||||
$(use_enable uuid)
|
|
||||||
$(use_enable zeromq imczmq)
|
|
||||||
$(use_enable zeromq omczmq)
|
|
||||||
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
|
|
||||||
)
|
|
||||||
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if use doc && [[ "${PV}" == "9999" ]]; then
|
|
||||||
einfo "Building documentation ..."
|
|
||||||
local doc_dir="${S}/docs"
|
|
||||||
cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!"
|
|
||||||
sphinx-build -b html source build || die "Building documentation failed!"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
local _has_increased_ulimit=
|
|
||||||
|
|
||||||
# Sometimes tests aren't executable (i.e. when added via patch)
|
|
||||||
einfo "Adjusting permissions of test scripts ..."
|
|
||||||
find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
|
|
||||||
die "Failed to adjust test scripts permission"
|
|
||||||
|
|
||||||
if ulimit -n 3072; then
|
|
||||||
_has_increased_ulimit="true"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! emake --jobs 1 check; then
|
|
||||||
eerror "Test suite failed! :("
|
|
||||||
|
|
||||||
if [[ -z "${_has_increased_ulimit}" ]]; then
|
|
||||||
eerror "Probably because open file limit couldn't be set to 3072."
|
|
||||||
fi
|
|
||||||
|
|
||||||
if has userpriv ${FEATURES}; then
|
|
||||||
eerror "Please try to reproduce the test suite failure with FEATURES=-userpriv " \
|
|
||||||
"before you submit a bug report."
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local DOCS=(
|
|
||||||
AUTHORS
|
|
||||||
ChangeLog
|
|
||||||
"${FILESDIR}"/README.gentoo
|
|
||||||
)
|
|
||||||
|
|
||||||
use doc && local HTML_DOCS=( "${S}/docs/build/." )
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
|
|
||||||
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
|
|
||||||
|
|
||||||
systemd_newunit "${FILESDIR}/${PN}.service" ${PN}.service
|
|
||||||
|
|
||||||
keepdir /var/empty/dev
|
|
||||||
keepdir /var/spool/${PN}
|
|
||||||
keepdir /etc/ssl/${PN}
|
|
||||||
keepdir /etc/${PN}.d
|
|
||||||
|
|
||||||
insinto /etc
|
|
||||||
newins "${FILESDIR}/${PN}.conf" ${PN}.conf
|
|
||||||
|
|
||||||
insinto /etc/rsyslog.d/
|
|
||||||
newins "${FILESDIR}/50-default-r1.conf" 50-default.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d/
|
|
||||||
newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}
|
|
||||||
|
|
||||||
if use mysql; then
|
|
||||||
insinto /usr/share/${PN}/scripts/mysql
|
|
||||||
doins plugins/ommysql/createDB.sql
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use postgres; then
|
|
||||||
insinto /usr/share/${PN}/scripts/pgsql
|
|
||||||
doins plugins/ompgsql/createDB.sql
|
|
||||||
fi
|
|
||||||
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
local advertise_readme=0
|
|
||||||
|
|
||||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
|
||||||
# This is a new installation
|
|
||||||
|
|
||||||
advertise_readme=1
|
|
||||||
|
|
||||||
if use mysql || use postgres; then
|
|
||||||
echo
|
|
||||||
elog "Sample SQL scripts for MySQL & PostgreSQL have been installed to:"
|
|
||||||
elog " /usr/share/doc/${PF}/scripts"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use ssl; then
|
|
||||||
echo
|
|
||||||
elog "To create a default CA and certificates for your server and clients, run:"
|
|
||||||
elog " emerge --config =${PF}"
|
|
||||||
elog "on your logging server. You can run it several times,"
|
|
||||||
elog "once for each logging client. The client certificates will be signed"
|
|
||||||
elog "using the CA certificate generated during the first run."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${advertise_readme} -gt 0 ]]; then
|
|
||||||
# We need to show the README file location
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
elog "Please read"
|
|
||||||
elog ""
|
|
||||||
elog " ${EPREFIX}/usr/share/doc/${PF}/README.gentoo*"
|
|
||||||
elog ""
|
|
||||||
elog "for more details."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
if ! use ssl; then
|
|
||||||
einfo "There is nothing to configure for rsyslog unless you"
|
|
||||||
einfo "used USE=ssl to build it."
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! hash certtool &>/dev/null; then
|
|
||||||
die "certtool not found! Is net-libs/gnutls[tools] is installed?"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure the certificates directory exists
|
|
||||||
local CERTDIR="${EROOT}/etc/ssl/${PN}"
|
|
||||||
if [[ ! -d "${CERTDIR}" ]]; then
|
|
||||||
mkdir "${CERTDIR}" || die
|
|
||||||
fi
|
|
||||||
einfo "Your certificates will be stored in ${CERTDIR}"
|
|
||||||
|
|
||||||
# Create a default CA if needed
|
|
||||||
if [[ ! -f "${CERTDIR}/${PN}_ca.cert.pem" ]]; then
|
|
||||||
einfo "No CA key and certificate found in ${CERTDIR}, creating them for you..."
|
|
||||||
certtool --generate-privkey \
|
|
||||||
--outfile "${CERTDIR}/${PN}_ca.privkey.pem" || die
|
|
||||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
|
||||||
|
|
||||||
cat > "${T}/${PF}.$$" <<- _EOF
|
|
||||||
cn = Portage automated CA
|
|
||||||
ca
|
|
||||||
cert_signing_key
|
|
||||||
expiration_days = 3650
|
|
||||||
_EOF
|
|
||||||
|
|
||||||
certtool --generate-self-signed \
|
|
||||||
--load-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
|
||||||
--outfile "${CERTDIR}/${PN}_ca.cert.pem" \
|
|
||||||
--template "${T}/${PF}.$$" || die
|
|
||||||
chmod 400 "${CERTDIR}/${PN}_ca.privkey.pem"
|
|
||||||
|
|
||||||
# Create the server certificate
|
|
||||||
echo
|
|
||||||
einfon "Please type the Common Name of the SERVER you wish to create a certificate for: "
|
|
||||||
read -r CN
|
|
||||||
|
|
||||||
einfo "Creating private key and certificate for server ${CN}..."
|
|
||||||
certtool --generate-privkey \
|
|
||||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" || die
|
|
||||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
|
||||||
|
|
||||||
cat > "${T}/${PF}.$$" <<- _EOF
|
|
||||||
cn = ${CN}
|
|
||||||
tls_www_server
|
|
||||||
dns_name = ${CN}
|
|
||||||
expiration_days = 3650
|
|
||||||
_EOF
|
|
||||||
|
|
||||||
certtool --generate-certificate \
|
|
||||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
|
||||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
|
||||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
|
||||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
|
||||||
--template "${T}/${PF}.$$" &>/dev/null
|
|
||||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
|
||||||
|
|
||||||
else
|
|
||||||
einfo "Found existing ${CERTDIR}/${PN}_ca.cert.pem, skipping CA and SERVER creation."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create a client certificate
|
|
||||||
echo
|
|
||||||
einfon "Please type the Common Name of the CLIENT you wish to create a certificate for: "
|
|
||||||
read -r CN
|
|
||||||
|
|
||||||
einfo "Creating private key and certificate for client ${CN}..."
|
|
||||||
certtool --generate-privkey \
|
|
||||||
--outfile "${CERTDIR}/${PN}_${CN}.key.pem" || die
|
|
||||||
chmod 400 "${CERTDIR}/${PN}_${CN}.key.pem"
|
|
||||||
|
|
||||||
cat > "${T}/${PF}.$$" <<- _EOF
|
|
||||||
cn = ${CN}
|
|
||||||
tls_www_client
|
|
||||||
dns_name = ${CN}
|
|
||||||
expiration_days = 3650
|
|
||||||
_EOF
|
|
||||||
|
|
||||||
certtool --generate-certificate \
|
|
||||||
--outfile "${CERTDIR}/${PN}_${CN}.cert.pem" \
|
|
||||||
--load-privkey "${CERTDIR}/${PN}_${CN}.key.pem" \
|
|
||||||
--load-ca-certificate "${CERTDIR}/${PN}_ca.cert.pem" \
|
|
||||||
--load-ca-privkey "${CERTDIR}/${PN}_ca.privkey.pem" \
|
|
||||||
--template "${T}/${PF}.$$" || die
|
|
||||||
chmod 400 "${CERTDIR}/${PN}_${CN}.cert.pem"
|
|
||||||
|
|
||||||
rm -f "${T}/${PF}.$$"
|
|
||||||
|
|
||||||
echo
|
|
||||||
einfo "Here is the documentation on how to encrypt your log traffic:"
|
|
||||||
einfo " https://www.rsyslog.com/doc/rsyslog_tls.html"
|
|
||||||
}
|
|
@ -1,53 +0,0 @@
|
|||||||
From a58bbbe058df8f45872c43a95992f6a7a7914ab9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: piterpunk <piterpunk@slackware.com>
|
|
||||||
Date: Fri, 15 Oct 2021 11:03:20 -0300
|
|
||||||
Subject: [PATCH] Fix _compat.py importlib logic for Python 3.10
|
|
||||||
|
|
||||||
Use the same logic in _compat.py and entrypoints.py to load
|
|
||||||
the same importlib.metadata. Python's built in implementation for
|
|
||||||
Python >= 3.10 and the Salt one for others.
|
|
||||||
---
|
|
||||||
salt/_compat.py | 30 +++++++++++++++++-------------
|
|
||||||
1 file changed, 17 insertions(+), 13 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/salt/_compat.py b/salt/_compat.py
|
|
||||||
index 8149657bea61..a402f17a3c71 100644
|
|
||||||
--- a/salt/_compat.py
|
|
||||||
+++ b/salt/_compat.py
|
|
||||||
@@ -11,19 +11,23 @@
|
|
||||||
else:
|
|
||||||
import salt.ext.ipaddress as ipaddress
|
|
||||||
|
|
||||||
+if sys.version_info >= (3, 10):
|
|
||||||
+ # Python 3.10 will include a fix in importlib.metadata which allows us to
|
|
||||||
+ # get the distribution of a loaded entry-point
|
|
||||||
+ import importlib.metadata # pylint: disable=no-member,no-name-in-module
|
|
||||||
+else:
|
|
||||||
+ # importlib_metadata before version 3.3.0 does not include the functionality we need.
|
|
||||||
+ try:
|
|
||||||
+ import importlib_metadata
|
|
||||||
|
|
||||||
-# importlib_metadata before version 3.3.0 does not include the functionality we need.
|
|
||||||
-try:
|
|
||||||
- import importlib_metadata
|
|
||||||
-
|
|
||||||
- importlib_metadata_version = [
|
|
||||||
- int(part)
|
|
||||||
- for part in importlib_metadata.version("importlib_metadata").split(".")
|
|
||||||
- if part.isdigit()
|
|
||||||
- ]
|
|
||||||
- if tuple(importlib_metadata_version) < (3, 3, 0):
|
|
||||||
+ importlib_metadata_version = [
|
|
||||||
+ int(part)
|
|
||||||
+ for part in importlib_metadata.version("importlib_metadata").split(".")
|
|
||||||
+ if part.isdigit()
|
|
||||||
+ ]
|
|
||||||
+ if tuple(importlib_metadata_version) < (3, 3, 0):
|
|
||||||
+ # Use the vendored importlib_metadata
|
|
||||||
+ import salt.ext.importlib_metadata as importlib_metadata
|
|
||||||
+ except ImportError:
|
|
||||||
# Use the vendored importlib_metadata
|
|
||||||
import salt.ext.importlib_metadata as importlib_metadata
|
|
||||||
-except ImportError:
|
|
||||||
- # Use the vendored importlib_metadata
|
|
||||||
- import salt.ext.importlib_metadata as importlib_metadata
|
|
@ -1,12 +0,0 @@
|
|||||||
diff --git a/requirements/zeromq.txt b/requirements/zeromq.txt
|
|
||||||
index 62cb775d87..ffa1589043 100644
|
|
||||||
--- a/requirements/zeromq.txt
|
|
||||||
+++ b/requirements/zeromq.txt
|
|
||||||
@@ -1,6 +1,4 @@
|
|
||||||
-r base.txt
|
|
||||||
-r crypto.txt
|
|
||||||
|
|
||||||
-pyzmq<=20.0.0 ; python_version < "3.6"
|
|
||||||
-pyzmq>=17.0.0,<22.0.0 ; python_version < "3.9"
|
|
||||||
-pyzmq>19.0.2,<22.0.0 ; python_version >= "3.9"
|
|
||||||
+pyzmq
|
|
@ -1,311 +0,0 @@
|
|||||||
diff --git a/tests/pytests/functional/fileserver/test_roots.py b/tests/pytests/functional/fileserver/test_roots.py
|
|
||||||
index c65efc8d52..9060fb61e2 100644
|
|
||||||
--- a/tests/pytests/functional/fileserver/test_roots.py
|
|
||||||
+++ b/tests/pytests/functional/fileserver/test_roots.py
|
|
||||||
@@ -15,6 +15,7 @@ def configure_loader_modules(base_env_state_tree_root_dir):
|
|
||||||
return {roots: {"__opts__": opts}}
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("needs network access")
|
|
||||||
# nox -e pytest-zeromq-3.8(coverage=False) -- -vvv --run-slow --run-destructive tests\pytests\functional\fileserver\test_roots.py
|
|
||||||
def test_symlink_list(base_env_state_tree_root_dir):
|
|
||||||
with pytest.helpers.temp_file(
|
|
||||||
diff --git a/tests/pytests/functional/pillar/test_gpg.py b/tests/pytests/functional/pillar/test_gpg.py
|
|
||||||
index aaa4733f1d..b55cc9b4cf 100644
|
|
||||||
--- a/tests/pytests/functional/pillar/test_gpg.py
|
|
||||||
+++ b/tests/pytests/functional/pillar/test_gpg.py
|
|
||||||
@@ -203,7 +203,7 @@ def gpg_homedir(salt_master, pillar_state_tree):
|
|
||||||
universal_newlines=True,
|
|
||||||
)
|
|
||||||
ret = ProcessResult(
|
|
||||||
- exitcode=proc.returncode,
|
|
||||||
+ returncode=proc.returncode,
|
|
||||||
stdout=proc.stdout,
|
|
||||||
stderr=proc.stderr,
|
|
||||||
cmdline=proc.args,
|
|
||||||
@@ -220,7 +220,7 @@ def gpg_homedir(salt_master, pillar_state_tree):
|
|
||||||
input=TEST_KEY,
|
|
||||||
)
|
|
||||||
ret = ProcessResult(
|
|
||||||
- exitcode=proc.returncode,
|
|
||||||
+ returncode=proc.returncode,
|
|
||||||
stdout=proc.stdout,
|
|
||||||
stderr=proc.stderr,
|
|
||||||
cmdline=proc.args,
|
|
||||||
@@ -250,7 +250,7 @@ def gpg_homedir(salt_master, pillar_state_tree):
|
|
||||||
input="KILLAGENT",
|
|
||||||
)
|
|
||||||
ret = ProcessResult(
|
|
||||||
- exitcode=proc.returncode,
|
|
||||||
+ returncode=proc.returncode,
|
|
||||||
stdout=proc.stdout,
|
|
||||||
stderr=proc.stderr,
|
|
||||||
cmdline=proc.args,
|
|
||||||
diff --git a/tests/pytests/integration/cli/test_salt_proxy.py b/tests/pytests/integration/cli/test_salt_proxy.py
|
|
||||||
index c32c7e11e2..a9ee9fbd8d 100644
|
|
||||||
--- a/tests/pytests/integration/cli/test_salt_proxy.py
|
|
||||||
+++ b/tests/pytests/integration/cli/test_salt_proxy.py
|
|
||||||
@@ -40,6 +40,7 @@ def test_exit_status_no_proxyid(salt_master, proxy_minion_id):
|
|
||||||
assert "error: salt-proxy requires --proxyid" in exc.value.stderr, exc.value
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("Currently broken")
|
|
||||||
@pytest.mark.skip_on_windows(reason="Windows does not do user checks")
|
|
||||||
def test_exit_status_unknown_user(salt_master, proxy_minion_id):
|
|
||||||
"""
|
|
||||||
@@ -66,7 +67,7 @@ def test_exit_status_unknown_argument(salt_master, proxy_minion_id):
|
|
||||||
factory = salt_master.salt_proxy_minion_daemon(proxy_minion_id)
|
|
||||||
factory.start("--unknown-argument", start_timeout=10, max_start_attempts=1)
|
|
||||||
|
|
||||||
- assert exc.value.exitcode == salt.defaults.exitcodes.EX_USAGE, exc.value
|
|
||||||
+ assert exc.value.returncode == salt.defaults.exitcodes.EX_USAGE, exc.value
|
|
||||||
assert "Usage" in exc.value.stderr, exc.value
|
|
||||||
assert "no such option: --unknown-argument" in exc.value.stderr, exc.value
|
|
||||||
|
|
||||||
@@ -89,8 +90,8 @@ def test_exit_status_correct_usage(salt_master, proxy_minion_id, salt_cli):
|
|
||||||
assert factory.is_running()
|
|
||||||
# Let's issue a ping before terminating
|
|
||||||
ret = salt_cli.run("test.ping", minion_tgt=proxy_minion_id)
|
|
||||||
- assert ret.exitcode == 0
|
|
||||||
+ assert ret.returncode == 0
|
|
||||||
assert ret.json is True
|
|
||||||
# Terminate the proxy minion
|
|
||||||
ret = factory.terminate()
|
|
||||||
- assert ret.exitcode == salt.defaults.exitcodes.EX_OK, ret
|
|
||||||
+ assert ret.returncode == salt.defaults.exitcodes.EX_OK, ret
|
|
||||||
diff --git a/tests/pytests/integration/sdb/test_vault.py b/tests/pytests/integration/sdb/test_vault.py
|
|
||||||
index 7dc4c55417..6c48296a0c 100644
|
|
||||||
--- a/tests/pytests/integration/sdb/test_vault.py
|
|
||||||
+++ b/tests/pytests/integration/sdb/test_vault.py
|
|
||||||
@@ -107,7 +107,7 @@ def vault_container_version(request, salt_call_cli, vault_port):
|
|
||||||
if proc.returncode == 0:
|
|
||||||
break
|
|
||||||
ret = ProcessResult(
|
|
||||||
- exitcode=proc.returncode,
|
|
||||||
+ returncode=proc.returncode,
|
|
||||||
stdout=proc.stdout,
|
|
||||||
stderr=proc.stderr,
|
|
||||||
cmdline=proc.args,
|
|
||||||
@@ -133,7 +133,7 @@ def vault_container_version(request, salt_call_cli, vault_port):
|
|
||||||
)
|
|
||||||
if proc.returncode != 0:
|
|
||||||
ret = ProcessResult(
|
|
||||||
- exitcode=proc.returncode,
|
|
||||||
+ returncode=proc.returncode,
|
|
||||||
stdout=proc.stdout,
|
|
||||||
stderr=proc.stderr,
|
|
||||||
cmdline=proc.args,
|
|
||||||
@@ -150,7 +150,7 @@ def vault_container_version(request, salt_call_cli, vault_port):
|
|
||||||
universal_newlines=True,
|
|
||||||
)
|
|
||||||
ret = ProcessResult(
|
|
||||||
- exitcode=proc.returncode,
|
|
||||||
+ returncode=proc.returncode,
|
|
||||||
stdout=proc.stdout,
|
|
||||||
stderr=proc.stderr,
|
|
||||||
cmdline=proc.args,
|
|
||||||
diff --git a/tests/pytests/unit/modules/test_cmdmod.py b/tests/pytests/unit/modules/test_cmdmod.py
|
|
||||||
index bc1d2818aa..3bd93862b7 100644
|
|
||||||
--- a/tests/pytests/unit/modules/test_cmdmod.py
|
|
||||||
+++ b/tests/pytests/unit/modules/test_cmdmod.py
|
|
||||||
@@ -440,6 +440,7 @@ def test_run_cwd_doesnt_exist_issue_7154():
|
|
||||||
cmdmod.run_all(cmd, cwd=cwd)
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("needs root access")
|
|
||||||
@pytest.mark.skip_on_darwin
|
|
||||||
@pytest.mark.skip_on_windows
|
|
||||||
def test_run_cwd_in_combination_with_runas():
|
|
||||||
diff --git a/tests/pytests/unit/modules/test_portage_config.py b/tests/pytests/unit/modules/test_portage_config.py
|
|
||||||
index 5cc6b90596..db37d2c4f1 100644
|
|
||||||
--- a/tests/pytests/unit/modules/test_portage_config.py
|
|
||||||
+++ b/tests/pytests/unit/modules/test_portage_config.py
|
|
||||||
@@ -29,6 +29,7 @@ def test_get_config_file_wildcards():
|
|
||||||
assert portage_config._get_config_file("mask", atom) == expected
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("test needs root access")
|
|
||||||
def test_enforce_nice_config(tmp_path):
|
|
||||||
atoms = [
|
|
||||||
("*/*::repo", "repo"),
|
|
||||||
diff --git a/tests/pytests/unit/state/test_state_compiler.py b/tests/pytests/unit/state/test_state_compiler.py
|
|
||||||
index fc43cf154d..7aa511c9f7 100644
|
|
||||||
--- a/tests/pytests/unit/state/test_state_compiler.py
|
|
||||||
+++ b/tests/pytests/unit/state/test_state_compiler.py
|
|
||||||
@@ -679,6 +679,7 @@ def test_verify_retry_parsing():
|
|
||||||
assert set(expected_result).issubset(set(state_obj.call(low_data)))
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("test requires root access")
|
|
||||||
def test_render_requisite_require_disabled():
|
|
||||||
"""
|
|
||||||
Test that the state compiler correctly deliver a rendering
|
|
||||||
@@ -719,6 +720,7 @@ def test_render_requisite_require_disabled():
|
|
||||||
assert run_num == 0
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("test requires root access")
|
|
||||||
def test_render_requisite_require_in_disabled():
|
|
||||||
"""
|
|
||||||
Test that the state compiler correctly deliver a rendering
|
|
||||||
diff --git a/tests/pytests/unit/state/test_state_format_slots.py b/tests/pytests/unit/state/test_state_format_slots.py
|
|
||||||
index 57b7bb2b87..7d2abce8d0 100644
|
|
||||||
--- a/tests/pytests/unit/state/test_state_format_slots.py
|
|
||||||
+++ b/tests/pytests/unit/state/test_state_format_slots.py
|
|
||||||
@@ -218,6 +218,7 @@ def test_slot_append(state_obj):
|
|
||||||
assert cdata == {"args": ["arg"], "kwargs": {"key": "value1thing~"}}
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("test needs root")
|
|
||||||
# Skip on windows like integration.modules.test_state.StateModuleTest.test_parallel_state_with_long_tag
|
|
||||||
@skipIf(
|
|
||||||
salt.utils.platform.is_windows(),
|
|
||||||
diff --git a/tests/pytests/unit/test_minion.py b/tests/pytests/unit/test_minion.py
|
|
||||||
index 985ec99276..eb8a476e30 100644
|
|
||||||
--- a/tests/pytests/unit/test_minion.py
|
|
||||||
+++ b/tests/pytests/unit/test_minion.py
|
|
||||||
@@ -493,6 +493,7 @@ def test_scheduler_before_connect():
|
|
||||||
minion.destroy()
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("test needs root access")
|
|
||||||
def test_minion_module_refresh():
|
|
||||||
"""
|
|
||||||
Tests that the 'module_refresh' just return in case there is no 'schedule'
|
|
||||||
@@ -520,6 +521,7 @@ def test_minion_module_refresh():
|
|
||||||
minion.destroy()
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("test needs root access")
|
|
||||||
def test_minion_module_refresh_beacons_refresh():
|
|
||||||
"""
|
|
||||||
Tests that 'module_refresh' calls beacons_refresh and that the
|
|
||||||
diff --git a/tests/pytests/unit/test_version.py b/tests/pytests/unit/test_version.py
|
|
||||||
index bc6bbfeadd..2653b558b0 100644
|
|
||||||
--- a/tests/pytests/unit/test_version.py
|
|
||||||
+++ b/tests/pytests/unit/test_version.py
|
|
||||||
@@ -140,6 +140,7 @@ def test_sha(commit, match):
|
|
||||||
assert ret is None
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.skip("test is broken if some optional deps aren't installed")
|
|
||||||
def test_version_report_lines():
|
|
||||||
"""
|
|
||||||
Validate padding in versions report is correct
|
|
||||||
diff --git a/tests/support/helpers.py b/tests/support/helpers.py
|
|
||||||
index d82b14cb90..751018162c 100644
|
|
||||||
--- a/tests/support/helpers.py
|
|
||||||
+++ b/tests/support/helpers.py
|
|
||||||
@@ -40,7 +40,7 @@ import salt.utils.platform
|
|
||||||
import salt.utils.pycrypto
|
|
||||||
import salt.utils.stringutils
|
|
||||||
import salt.utils.versions
|
|
||||||
-from saltfactories.exceptions import FactoryFailure as ProcessFailed
|
|
||||||
+from pytestshellutils.exceptions import FactoryFailure as ProcessFailed
|
|
||||||
from saltfactories.utils.ports import get_unused_localhost_port
|
|
||||||
from saltfactories.utils.processes import ProcessResult
|
|
||||||
from tests.support.mock import patch
|
|
||||||
@@ -1720,7 +1720,7 @@ class VirtualEnv:
|
|
||||||
kwargs.setdefault("env", self.environ)
|
|
||||||
proc = subprocess.run(args, check=False, **kwargs)
|
|
||||||
ret = ProcessResult(
|
|
||||||
- exitcode=proc.returncode,
|
|
||||||
+ returncode=proc.returncode,
|
|
||||||
stdout=proc.stdout,
|
|
||||||
stderr=proc.stderr,
|
|
||||||
cmdline=proc.args,
|
|
||||||
@@ -1735,7 +1735,7 @@ class VirtualEnv:
|
|
||||||
cmdline=proc.args,
|
|
||||||
stdout=proc.stdout,
|
|
||||||
stderr=proc.stderr,
|
|
||||||
- exitcode=proc.returncode,
|
|
||||||
+ returncode=proc.returncode,
|
|
||||||
)
|
|
||||||
return ret
|
|
||||||
|
|
||||||
diff --git a/tests/unit/modules/test_boto_route53.py b/tests/unit/modules/test_boto_route53.py
|
|
||||||
index 1d3d1393a9..df331761e2 100644
|
|
||||||
--- a/tests/unit/modules/test_boto_route53.py
|
|
||||||
+++ b/tests/unit/modules/test_boto_route53.py
|
|
||||||
@@ -4,6 +4,8 @@ from collections import namedtuple
|
|
||||||
|
|
||||||
import pkg_resources # pylint: disable=3rd-party-module-not-gated
|
|
||||||
|
|
||||||
+import pytest
|
|
||||||
+
|
|
||||||
import salt.config
|
|
||||||
import salt.loader
|
|
||||||
import salt.utils.versions
|
|
||||||
@@ -99,6 +101,7 @@ class BotoRoute53TestCase(TestCase, LoaderModuleMockMixin):
|
|
||||||
def tearDown(self):
|
|
||||||
del self.opts
|
|
||||||
|
|
||||||
+ @pytest.mark.skip("test currently broken")
|
|
||||||
@mock_route53_deprecated
|
|
||||||
def test_create_healthcheck(self):
|
|
||||||
"""
|
|
||||||
diff --git a/tests/unit/utils/test_parsers.py b/tests/unit/utils/test_parsers.py
|
|
||||||
index 907c67f477..3f68cfe8f3 100644
|
|
||||||
--- a/tests/unit/utils/test_parsers.py
|
|
||||||
+++ b/tests/unit/utils/test_parsers.py
|
|
||||||
@@ -6,6 +6,8 @@ import os
|
|
||||||
import shutil
|
|
||||||
import tempfile
|
|
||||||
|
|
||||||
+import pytest
|
|
||||||
+
|
|
||||||
import salt.config
|
|
||||||
import salt.log.setup as log
|
|
||||||
import salt.syspaths
|
|
||||||
@@ -983,6 +985,7 @@ class SaltRunOptionParserTestCase(ParserBase, TestCase):
|
|
||||||
if os.path.exists(self.log_file):
|
|
||||||
os.unlink(self.log_file)
|
|
||||||
|
|
||||||
+ @pytest.mark.skip("needs root access")
|
|
||||||
def test_jid_option(self):
|
|
||||||
jid = salt.utils.jid.gen_jid({})
|
|
||||||
args = ["--jid", jid]
|
|
||||||
@@ -991,6 +994,7 @@ class SaltRunOptionParserTestCase(ParserBase, TestCase):
|
|
||||||
parser.parse_args(args)
|
|
||||||
assert parser.options.jid == jid
|
|
||||||
|
|
||||||
+ @pytest.mark.skip("needs root access")
|
|
||||||
def test_jid_option_invalid(self):
|
|
||||||
jid = salt.utils.jid.gen_jid({}) + "A"
|
|
||||||
args = ["--jid", jid]
|
|
||||||
@@ -1041,6 +1045,7 @@ class SaltSSHOptionParserTestCase(ParserBase, TestCase):
|
|
||||||
if os.path.exists(self.ssh_log_file):
|
|
||||||
os.unlink(self.ssh_log_file)
|
|
||||||
|
|
||||||
+ @pytest.mark.skip("needs root access")
|
|
||||||
def test_jid_option(self):
|
|
||||||
jid = salt.utils.jid.gen_jid({})
|
|
||||||
args = ["--jid", jid] + self.args
|
|
||||||
@@ -1049,6 +1054,7 @@ class SaltSSHOptionParserTestCase(ParserBase, TestCase):
|
|
||||||
parser.parse_args(args)
|
|
||||||
assert parser.options.jid == jid
|
|
||||||
|
|
||||||
+ @pytest.mark.skip("needs root access")
|
|
||||||
def test_jid_option_invalid(self):
|
|
||||||
jid = salt.utils.jid.gen_jid({}) + "A"
|
|
||||||
args = ["--jid", jid] + self.args
|
|
||||||
diff --git a/tests/unit/utils/test_schema.py b/tests/unit/utils/test_schema.py
|
|
||||||
index 8c648f5288..74b9bc6981 100644
|
|
||||||
--- a/tests/unit/utils/test_schema.py
|
|
||||||
+++ b/tests/unit/utils/test_schema.py
|
|
||||||
@@ -872,6 +872,7 @@ class ConfigTestCase(TestCase):
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
+ @skipIf(True, "Does not work in network sandbox")
|
|
||||||
@skipIf(HAS_JSONSCHEMA is False, "The 'jsonschema' library is missing")
|
|
||||||
def test_hostname_config_validation(self):
|
|
||||||
class TestConf(schema.Schema):
|
|
||||||
@@ -2098,6 +2099,7 @@ class ConfigTestCase(TestCase):
|
|
||||||
item = schema.NotItem(item=schema.BooleanItem())
|
|
||||||
self.assertEqual(item.serialize(), {"not": item.item.serialize()})
|
|
||||||
|
|
||||||
+ @skipIf(True, "Does not work in network sandbox")
|
|
||||||
@skipIf(HAS_JSONSCHEMA is False, "The 'jsonschema' library is missing")
|
|
||||||
def test_not_config_validation(self):
|
|
||||||
class TestConf(schema.Schema):
|
|
@ -1,11 +0,0 @@
|
|||||||
--- a/salt/_compat.py 2022-06-28 01:50:45.630746476 -0000
|
|
||||||
+++ b/salt/_compat.py 2022-06-28 01:51:52.970217848 -0000
|
|
||||||
@@ -14,7 +14,7 @@
|
|
||||||
if sys.version_info >= (3, 10):
|
|
||||||
# Python 3.10 will include a fix in importlib.metadata which allows us to
|
|
||||||
# get the distribution of a loaded entry-point
|
|
||||||
- import importlib.metadata # pylint: disable=no-member,no-name-in-module
|
|
||||||
+ import importlib.metadata as importlib_metadata # pylint: disable=no-member,no-name-in-module
|
|
||||||
else:
|
|
||||||
# importlib_metadata before version 3.3.0 does not include the functionality we need.
|
|
||||||
try:
|
|
@ -1,14 +0,0 @@
|
|||||||
diff --git a/tests/unit/utils/test_jinja.py b/tests/unit/utils/test_jinja.py
|
|
||||||
index 6502831aff..dec847364a 100644
|
|
||||||
--- a/tests/unit/utils/test_jinja.py
|
|
||||||
+++ b/tests/unit/utils/test_jinja.py
|
|
||||||
@@ -22,7 +22,8 @@ import salt.utils.files
|
|
||||||
import salt.utils.json
|
|
||||||
import salt.utils.stringutils
|
|
||||||
import salt.utils.yaml
|
|
||||||
-from jinja2 import DictLoader, Environment, Markup, exceptions
|
|
||||||
+from jinja2 import DictLoader, Environment, exceptions
|
|
||||||
+from markupsafe import Markup
|
|
||||||
from salt.exceptions import SaltRenderError
|
|
||||||
from salt.utils.decorators.jinja import JinjaFilter
|
|
||||||
from salt.utils.jinja import (
|
|
@ -1,35 +0,0 @@
|
|||||||
diff --git a/salt/log/handlers/logstash_mod.py b/salt/log/handlers/logstash_mod.py
|
|
||||||
index bc462018f5..7e0d98c5ba 100644
|
|
||||||
--- a/salt/log/handlers/logstash_mod.py
|
|
||||||
+++ b/salt/log/handlers/logstash_mod.py
|
|
||||||
@@ -160,6 +160,8 @@ import logging
|
|
||||||
import logging.handlers
|
|
||||||
import os
|
|
||||||
|
|
||||||
+import zmq
|
|
||||||
+
|
|
||||||
import salt.utils.json
|
|
||||||
import salt.utils.network
|
|
||||||
import salt.utils.stringutils
|
|
||||||
@@ -435,7 +437,7 @@ class ZMQLogstashHander(logging.Handler, NewStyleClassMixIn):
|
|
||||||
# Above the defined high water mark(unsent messages), start
|
|
||||||
# dropping them
|
|
||||||
self._publisher.setsockopt(zmq.HWM, self._zmq_hwm)
|
|
||||||
- except AttributeError:
|
|
||||||
+ except (AttributeError, zmq.error.ZMQError):
|
|
||||||
# In ZMQ >= 3.0, there are separate send and receive HWM
|
|
||||||
# settings
|
|
||||||
self._publisher.setsockopt(zmq.SNDHWM, self._zmq_hwm)
|
|
||||||
diff --git a/salt/transport/zeromq.py b/salt/transport/zeromq.py
|
|
||||||
index dc024d7eff..4c989095a5 100644
|
|
||||||
--- a/salt/transport/zeromq.py
|
|
||||||
+++ b/salt/transport/zeromq.py
|
|
||||||
@@ -902,7 +902,7 @@ class ZeroMQPubServerChannel(salt.transport.server.PubServerChannel):
|
|
||||||
try:
|
|
||||||
pub_sock.setsockopt(zmq.HWM, self.opts.get("pub_hwm", 1000))
|
|
||||||
# in zmq >= 3.0, there are separate send and receive HWM settings
|
|
||||||
- except AttributeError:
|
|
||||||
+ except (AttributeError, zmq.error.ZMQError):
|
|
||||||
# Set the High Water Marks. For more information on HWM, see:
|
|
||||||
# http://api.zeromq.org/4-1:zmq-setsockopt
|
|
||||||
pub_sock.setsockopt(zmq.SNDHWM, self.opts.get("pub_hwm", 1000))
|
|
@ -1,37 +0,0 @@
|
|||||||
commit b676e6338a7c094cb3335d11f851ac0e12222017
|
|
||||||
Author: MKLeb <calebb@vmware.com>
|
|
||||||
Date: Wed Oct 5 15:49:37 2022 -0400
|
|
||||||
|
|
||||||
Allow entrypoint compatibility for importlib-metadata>=5.0.0
|
|
||||||
|
|
||||||
diff --git a/salt/utils/entrypoints.py b/salt/utils/entrypoints.py
|
|
||||||
index 3effa0b494..ac65ae2df4 100644
|
|
||||||
--- a/salt/utils/entrypoints.py
|
|
||||||
+++ b/salt/utils/entrypoints.py
|
|
||||||
@@ -38,13 +38,20 @@ def iter_entry_points(group, name=None):
|
|
||||||
entry_points_listing = []
|
|
||||||
entry_points = importlib_metadata.entry_points()
|
|
||||||
|
|
||||||
- for entry_point_group, entry_points_list in entry_points.items():
|
|
||||||
- if entry_point_group != group:
|
|
||||||
- continue
|
|
||||||
- for entry_point in entry_points_list:
|
|
||||||
- if name is not None and entry_point.name != name:
|
|
||||||
+ # pre importlib-metadata 5.0.0
|
|
||||||
+ if hasattr(entry_points, "items"):
|
|
||||||
+ for entry_point_group, entry_points_list in entry_points.items():
|
|
||||||
+ if entry_point_group != group:
|
|
||||||
continue
|
|
||||||
- entry_points_listing.append(entry_point)
|
|
||||||
+ for entry_point in entry_points_list:
|
|
||||||
+ if name is not None and entry_point.name != name:
|
|
||||||
+ continue
|
|
||||||
+ entry_points_listing.append(entry_point)
|
|
||||||
+ # starting with importlib-metadata 5.0.0
|
|
||||||
+ for entry_point in entry_points.select(group=group):
|
|
||||||
+ if name is not None and entry_point.name != name:
|
|
||||||
+ continue
|
|
||||||
+ entry_points_listing.append(entry_point)
|
|
||||||
|
|
||||||
return entry_points_listing
|
|
||||||
|
|
@ -1,197 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
PYTHON_COMPAT=( python3_10 )
|
|
||||||
|
|
||||||
inherit systemd distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
|
||||||
HOMEPAGE="https://www.saltstack.com/resources/community/
|
|
||||||
https://github.com/saltstack"
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
|
|
||||||
EGIT_BRANCH="develop"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
KEYWORDS="amd64 ~arm ~arm64 ~riscv x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako
|
|
||||||
mongodb neutron nova openssl portage profile redis selinux test raet
|
|
||||||
+zeromq vim-syntax"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
sys-apps/pciutils
|
|
||||||
>=dev-python/distro-1.5[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jinja-3.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/libnacl[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/psutil-5.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pycryptodome-3.9.8[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/markupsafe[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tomli[${PYTHON_USEDEP}]
|
|
||||||
dev-python/watchdog[${PYTHON_USEDEP}]
|
|
||||||
libcloud? ( >=dev-python/libcloud-2.5.0[${PYTHON_USEDEP}] )
|
|
||||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
|
||||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
|
||||||
<dev-python/importlib_metadata-5[${PYTHON_USEDEP}]
|
|
||||||
libvirt? (
|
|
||||||
dev-python/libvirt-python[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
openssl? (
|
|
||||||
dev-libs/openssl:0=[-bindist(-)]
|
|
||||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
raet? (
|
|
||||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
|
||||||
cheetah? ( >=dev-python/cheetah3-3.2.2[${PYTHON_USEDEP}] )
|
|
||||||
genshi? ( dev-python/genshi[${PYTHON_USEDEP}] )
|
|
||||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
|
||||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
|
||||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
|
||||||
redis? ( dev-python/redis[${PYTHON_USEDEP}] )
|
|
||||||
selinux? ( sec-policy/selinux-salt )
|
|
||||||
nova? (
|
|
||||||
>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
neutron? (
|
|
||||||
>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
|
||||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
|
||||||
vim-syntax? ( app-vim/salt-vim )
|
|
||||||
zeromq? ( >=dev-python/pyzmq-19.0.0[${PYTHON_USEDEP}] )
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
${RDEPEND}
|
|
||||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mako[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
|
|
||||||
dev-python/passlib
|
|
||||||
dev-python/pip[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-salt-factories-1.0.0_rc13[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-tempdir[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-subtests[${PYTHON_USEDEP}]
|
|
||||||
dev-python/flaky[${PYTHON_USEDEP}]
|
|
||||||
dev-python/libcloud[${PYTHON_USEDEP}]
|
|
||||||
net-dns/bind-tools
|
|
||||||
>=dev-python/virtualenv-20.3.0[${PYTHON_USEDEP}]
|
|
||||||
!x86? ( >=dev-python/boto3-1.17.67[${PYTHON_USEDEP}] )
|
|
||||||
)"
|
|
||||||
|
|
||||||
DOCS=( README.rst AUTHORS )
|
|
||||||
|
|
||||||
REQUIRED_USE="|| ( raet zeromq )
|
|
||||||
test? ( cheetah genshi )"
|
|
||||||
RESTRICT="!test? ( test ) x86? ( test )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/salt-3003-skip-tests-that-oom-machine.patch"
|
|
||||||
"${FILESDIR}/salt-3003-gentoolkit-revdep.patch"
|
|
||||||
"${FILESDIR}/salt-3002-tests.patch"
|
|
||||||
"${FILESDIR}/salt-3003.1-tests.patch"
|
|
||||||
"${FILESDIR}/salt-3004.2-jinja-3.patch"
|
|
||||||
"${FILESDIR}/salt-3004.1-tests.patch"
|
|
||||||
"${FILESDIR}/salt-3004.1-relax-pyzmq-dep.patch"
|
|
||||||
"${FILESDIR}/salt-3004.1-py310.patch"
|
|
||||||
"${FILESDIR}/salt-3004.2-importlib.patch"
|
|
||||||
"${FILESDIR}/salt-3004.2-pyzmq-23.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
# remove tests with external dependencies that may not be available, and
|
|
||||||
# tests that don't work in sandbox
|
|
||||||
rm tests/unit/{test_{zypp_plugins,module_names},utils/test_extend}.py || die
|
|
||||||
rm tests/unit/modules/test_{file,boto_{vpc,secgroup,elb}}.py || die
|
|
||||||
rm tests/unit/states/test_boto_vpc.py || die
|
|
||||||
rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die
|
|
||||||
rm tests/pytests/functional/transport/server/test_req_channel.py || die
|
|
||||||
|
|
||||||
# tests that require network access
|
|
||||||
rm tests/unit/{states,modules}/test_zcbuildout.py || die
|
|
||||||
rm -r tests/integration/cloud || die
|
|
||||||
rm -r tests/kitchen/tests/wordpress/tests || die
|
|
||||||
rm tests/kitchen/test_kitchen.py || die
|
|
||||||
rm tests/unit/modules/test_network.py || die
|
|
||||||
rm tests/pytests/functional/modules/test_pip.py || die
|
|
||||||
rm tests/pytests/unit/client/ssh/test_ssh.py || die
|
|
||||||
|
|
||||||
# tests require root access
|
|
||||||
rm tests/integration/pillar/test_git_pillar.py || die
|
|
||||||
rm tests/integration/states/test_supervisord.py || die
|
|
||||||
|
|
||||||
# make sure pkg_resources doesn't bomb because pycrypto isn't installed
|
|
||||||
find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die
|
|
||||||
# pycryptodome rather than pycryptodomex
|
|
||||||
find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_prepare() {
|
|
||||||
einfo "Fixing collections.abc warnings for ${EPYTHON}"
|
|
||||||
local abc
|
|
||||||
abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die
|
|
||||||
find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die
|
|
||||||
|
|
||||||
# removes contextvars, see bug: https://bugs.gentoo.org/799431
|
|
||||||
sed -i '/^contextvars/d' requirements/base.txt || die
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
local svc
|
|
||||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
|
||||||
|
|
||||||
for svc in minion master syndic api; do
|
|
||||||
newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc}
|
|
||||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
|
||||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto /etc/${PN}
|
|
||||||
doins -r conf/*
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# testsuite likes lots of files
|
|
||||||
ulimit -n 4096 || die
|
|
||||||
|
|
||||||
# ${T} is too long a path for the tests to work
|
|
||||||
local TMPDIR
|
|
||||||
TMPDIR="$(mktemp --directory --tmpdir=/tmp ${PN}-XXXX)"
|
|
||||||
(
|
|
||||||
export TMPDIR
|
|
||||||
cleanup() { rm -rf "${TMPDIR}" || die; }
|
|
||||||
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
addwrite "${TMPDIR}"
|
|
||||||
|
|
||||||
USE_SETUPTOOLS=1 NO_INTERNET=1 SHELL="/bin/bash" \
|
|
||||||
"${EPYTHON}" -m pytest -vv \
|
|
||||||
|| die "testing failed with ${EPYTHON}"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
:
|
|
||||||
}
|
|
@ -1,206 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
PYTHON_COMPAT=( python3_10 )
|
|
||||||
|
|
||||||
inherit systemd distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
|
||||||
HOMEPAGE="https://www.saltstack.com/resources/community/
|
|
||||||
https://github.com/saltstack"
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
|
|
||||||
EGIT_BRANCH="develop"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="
|
|
||||||
cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako
|
|
||||||
mongodb neutron nova openssl portage profile redis selinux test raet
|
|
||||||
+zeromq vim-syntax
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
sys-apps/pciutils
|
|
||||||
>=dev-python/distro-1.5[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jinja-3.0.3[${PYTHON_USEDEP}]
|
|
||||||
dev-python/libnacl[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/psutil-5.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pycryptodome-3.9.8[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tomli[${PYTHON_USEDEP}]
|
|
||||||
dev-python/watchdog[${PYTHON_USEDEP}]
|
|
||||||
<dev-python/importlib_metadata-5[${PYTHON_USEDEP}]
|
|
||||||
libcloud? (
|
|
||||||
dev-python/aiohttp[${PYTHON_USEDEP}]
|
|
||||||
dev-python/aiosignal[${PYTHON_USEDEP}]
|
|
||||||
dev-python/async-timeout[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/libcloud-2.5.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
|
||||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
|
||||||
libvirt? (
|
|
||||||
dev-python/libvirt-python[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
openssl? (
|
|
||||||
dev-libs/openssl:0=[-bindist(-)]
|
|
||||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
raet? (
|
|
||||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
|
||||||
cheetah? ( >=dev-python/cheetah3-3.2.2[${PYTHON_USEDEP}] )
|
|
||||||
genshi? ( dev-python/genshi[${PYTHON_USEDEP}] )
|
|
||||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
|
||||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
|
||||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
|
||||||
redis? ( dev-python/redis[${PYTHON_USEDEP}] )
|
|
||||||
selinux? ( sec-policy/selinux-salt )
|
|
||||||
nova? (
|
|
||||||
>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
neutron? (
|
|
||||||
>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
|
||||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
|
||||||
vim-syntax? ( app-vim/salt-vim )
|
|
||||||
zeromq? ( >=dev-python/pyzmq-19.0.0[${PYTHON_USEDEP}] )
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
${RDEPEND}
|
|
||||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
|
||||||
dev-python/certifi[${PYTHON_USEDEP}]
|
|
||||||
dev-python/cherrypy[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mako[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/moto-2.0.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/passlib
|
|
||||||
dev-python/pip[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-7.0.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-salt-factories-1.0.0_rc17[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-tempdir[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-subtests[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-shell-utilities[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-skip-markers[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-system-statistics[${PYTHON_USEDEP}]
|
|
||||||
dev-python/flaky[${PYTHON_USEDEP}]
|
|
||||||
dev-python/libcloud[${PYTHON_USEDEP}]
|
|
||||||
net-dns/bind-tools
|
|
||||||
>=dev-python/virtualenv-20.3.0[${PYTHON_USEDEP}]
|
|
||||||
dev-util/yamllint[${PYTHON_USEDEP}]
|
|
||||||
!x86? ( >=dev-python/boto3-1.17.67[${PYTHON_USEDEP}] )
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( README.rst AUTHORS )
|
|
||||||
|
|
||||||
REQUIRED_USE="|| ( raet zeromq )
|
|
||||||
test? ( cheetah genshi )"
|
|
||||||
RESTRICT="!test? ( test ) x86? ( test )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/salt-3003-skip-tests-that-oom-machine.patch"
|
|
||||||
"${FILESDIR}/salt-3003-gentoolkit-revdep.patch"
|
|
||||||
"${FILESDIR}/salt-3002-tests.patch"
|
|
||||||
"${FILESDIR}/salt-3003.1-tests.patch"
|
|
||||||
"${FILESDIR}/salt-3005-relax-pyzmq-dep.patch"
|
|
||||||
"${FILESDIR}/salt-3005-tests.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
# remove tests with external dependencies that may not be available, and
|
|
||||||
# tests that don't work in sandbox
|
|
||||||
rm tests/unit/{test_{zypp_plugins,module_names},utils/test_extend}.py || die
|
|
||||||
rm tests/unit/modules/test_boto_{vpc,secgroup,elb}.py || die
|
|
||||||
rm tests/unit/states/test_boto_vpc.py || die
|
|
||||||
rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die
|
|
||||||
rm tests/pytests/functional/transport/server/test_req_channel.py || die
|
|
||||||
rm tests/pytests/functional/utils/test_async_event_publisher.py || die
|
|
||||||
rm tests/pytests/functional/runners/test_winrepo.py || die
|
|
||||||
|
|
||||||
# tests that require network access
|
|
||||||
rm tests/unit/{states,modules}/test_zcbuildout.py || die
|
|
||||||
rm -r tests/integration/cloud || die
|
|
||||||
rm -r tests/kitchen/tests/wordpress/tests || die
|
|
||||||
rm tests/kitchen/test_kitchen.py || die
|
|
||||||
rm tests/unit/modules/test_network.py || die
|
|
||||||
rm tests/pytests/functional/modules/test_pip.py || die
|
|
||||||
rm tests/pytests/unit/client/ssh/test_ssh.py || die
|
|
||||||
rm -r tests/pytests/{integration,functional}/netapi tests/integration/netapi || die
|
|
||||||
|
|
||||||
# tests require root access
|
|
||||||
rm tests/integration/pillar/test_git_pillar.py || die
|
|
||||||
rm tests/integration/states/test_supervisord.py || die
|
|
||||||
|
|
||||||
# make sure pkg_resources doesn't bomb because pycrypto isn't installed
|
|
||||||
find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die
|
|
||||||
# pycryptodome rather than pycryptodomex
|
|
||||||
find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_prepare() {
|
|
||||||
einfo "Fixing collections.abc warnings for ${EPYTHON}"
|
|
||||||
local abc
|
|
||||||
abc="$("${EPYTHON}" -c 'import collections.abc; print("|".join((c for c in dir(collections.abc) if not c.startswith("_"))))')" || die
|
|
||||||
find -name '*.py' -type f -print0 | xargs -0 sed -r -e "s:collections\\.(${abc}):collections.abc.\\1:g" -i || die
|
|
||||||
|
|
||||||
# removes contextvars, see bug: https://bugs.gentoo.org/799431
|
|
||||||
sed -i '/^contextvars/d' requirements/base.txt || die
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
local svc
|
|
||||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
|
||||||
|
|
||||||
for svc in minion master syndic api; do
|
|
||||||
newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc}
|
|
||||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
|
||||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto /etc/${PN}
|
|
||||||
doins -r conf/*
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# testsuite likes lots of files
|
|
||||||
ulimit -n 4096 || die
|
|
||||||
|
|
||||||
# ${T} is too long a path for the tests to work
|
|
||||||
local TMPDIR
|
|
||||||
TMPDIR="$(mktemp --directory --tmpdir=/tmp ${PN}-XXXX)"
|
|
||||||
(
|
|
||||||
export TMPDIR
|
|
||||||
cleanup() { rm -rf "${TMPDIR}" || die; }
|
|
||||||
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
addwrite "${TMPDIR}"
|
|
||||||
|
|
||||||
USE_SETUPTOOLS=1 NO_INTERNET=1 SHELL="/bin/bash" \
|
|
||||||
"${EPYTHON}" -m pytest -vv \
|
|
||||||
|| die "testing failed with ${EPYTHON}"
|
|
||||||
)
|
|
||||||
}
|
|
@ -1,219 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
PYTHON_COMPAT=( python3_10 )
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
inherit systemd distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Salt is a remote execution and configuration manager"
|
|
||||||
HOMEPAGE="https://www.saltstack.com/resources/community/
|
|
||||||
https://github.com/saltstack"
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999* ]]; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/${PN}stack/${PN}.git"
|
|
||||||
EGIT_BRANCH="develop"
|
|
||||||
SRC_URI=""
|
|
||||||
else
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="
|
|
||||||
cheetah cherrypy ldap libcloud libvirt genshi gnupg keyring mako
|
|
||||||
mongodb neutron nova openssl portage profile redis selinux test raet
|
|
||||||
+zeromq vim-syntax
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
sys-apps/pciutils
|
|
||||||
>=dev-python/distro-1.5[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jinja-3.0.3[${PYTHON_USEDEP}]
|
|
||||||
dev-python/jmespath[${PYTHON_USEDEP}]
|
|
||||||
dev-python/libnacl[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/msgpack-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/psutil-5.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pycryptodome-3.9.8[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/markupsafe-2.0.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tomli[${PYTHON_USEDEP}]
|
|
||||||
dev-python/watchdog[${PYTHON_USEDEP}]
|
|
||||||
libcloud? (
|
|
||||||
dev-python/aiohttp[${PYTHON_USEDEP}]
|
|
||||||
dev-python/aiosignal[${PYTHON_USEDEP}]
|
|
||||||
dev-python/async-timeout[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/libcloud-2.5.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
mako? ( dev-python/mako[${PYTHON_USEDEP}] )
|
|
||||||
ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
|
|
||||||
libvirt? (
|
|
||||||
dev-python/libvirt-python[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
openssl? (
|
|
||||||
dev-libs/openssl:0=[-bindist(-)]
|
|
||||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
raet? (
|
|
||||||
>=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
|
|
||||||
cheetah? ( >=dev-python/cheetah3-3.2.2[${PYTHON_USEDEP}] )
|
|
||||||
genshi? ( dev-python/genshi[${PYTHON_USEDEP}] )
|
|
||||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
|
||||||
portage? ( sys-apps/portage[${PYTHON_USEDEP}] )
|
|
||||||
keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
|
|
||||||
redis? ( dev-python/redis[${PYTHON_USEDEP}] )
|
|
||||||
selinux? ( sec-policy/selinux-salt )
|
|
||||||
nova? (
|
|
||||||
>=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
neutron? (
|
|
||||||
>=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )
|
|
||||||
profile? ( dev-python/yappi[${PYTHON_USEDEP}] )
|
|
||||||
vim-syntax? ( app-vim/salt-vim )
|
|
||||||
zeromq? ( >=dev-python/pyzmq-19.0.0[${PYTHON_USEDEP}] )
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
${RDEPEND}
|
|
||||||
>=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
|
|
||||||
dev-python/certifi[${PYTHON_USEDEP}]
|
|
||||||
dev-python/cherrypy[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/mako[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/moto-2.0.0[${PYTHON_USEDEP}]
|
|
||||||
dev-python/passlib
|
|
||||||
dev-python/pip[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyopenssl[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-7.0.1[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pytest-salt-factories-1.0.0_rc17[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-tempdir[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-subtests[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-shell-utilities[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-skip-markers[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-system-statistics[${PYTHON_USEDEP}]
|
|
||||||
dev-python/flaky[${PYTHON_USEDEP}]
|
|
||||||
dev-python/libcloud[${PYTHON_USEDEP}]
|
|
||||||
net-dns/bind-tools
|
|
||||||
>=dev-python/virtualenv-20.3.0[${PYTHON_USEDEP}]
|
|
||||||
dev-util/yamllint[${PYTHON_USEDEP}]
|
|
||||||
!x86? ( >=dev-python/boto3-1.17.67[${PYTHON_USEDEP}] )
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( README.rst AUTHORS )
|
|
||||||
|
|
||||||
REQUIRED_USE="|| ( raet zeromq )
|
|
||||||
test? ( cheetah genshi )"
|
|
||||||
RESTRICT="!test? ( test ) x86? ( test )"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/salt-3003-skip-tests-that-oom-machine.patch"
|
|
||||||
"${FILESDIR}/salt-3003-gentoolkit-revdep.patch"
|
|
||||||
"${FILESDIR}/salt-3002-tests.patch"
|
|
||||||
"${FILESDIR}/salt-3003.1-tests.patch"
|
|
||||||
"${FILESDIR}/salt-3005-relax-pyzmq-dep.patch"
|
|
||||||
"${FILESDIR}/salt-3005-tests.patch"
|
|
||||||
"${FILESDIR}/salt-3005.1-no-entry-points.patch"
|
|
||||||
"${FILESDIR}/salt-3005.1-importlib-metadata-5.patch"
|
|
||||||
"${FILESDIR}/salt-3005.1-tests.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
python_prepare_all() {
|
|
||||||
# remove tests with external dependencies that may not be available, and
|
|
||||||
# tests that don't work in sandbox
|
|
||||||
rm tests/unit/{test_{zypp_plugins,module_names},utils/test_extend}.py || die
|
|
||||||
rm tests/unit/modules/test_boto_{vpc,secgroup,elb}.py || die
|
|
||||||
rm tests/unit/states/test_boto_vpc.py || die
|
|
||||||
rm tests/support/gitfs.py tests/unit/runners/test_git_pillar.py || die
|
|
||||||
rm tests/pytests/functional/transport/server/test_req_channel.py || die
|
|
||||||
rm tests/pytests/functional/utils/test_async_event_publisher.py || die
|
|
||||||
rm tests/pytests/functional/runners/test_winrepo.py || die
|
|
||||||
|
|
||||||
# tests that require network access
|
|
||||||
rm tests/unit/{states,modules}/test_zcbuildout.py || die
|
|
||||||
rm -r tests/integration/cloud || die
|
|
||||||
rm -r tests/kitchen/tests/wordpress/tests || die
|
|
||||||
rm tests/kitchen/test_kitchen.py || die
|
|
||||||
rm tests/unit/modules/test_network.py || die
|
|
||||||
rm tests/pytests/functional/modules/test_pip.py || die
|
|
||||||
rm tests/pytests/unit/client/ssh/test_ssh.py || die
|
|
||||||
rm -r tests/pytests/{integration,functional}/netapi tests/integration/netapi || die
|
|
||||||
|
|
||||||
# tests require root access
|
|
||||||
rm tests/integration/pillar/test_git_pillar.py || die
|
|
||||||
rm tests/integration/states/test_supervisord.py || die
|
|
||||||
|
|
||||||
# removes contextvars, see bug: https://bugs.gentoo.org/799431
|
|
||||||
sed -i '/^contextvars/d' requirements/base.txt || die
|
|
||||||
|
|
||||||
# make sure pkg_resources doesn't bomb because pycrypto isn't installed
|
|
||||||
find "${S}" -name '*.txt' -print0 | xargs -0 sed -e '/pycrypto>/ d ; /pycryptodomex/ d' -i || die
|
|
||||||
# pycryptodome rather than pycryptodomex
|
|
||||||
find "${S}" -name '*.py' -print0 | xargs -0 -- sed -i -e 's:Cryptodome:Crypto:g' -- || die
|
|
||||||
|
|
||||||
distutils-r1_python_prepare_all
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
local svc
|
|
||||||
USE_SETUPTOOLS=1 distutils-r1_python_install_all
|
|
||||||
|
|
||||||
for svc in minion master syndic api; do
|
|
||||||
newinitd "${FILESDIR}"/${svc}-initd-5 salt-${svc}
|
|
||||||
newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
|
|
||||||
systemd_dounit "${FILESDIR}"/salt-${svc}.service
|
|
||||||
done
|
|
||||||
|
|
||||||
insinto /etc/${PN}
|
|
||||||
doins -r conf/*
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
# testsuite likes lots of files
|
|
||||||
ulimit -n 4096 || die
|
|
||||||
|
|
||||||
local -a disable_tests=(
|
|
||||||
# doesn't like the distutils warning
|
|
||||||
batch_retcode
|
|
||||||
multiple_modules_in_batch
|
|
||||||
# hangs indefinitely
|
|
||||||
master_type_disable
|
|
||||||
# needs root
|
|
||||||
runas_env_sudo_group
|
|
||||||
# don't like sandbox
|
|
||||||
split_multibyte_characters_{shiftjis,unicode}
|
|
||||||
# doesn't like sandbox env
|
|
||||||
log_sanitize
|
|
||||||
)
|
|
||||||
local textexpr
|
|
||||||
testexpr=$(printf 'not %s and ' "${disable_tests[@]}")
|
|
||||||
|
|
||||||
# ${T} is too long a path for the tests to work
|
|
||||||
local TMPDIR
|
|
||||||
TMPDIR="$(mktemp --directory --tmpdir=/tmp ${PN}-XXXX)" || die
|
|
||||||
(
|
|
||||||
export TMPDIR
|
|
||||||
cleanup() { rm -rf "${TMPDIR}" || die; }
|
|
||||||
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
addwrite "${TMPDIR}"
|
|
||||||
|
|
||||||
USE_SETUPTOOLS=1 NO_INTERNET=1 SHELL="/bin/bash" \
|
|
||||||
"${EPYTHON}" -m pytest -vv -k "${testexpr%and }" \
|
|
||||||
|| die "testing failed with ${EPYTHON}"
|
|
||||||
)
|
|
||||||
}
|
|
@ -1,84 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="System performance tools for Linux"
|
|
||||||
HOMEPAGE="http://sebastien.godard.pagesperso-orange.fr/"
|
|
||||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
|
||||||
IUSE="dcron debug nls lm-sensors lto selinux systemd"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
virtual/pkgconfig
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
"
|
|
||||||
|
|
||||||
COMMON_DEPEND="
|
|
||||||
nls? ( virtual/libintl )
|
|
||||||
lm-sensors? ( sys-apps/lm-sensors:= )
|
|
||||||
"
|
|
||||||
|
|
||||||
DEPEND="${COMMON_DEPEND}"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
!dcron? ( !sys-process/dcron )
|
|
||||||
selinux? ( sec-policy/selinux-sysstat )
|
|
||||||
"
|
|
||||||
|
|
||||||
REQUIRED_USE="dcron? ( !systemd )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use dcron; then
|
|
||||||
sed -i 's/@CRON_OWNER@ //g' cron/sysstat.crond.in || die
|
|
||||||
fi
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
tc-export AR
|
|
||||||
|
|
||||||
sa_lib_dir=/usr/lib/sa \
|
|
||||||
conf_dir=/etc \
|
|
||||||
econf \
|
|
||||||
$(use_enable !systemd use-crond) \
|
|
||||||
$(use_enable lm-sensors sensors) \
|
|
||||||
$(use_enable lto) \
|
|
||||||
$(use_enable nls) \
|
|
||||||
$(usex debug --enable-debuginfo '') \
|
|
||||||
--disable-compress-manpg \
|
|
||||||
--disable-stripping \
|
|
||||||
--disable-pcp \
|
|
||||||
--enable-copy-only \
|
|
||||||
--enable-documentation \
|
|
||||||
--enable-install-cron \
|
|
||||||
--with-systemdsystemunitdir=$(systemd_get_systemunitdir)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
LFLAGS="${LDFLAGS}" default
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
keepdir /var/log/sa
|
|
||||||
|
|
||||||
emake \
|
|
||||||
CHOWN=true \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
DOC_DIR=/usr/share/doc/${PF} \
|
|
||||||
MANGRPARG='' \
|
|
||||||
install
|
|
||||||
|
|
||||||
dodoc -r contrib/
|
|
||||||
|
|
||||||
newinitd "${FILESDIR}"/${PN}.init.d ${PN}
|
|
||||||
systemd_dounit ${PN}.service
|
|
||||||
|
|
||||||
rm "${D}"/usr/share/doc/${PF}/COPYING || die
|
|
||||||
}
|
|
@ -0,0 +1,86 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit fcaps go-module systemd
|
||||||
|
|
||||||
|
DESCRIPTION="A tool for managing secrets"
|
||||||
|
HOMEPAGE="https://vaultproject.io/"
|
||||||
|
|
||||||
|
VAULT_WEBUI_ARCHIVE="${P}-webui.tar.xz"
|
||||||
|
SRC_URI="https://github.com/zmedico/vault/archive/refs/tags/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz
|
||||||
|
webui? (
|
||||||
|
https://dev.gentoo.org/~zmedico/dist/${VAULT_WEBUI_ARCHIVE}
|
||||||
|
)"
|
||||||
|
|
||||||
|
LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64"
|
||||||
|
IUSE="+webui"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
app-arch/zip
|
||||||
|
dev-go/gox
|
||||||
|
>=dev-lang/go-1.15.3"
|
||||||
|
COMMON_DEPEND="acct-group/vault
|
||||||
|
acct-user/vault"
|
||||||
|
DEPEND="${COMMON_DEPEND}"
|
||||||
|
RDEPEND="${COMMON_DEPEND}"
|
||||||
|
|
||||||
|
FILECAPS=(
|
||||||
|
-m 755 'cap_ipc_lock=+ep' usr/bin/${PN}
|
||||||
|
)
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
S=${WORKDIR}/${P}-vendor
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
# Avoid the need to have a git checkout
|
||||||
|
sed -e 's:^\(GIT_COMMIT=\).*:\1:' \
|
||||||
|
-e 's:^\(GIT_DIRTY=\).*:\1:' \
|
||||||
|
-e s:\'\${GIT_COMMIT}\${GIT_DIRTY}\':: \
|
||||||
|
-e "s|^BUILD_DATE=.*|BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%SZ)|" \
|
||||||
|
-i scripts/build.sh || die
|
||||||
|
sed -e "/hooks/d" \
|
||||||
|
-e 's|^\([[:space:]]*\)goimports .*)|\1true|' \
|
||||||
|
-e "s/gofumpt/gofmt/g" \
|
||||||
|
-i Makefile || die
|
||||||
|
if [[ -d "${WORKDIR}/http/web_ui" ]]; then
|
||||||
|
rm -rf "${S}/http/web_ui" || die
|
||||||
|
mv "${WORKDIR}/http/web_ui" "${S}/http/web_ui" ||
|
||||||
|
die "mv failed"
|
||||||
|
else
|
||||||
|
mkdir -p "${S}/http/web_ui" || die
|
||||||
|
touch "${S}/http/web_ui/no_web_ui" || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
mkdir "${T}"/bin || die
|
||||||
|
BUILD_TAGS="$(usex webui ui '')" \
|
||||||
|
GOPATH="${T}" \
|
||||||
|
XC_ARCH=$(go env GOARCH) \
|
||||||
|
XC_OS=$(go env GOOS) \
|
||||||
|
XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \
|
||||||
|
emake bin
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/${PN}
|
||||||
|
dodoc CHANGELOG.md CONTRIBUTING.md README.md
|
||||||
|
insinto /etc/${PN}.d
|
||||||
|
doins "${FILESDIR}/"*.json.example
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||||
|
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||||
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||||
|
keepdir /var/log/${PN}
|
||||||
|
fowners ${PN}:${PN} /var/log/${PN}
|
||||||
|
}
|
@ -0,0 +1,86 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit fcaps go-module systemd
|
||||||
|
|
||||||
|
DESCRIPTION="A tool for managing secrets"
|
||||||
|
HOMEPAGE="https://vaultproject.io/"
|
||||||
|
|
||||||
|
VAULT_WEBUI_ARCHIVE="${P}-webui.tar.xz"
|
||||||
|
SRC_URI="https://github.com/zmedico/vault/archive/refs/tags/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz
|
||||||
|
webui? (
|
||||||
|
https://dev.gentoo.org/~zmedico/dist/${VAULT_WEBUI_ARCHIVE}
|
||||||
|
)"
|
||||||
|
|
||||||
|
LICENSE="MPL-2.0 Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||||
|
IUSE="+webui"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
app-arch/zip
|
||||||
|
dev-go/gox
|
||||||
|
>=dev-lang/go-1.15.3"
|
||||||
|
COMMON_DEPEND="acct-group/vault
|
||||||
|
acct-user/vault"
|
||||||
|
DEPEND="${COMMON_DEPEND}"
|
||||||
|
RDEPEND="${COMMON_DEPEND}"
|
||||||
|
|
||||||
|
FILECAPS=(
|
||||||
|
-m 755 'cap_ipc_lock=+ep' usr/bin/${PN}
|
||||||
|
)
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
S=${WORKDIR}/${P}-vendor
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
# Avoid the need to have a git checkout
|
||||||
|
sed -e 's:^\(GIT_COMMIT=\).*:\1:' \
|
||||||
|
-e 's:^\(GIT_DIRTY=\).*:\1:' \
|
||||||
|
-e s:\'\${GIT_COMMIT}\${GIT_DIRTY}\':: \
|
||||||
|
-e "s|^BUILD_DATE=.*|BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%SZ)|" \
|
||||||
|
-i scripts/build.sh || die
|
||||||
|
sed -e "/hooks/d" \
|
||||||
|
-e 's|^\([[:space:]]*\)goimports .*)|\1true|' \
|
||||||
|
-e "s/gofumpt/gofmt/g" \
|
||||||
|
-i Makefile || die
|
||||||
|
if [[ -d "${WORKDIR}/http/web_ui" ]]; then
|
||||||
|
rm -rf "${S}/http/web_ui" || die
|
||||||
|
mv "${WORKDIR}/http/web_ui" "${S}/http/web_ui" ||
|
||||||
|
die "mv failed"
|
||||||
|
else
|
||||||
|
mkdir -p "${S}/http/web_ui" || die
|
||||||
|
touch "${S}/http/web_ui/no_web_ui" || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
mkdir "${T}"/bin || die
|
||||||
|
BUILD_TAGS="$(usex webui ui '')" \
|
||||||
|
GOPATH="${T}" \
|
||||||
|
XC_ARCH=$(go env GOARCH) \
|
||||||
|
XC_OS=$(go env GOOS) \
|
||||||
|
XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \
|
||||||
|
emake bin
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/${PN}
|
||||||
|
dodoc CHANGELOG.md CONTRIBUTING.md README.md
|
||||||
|
insinto /etc/${PN}.d
|
||||||
|
doins "${FILESDIR}/"*.json.example
|
||||||
|
insinto /etc/logrotate.d
|
||||||
|
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||||
|
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||||
|
newconfd "${FILESDIR}/${PN}.confd" "${PN}"
|
||||||
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||||
|
keepdir /var/log/${PN}
|
||||||
|
fowners ${PN}:${PN} /var/log/${PN}
|
||||||
|
}
|
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
DIST bzip3-1.1.8.tar.xz 269668 BLAKE2B fe85ba2ecca8e2433501c13e57856720da731b6c959340a68dd4654a516c12e034a90ff6cd6aed55dd2160c3860fdc3e60cddd47ffd00737a657a2e6c73704af SHA512 36141a48f0d5b35de4b06117ceca3c5d5cdc3df6be187856f1436751984b0154942e0eece531ee7b191cc0cd7056960de6a1ca3ec0fc2bcc7ff1d50444cd1e3e
|
DIST bzip3-1.1.8.tar.xz 269668 BLAKE2B fe85ba2ecca8e2433501c13e57856720da731b6c959340a68dd4654a516c12e034a90ff6cd6aed55dd2160c3860fdc3e60cddd47ffd00737a657a2e6c73704af SHA512 36141a48f0d5b35de4b06117ceca3c5d5cdc3df6be187856f1436751984b0154942e0eece531ee7b191cc0cd7056960de6a1ca3ec0fc2bcc7ff1d50444cd1e3e
|
||||||
DIST bzip3-1.2.1.tar.xz 271652 BLAKE2B ef4eae00d93b00dd6dcf2d3beb980c5b0466e8d1af5b6a1c1a493c1524fb91043cbafe404d9ac6907491ab5e894676b3802b572125e14e9a8be19f7ffa22abaa SHA512 b20a7ea52f83a4ddfab0965e34809be66729b516688f1f04b8a21adf5c3c1ad0819dab416f3e844d88d8f52dbe098bedefe63f879c8a6322ffcb19f3f1b3d2d8
|
|
||||||
DIST bzip3-1.2.2.tar.xz 275872 BLAKE2B 601f0b150dee756d204c186f6ace5106fbc90189862cb1bcba7d4f2a2dd093ded64bb8feba0f214aac39ad138a23e6ef430a5e75829dd2ebab77c79d85342197 SHA512 476876f3949ac285e86625a9a83741308910ddce5b9449c0ca02b41d9c336f759b9702f2ce6b61243f1fde59a9ef8cf926fb2e94911828d5f39e207319bf522d
|
DIST bzip3-1.2.2.tar.xz 275872 BLAKE2B 601f0b150dee756d204c186f6ace5106fbc90189862cb1bcba7d4f2a2dd093ded64bb8feba0f214aac39ad138a23e6ef430a5e75829dd2ebab77c79d85342197 SHA512 476876f3949ac285e86625a9a83741308910ddce5b9449c0ca02b41d9c336f759b9702f2ce6b61243f1fde59a9ef8cf926fb2e94911828d5f39e207319bf522d
|
||||||
DIST bzip3-1.2.3.tar.xz 276568 BLAKE2B 08f762174ea565e4115cd7ee0e8d22bf5aae3f060955715cf7e0f22f388b99976baa571db501cc973fe93bcd5245e991ca149f097929336817169ea488bf8907 SHA512 cd83092c5f84d9491209a15a002def26bd1b1043631e4c6e90eb8e28d977da696a24c9e80994383943e104766d120acd5a7f6dc2f6892b16661ea1fe57745c53
|
DIST bzip3-1.2.3.tar.xz 276568 BLAKE2B 08f762174ea565e4115cd7ee0e8d22bf5aae3f060955715cf7e0f22f388b99976baa571db501cc973fe93bcd5245e991ca149f097929336817169ea488bf8907 SHA512 cd83092c5f84d9491209a15a002def26bd1b1043631e4c6e90eb8e28d977da696a24c9e80994383943e104766d120acd5a7f6dc2f6892b16661ea1fe57745c53
|
||||||
|
DIST bzip3-1.3.0.tar.xz 276724 BLAKE2B 4b9ddd4da193cc784265eb2584804cfe7ddb55947634dab9068f7df8d0f7ee8684b3ce1cc50df355780aa8514462d23e93ff637ce2ca552f3d09b32bf1edcde2 SHA512 3777f6f0c337b5014b510c97ca3d19c77e7e474482d9e83143186ab593967fcec3e19163b32b03e6d8243838091f24e45eca245e35f0a6e5e713f29873ad62c4
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A better and stronger spiritual successor to BZip2"
|
|
||||||
HOMEPAGE="https://github.com/kspalaiologos/bzip3"
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]] ; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://github.com/kspalaiologos/${PN}.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://github.com/kspalaiologos/${PN}/releases/download/${PV}/${P}.tar.xz"
|
|
||||||
KEYWORDS="amd64 arm64 ~loong ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
LICENSE="LGPL-3+"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# ./configure script will default to Clang if it is found on the system,
|
|
||||||
# force the use of CC selected by the user with CC=$(tc-getCC)
|
|
||||||
econf CC=$(tc-getCC)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
default
|
|
||||||
|
|
||||||
find "${ED}" -type f -name '*.la' -delete || die
|
|
||||||
}
|
|
@ -0,0 +1,32 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="A better and stronger spiritual successor to BZip2"
|
||||||
|
HOMEPAGE="https://github.com/kspalaiologos/bzip3"
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999* ]] ; then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/kspalaiologos/${PN}.git"
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/kspalaiologos/${PN}/releases/download/${PV}/${P}.tar.xz"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~loong ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="LGPL-3+"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# ./configure script will default to Clang if it is found on the system,
|
||||||
|
# force the use of CC selected by the user with CC=$(tc-getCC)
|
||||||
|
econf CC=$(tc-getCC)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
|
||||||
|
find "${ED}" -type f -name '*.la' -delete || die
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b SHA512 f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
|
DIST zstd-1.4.9.tar.gz 1834843 BLAKE2B 907f492bd023db9459bdc292a0bc4d1b6336d92dd7041eb2b36668589c20fcb98c411b85d78f92cd16d9b4a000d9c4125b5f966a5ca777034ae78210e639315b SHA512 f529db9c094f9ae26428bf1fdfcc91c6d783d400980e0f0d802d2cf13c2be2931465ef568907e03841ff76a369a1447e7371f8799d8526edb9a513ba5c6db133
|
||||||
DIST zstd-1.5.2.tar.gz 1950967 BLAKE2B 9d474e9fdcf7e5eb09d1f606712b05ca3001e8f6f7451254d8dba3f429101048532fd9c84a5b9083ae90d0457e9e1b1d48256581a1697e7db19b09d73595f070 SHA512 e107508a41fca50845cc2494e64adaba93efb95a2fa486fc962510a8ba4b2180d93067cae9870f119e88e5e8b28a046bc2240b0b23cdd8933d1fb1a6a9668c1e
|
DIST zstd-1.5.2.tar.gz 1950967 BLAKE2B 9d474e9fdcf7e5eb09d1f606712b05ca3001e8f6f7451254d8dba3f429101048532fd9c84a5b9083ae90d0457e9e1b1d48256581a1697e7db19b09d73595f070 SHA512 e107508a41fca50845cc2494e64adaba93efb95a2fa486fc962510a8ba4b2180d93067cae9870f119e88e5e8b28a046bc2240b0b23cdd8933d1fb1a6a9668c1e
|
||||||
DIST zstd-1.5.4.gh.tar.gz 2161536 BLAKE2B ffc5fcbbdf4ab04bc14b5037308bf4e879d4cbaaf863462ea1e8af3f1b86b935ee6036e49298c83ac42b00472c003e32c263c977f0ae7d64f31d9ae63c5c28cb SHA512 2896a6dd6b60cc251720356babcbab6018c874eb2149121b26e28041496fc355a9cb5fd1b39c91558fcfbafb789b3d721264a0f9b5734f893d5f3cdf97016394
|
DIST zstd-1.5.4.gh.tar.gz 2161536 BLAKE2B ffc5fcbbdf4ab04bc14b5037308bf4e879d4cbaaf863462ea1e8af3f1b86b935ee6036e49298c83ac42b00472c003e32c263c977f0ae7d64f31d9ae63c5c28cb SHA512 2896a6dd6b60cc251720356babcbab6018c874eb2149121b26e28041496fc355a9cb5fd1b39c91558fcfbafb789b3d721264a0f9b5734f893d5f3cdf97016394
|
||||||
|
DIST zstd-1.5.5.tar.gz 2368543 BLAKE2B 7680e27a0adacfb809d9fc81e06d3f99bf74df30374d3b5cb2d58f667dd1b7d5c41697e608592709e17c0e32277f20a6d615edee409b5d7cdcb15da2799a2350 SHA512 99109ec0e07fa65c2101c9cb36be56b672bbd0ee69d265f924718e61f9192ae8385c8d9e4d0c318be9edfa6d849fd3d60e5f164fa120961449429ea3c5dab6b6
|
||||||
|
@ -0,0 +1,73 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit meson-multilib usr-ldscript
|
||||||
|
|
||||||
|
DESCRIPTION="zstd fast compression library"
|
||||||
|
HOMEPAGE="https://facebook.github.io/zstd/"
|
||||||
|
SRC_URI="https://github.com/facebook/zstd/releases/download/v${PV}/${P}.tar.gz"
|
||||||
|
S="${WORKDIR}"/${P}/build/meson
|
||||||
|
|
||||||
|
LICENSE="|| ( BSD GPL-2 )"
|
||||||
|
SLOT="0/1"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="+lzma lz4 static-libs test zlib"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
lzma? ( app-arch/xz-utils )
|
||||||
|
lz4? ( app-arch/lz4:= )
|
||||||
|
zlib? ( sys-libs/zlib )
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
MESON_PATCHES=(
|
||||||
|
# Workaround until Valgrind bugfix lands
|
||||||
|
"${FILESDIR}"/${PN}-1.5.4-no-find-valgrind.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cd "${WORKDIR}"/${P} || die
|
||||||
|
default
|
||||||
|
|
||||||
|
cd "${S}" || die
|
||||||
|
eapply "${MESON_PATCHES[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
|
||||||
|
|
||||||
|
# This replaces the no-find-valgrind patch once bugfix lands in a meson
|
||||||
|
# release + we can BDEPEND on it (https://github.com/mesonbuild/meson/pull/11372)
|
||||||
|
cat >> ${native_file} <<-EOF || die
|
||||||
|
[binaries]
|
||||||
|
valgrind='valgrind-falseified'
|
||||||
|
EOF
|
||||||
|
|
||||||
|
local emesonargs=(
|
||||||
|
-Ddefault_library=$(multilib_native_usex static-libs both shared)
|
||||||
|
|
||||||
|
$(meson_native_true bin_programs)
|
||||||
|
$(meson_native_true bin_contrib)
|
||||||
|
$(meson_use test bin_tests)
|
||||||
|
|
||||||
|
$(meson_native_use_feature zlib)
|
||||||
|
$(meson_native_use_feature lzma)
|
||||||
|
$(meson_native_use_feature lz4)
|
||||||
|
|
||||||
|
--native-file "${native_file}"
|
||||||
|
)
|
||||||
|
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
meson_src_install
|
||||||
|
|
||||||
|
multilib_is_native_abi && gen_usr_ldscript -a zstd
|
||||||
|
}
|
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
DIST bareos-20.0.8.tar.gz 13429247 BLAKE2B 5576cf738fccad0ac39f7c92e8da01f4925d58e4373c8bc19f68ddb8cc8d6a07bf73dfd39bd2111766ccd20ce2da224680b8ab9adf7b84421874ae916e633f75 SHA512 1da30d0ff2f1fda2c4a41ec6d41ec60e3212b1bdb153c7f397931580894f31e36ab84f655d263aed47b9eb21e68ef7e59ec3b7bbd4f2c8981ae04b84733ffb68
|
DIST bareos-20.0.8.tar.gz 13429247 BLAKE2B 5576cf738fccad0ac39f7c92e8da01f4925d58e4373c8bc19f68ddb8cc8d6a07bf73dfd39bd2111766ccd20ce2da224680b8ab9adf7b84421874ae916e633f75 SHA512 1da30d0ff2f1fda2c4a41ec6d41ec60e3212b1bdb153c7f397931580894f31e36ab84f655d263aed47b9eb21e68ef7e59ec3b7bbd4f2c8981ae04b84733ffb68
|
||||||
DIST bareos-21.1.6.tar.gz 11654525 BLAKE2B 9b023a07e28098fd93aca57aead5b2bf993b85c52dc8f76870dc53ee88ec5995bcc908397173c7d3504c78214e37311442dd96bb563fa4382ae35904fef69e0a SHA512 e9ccafd379ea2a7ede2b6852fa544e7d4b63b23e9d91e8b747c1aecf5d764b06991a57f658842d48fbbe49335a92f29eea90e56b613a3123246a9cd9e8273f36
|
DIST bareos-21.1.7.tar.gz 11666508 BLAKE2B 8b5efffb987b53d1bc289aa104c10827c6bed630ffee16c26e8ab428ee20aa63a9e1e2fc03a7656d26f5905443b06c6a6f6d4860be413776874917e2c1cd0ef2 SHA512 2b7dfb16b74aa912449269efb92c85b6720f08526122c7dc9bfb648aed70b2ca81df41eacb60c53e2a154793c6ed209dd1571ecec7913a357e491064b1faab41
|
||||||
DIST bareos-22.0.2.tar.gz 14442217 BLAKE2B 34b8a506b608765f803cb788a203b7556dda67ae8bdd2cb82e1c8ea1ea8a07759f381c33b25e743d296417bef1072ccfcfecf536096cc1babdf20c57767cc369 SHA512 924e07aafa44829730f367a29f0a17356d06d5e44bcbe511936ebfe582912439010d8376370530982dfdfe54d8a722ff257648634cea429cbfbd566d2c25e464
|
DIST bareos-22.0.3.tar.gz 14529338 BLAKE2B 7759059f8652cf0b55a8754325b86257130695918f0b2d4672a7a21aa3ed6595da9fcba9a5a5f1c854af7994aa21c304720131ab99d577f01cd706f55184b621 SHA512 cbdf4bfb5284104894e7fb8ddbb20d6ecedd827c8133b13913e9a27c4e3b98b550ec60a9a23c2c4efe6d566c94ed745d77946a444e5fccb56c09ab8f740d9f8c
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
DIST borgmatic-1.7.10.tar.gz 361036 BLAKE2B c4d81ef9a69c5ff5f8bf3d55a209f62f9c721f76207c996f335a5a5212533f93e71c77a2f4fee709de1228d0dcb8cfddf90d6734446f26f4fb7f0282acba0e18 SHA512 6b555afdbf60623632ac27824f48fb974cf9cce0bd9101beda01757749746221b5045b915497b69778726a7a528a618594a6259526d684dc43d8f90fbf8757f1
|
DIST borgmatic-1.7.10.tar.gz 361036 BLAKE2B c4d81ef9a69c5ff5f8bf3d55a209f62f9c721f76207c996f335a5a5212533f93e71c77a2f4fee709de1228d0dcb8cfddf90d6734446f26f4fb7f0282acba0e18 SHA512 6b555afdbf60623632ac27824f48fb974cf9cce0bd9101beda01757749746221b5045b915497b69778726a7a528a618594a6259526d684dc43d8f90fbf8757f1
|
||||||
|
DIST borgmatic-1.7.11.tar.gz 365247 BLAKE2B a06737c48722fdf24efca76d40f6b413f39635b4137685d6279bf7a7dd002fadef28dab35a503fabf872c732a0f32fbff8c791fa9b4602299937aeae568d6137 SHA512 cedca889cd409e92484c15240fd8da91c655f81e38c6672d25e44feedc4adf6594281d92f7072fd11edc5c9f8589098226a3520e71e3441ee7a7acf97e1b2daa
|
||||||
DIST borgmatic-1.7.5.tar.gz 338412 BLAKE2B e27fd709070a27c2ddd01fdfe23ef9caeb942c52d756332b4abd6d6cf39724656677a0d142a5392e35e0a0f25958421fe23edf04a252d212d761f48a0c320d9b SHA512 c27a364617e0e8fc1c11adac5375deac4e1663236a545d3fb70280974614d50ffe3821010ed5e4345afa3c3dab5f45c0d3bbfc946f50321601acb56965fd555d
|
DIST borgmatic-1.7.5.tar.gz 338412 BLAKE2B e27fd709070a27c2ddd01fdfe23ef9caeb942c52d756332b4abd6d6cf39724656677a0d142a5392e35e0a0f25958421fe23edf04a252d212d761f48a0c320d9b SHA512 c27a364617e0e8fc1c11adac5375deac4e1663236a545d3fb70280974614d50ffe3821010ed5e4345afa3c3dab5f45c0d3bbfc946f50321601acb56965fd555d
|
||||||
DIST borgmatic-1.7.8.tar.gz 350233 BLAKE2B 3fcd392983f73ec5e97f0dc6b96e211d7f1e1d1a4ce95c635c675cf043e796925df53c30c1e4f8eb1a095d9ec5ff81e90edee5ff2576f4683053d3108004afd9 SHA512 bcc65fdb7ea1171fb61deda9b1f69a00596e1e10a99508d336977b694bd8f93d74837aad9211bf1065b785220aaf1460a3ea403bf23fa4873d1bf4c6b4016525
|
DIST borgmatic-1.7.8.tar.gz 350233 BLAKE2B 3fcd392983f73ec5e97f0dc6b96e211d7f1e1d1a4ce95c635c675cf043e796925df53c30c1e4f8eb1a095d9ec5ff81e90edee5ff2576f4683053d3108004afd9 SHA512 bcc65fdb7ea1171fb61deda9b1f69a00596e1e10a99508d336977b694bd8f93d74837aad9211bf1065b785220aaf1460a3ea403bf23fa4873d1bf4c6b4016525
|
||||||
|
@ -0,0 +1,73 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
DISTUTILS_SINGLE_IMPL=1
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
|
||||||
|
inherit distutils-r1 systemd pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Automatically create, prune and verify backups with borgbackup"
|
||||||
|
HOMEPAGE="https://torsion.org/borgmatic/"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
|
||||||
|
|
||||||
|
# borg is called as an external tool, hence no pythonic stuff
|
||||||
|
RDEPEND="app-backup/borgbackup
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
<dev-python/colorama-0.5[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/ruamel-yaml-0.18.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
')"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
>=dev-python/flexmock-0.10.10[${PYTHON_USEDEP}]
|
||||||
|
')
|
||||||
|
)"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-1.5.1-no_test_coverage.patch
|
||||||
|
"${FILESDIR}"/${PN}-1.7.3-systemd_service_bin_path.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
# A fragile test whose only purpose is to make sure the NEWS file
|
||||||
|
# has been updated for the current version.
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
tests/integration/commands/test_borgmatic.py::test_borgmatic_version_matches_news_version
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
distutils-r1_src_install
|
||||||
|
systemd_dounit sample/systemd/borgmatic.{service,timer}
|
||||||
|
keepdir /etc/borgmatic
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||||
|
elog "To generate a sample configuration file, run:"
|
||||||
|
elog " generate-borgmatic-config"
|
||||||
|
else
|
||||||
|
local oldver
|
||||||
|
for oldver in ${REPLACING_VERSIONS}; do
|
||||||
|
if ver_test "${oldver}" -lt 1.7.11; then
|
||||||
|
ewarn "Since version 1.7.11 ${PN} defaults to a different way of selecting archives for multi-archive actions."
|
||||||
|
ewarn "For details, please see"
|
||||||
|
ewarn
|
||||||
|
ewarn " https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/#archive-naming"
|
||||||
|
ewarn
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
elog
|
||||||
|
elog "Systemd users wishing to periodically run borgmatic can use the provided timer and service units."
|
||||||
|
}
|
@ -1,3 +1,3 @@
|
|||||||
DIST mkstage4-0.3.1.tar.gz 19416 BLAKE2B d9d2ec0d9c3aba6331e2500f927cdeace8b728a535f9cc4b4cb8ea93fb7dea2bc5f95be5dbea76c9948836f35bea832a9fdb2acea34518f9a4b5a456507973e0 SHA512 f58c89d0d9cc3a65cfa62cc18b0c5f172a69d4b4582e839e98ecd52cafd584395a91e5531ceb171dacd5e4975d6858ae91c5f97a26b62dab0f4ab809f7bcd4c0
|
DIST mkstage4-0.3.1.tar.gz 19416 BLAKE2B d9d2ec0d9c3aba6331e2500f927cdeace8b728a535f9cc4b4cb8ea93fb7dea2bc5f95be5dbea76c9948836f35bea832a9fdb2acea34518f9a4b5a456507973e0 SHA512 f58c89d0d9cc3a65cfa62cc18b0c5f172a69d4b4582e839e98ecd52cafd584395a91e5531ceb171dacd5e4975d6858ae91c5f97a26b62dab0f4ab809f7bcd4c0
|
||||||
DIST mkstage4-0.3.tar.gz 18648 BLAKE2B 3a881bc1ec14f5c9795d49306966b586c30a8b415542fb500b5a2af7735008832ebc64f0a166ea4e2fdb48a555bd789b352784f1b05118116ae3f634937beed6 SHA512 6971bf4b43a2fdef0b54802b010c99e95caf896c8e109c54f5a6beb4db1714ea5639e0859ba3f958eed92b9fc6a3bb613bb82de440729e71e53543d60549d2db
|
DIST mkstage4-0.4.2.tar.gz 19860 BLAKE2B d5ab8c0bfd79796ec0f5310a52ed3ba6290b6cc11272a3d69408617f84758981b912628c5f796c1db5129a23db26049e14bf289e6f63f95e2877ab983e568c87 SHA512 2b481950f443e8f62ba837fe3d4238db79299776f3a115696e999a484ff6bb664bc54c74e61d31ff8d827c8c9c1174225d613d39ab5d93e0106725889990bd6d
|
||||||
DIST mkstage4-0.4.tar.gz 19769 BLAKE2B 833b343f8d8deba2914c24aad07b802f551102f598fa6b149ad2aa8df3b96d189b8a29be8904e510cc4200609b4a2a19d83c510c58745b734898a119ae259313 SHA512 13f867c45fe9891754e62f2204e35260ce9c6a756eddea807800cce5cb5d9e7a1b21c27dd0d5142a13bc8b88c441cf618ba5ce6827a0644f6468759062a9e34c
|
DIST mkstage4-0.4.tar.gz 19769 BLAKE2B 833b343f8d8deba2914c24aad07b802f551102f598fa6b149ad2aa8df3b96d189b8a29be8904e510cc4200609b4a2a19d83c510c58745b734898a119ae259313 SHA512 13f867c45fe9891754e62f2204e35260ce9c6a756eddea807800cce5cb5d9e7a1b21c27dd0d5142a13bc8b88c441cf618ba5ce6827a0644f6468759062a9e34c
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
DESCRIPTION="Bash Utility for Creating Stage 4 Tarballs"
|
|
||||||
HOMEPAGE="https://github.com/TheChymera/mkstage4"
|
|
||||||
SRC_URI="https://github.com/TheChymera/mkstage4/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
DEPEND="test? ( dev-util/bats )"
|
|
||||||
RDEPEND="
|
|
||||||
app-shells/bash
|
|
||||||
app-arch/tar
|
|
||||||
"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
newbin mkstage4.sh mkstage4
|
|
||||||
einstalldocs
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
bats tests/* || die
|
|
||||||
}
|
|
@ -0,0 +1,30 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Bash Utility for Creating Stage 4 Tarballs"
|
||||||
|
HOMEPAGE="https://github.com/TheChymera/mkstage4"
|
||||||
|
SRC_URI="https://github.com/TheChymera/mkstage4/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
DEPEND="test? ( dev-util/bats )"
|
||||||
|
RDEPEND="
|
||||||
|
app-shells/bash
|
||||||
|
app-arch/tar
|
||||||
|
"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
newbin mkstage4.sh mkstage4
|
||||||
|
newbin exstage4.sh exstage4
|
||||||
|
einstalldocs
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
bats -r tests/* || die
|
||||||
|
}
|
@ -1,3 +1,2 @@
|
|||||||
DIST rdiff-backup-2.0.5.tar.gz 456115 BLAKE2B 9cd51644e11af3320fa5aca7864388da4b1165a1fc9e660265445d861eb356ba32e3b148a1d8de8e702bd9a6f0276ec3a4453c85ec702d80be5839661a1a679f SHA512 59482e6d78bc887fc99efd4b4779e9b41c7e4b0427e51b80b18a550d0051e4213a0c200296154759d1734f511f7abe3175d171f018c59c55e5abdfd0a890cfbd
|
DIST rdiff-backup-2.0.5.tar.gz 456115 BLAKE2B 9cd51644e11af3320fa5aca7864388da4b1165a1fc9e660265445d861eb356ba32e3b148a1d8de8e702bd9a6f0276ec3a4453c85ec702d80be5839661a1a679f SHA512 59482e6d78bc887fc99efd4b4779e9b41c7e4b0427e51b80b18a550d0051e4213a0c200296154759d1734f511f7abe3175d171f018c59c55e5abdfd0a890cfbd
|
||||||
DIST rdiff-backup-2.2.3.tar.gz 940780 BLAKE2B 37f36ab06e3ebbe67f42af9edc26e1862b11043777775fc100ffdbdc44f9442972601df1fb298c5ca0c5caebb18e0bdfeff86cdc1636a2a615c5f830448373a2 SHA512 5b243316deb04b444c48f64677979e9df208a21699bfd6af0f1459cea331d60deb37f664d168b3ec45a9a774a8898d5d0a8b0e3e9bf711931839e2d1174fd4d0
|
|
||||||
DIST rdiff-backup-2.2.4.tar.gz 941625 BLAKE2B 5635c8a418f482d44bac354415f33ec46d7f82fe4212517aef65712977ff9024c253515ef74b5696d200cf3d2b4f132887c22d35b633f02963ce56cab687b89d SHA512 3777038f90a702aaf0d87737ccd79dd6a0bc9d6bd49dc8154fbcd240b9b1971f5a5f3cc0ebffb623f1eeec82cb939fbdee75a813d27ef9eb78d5700ecc2716b5
|
DIST rdiff-backup-2.2.4.tar.gz 941625 BLAKE2B 5635c8a418f482d44bac354415f33ec46d7f82fe4212517aef65712977ff9024c253515ef74b5696d200cf3d2b4f132887c22d35b633f02963ce56cab687b89d SHA512 3777038f90a702aaf0d87737ccd79dd6a0bc9d6bd49dc8154fbcd240b9b1971f5a5f3cc0ebffb623f1eeec82cb939fbdee75a813d27ef9eb78d5700ecc2716b5
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
From 5e5cc54b5a633d3c6c0469283b2f26dbdde7908f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Frank Crawford <frank@crawford.emu.id.au>
|
||||||
|
Date: Sun, 2 Jan 2022 18:44:57 +1100
|
||||||
|
Subject: [PATCH] Added patch for Python3.11 as per bpo-39573.
|
||||||
|
|
||||||
|
---
|
||||||
|
src/_librsyncmodule.c | 15 +++++++++++++--
|
||||||
|
1 file changed, 13 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/_librsyncmodule.c b/src/_librsyncmodule.c
|
||||||
|
index a46567fc4..158104d2e 100644
|
||||||
|
--- a/src/_librsyncmodule.c
|
||||||
|
+++ b/src/_librsyncmodule.c
|
||||||
|
@@ -25,6 +25,16 @@
|
||||||
|
#include <librsync.h>
|
||||||
|
#define RSM_JOB_BLOCKSIZE 65536
|
||||||
|
|
||||||
|
+/* ----------------------------------------------------------------------- *
|
||||||
|
+ * Update for Python 3.11 - Contributed by Victor Stinner in bpo-39573.
|
||||||
|
+ * Compatibility macro for older Python versions.
|
||||||
|
+ * ----------------------------------------------------------------------- */
|
||||||
|
+#if PY_VERSION_HEX < 0x030900A4 && !defined(Py_SET_TYPE)
|
||||||
|
+static inline void _Py_SET_TYPE(PyObject *ob, PyTypeObject *type)
|
||||||
|
+{ ob->ob_type = type; }
|
||||||
|
+#define Py_SET_TYPE(ob, type) _Py_SET_TYPE((PyObject*)(ob), type)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
static PyObject *librsyncError;
|
||||||
|
|
||||||
|
/* Sets python error string from result */
|
||||||
|
@@ -540,8 +550,9 @@ PyMODINIT_FUNC PyInit__librsync(void)
|
||||||
|
{
|
||||||
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
- Py_TYPE(&_librsync_SigMakerType) = &PyType_Type;
|
||||||
|
- Py_TYPE(&_librsync_DeltaMakerType) = &PyType_Type;
|
||||||
|
+ /* Update for Python 3.11 - bpo-39573. */
|
||||||
|
+ Py_SET_TYPE(&_librsync_SigMakerType, &PyType_Type);
|
||||||
|
+ Py_SET_TYPE(&_librsync_DeltaMakerType, &PyType_Type);
|
||||||
|
static struct PyModuleDef librsync_def = {
|
||||||
|
PyModuleDef_HEAD_INIT, "_librsync", "RSync Lib", -1, _librsyncMethods, };
|
||||||
|
m = PyModule_Create(&librsync_def);
|
@ -1,29 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{9..11} )
|
|
||||||
PYPI_NO_NORMALIZE=1
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
inherit distutils-r1 pypi
|
|
||||||
|
|
||||||
DESCRIPTION="Local/remote mirroring+incremental backup"
|
|
||||||
HOMEPAGE="https://github.com/rdiff-backup/rdiff-backup"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
|
||||||
# Tests use a tox environment and separate steps for test env preparation
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
DEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]
|
|
||||||
>=net-libs/librsync-1.0:0="
|
|
||||||
RDEPEND="dev-python/pylibacl[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyxattr[${PYTHON_USEDEP}]
|
|
||||||
>=net-libs/librsync-1.0:0="
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -e "s#share/doc/${PN}#share/doc/${PF}#" -i setup.py || die
|
|
||||||
default
|
|
||||||
}
|
|
@ -0,0 +1,30 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} )
|
||||||
|
PYPI_NO_NORMALIZE=1
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
inherit distutils-r1 pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Local/remote mirroring+incremental backup"
|
||||||
|
HOMEPAGE="https://github.com/rdiff-backup/rdiff-backup"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||||
|
# Tests use a tox environment and separate steps for test env preparation
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
RDEPEND="dev-python/pylibacl[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyxattr[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
>=net-libs/librsync-1.0:0="
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-python/setuptools-scm[${PYTHON_USEDEP}]"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -e "s#share/doc/${PN}#share/doc/${PF}#" -i setup.py || die
|
||||||
|
default
|
||||||
|
}
|
@ -1,29 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{9..11} )
|
|
||||||
PYPI_NO_NORMALIZE=1
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
inherit distutils-r1 pypi
|
|
||||||
|
|
||||||
DESCRIPTION="Local/remote mirroring+incremental backup"
|
|
||||||
HOMEPAGE="https://github.com/rdiff-backup/rdiff-backup"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
|
||||||
# Tests use a tox environment and separate steps for test env preparation
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
DEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]
|
|
||||||
>=net-libs/librsync-1.0:0="
|
|
||||||
RDEPEND="dev-python/pylibacl[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyxattr[${PYTHON_USEDEP}]
|
|
||||||
>=net-libs/librsync-1.0:0="
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
sed -e "s#share/doc/${PN}#share/doc/${PF}#" -i setup.py || die
|
|
||||||
default
|
|
||||||
}
|
|
Binary file not shown.
@ -0,0 +1,175 @@
|
|||||||
|
# Copyright 2020-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
CRATES="
|
||||||
|
ahash-0.7.6
|
||||||
|
ahash-0.8.3
|
||||||
|
aho-corasick-0.7.20
|
||||||
|
anyhow-1.0.69
|
||||||
|
approx-0.5.1
|
||||||
|
arrayvec-0.7.2
|
||||||
|
assert_cmd-2.0.8
|
||||||
|
atty-0.2.14
|
||||||
|
autocfg-0.1.8
|
||||||
|
autocfg-1.1.0
|
||||||
|
bitflags-1.3.2
|
||||||
|
borsh-0.10.2
|
||||||
|
borsh-derive-0.10.2
|
||||||
|
borsh-derive-internal-0.10.2
|
||||||
|
borsh-schema-derive-internal-0.10.2
|
||||||
|
bstr-1.3.0
|
||||||
|
bytecheck-0.6.10
|
||||||
|
bytecheck_derive-0.6.10
|
||||||
|
byteorder-1.4.3
|
||||||
|
bytes-1.4.0
|
||||||
|
cc-1.0.79
|
||||||
|
cfg-if-1.0.0
|
||||||
|
clap-4.1.8
|
||||||
|
clap_complete-4.1.4
|
||||||
|
clap_lex-0.3.2
|
||||||
|
cloudabi-0.0.3
|
||||||
|
colored-2.0.0
|
||||||
|
console-0.15.5
|
||||||
|
csv-1.2.1
|
||||||
|
csv-core-0.1.10
|
||||||
|
difflib-0.4.0
|
||||||
|
doc-comment-0.3.3
|
||||||
|
either-1.8.1
|
||||||
|
encode_unicode-0.3.6
|
||||||
|
errno-0.2.8
|
||||||
|
errno-dragonfly-0.1.2
|
||||||
|
fastrand-1.9.0
|
||||||
|
float-cmp-0.9.0
|
||||||
|
fuchsia-cprng-0.1.1
|
||||||
|
getrandom-0.2.8
|
||||||
|
hashbrown-0.12.3
|
||||||
|
hashbrown-0.13.2
|
||||||
|
hermit-abi-0.1.19
|
||||||
|
hermit-abi-0.3.1
|
||||||
|
indicatif-0.17.3
|
||||||
|
instant-0.1.12
|
||||||
|
io-lifetimes-1.0.6
|
||||||
|
is-terminal-0.4.4
|
||||||
|
itertools-0.10.5
|
||||||
|
itoa-1.0.6
|
||||||
|
lazy_static-1.4.0
|
||||||
|
libc-0.2.140
|
||||||
|
linux-raw-sys-0.1.4
|
||||||
|
memchr-2.5.0
|
||||||
|
memoffset-0.7.1
|
||||||
|
nix-0.26.2
|
||||||
|
normalize-line-endings-0.3.0
|
||||||
|
num-0.2.1
|
||||||
|
num-bigint-0.2.6
|
||||||
|
num-complex-0.2.4
|
||||||
|
num-integer-0.1.45
|
||||||
|
num-iter-0.1.43
|
||||||
|
num-rational-0.2.4
|
||||||
|
num-traits-0.2.15
|
||||||
|
number_prefix-0.4.0
|
||||||
|
once_cell-1.17.1
|
||||||
|
os_str_bytes-6.4.1
|
||||||
|
pin-utils-0.1.0
|
||||||
|
portable-atomic-0.3.19
|
||||||
|
ppv-lite86-0.2.17
|
||||||
|
predicates-2.1.5
|
||||||
|
predicates-core-1.0.5
|
||||||
|
predicates-tree-1.0.7
|
||||||
|
proc-macro-crate-0.1.5
|
||||||
|
proc-macro2-1.0.52
|
||||||
|
ptr_meta-0.1.4
|
||||||
|
ptr_meta_derive-0.1.4
|
||||||
|
quote-1.0.26
|
||||||
|
rand-0.6.5
|
||||||
|
rand-0.8.5
|
||||||
|
rand_chacha-0.1.1
|
||||||
|
rand_chacha-0.3.1
|
||||||
|
rand_core-0.3.1
|
||||||
|
rand_core-0.4.2
|
||||||
|
rand_core-0.6.4
|
||||||
|
rand_hc-0.1.0
|
||||||
|
rand_isaac-0.1.1
|
||||||
|
rand_jitter-0.1.4
|
||||||
|
rand_os-0.1.3
|
||||||
|
rand_pcg-0.1.2
|
||||||
|
rand_xorshift-0.1.1
|
||||||
|
rdrand-0.4.0
|
||||||
|
redox_syscall-0.2.16
|
||||||
|
regex-1.7.1
|
||||||
|
regex-automata-0.1.10
|
||||||
|
regex-syntax-0.6.28
|
||||||
|
rend-0.4.0
|
||||||
|
rkyv-0.7.40
|
||||||
|
rkyv_derive-0.7.40
|
||||||
|
rust_decimal-1.29.0
|
||||||
|
rustix-0.36.9
|
||||||
|
ryu-1.0.13
|
||||||
|
seahash-4.1.0
|
||||||
|
serde-1.0.156
|
||||||
|
serde_derive-1.0.156
|
||||||
|
serde_json-1.0.94
|
||||||
|
shell-words-1.1.0
|
||||||
|
simdutf8-0.1.4
|
||||||
|
static_assertions-1.1.0
|
||||||
|
statistical-1.0.0
|
||||||
|
strsim-0.10.0
|
||||||
|
syn-1.0.109
|
||||||
|
tempfile-3.4.0
|
||||||
|
termcolor-1.2.0
|
||||||
|
terminal_size-0.2.5
|
||||||
|
termtree-0.4.0
|
||||||
|
thiserror-1.0.39
|
||||||
|
thiserror-impl-1.0.39
|
||||||
|
toml-0.5.11
|
||||||
|
unicode-ident-1.0.8
|
||||||
|
unicode-width-0.1.10
|
||||||
|
version_check-0.9.4
|
||||||
|
wait-timeout-0.2.0
|
||||||
|
wasi-0.11.0+wasi-snapshot-preview1
|
||||||
|
winapi-0.3.9
|
||||||
|
winapi-i686-pc-windows-gnu-0.4.0
|
||||||
|
winapi-util-0.1.5
|
||||||
|
winapi-x86_64-pc-windows-gnu-0.4.0
|
||||||
|
windows-sys-0.42.0
|
||||||
|
windows-sys-0.45.0
|
||||||
|
windows-targets-0.42.2
|
||||||
|
windows_aarch64_gnullvm-0.42.2
|
||||||
|
windows_aarch64_msvc-0.42.2
|
||||||
|
windows_i686_gnu-0.42.2
|
||||||
|
windows_i686_msvc-0.42.2
|
||||||
|
windows_x86_64_gnu-0.42.2
|
||||||
|
windows_x86_64_gnullvm-0.42.2
|
||||||
|
windows_x86_64_msvc-0.42.2
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
inherit bash-completion-r1 cargo
|
||||||
|
|
||||||
|
DESCRIPTION="A command-line benchmarking tool (runs other benchmarks)"
|
||||||
|
HOMEPAGE="https://github.com/sharkdp/hyperfine"
|
||||||
|
SRC_URI="https://github.com/sharkdp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
$(cargo_crate_uris ${CRATES})"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unicode-DFS-2016"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv"
|
||||||
|
|
||||||
|
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local build_dir="$(dirname $(find target/ -name ${PN}.bash -print -quit))"
|
||||||
|
|
||||||
|
newbashcomp "${build_dir}/${PN}.bash" "${PN}"
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
doins "${build_dir}/_${PN}"
|
||||||
|
|
||||||
|
insinto /usr/share/fish/vendor_completions.d
|
||||||
|
doins "${build_dir}/${PN}.fish"
|
||||||
|
|
||||||
|
cargo_src_install
|
||||||
|
doman doc/hyperfine.1
|
||||||
|
einstalldocs
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST cdrdao-1.2.4.tar.gz 1603363 BLAKE2B 9c22d21a391b6b1b6ded19f88506acd22e681a43ed91b1c71d20de27ce93cc74381d4efe8574adc929a189143c81f5838ca8d8227ec0e2e05a593f0df9547964 SHA512 decdc9d83fe380a4a05443ac26366eb3288d24bd7ed6c16d006707abb616dab91858a59af6638f2d7a72bc7bb6425dbfddd119ca492d18f07afbb27341b23d0b
|
DIST cdrdao-1.2.4.tar.gz 1603363 BLAKE2B 9c22d21a391b6b1b6ded19f88506acd22e681a43ed91b1c71d20de27ce93cc74381d4efe8574adc929a189143c81f5838ca8d8227ec0e2e05a593f0df9547964 SHA512 decdc9d83fe380a4a05443ac26366eb3288d24bd7ed6c16d006707abb616dab91858a59af6638f2d7a72bc7bb6425dbfddd119ca492d18f07afbb27341b23d0b
|
||||||
|
DIST cdrdao-1.2.5.tar.gz 858440 BLAKE2B 6b7f11968335f3c07df2bfc8cbfd53d65a42413026206c47f9bdc792d30faa91f3e9285fd36d884ee42cb31103f666097fb55c8f382202f4e9d2d4ddd4685527 SHA512 790468a28e5ba96421c83c2101f61f479099782bc28677c7f52b94990de258e3caf7f77d3105e3e826d848b9488182880857335b1bcfbfca033d9e1fc56d193b
|
||||||
|
@ -0,0 +1,53 @@
|
|||||||
|
# Copyright 2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit autotools flag-o-matic
|
||||||
|
|
||||||
|
MY_PV="rel_${PV//./_}"
|
||||||
|
DESCRIPTION="Burn CDs in disk-at-once mode with a command line interface"
|
||||||
|
HOMEPAGE="https://github.com/cdrdao/cdrdao/"
|
||||||
|
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
IUSE="encode mad vorbis"
|
||||||
|
|
||||||
|
DEPEND="app-cdr/cdrtools
|
||||||
|
encode? ( >=media-sound/lame-3.99 )
|
||||||
|
mad? (
|
||||||
|
media-libs/libao
|
||||||
|
media-libs/libmad
|
||||||
|
)
|
||||||
|
vorbis? (
|
||||||
|
media-libs/libao
|
||||||
|
media-libs/libvorbis
|
||||||
|
)"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
!app-cdr/cue2toc"
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-remove-gconf-dep.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
append-cxxflags -std=c++11
|
||||||
|
|
||||||
|
filter-lto # https://bugs.gentoo.org/854219
|
||||||
|
|
||||||
|
local myeconfargs=(
|
||||||
|
--without-gcdmaster
|
||||||
|
$(use_with vorbis ogg-support)
|
||||||
|
$(use_with mad mp3-support)
|
||||||
|
$(use_with encode lame)
|
||||||
|
)
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -9,7 +9,6 @@
|
||||||
|
AC_CONFIG_HEADERS(config.h)
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
AC_CANONICAL_HOST
|
||||||
|
-AM_GCONF_SOURCE_2
|
||||||
|
AM_ICONV
|
||||||
|
|
||||||
|
AC_ARG_WITH(pcctsbin,[ --with-pcctsbin=dir set directory of PCCTS parser generator executables],[pcctsbin=$withval],[pcctsbin=default])
|
@ -1,2 +1 @@
|
|||||||
DIST dolphin-plugins-22.08.3.tar.xz 260088 BLAKE2B 2927d42a603776cc3b600606ff2f27a77c8bbbe6b089d3e691571c7594d0e4d53023064afbf07e02f546073823a873fd45f200ea13b9e2765b61046602d8239b SHA512 2201858d9d349c28cced78dcfd9a31c3fde05b3ab107a28615af4cc5c32d4315074881f78dfb255638a13269de16ab68b7c53b68d013cf46ded091f8b059173e
|
|
||||||
DIST dolphin-plugins-22.12.3.tar.xz 272276 BLAKE2B 485ac53e070a710dbfb07aa26c915f4c2b32d5f6e67e91c3d07d9740be2c50ba4fae3c8662216423ce7e63042b663e8a59dfbfe1b490d31a2cc5445d9c3ac33c SHA512 0225fc50f88e7bd28eda74ae2bfa0c36878b9fe6b9fade6ef86a26e380cd78c8c2d1d1608796e8369f6ad545876d5d533ccfbf34b02b2be07ab8abc4bb734f7a
|
DIST dolphin-plugins-22.12.3.tar.xz 272276 BLAKE2B 485ac53e070a710dbfb07aa26c915f4c2b32d5f6e67e91c3d07d9740be2c50ba4fae3c8662216423ce7e63042b663e8a59dfbfe1b490d31a2cc5445d9c3ac33c SHA512 0225fc50f88e7bd28eda74ae2bfa0c36878b9fe6b9fade6ef86a26e380cd78c8c2d1d1608796e8369f6ad545876d5d533ccfbf34b02b2be07ab8abc4bb734f7a
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
ECM_HANDBOOK="false"
|
|
||||||
KDE_ORG_CATEGORY="sdk"
|
|
||||||
KDE_ORG_NAME="dolphin-plugins"
|
|
||||||
MY_PLUGIN_NAME="mountiso"
|
|
||||||
KFMIN=5.96.0
|
|
||||||
PVCUT=$(ver_cut 1-3)
|
|
||||||
QTMIN=5.15.5
|
|
||||||
inherit ecm gear.kde.org
|
|
||||||
|
|
||||||
DESCRIPTION="Dolphin plugin for ISO loopback device mounting"
|
|
||||||
HOMEPAGE="https://apps.kde.org/dolphin_plugins/"
|
|
||||||
|
|
||||||
LICENSE="GPL-2+"
|
|
||||||
SLOT="5"
|
|
||||||
KEYWORDS="amd64 arm64 ~loong ~ppc64 x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
>=dev-qt/qtdbus-${QTMIN}:5
|
|
||||||
>=dev-qt/qtgui-${QTMIN}:5
|
|
||||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
|
||||||
>=kde-apps/dolphin-${PVCUT}:5
|
|
||||||
>=kde-frameworks/kcompletion-${KFMIN}:5
|
|
||||||
>=kde-frameworks/kconfig-${KFMIN}:5
|
|
||||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
|
||||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
|
||||||
>=kde-frameworks/kio-${KFMIN}:5
|
|
||||||
>=kde-frameworks/ktextwidgets-${KFMIN}:5
|
|
||||||
>=kde-frameworks/solid-${KFMIN}:5
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
ecm_src_prepare
|
|
||||||
# kxmlgui, qtnetwork only required by dropbox
|
|
||||||
ecm_punt_qt_module Network
|
|
||||||
ecm_punt_kf_module XmlGui
|
|
||||||
# delete non-${PN} translations
|
|
||||||
if [[ ${KDE_BUILD_TYPE} = release ]]; then
|
|
||||||
find po -type f -name "*po" -and -not -name "*${MY_PLUGIN_NAME}plugin" -delete || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DBUILD_${MY_PLUGIN_NAME}=ON
|
|
||||||
-DBUILD_bazaar=OFF
|
|
||||||
-DBUILD_dropbox=OFF
|
|
||||||
-DBUILD_git=OFF
|
|
||||||
-DBUILD_hg=OFF
|
|
||||||
-DBUILD_svn=OFF
|
|
||||||
)
|
|
||||||
ecm_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
ecm_src_install
|
|
||||||
rm "${D}"/usr/share/metainfo/org.kde.dolphin-plugins.metainfo.xml || die
|
|
||||||
}
|
|
Binary file not shown.
@ -1,3 +1,2 @@
|
|||||||
DIST apptainer-1.1.2.tar.gz 12896912 BLAKE2B 29a8df78617661e0a181955942e8321c112a69efaf15f4bb3e1563cc0789197916a3be1eb5396fb608d57b0edd5d5de2a70a2bda935095d8d511410660ebc106 SHA512 3fad253379a87ea790f22a14aec703296f606255d4ce847454a59f9dba0b9a6fc449489e7760c4696c1df90fc6abec198934310c1b762e33a83c72cafc7cb370
|
|
||||||
DIST apptainer-1.1.6.tar.gz 12914465 BLAKE2B a04ed9b9b429d7885d6c91f72d574d2a3a2955fdbe5cb2d30b59744b1f3bfb6f7d4f07ce7f1863caa83fb3361d7fdd2739b82334458d606ce053de43e1e9f755 SHA512 dd38abe1e343352e29a8a1fd1922901e4d48282fef641c75360253392ad53c6f1e5f7510ef612594e29db5f090fb41ff55b9d52d126be253450b0630fc7d383b
|
DIST apptainer-1.1.6.tar.gz 12914465 BLAKE2B a04ed9b9b429d7885d6c91f72d574d2a3a2955fdbe5cb2d30b59744b1f3bfb6f7d4f07ce7f1863caa83fb3361d7fdd2739b82334458d606ce053de43e1e9f755 SHA512 dd38abe1e343352e29a8a1fd1922901e4d48282fef641c75360253392ad53c6f1e5f7510ef612594e29db5f090fb41ff55b9d52d126be253450b0630fc7d383b
|
||||||
DIST apptainer-1.1.7.tar.gz 12926719 BLAKE2B ed12ae933166f03742c04551f3b231458e9ccd2d62184e965f91ab6f996bd32aa53b4efd6552e8f83a3735ff38bd48cb9c4450b9b6da064fe9029ea15555282e SHA512 10a4faa28f08961d483a63384671388d14ceedb150af752da576c035be79372401fd6ddb2eb5491569bb79b250c0f1e89e1b747463defc4a7f495610ebf2d371
|
DIST apptainer-1.1.7.tar.gz 12926719 BLAKE2B ed12ae933166f03742c04551f3b231458e9ccd2d62184e965f91ab6f996bd32aa53b4efd6552e8f83a3735ff38bd48cb9c4450b9b6da064fe9029ea15555282e SHA512 10a4faa28f08961d483a63384671388d14ceedb150af752da576c035be79372401fd6ddb2eb5491569bb79b250c0f1e89e1b747463defc4a7f495610ebf2d371
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue