diff options
Diffstat (limited to 'dev-util')
23 files changed, 590 insertions, 13 deletions
diff --git a/dev-util/bpftool/bpftool-6.9.2.ebuild b/dev-util/bpftool/bpftool-6.9.2.ebuild index 2b5f821c1188..fc07359de4fc 100644 --- a/dev-util/bpftool/bpftool-6.9.2.ebuild +++ b/dev-util/bpftool/bpftool-6.9.2.ebuild @@ -25,7 +25,7 @@ S="${S_K}/tools/bpf/bpftool" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86" IUSE="caps +llvm" RDEPEND=" diff --git a/dev-util/buildbot-worker/buildbot-worker-9999.ebuild b/dev-util/buildbot-worker/buildbot-worker-9999.ebuild index 88986b14a2c6..8026afdce0ec 100644 --- a/dev-util/buildbot-worker/buildbot-worker-9999.ebuild +++ b/dev-util/buildbot-worker/buildbot-worker-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,9 +21,10 @@ RESTRICT="!test? ( test )" RDEPEND=" acct-user/buildbot - !<dev-util/buildbot-1.0.0 + !<dev-util/buildbot-3.0.0 >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] >=dev-python/msgpack-0.6.0[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] >=dev-python/twisted-18.7.0[${PYTHON_USEDEP}] " BDEPEND=" diff --git a/dev-util/buildbot/buildbot-9999.ebuild b/dev-util/buildbot/buildbot-9999.ebuild index 9ae3d018eb19..93851102b98f 100644 --- a/dev-util/buildbot/buildbot-9999.ebuild +++ b/dev-util/buildbot/buildbot-9999.ebuild @@ -24,8 +24,10 @@ RDEPEND=" acct-user/buildbot >=dev-python/alembic-1.6.0[${PYTHON_USEDEP}] >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}] + >=dev-python/croniter-1.3.0[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.6.0[${PYTHON_USEDEP}] >=dev-python/jinja-2.1[${PYTHON_USEDEP}] - dev-python/markdown[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] dev-python/pyjwt[${PYTHON_USEDEP}] >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] @@ -33,8 +35,8 @@ RDEPEND=" <dev-python/sqlalchemy-1.5.0[${PYTHON_USEDEP}] >=dev-python/twisted-18.7.0[${PYTHON_USEDEP}] >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}] + >=dev-python/unidiff-0.7.5[${PYTHON_USEDEP}] >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}] - dev-util/buildbot-worker[${PYTHON_USEDEP}] crypt? ( >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}] dev-python/service-identity[${PYTHON_USEDEP}] @@ -45,7 +47,7 @@ RDEPEND=" dev-python/txrequests[${PYTHON_USEDEP}] ) docker? ( - >=dev-python/docker-2.2.0[${PYTHON_USEDEP}] + >=dev-python/docker-7.0.0[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] ) " @@ -53,13 +55,13 @@ BDEPEND=" test? ( ${RDEPEND} ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}] - dev-util/buildbot-worker[${PYTHON_USEDEP}] + ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}] ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}] >=dev-python/boto3-1.12.48[${PYTHON_USEDEP}] dev-python/lz4[${PYTHON_USEDEP}] dev-python/ldap3[${PYTHON_USEDEP}] - dev-python/markdown[${PYTHON_USEDEP}] - dev-python/moto[${PYTHON_USEDEP}] + >=dev-python/markdown-3.0.0[${PYTHON_USEDEP}] + >=dev-python/moto-4.2.13[${PYTHON_USEDEP}] dev-python/parameterized[${PYTHON_USEDEP}] dev-python/pypugjs[${PYTHON_USEDEP}] dev-python/treq[${PYTHON_USEDEP}] diff --git a/dev-util/conan/Manifest b/dev-util/conan/Manifest index 194ca02bdeba..1ec73774f8a9 100644 --- a/dev-util/conan/Manifest +++ b/dev-util/conan/Manifest @@ -1,3 +1,4 @@ DIST conan-2.0.16.gh.tar.gz 1000880 BLAKE2B 0ebc7df66e97a8f29ade9d1ffbde5b0f6ed4ac5dd98bab29e9a88d1ae9c864237a396b5c0588f3efb1186f6f22fa1fd0205215b3459fb87fa012febc49ad786a SHA512 bb8d5c1b2df085bc2e1645dd8b14be167b7ed01a47485bbe39994a150ca905de6a194927cb3cecd81d4d7bab613d13ca3779d9aabddf1a2df731bd62ec5bbe39 DIST conan-2.3.1.gh.tar.gz 1078426 BLAKE2B a3a92342a2cfabc9dd4c22d1665d092dd2a33be8fdd4c3e7243557b845fda8910d713bc34b59d1e4c2b2ead957ef0ff8ad0d23fa80804c9d842b5f9c944323c1 SHA512 405d9979bc79b684509aa756c2aa50decd1b9194e5c7b847b6a9755daed9941c7b9615cf518aedf920eeea0de6dfc194e36b90c2919060a3f276f53692a3fe5c DIST conan-2.4.1.gh.tar.gz 1092566 BLAKE2B 7b97f9a274075bf3e9396eba9e3dc4d155c171685fb204c885877ad10dba3f751cab5a28e220d3df3b803aa8f80d080c63c37801ada4b1691724bb8988f34c97 SHA512 b51d491be8202eb7fd60e5d2aef63bd9f43311da73f36edd615210222c32160f35af81ec47351e7762b6583a6d3f6230020130866e0450320d87047439de2767 +DIST conan-2.5.0.gh.tar.gz 1105167 BLAKE2B 2a4a3aba324b3aee968dde721e3659470912ce82eada0c9ffc37c4ff0b4c4b78b2927e3e9cde1f52b1104a3f3e8e32b3d7450643a83c14958c035051a63386a1 SHA512 685cafd0d1ba179d84b7e0e37d0ca5ce95e320e025132e62f3a128a68b085eabeff47bbc0b129d5b8cee17f2955014cb4073b7e648d9f9ccf56c1ee377625e18 diff --git a/dev-util/conan/conan-2.5.0.ebuild b/dev-util/conan/conan-2.5.0.ebuild new file mode 100644 index 000000000000..e4cc5b7548da --- /dev/null +++ b/dev-util/conan/conan-2.5.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) +PYTHON_REQ_USE="sqlite" + +inherit distutils-r1 + +DESCRIPTION="Distributed C/C++ package manager" +HOMEPAGE="https://conan.io/" +SRC_URI="https://github.com/conan-io/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/bottle-0.12.8[${PYTHON_USEDEP}] + >=dev-python/colorama-0.4.3[${PYTHON_USEDEP}] + >=dev-python/distro-1.4.0[${PYTHON_USEDEP}] + >=dev-python/fasteners-0.15.0[${PYTHON_USEDEP}] + >=dev-python/jinja-3.0[${PYTHON_USEDEP}] + >=dev-python/patch-ng-1.17.4[${PYTHON_USEDEP}] + >=dev-python/pluginbase-0.5[${PYTHON_USEDEP}] + >=dev-python/pyjwt-2.4[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml-6.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.25[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.26.6[${PYTHON_USEDEP}] +" + +# Try to fix it if you're brave enough +# Conan requires noumerous external toolchain dependencies with restricted +# versions and cannot be managable outside of a pure CI environment. +RESTRICT="test" + +src_prepare() { + default + # Fix strict dependencies + sed -i \ + -e 's:,[[:space:]]\?<=\?[[:space:]]\?[[:digit:]|.]*::g' \ + -e 's:==:>=:g' \ + conans/requirements{,_server}.txt || die +} diff --git a/dev-util/libtypec-utils/Manifest b/dev-util/libtypec-utils/Manifest new file mode 100644 index 000000000000..d6f2aad1b60b --- /dev/null +++ b/dev-util/libtypec-utils/Manifest @@ -0,0 +1 @@ +DIST libtypec-0.5.2.tar.gz 37224 BLAKE2B 691c62e4be16cb02143cec3f4391272bb54bd8eafa36b43614b96a4cd086069ed41f74741f0c36d8b39e3386384f0147551754e24e2742fff9452ec410f3b4ef SHA512 9dc71ba9a6f74f04fe96f4b5b632c83c52aa2ed693b743074b4943b5a9899433cad615770f527abdfa0d86008e7b326a028d8cd50dcd2caecf9805889f286c6f diff --git a/dev-util/libtypec-utils/libtypec-utils-0.5.2.ebuild b/dev-util/libtypec-utils/libtypec-utils-0.5.2.ebuild new file mode 100644 index 000000000000..cf60464aaed3 --- /dev/null +++ b/dev-util/libtypec-utils/libtypec-utils-0.5.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Library to interface with USB Type-C/Power Delivery devices" +HOMEPAGE="https://github.com/libtypec/libtypec" +SRC_URI="https://github.com/libtypec/libtypec/archive/refs/tags/libtypec-${PV}.tar.gz" + +S="${WORKDIR}/libtypec-libtypec-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + virtual/pkgconfig +" +DEPEND=" + dev-libs/libtypec + virtual/udev +" +RDEPEND="${DEPEND}" + +src_compile() { + # Build just the utils subproject + meson setup --reconfigure utils utils_build --prefix="${EPREFIX}/usr" || die +} + +src_install() { + # Install just the utils subproject + cd utils_build && DESTDIR="${D}" meson install || die +} diff --git a/dev-util/libtypec-utils/metadata.xml b/dev-util/libtypec-utils/metadata.xml new file mode 100644 index 000000000000..d94282567731 --- /dev/null +++ b/dev-util/libtypec-utils/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>adrian.ratiu@collabora.com</email> + <name>Adrian Ratiu</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + “libtypec-utils” provides a set of diagnostic and debug tools + to debug system issues around USB-C/USB PD topology, based on + the libtypec project. + </longdescription> + <upstream> + <maintainer> + <email>rajaram.regupathy@gmail.com</email> + <name>Rajaram Regupathy</name> + </maintainer> + </upstream> + <origin>gentoo-guru-overlay</origin> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-util/pkgcheck/pkgcheck-0.10.30.ebuild b/dev-util/pkgcheck/pkgcheck-0.10.30.ebuild index e455e89721c4..dd1f74bbc053 100644 --- a/dev-util/pkgcheck/pkgcheck-0.10.30.ebuild +++ b/dev-util/pkgcheck/pkgcheck-0.10.30.ebuild @@ -12,7 +12,7 @@ if [[ ${PV} == *9999 ]] ; then https://github.com/pkgcore/pkgcheck.git" inherit git-r3 else - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" inherit pypi fi diff --git a/dev-util/poke/Manifest b/dev-util/poke/Manifest index fda305829f9b..904588f15276 100644 --- a/dev-util/poke/Manifest +++ b/dev-util/poke/Manifest @@ -1,3 +1,4 @@ DIST poke-3.3.tar.gz 7553544 BLAKE2B 1e98f77937f9c45daa80591be603a74857b1bbd230cb931e59d7e9753c1687d5a4c96837bb6aca76615feca71cbeabd3be7ad234260657288d060ff63d59c040 SHA512 b00dca38d27bddee6ea131d45988aaead1d11d29b757c048f3b2be8013575cedc591844d4d99870f90964fd4f517d500cbb42aae5aff57e9fe07aac8273aa236 DIST poke-4.0.tar.gz 8224479 BLAKE2B d7778274e2fcf3657e800ebc8b2a11e7c0e9d81b5a41ab366d7dbf8772afa8ec0f7c07c70eae1c297acc1b5ac9fb584fb6bdb1c6eedd94c62ae9123aefe08df2 SHA512 3b6a15bf5542b34a794efd31bd575b5024c14f71474581b845097f38b43cef178ee2078f680ab9ec329b4336d1b99cc5832818bd4e7a6372fec6f95e9a11534a DIST poke-4.1.tar.gz 8243284 BLAKE2B 1fec0087199f7a265aa30e21c7ecc783e1919ef128b0786d3ca61f34b18e2fe9433e41ad5d2e6a43458c13b0debaa4bd12d0b913868b4737c0af77a81955106b SHA512 e539708fb5a827f4e4ce4748610cb4ada008f3257700c66db6d9f71b12974fd432f8949e0f29c24d848b1b175392ab0085a158687534e63a153adbc909d5494d +DIST poke-4.2.tar.gz 8248954 BLAKE2B 9395221c55ac413640c3b3c06e75cc27b4fa6702be8487215ef99e8ab77d1076383344400b04edc8887d5fcc0ccc96963a78a65f23a3b62071f74ee68705bc8e SHA512 d820bda83e691a0df3a8b4e061152410e7c842c39b6dac7d49cdb4c0e07e6bb65db9c44a1eaaccf20949d10c225b3586dcbb2eb7aa58f139ca2a372f842530f5 diff --git a/dev-util/poke/files/poke-4.1-missing-configure-include.patch b/dev-util/poke/files/poke-4.1-missing-configure-include.patch new file mode 100644 index 000000000000..0131d7613358 --- /dev/null +++ b/dev-util/poke/files/poke-4.1-missing-configure-include.patch @@ -0,0 +1,20 @@ +See https://bugs.gentoo.org/935126 + +--- a/m4/printf.m4 ++++ b/m4/printf.m4 +@@ -894,6 +894,7 @@ AC_DEFUN([gl_PRINTF_DIRECTIVE_N], + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + #ifdef _MSC_VER + #include <inttypes.h> + /* See page about "Parameter Validation" on msdn.microsoft.com. +@@ -1708,6 +1709,7 @@ AC_DEFUN([gl_SNPRINTF_DIRECTIVE_N], + #include <signal.h> + #include <stdio.h> + #include <string.h> ++#include <unistd.h> + #if HAVE_SNPRINTF + # define my_snprintf snprintf + #else diff --git a/dev-util/poke/files/poke-4.2-missing-configure-include.patch b/dev-util/poke/files/poke-4.2-missing-configure-include.patch new file mode 100644 index 000000000000..52928c4fe21d --- /dev/null +++ b/dev-util/poke/files/poke-4.2-missing-configure-include.patch @@ -0,0 +1,22 @@ +See https://bugs.gentoo.org/935126 + +diff --git a/m4/printf.m4 b/m4/printf.m4 +index 6f91777..ab19318 100644 +--- a/m4/printf.m4 ++++ b/m4/printf.m4 +@@ -894,6 +894,7 @@ AC_DEFUN([gl_PRINTF_DIRECTIVE_N], + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> + #ifdef _MSC_VER + #include <inttypes.h> + /* See page about "Parameter Validation" on msdn.microsoft.com. +@@ -1708,6 +1709,7 @@ AC_DEFUN([gl_SNPRINTF_DIRECTIVE_N], + #include <signal.h> + #include <stdio.h> + #include <string.h> ++#include <unistd.h> + #if HAVE_SNPRINTF + # define my_snprintf snprintf + #else diff --git a/dev-util/poke/poke-4.1-r1.ebuild b/dev-util/poke/poke-4.1-r1.ebuild new file mode 100644 index 000000000000..97d66346c37a --- /dev/null +++ b/dev-util/poke/poke-4.1-r1.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo elisp-common flag-o-matic toolchain-funcs + +DESCRIPTION="Extensible editor for structured binary data" +HOMEPAGE="https://www.jemarch.net/poke" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.savannah.gnu.org/git/poke.git" + REGEN_BDEPEND=" + >=dev-build/autoconf-2.62 + >=dev-build/automake-1.16 + sys-apps/gawk + sys-apps/help2man + sys-apps/texinfo + app-alternatives/yacc + app-alternatives/lex + " +elif [[ $(ver_cut 2) -ge 90 || $(ver_cut 3) -ge 90 ]]; then + SRC_URI="https://alpha.gnu.org/gnu/poke/${P}.tar.gz" + REGEN_BDEPEND="" +else + SRC_URI="mirror://gnu/poke/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + REGEN_BDEPEND="" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="emacs pvm-profiling nbd nls test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/boehm-gc:= + dev-libs/libatomic_ops + sys-devel/gettext + sys-libs/readline:= + emacs? ( >=app-editors/emacs-23.1:* ) + nbd? ( sys-libs/libnbd ) +" +DEPEND=" + ${RDEPEND} + test? ( nbd? ( sys-libs/libnbd[uri-support(+)] ) ) +" +BDEPEND=" + ${REGEN_BDEPEND} + virtual/pkgconfig + pvm-profiling? ( sys-devel/gcc ) + emacs? ( >=app-editors/emacs-23.1:* ) + test? ( + dev-util/dejagnu + nbd? ( sys-block/nbdkit ) + ) +" + +SITEFILE="50${PN}-gentoo.el" + +PATCHES=( + "${FILESDIR}/${P}-missing-configure-include.patch" +) + +pkg_pretend() { + if use pvm-profiling && ! tc-is-gcc; then + die "USE=pvm-profiling requires GCC" + fi +} + +pkg_setup() { + use emacs && elisp-check-emacs-version +} + +src_prepare() { + default + + if [[ ${PV} == 9999 ]]; then + ./bootstrap || die + fi +} + +src_configure() { + # See bug 858461. + # Upstream support might happen one day. For context, only one file needs + # LTO to be disabled (since it's an autogenerated bytecode interpreter), + # others do not. The build system will handle this at some point in the + # future. Until then, just filter out LTO. + filter-lto + + local myconf=( + --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" + --enable-hserver + $(use_enable nbd libnbd) + $(use_enable pvm-profiling) + $(use_enable nls) + ) + + # The patch we apply bumps mtimes on some files. Fix them up after. + edo touch aclocal.m4 + edo touch configure + edo touch poke/config.h.in + edo touch Makefile.in + edo touch Makefile + + econf "${myconf[@]}" +} + +src_compile() { + default + + if use emacs; then + cd etc || die + elisp-compile *.el + fi +} + +src_install() { + default + + if use emacs; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + cd etc || die + elisp-install "${PN}" *.el *.elc + fi + find "${ED}" -name '*.la' -delete || die +} + +pkg_preinst() { + UPGRADING_POKE=false + if has_version '<dev-util/poke-4'; then + UPGRADING_POKE=true + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + + if "${UPGRADING_POKE}"; then + ewarn "GNU poke 4.0 moves the ELF pickle to a separate package." + ewarn "To install elf.pk, please install dev-util/poke-elf." + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/poke/poke-4.2.ebuild b/dev-util/poke/poke-4.2.ebuild new file mode 100644 index 000000000000..97d66346c37a --- /dev/null +++ b/dev-util/poke/poke-4.2.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo elisp-common flag-o-matic toolchain-funcs + +DESCRIPTION="Extensible editor for structured binary data" +HOMEPAGE="https://www.jemarch.net/poke" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.savannah.gnu.org/git/poke.git" + REGEN_BDEPEND=" + >=dev-build/autoconf-2.62 + >=dev-build/automake-1.16 + sys-apps/gawk + sys-apps/help2man + sys-apps/texinfo + app-alternatives/yacc + app-alternatives/lex + " +elif [[ $(ver_cut 2) -ge 90 || $(ver_cut 3) -ge 90 ]]; then + SRC_URI="https://alpha.gnu.org/gnu/poke/${P}.tar.gz" + REGEN_BDEPEND="" +else + SRC_URI="mirror://gnu/poke/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" + REGEN_BDEPEND="" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="emacs pvm-profiling nbd nls test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/boehm-gc:= + dev-libs/libatomic_ops + sys-devel/gettext + sys-libs/readline:= + emacs? ( >=app-editors/emacs-23.1:* ) + nbd? ( sys-libs/libnbd ) +" +DEPEND=" + ${RDEPEND} + test? ( nbd? ( sys-libs/libnbd[uri-support(+)] ) ) +" +BDEPEND=" + ${REGEN_BDEPEND} + virtual/pkgconfig + pvm-profiling? ( sys-devel/gcc ) + emacs? ( >=app-editors/emacs-23.1:* ) + test? ( + dev-util/dejagnu + nbd? ( sys-block/nbdkit ) + ) +" + +SITEFILE="50${PN}-gentoo.el" + +PATCHES=( + "${FILESDIR}/${P}-missing-configure-include.patch" +) + +pkg_pretend() { + if use pvm-profiling && ! tc-is-gcc; then + die "USE=pvm-profiling requires GCC" + fi +} + +pkg_setup() { + use emacs && elisp-check-emacs-version +} + +src_prepare() { + default + + if [[ ${PV} == 9999 ]]; then + ./bootstrap || die + fi +} + +src_configure() { + # See bug 858461. + # Upstream support might happen one day. For context, only one file needs + # LTO to be disabled (since it's an autogenerated bytecode interpreter), + # others do not. The build system will handle this at some point in the + # future. Until then, just filter out LTO. + filter-lto + + local myconf=( + --with-lispdir="${EPREFIX}/${SITELISP}/${PN}" + --enable-hserver + $(use_enable nbd libnbd) + $(use_enable pvm-profiling) + $(use_enable nls) + ) + + # The patch we apply bumps mtimes on some files. Fix them up after. + edo touch aclocal.m4 + edo touch configure + edo touch poke/config.h.in + edo touch Makefile.in + edo touch Makefile + + econf "${myconf[@]}" +} + +src_compile() { + default + + if use emacs; then + cd etc || die + elisp-compile *.el + fi +} + +src_install() { + default + + if use emacs; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + cd etc || die + elisp-install "${PN}" *.el *.elc + fi + find "${ED}" -name '*.la' -delete || die +} + +pkg_preinst() { + UPGRADING_POKE=false + if has_version '<dev-util/poke-4'; then + UPGRADING_POKE=true + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + + if "${UPGRADING_POKE}"; then + ewarn "GNU poke 4.0 moves the ELF pickle to a separate package." + ewarn "To install elf.pk, please install dev-util/poke-elf." + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/tree-sitter-cli/tree-sitter-cli-0.22.6.ebuild b/dev-util/tree-sitter-cli/tree-sitter-cli-0.22.6.ebuild index 2eec36755638..bd4053e831df 100644 --- a/dev-util/tree-sitter-cli/tree-sitter-cli-0.22.6.ebuild +++ b/dev-util/tree-sitter-cli/tree-sitter-cli-0.22.6.ebuild @@ -21,7 +21,7 @@ LICENSE+=" Unicode-DFS-2016 " SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86" # Test seems to require files (grammar definitions) that we don't have. RESTRICT="test" diff --git a/dev-util/umockdev/umockdev-0.18.3.ebuild b/dev-util/umockdev/umockdev-0.18.3.ebuild index 30c31fa2178c..12aa0ac2b7af 100644 --- a/dev-util/umockdev/umockdev-0.18.3.ebuild +++ b/dev-util/umockdev/umockdev-0.18.3.ebuild @@ -11,7 +11,7 @@ if [[ ${PV} = 9999* ]]; then inherit git-r3 else SRC_URI="https://github.com/martinpitt/umockdev/releases/download/${PV}/${P}.tar.xz" - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + KEYWORDS="~amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ~ppc64 ~riscv ~s390 sparc x86" fi DESCRIPTION="Mock hardware devices for creating unit tests" diff --git a/dev-util/wayland-scanner/wayland-scanner-1.23.0.ebuild b/dev-util/wayland-scanner/wayland-scanner-1.23.0.ebuild index bea0332f252f..373e11bd69d0 100644 --- a/dev-util/wayland-scanner/wayland-scanner-1.23.0.ebuild +++ b/dev-util/wayland-scanner/wayland-scanner-1.23.0.ebuild @@ -8,7 +8,7 @@ if [[ ${PV} = *9999* ]]; then inherit git-r3 else SRC_URI="https://gitlab.freedesktop.org/wayland/wayland/-/releases/${PV}/downloads/wayland-${PV}.tar.xz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" S="${WORKDIR}/wayland-${PV}" fi inherit meson diff --git a/dev-util/webhook/Manifest b/dev-util/webhook/Manifest index 26d74735e8a3..42e0a70ca85b 100644 --- a/dev-util/webhook/Manifest +++ b/dev-util/webhook/Manifest @@ -1 +1,2 @@ DIST webhook-2.7.0.tar.gz 1652898 BLAKE2B e6cf049b39d7fea689060e9e1e42f6386a7a671a10cc7d3fc288ea9285dc90e674a3a4b5fcb77ac5af8a8b1bbfee0a574b2ae94f8df296b64e15578c824f8500 SHA512 107db4f873aa66c9e9910eb7542edf18c3bd5b3509ff03d6e6947cb162d08101f5b11855c403d6a0a27fea8da693aaa2c995799670b73693c8fe2b2f50ac1da1 +DIST webhook-2.8.1.tar.gz 1657848 BLAKE2B 7e6dbea83614042c6dcf2e0b377933dee625bfd300e24530f0682b68945734e11e3d2d5bc34ef8b19936b3880cab7febfa39160a5eea988c4f882acf47d99cbd SHA512 25edff21725ba9ac8823dbe5728234f7cd9218027e87df3e2482ef365a7dd0efe8659800233753c275f858ff87f848ff6141d09be3e0b66ff88b795680b9b635 diff --git a/dev-util/webhook/files/webhook.confd b/dev-util/webhook/files/webhook.confd new file mode 100644 index 000000000000..6cc27e091955 --- /dev/null +++ b/dev-util/webhook/files/webhook.confd @@ -0,0 +1,2 @@ +# arguments for webhook +command_args="-ip=localhost -port=9000 -hooks=/etc/webhook.json -logfile=/var/log/webhook.log" diff --git a/dev-util/webhook/files/webhook.initd b/dev-util/webhook/files/webhook.initd new file mode 100644 index 000000000000..d87e8cce035f --- /dev/null +++ b/dev-util/webhook/files/webhook.initd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 2016-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Webhook server" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} + +command="/usr/bin/webhook" +command_args="${command_args}" +command_background="true" +extra_started_commands="reload" +start_stop_daemon_args="" + +depend() { + after net +} + +reload() { + ebegin "Reloading webhooks" + start-stop-daemon --signal SIGHUP --pidfile "${pidfile}" + eend $? +} diff --git a/dev-util/webhook/files/webhook.json.example b/dev-util/webhook/files/webhook.json.example new file mode 100644 index 000000000000..12a314522595 --- /dev/null +++ b/dev-util/webhook/files/webhook.json.example @@ -0,0 +1,13 @@ +[ + { + "id": "example", + "execute-command": "/var/lib/webhooks/example.sh", + "command-working-directory": "/var/lib/webhooks" + "pass-arguments-to-command": + [ + { + "source": "entire-payload" + } + ] + } +] diff --git a/dev-util/webhook/files/webhook.logrotated b/dev-util/webhook/files/webhook.logrotated new file mode 100644 index 000000000000..7a6dd20b3ceb --- /dev/null +++ b/dev-util/webhook/files/webhook.logrotated @@ -0,0 +1,3 @@ +/var/log/webhook.log +{ +} diff --git a/dev-util/webhook/webhook-2.8.1.ebuild b/dev-util/webhook/webhook-2.8.1.ebuild new file mode 100644 index 000000000000..18c19358ef77 --- /dev/null +++ b/dev-util/webhook/webhook-2.8.1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="lightweight incoming webhook server to run shell commands" +HOMEPAGE="https://github.com/adnanh/webhook/" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/adnanh/webhook/" +else + SRC_URI="https://github.com/adnanh/webhook/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/webhook-${PV}" +fi + +# SPDX:BSD-3-Clause is 'BSD' in Gentoo +# SPDX:BSD-2-Clause is 'BSD-2' in Gentoo +LICENSE="Apache-2.0 BSD-2 BSD MIT" +SLOT="0" + +BDEPEND=">=dev-lang/go-1.13" +RESTRICT="test" # hardcoded paths, plus go extra dependencies not included in tarball + +DOCS=( + README.md + hooks.json.example + hooks.json.tmpl.example + hooks.yaml.example + hooks.yaml.tmpl.example + docs/Hook-Definition.md + docs/Hook-Examples.md + docs/Hook-Rules.md + docs/Referencing-Request-Values.md + docs/Templates.md + docs/Webhook-Parameters.md +) + +# Do not let these leak from outside into the package +unset GOBIN GOPATH GOCODE + +src_unpack() { + if [[ ${PV} == *9999 ]]; then + git-r3_src_unpack + go-module_live_vendor + else + go-module_src_unpack + fi +} + +src_compile() { + # Golang LDFLAGS are not the same as GCC/Binutils LDFLAGS + unset LDFLAGS + # -mod=vendor is needed because the go version specified in go.mod + # is too low. + ego build -mod=vendor +} + +src_install() { + dobin webhook + + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + + insinto /etc + newins "${FILESDIR}/${PN}.json.example" ${PN}.json + + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" ${PN} + + einstalldocs +} + +pkg_postinst() { + elog + elog "Note that due to technical restrictions the webhook server runs as root," + elog "which has obvious security implications." + elog "Please see the project home page for information about Hook rules and" + elog "restrict access to the server, for example by limiting the listening IP/port." + elog +} |
