parent
12c46148c1
commit
bcd5552467
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST accerciser-3.38.0.tar.xz 2006380 BLAKE2B 8a073e3a933386c9ae46d71535a3a49930bf8100d1458ac1875e1bcb69acc13e2331ac568c566ec6b8fe8ff9836155cc2ff20558de0e21942a29a568ff916fa5 SHA512 5740e4acfb00f5842dac8045ca9f10c85cf2ae164f3e0caf63ec303ff104002ace6de591a9b6516c4052ec0da8e48b394647f018b6c8b68a6c5ff77c4fff2904
|
||||
DIST accerciser-3.40.0.tar.xz 1991256 BLAKE2B adcaa37b64d91cf4348fdd1b15d22aa977585c2c9d3ad81b41c7711f82ce010c7b75a44de6ec780fbbdadacad856a1f15b4f492971f5a7acfcea0568f0edc2df SHA512 78a7ce4a69de9a237c75b8df25665c8e9e8173969fb146cb608f4b51ff042c3abdcd49225f8f420c1c1bfab3736a8607eb6b555106c8a1e6e3399c83bad8f198
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit gnome2 python-single-r1
|
||||
|
||||
DESCRIPTION="Interactive Python accessibility explorer"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Accerciser https://gitlab.gnome.org/GNOME/accerciser"
|
||||
|
||||
LICENSE="BSD CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
>=app-accessibility/at-spi2-core-2.5.2:2
|
||||
>=x11-libs/gtk+-3.1.13:3[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/pygobject-2.90.3:3[${PYTHON_USEDEP}]
|
||||
>=dev-python/ipython-0.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyatspi-2.1.5[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/python-xlib[${PYTHON_USEDEP}]
|
||||
')
|
||||
|
||||
dev-libs/atk[introspection]
|
||||
>=dev-libs/glib-2.28:2
|
||||
dev-libs/gobject-introspection:=
|
||||
x11-libs/gdk-pixbuf[introspection]
|
||||
x11-libs/libwnck:3[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
gnome-base/librsvg[introspection]
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
python_optimize
|
||||
}
|
Binary file not shown.
@ -1,4 +1,6 @@
|
||||
DIST awscli-exe-linux-aarch64-2.7.11.zip 46384612 BLAKE2B 1728dac769441954b86f1436708c7b84aa4d1f7affc634de9e6a7bea66a10e5143a6d1da3fd24e8e721cdaabff0bb4b363bef78e29aecc976e9cd5b961284a2b SHA512 3f3e2670614bdcf6751d556a8a150d573712b036ad904a7cbfbb85600241d04f7f257df2d1159e2fb6f5b0d02b7f65df1bfb00764218ef60782a04a7fdebdc2a
|
||||
DIST awscli-exe-linux-aarch64-2.7.16.zip 46227549 BLAKE2B 28c72891454779337e7da8cb554310d54af0d3e3aab45a9aea76350eb0db5cba592c67f55f8feb0b4f57044a7b2292d6ac79809ceafd1a8d62639c67f6018e7c SHA512 e577e3507310dc48d323635592df5c7c12ac5ba90578d5e9e0a74264007b3c4bcaa0bf43d95f37d4974e7a83e57fdd3ec3a36e43ccd8ad359d5a56b7cda7402c
|
||||
DIST awscli-exe-linux-aarch64-2.7.20.zip 46289081 BLAKE2B 1750e609bef53775e4bf66f1be78e2b05f763bde7677be99867ae89e252f1deb81dddf6011718ceafe1f97b53ac4871657f2644c478887eb4d021e14be400121 SHA512 f519aaaf2ebc3e163ae55abdb85b08dd49e148f902a06e671f582879790bdfa07e32f8d8e773ddeb95494aee3a38dc3fbdf91a93b14215f63e13ae87cdf3de4a
|
||||
DIST awscli-exe-linux-x86_64-2.7.11.zip 47188206 BLAKE2B 9530ad2cf832dab1d5fb38a4942d338629c24bdadebe6abd0ba3a1759688e2ea9666cd97d8643d6ba7469bc446f09bd4c63a43f36deba1afb133ef00da49ce6d SHA512 6a15745502e273ddfad1d9ac118aea1684cf62f533a0fa3ac7661c31e49984ce1d0b608c61f5ed182692686ab7fd992f9a8da6a066bc4da6fe5e3d386548ab8f
|
||||
DIST awscli-exe-linux-x86_64-2.7.16.zip 47030919 BLAKE2B 1ac5789003753b015278eda42109c9ca5ee4710d32b07940c3abac0100844065fa6bffdc854446a7b4493727d3648f0514fe10e09b50c77d79f42139e2c64fcc SHA512 ae76d7425974154f481546b804cc6f359702f9357e670dfaaa7f943aa2ca27124c66388032ad9b4fbd05d82f73b7401fa7d07d7d4742c8f37c49eca17e6e6564
|
||||
DIST awscli-exe-linux-x86_64-2.7.20.zip 47092365 BLAKE2B 26320deb54f66043693aa40cd2fee2e110f2dbf1710278ce431781d49096860dacd906bd91a01160c69c484020cc1ca497954283213e85d42206ab2dba3f1c92 SHA512 6f5ab60fe3b59a7c8ad73e81b3d3003660736fe9da35e5e44b8d222a94cf195676a4802e8ea391bbefb9cbece77860148be1f616f32281d18726af126c7daa4b
|
||||
|
@ -0,0 +1,90 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="command line interface for Amazon Web Services"
|
||||
HOMEPAGE="
|
||||
https://aws.amazon.com/cli/
|
||||
https://github.com/aws/aws-cli/
|
||||
"
|
||||
SRC_URI="
|
||||
amd64? ( https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${PV}.zip )
|
||||
arm64? ( https://awscli.amazonaws.com/awscli-exe-linux-aarch64-${PV}.zip )
|
||||
"
|
||||
|
||||
LICENSE="
|
||||
Apache-2.0 MIT LGPL-2.1+ BSD GPL-2+-with-Pyinstaller-Bootloader-exception
|
||||
openssl PSF-2 BSD-2 GPL-3+ public-domain
|
||||
"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm64"
|
||||
|
||||
RDEPEND="!app-admin/awscli
|
||||
sys-libs/glibc"
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
RESTRICT="strip"
|
||||
S="${WORKDIR}"
|
||||
|
||||
# This code is based on the install script in the upstream archive.
|
||||
|
||||
set_global_vars() {
|
||||
ROOT_INSTALL_DIR=/opt/aws-cli
|
||||
BIN_DIR=/usr/bin
|
||||
|
||||
EXE_NAME="aws"
|
||||
COMPLETER_EXE_NAME="aws_completer"
|
||||
INSTALLER_DIR="aws"
|
||||
INSTALLER_DIST_DIR="${INSTALLER_DIR}/dist"
|
||||
INSTALLER_EXE="${INSTALLER_DIST_DIR}/${EXE_NAME}"
|
||||
AWS_EXE_VERSION=${PV}
|
||||
|
||||
INSTALL_DIR="${ROOT_INSTALL_DIR}/v2/${AWS_EXE_VERSION}"
|
||||
# INSTALL_DIR="${INSTALL_DIR}"
|
||||
INSTALL_DIST_DIR="${INSTALL_DIR}/dist"
|
||||
INSTALL_BIN_DIR="${INSTALL_DIR}/bin"
|
||||
INSTALL_AWS_EXE="${INSTALL_BIN_DIR}/${EXE_NAME}"
|
||||
INSTALL_AWS_COMPLETER_EXE="${INSTALL_BIN_DIR}/${COMPLETER_EXE_NAME}"
|
||||
|
||||
CURRENT_INSTALL_DIR="${ROOT_INSTALL_DIR}/v2/current"
|
||||
CURRENT_AWS_EXE="${CURRENT_INSTALL_DIR}/bin/${EXE_NAME}"
|
||||
CURRENT_AWS_COMPLETER_EXE="${CURRENT_INSTALL_DIR}/bin/${COMPLETER_EXE_NAME}"
|
||||
|
||||
BIN_AWS_EXE="${BIN_DIR}/${EXE_NAME}"
|
||||
BIN_AWS_COMPLETER_EXE="${BIN_DIR}/${COMPLETER_EXE_NAME}"
|
||||
}
|
||||
|
||||
create_install_dir() {
|
||||
dodir "${INSTALL_DIR}"
|
||||
setup_install_dist
|
||||
setup_install_bin
|
||||
create_current_symlink
|
||||
}
|
||||
|
||||
setup_install_dist() {
|
||||
cp -r "${INSTALLER_DIST_DIR}" "${D}/${INSTALL_DIST_DIR}" || die
|
||||
}
|
||||
|
||||
setup_install_bin() {
|
||||
dodir "${INSTALL_BIN_DIR}"
|
||||
dosym "../dist/${EXE_NAME}" "${INSTALL_AWS_EXE}"
|
||||
dosym "../dist/${COMPLETER_EXE_NAME}" "${INSTALL_AWS_COMPLETER_EXE}"
|
||||
}
|
||||
|
||||
create_current_symlink() {
|
||||
dosym "${AWS_EXE_VERSION}" "${CURRENT_INSTALL_DIR}"
|
||||
}
|
||||
|
||||
create_bin_symlinks() {
|
||||
dodir "${BIN_DIR}"
|
||||
dosym -r "${CURRENT_AWS_EXE}" "${BIN_AWS_EXE}"
|
||||
dosym -r "${CURRENT_AWS_COMPLETER_EXE}" "${BIN_AWS_COMPLETER_EXE}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
set_global_vars
|
||||
create_install_dir
|
||||
create_bin_symlinks
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST aws-cli-1.25.26.gh.tar.gz 2230449 BLAKE2B bb792fb2e4ba25870168e4fc3301d4b92d93d831301b0a46ec7dab1ac4b1bdeda9d43f9f6cf20de153f9df3d6b66b0d9ed9754ee4c27b79aacf9d9b8d7e11c2f SHA512 56f9d02d54d20624944c8749860d3e92e7c0887b1c6f524545394ad590ad5ab63752abf25ecba400cfcb9273bdecbae110e4811804e287f15bdfde0d8638adff
|
||||
DIST aws-cli-1.25.31.gh.tar.gz 2233721 BLAKE2B 791bd78851c5643ee72faddc8e4d4e39c94a91e4879d749bcf2cadbe4797cdd448a95dd2b3c626b76e648303ec93fc0338d08f79227f05ff467754810166731b SHA512 586f0fa0f81ec8acc0b79fba5372a37ebcf162981c8fbab31633f63736337cae0b4788bb7a4cdabf6e04800fb63ed6804a6a73a7d5552a9b4c85b4eb273ee6d8
|
||||
DIST aws-cli-1.25.36.gh.tar.gz 2237211 BLAKE2B fbab136a1c1211646c1213357cd80068da376e4aceb38007c14b2fb670a694b37aaa0157d58eb4edf10c3a9b5a700575a42b48c06db1c4034f39ccda584be19a SHA512 b66ba357085c82dcefc4ed9a6d0765d8768c8d216cd255056be055d3b5f604b62bace3eacccac83275d7c9487847f7de542efa804f8e0f454947cfe453d6e705
|
||||
DIST aws-cli-1.25.37.gh.tar.gz 2237143 BLAKE2B 3c51a5e56964fb8c4e5374892e185da7817f798a66fac2fd181acf068e1419bf4e8749590c9cbeb0d4344b82de4ecc44ce8b4eaf8b133895d60055783f1a6263 SHA512 533459e94db747fe4a6daad598b2b0d894202e60080505ad3d0864c54c8286c7d56d615cb1232cfadd1bd1181aede327d3fed3eca863dcfc92efb4867736b7fb
|
||||
DIST aws-cli-1.25.41.gh.tar.gz 2238897 BLAKE2B b0e4d1b96048971f41a0fce9c9149154778177ec8569f467cd210edaa063d629ea6998c1ebfa4506f8b2cca65caef7f73b307ef6aeec683801045c6121f85a8c SHA512 712c237181b166cdf1148ca4b3588a92939dbbfbaa5cdff9bffd8e2da35089539ef3b0b0ba271b234918796cd5fd83bf2a59e29c974f9e341d0e42e05bb8b69e
|
||||
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
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 ~arm64 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() {
|
||||
# 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,2 +1 @@
|
||||
DIST chrpath-0.13.tar.gz 125129 BLAKE2B 004db7e3567ceeb700d018e7e32036843413605466c218bf40252927b169775c5a86f81f8ea355f0d141821313d114ec24654ed62d75443e31739118e31bc497 SHA512 9ec2ab2731fb553497996939b421130ae221d478dab8887c184ae91f7d3ae697688e7a30e3bea30cc0cf765f1dc8c7f47d2a1f4369b36079b4033e8d0303d75e
|
||||
DIST chrpath-0.16.tar.gz 134506 BLAKE2B 7003cc1cb2332ffbe6fe0873c6d30cbc3ea696e041be33b39c3d36ae34a2497b8dd40bb373773c546b8d63cfd8534e796fd7d7cbc99d37fb8751fc960907070f SHA512 aa04d490f78bff20a56fe20539cec10218c0772a668909eda8324ca825f51e8ef92001e95d9c316e79a145a043c9c327ec94d1a82e104ab408ca1021832745aa
|
||||
|
@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Chrpath can modify the rpath and runpath of ELF executables"
|
||||
HOMEPAGE="https://directory.fsf.org/wiki/Chrpath"
|
||||
# original upstream no longer exists (ftp://ftp.hungry.com/pub/hungry)
|
||||
SRC_URI="https://alioth-archive.debian.org/releases/${PN}/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="static-libs"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-multilib.patch
|
||||
"${FILESDIR}"/${PN}-keepgoing.patch
|
||||
"${FILESDIR}"/${P}-testsuite-1.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# disable installing redundant docs in the wrong dir
|
||||
sed -i -e '/doc_DATA/d' Makefile.am || die
|
||||
# fix for automake-1.13, #467538
|
||||
sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if ! use static-libs; then
|
||||
find "${D}" -name "*.la" -delete || die
|
||||
fi
|
||||
}
|
@ -1,160 +0,0 @@
|
||||
Index: chrpath-0.13/Makefile.am
|
||||
===================================================================
|
||||
--- chrpath-0.13.orig/Makefile.am
|
||||
+++ chrpath-0.13/Makefile.am
|
||||
@@ -12,12 +12,19 @@ debs:
|
||||
fakeroot debian/rules binary
|
||||
|
||||
chrpath_SOURCES = \
|
||||
- chrpath.c \
|
||||
- killrpath.c \
|
||||
main.c \
|
||||
- elf.c \
|
||||
protos.h
|
||||
|
||||
+chrpath_LDADD = $(LDLIBS)
|
||||
+
|
||||
+lib_LTLIBRARIES = libchrpath32.la libchrpath64.la
|
||||
+libchrpath32_la_SOURCES = chrpath.c killrpath.c elf.c protos.h
|
||||
+libchrpath32_la_CFLAGS = -DSIZEOF_VOID_P=4
|
||||
+libchrpath32_la_LDFLAGS = -avoid-version
|
||||
+libchrpath64_la_SOURCES = chrpath.c killrpath.c elf.c protos.h
|
||||
+libchrpath64_la_CFLAGS = -DSIZEOF_VOID_P=8
|
||||
+libchrpath64_la_LDFLAGS = -avoid-version
|
||||
+
|
||||
EXTRA_DIST = ChangeLog.usermap $(man_MANS)
|
||||
|
||||
CLEANFILES = *.bb *.bbg *.da *.gcov testsuite/*.bb testsuite/*.bbg
|
||||
Index: chrpath-0.13/configure.ac
|
||||
===================================================================
|
||||
--- chrpath-0.13.orig/configure.ac
|
||||
+++ chrpath-0.13/configure.ac
|
||||
@@ -16,6 +16,7 @@ CHRPATH_LDRPATH_OPTION
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
+AC_PROG_LIBTOOL
|
||||
|
||||
dnl Checks for libraries.
|
||||
|
||||
@@ -26,11 +27,19 @@ AC_CHECK_HEADERS([getopt.h elf.h fcntl.h
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
AC_C_BIGENDIAN
|
||||
-AC_CHECK_SIZEOF(void *)
|
||||
|
||||
dnl Checks for library functions.
|
||||
AC_CHECK_FUNCS(getopt_long)
|
||||
|
||||
+dnl See if we need -ldl on this platform for dlopen
|
||||
+LDLIBS=
|
||||
+save_LIBS="$LIBS"
|
||||
+LIBS=
|
||||
+AC_SEARCH_LIBS([dlopen], [dl])
|
||||
+LDLIBS=${LIBS}
|
||||
+LIBS="${save_LIBS}"
|
||||
+AC_SUBST([LDLIBS])
|
||||
+
|
||||
if eval "test x$GCC = xyes"; then
|
||||
for flag in \
|
||||
-ansi \
|
||||
Index: chrpath-0.13/main.c
|
||||
===================================================================
|
||||
--- chrpath-0.13.orig/main.c
|
||||
+++ chrpath-0.13/main.c
|
||||
@@ -12,13 +12,19 @@
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
+#include <dlfcn.h>
|
||||
+#include <elf.h>
|
||||
+#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <unistd.h>
|
||||
#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
-#include "protos.h"
|
||||
+
|
||||
+typedef int (*killrpath_t)(const char *filename);
|
||||
+typedef int (*chrpath_t)(const char *filename, const char *newpath, int convert);
|
||||
|
||||
#ifdef HAVE_GETOPT_LONG
|
||||
# define GETOPT_LONG getopt_long
|
||||
@@ -61,6 +67,30 @@ usage(char *progname)
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
+static unsigned
|
||||
+elf_class(const char *filename)
|
||||
+{
|
||||
+ Elf32_Ehdr ehdr;
|
||||
+ int fd;
|
||||
+
|
||||
+ fd = open(filename, O_RDONLY);
|
||||
+ if (fd == -1)
|
||||
+ return 0;
|
||||
+ if (read(fd, &ehdr, sizeof(ehdr)) != sizeof(ehdr))
|
||||
+ {
|
||||
+ close(fd);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ close(fd);
|
||||
+ if ((memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0)
|
||||
+ || (ehdr.e_ident[EI_VERSION] != EV_CURRENT))
|
||||
+ {
|
||||
+ fprintf(stderr, "`%s' probably isn't an ELF file.\n", filename);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ return ehdr.e_ident[EI_CLASS];
|
||||
+}
|
||||
+
|
||||
int
|
||||
main(int argc, char * const argv[])
|
||||
{
|
||||
@@ -73,6 +103,9 @@ main(int argc, char * const argv[])
|
||||
#ifdef HAVE_GETOPT_LONG
|
||||
int option_index = 0;
|
||||
#endif /* HAVE_GETOPT_LONG */
|
||||
+ void* dll[2];
|
||||
+ killrpath_t killrpath[2];
|
||||
+ chrpath_t chrpath[2];
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
@@ -116,14 +149,31 @@ main(int argc, char * const argv[])
|
||||
}
|
||||
} while (-1 != opt);
|
||||
|
||||
+ dll[0] = dlopen("libchrpath32.so", RTLD_LAZY);
|
||||
+ killrpath[0] = (killrpath_t)dlsym(dll[0], "killrpath");
|
||||
+ chrpath[0] = (chrpath_t)dlsym(dll[0], "chrpath");
|
||||
+
|
||||
+ dll[1] = dlopen("libchrpath64.so", RTLD_LAZY);
|
||||
+ killrpath[1] = (killrpath_t)dlsym(dll[1], "killrpath");
|
||||
+ chrpath[1] = (chrpath_t)dlsym(dll[1], "chrpath");
|
||||
+
|
||||
while (optind < argc && (!retval || keep_going))
|
||||
{
|
||||
+ const char* program = argv[optind++];
|
||||
+ unsigned eclass = elf_class(program);
|
||||
+ if (!eclass)
|
||||
+ {
|
||||
+ retval = 1;
|
||||
+ continue;
|
||||
+ }
|
||||
if (remove)
|
||||
- retval |= killrpath(argv[optind++]);
|
||||
+ retval |= killrpath[eclass - ELFCLASS32](program);
|
||||
else
|
||||
/* list by default, replace if path is set */
|
||||
- retval |= chrpath(argv[optind++], newpath, convert);
|
||||
+ retval |= chrpath[eclass - ELFCLASS32](program, newpath, convert);
|
||||
}
|
||||
|
||||
+ dlclose(dll[0]);
|
||||
+ dlclose(dll[1]);
|
||||
return retval;
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
Submitted By: Mario Fetka (geos_one) (mario dot fetka at gmail dot com)
|
||||
Date: 2010-04-04
|
||||
Initial Package Version: 0.13
|
||||
Origin: me
|
||||
Upstream Status: unknown
|
||||
Description: make the testsuite run with the new mltilib design
|
||||
|
||||
diff -Naur chrpath-0.13.orig/testsuite/runtest.sh chrpath-0.13/testsuite/runtest.sh
|
||||
--- chrpath-0.13.orig/testsuite/runtest.sh 2010-04-04 09:02:21.859114159 +0000
|
||||
+++ chrpath-0.13/testsuite/runtest.sh 2010-04-04 09:42:08.762112560 +0000
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
set -x
|
||||
|
||||
+export LD_LIBRARY_PATH=$PWD/../.libs:$LD_LIBRARY_PATH
|
||||
+
|
||||
CHRPATH=../chrpath
|
||||
|
||||
retval=0
|
@ -1,20 +0,0 @@
|
||||
--- chrpath-0.13/main.c.orig 2006-02-27 20:21:06.000000000 +0100
|
||||
+++ chrpath-0.13/main.c 2006-02-27 21:07:16.027641500 +0100
|
||||
@@ -57,6 +57,7 @@
|
||||
printf(" -r <path>|--replace <path> Replace current rpath/runpath setting\n");
|
||||
printf(" with the path given\n");
|
||||
printf(" -l|--list List the current rpath/runpath (default)\n");
|
||||
+ printf(" -k|--keepgoing Continue as much as possible after an error.\n");
|
||||
printf(" -h|--help Show this usage information.\n");
|
||||
#ifndef HAVE_GETOPT_LONG
|
||||
printf("\n *** The long options are not available on this platform");
|
||||
--- chrpath-0.13/chrpath.1.orig 2004-09-19 10:35:44.000000000 +0200
|
||||
+++ chrpath-0.13/chrpath.1 2006-02-28 10:06:28.187060500 +0100
|
||||
@@ -22,6 +22,7 @@
|
||||
[ \fB-r\fP \fI<path>\fP |\ \fB--replace\fP \fI<path>\fP ]
|
||||
[ \fB-c\fP | \fB--convert\fP ]
|
||||
[ \fB-l\fP | \fB--list\fP ]
|
||||
+[ \fB-k\fP | \fB--keepgoing\fP ]
|
||||
[ \fB-h\fP | \fB--help\fP ]
|
||||
\fI<program>\fP [ \fI<program>\fP ... ]
|
||||
.SH DESCRIPTION
|
@ -1,2 +1,4 @@
|
||||
DIST kube-bench-0.6.6-deps.tar.xz 182543748 BLAKE2B c3084b6940a380a6b25d24fd397f9e6ea777c4fb156729e0adadf0c96b882d710b475ee1b69d2359f43cd595aa934c49ab60fd44dd5d10ea6366c770c0d131a2 SHA512 a5e88c687c0cf858ea504b345bf54424c7a9d10e5cde889c73e5cf3f0402b65a8c7bb2e8c9edd7c0be9bfa3b8f7c9e6a5f8c568ca951437cf552413e126c0295
|
||||
DIST kube-bench-0.6.6.tar.gz 717589 BLAKE2B 727323530d471cc9256c654a0b5b2d1f7ada3beed6b06f4d425cd97e8aab0bd218db539a266f25a1b3fa0fb39158d724371763cb8add82f3ad89c4f44e6877f8 SHA512 26071730eea02e87145b44bec19f7cc9d34fdc6b6f8ec7dcb569437bd6bd2c8e72bf223432413027efb96ec7027ffd8e0d62f44263c0b5bab2468204505603b9
|
||||
DIST kube-bench-0.6.8-deps.tar.xz 189993884 BLAKE2B e7e1f791552f4dafada11898bcc89656198f94822852e3b50d02a4739649d8f9b30c71f542921c7dc03baf15729df7c6b83ebaac3472a92a4ca156b34013ff5e SHA512 ec895053686325954f79c5960e1d6548db4186c1ddc04b29f07005306f7026c058ed9d16880ad8bce80ed77b7f8b517da2c079a0e5dfb2ef22b0eb66d53cd4d6
|
||||
DIST kube-bench-0.6.8.tar.gz 728744 BLAKE2B 633c6be69e388e9ee33c92fd7bf6b5f75e6646e1b8c00a2a9974425ee66e02ea816ba7a106e125559c783b86030f177e21486894f665dfc4aaf0d55880055a88 SHA512 3ad1bfdece19bd71f8c34ff2b1cb7c046a2c3ceb625f25c80e43b0c63a3c350b7dd883902c79430faf851c60547be024f2b7b6ca049d131506c750e61adf71b4
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Kubernetes Bench for Security runs the CIS Kubernetes Benchmark"
|
||||
HOMEPAGE="https://github.com/aquasecurity/kube-bench"
|
||||
SRC_URI="https://github.com/aquasecurity/kube-bench/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0 MIT MPL-2.0 BSD BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
src_compile() {
|
||||
emake KUBEBENCH_VERSION=v${PV} build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
insinto /etc/kube-bench
|
||||
doins -r cfg
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake tests
|
||||
}
|
@ -1,10 +1,4 @@
|
||||
DIST vault-1.10.3-vendor.tar.gz 48109465 BLAKE2B 45985a6ae4445ec75b29f198113fdd1f1e3aa54896c2da0fdf817cf30603c36379405aa3a65e8d20c0380a06e9b335186e6228b176d3afc541a28bed749d6129 SHA512 3c9220fb42af1e6f1bafd7991b0026cafe313cfa53d4841d5d4a1a19f10ff369826dc07c3d2eaf21a3c7227dbcafc1c134814a970429b0842919664ee0ef8988
|
||||
DIST vault-1.10.3-webui.tar.xz 1258176 BLAKE2B 85fd1b804b880a3dcdbbd4e825b663f02a985259d0a74ab7cddf4a9a2393c60918b389d0e4e81574b93c8b0867647fc1d17f7ca3e719b36ab41d6825adfbdaae SHA512 9640a7e25de0761a310e234098a0dd31db9e04b30036045ff7edaaca8f7496466f1c0148855a5e1ef270638e90a8fb97aff2c5482b32512772021c99691a5aa5
|
||||
DIST vault-1.10.4-vendor.tar.gz 50089463 BLAKE2B 299e7619f158a2ea0683feaaff4a7c5019da02fa03daf25e0b4415f03b703ca11733c486165a21ffcd5b3c1d221db5b9e24e898f3cf3de014c09e29531841dcf SHA512 056a6056bac127083358f1811e8e587f0521b734219a6e03e019527fafcadfbd0d71a05314cb269e27b03423349b5a857d234d3949d0d15e7c7b1175bc573c57
|
||||
DIST vault-1.10.4-webui.tar.xz 1258340 BLAKE2B 556da0e566852e5c6a091bd9139a88a9099e5f6422e225b7a4068e1bef3d9fd5a2292bb2efbe12545c20f6c956fd6180500972d5248f05bbb96db50a90ae4741 SHA512 ec9cc568d8d56ba379d0fdee31e0edc8aa8110366b112790573794975a0b32324f517e5fead39fbf59ab99667837b0e08ebadfb6d41dcde85d474712b34b475a
|
||||
DIST vault-1.10.5-vendor.tar.gz 50096802 BLAKE2B 07f797666f97666a3dbdfb3cca7ba9fea1a45b26fd35d902200acdf3bad33ad365f4d547a1c3fe42f9e6a41258713b48673236d5f64547016ba08b43ede4eeda SHA512 87f56ff16a2a28690dd128ff0f1c480616ae7948eaff337e3d3e4eb3370d6d1322b2a488044bc237f9eafc60d42652f3a7decb7283d1596285762cf570fea8ca
|
||||
DIST vault-1.10.5-webui.tar.xz 1258192 BLAKE2B c546475dc9949c8854e702ff97267cde97472b47f209e7ed923e6caf9d0fe2b615c0087299148c0325669ae25b4ec111d7e8eff8454dfe5fe15a47bf4c969984 SHA512 fb44ad261cfa2e492b824fc8ec0ad44e54eaa417980bd9cd845e017fcad23670231a696df306332df5cfd5ce039cc1e3f744fe3ef35563b4902ebb15798a6b1d
|
||||
DIST vault-1.11.0-vendor.tar.gz 49927497 BLAKE2B d7a12c1c1710c2a487b9c08a871b1d7b011d90957cab6980eb2f7eaff4ff544509899ee07c326bba8310ff16ee3bf88586dba340249cf0f7804007963af7d692 SHA512 b3b9275d5ae41c21826ed0bf1eeaffffe10e5e95b085bf8cf6af6c9ff565848f4a3f83d9a8d6165867de11b0f877383cb972e7d4313a753b0dca391203ecb4c6
|
||||
DIST vault-1.11.0-webui.tar.xz 1335764 BLAKE2B 9733ae0c2fe04018dac73358a56a162e23877e68b3ce59ca569cea7e27f39c91727ab0810a737167b3f02d92a0d58e9a7195da892c677bece60fbe965dba7fdf SHA512 a5df9f0e854af8f30d6b5d15628a087c1c37361e2a0de4e412e7f78ac51affc774c1a6ed084dd849b68b147d527547593c1124d1170be38b918efd28081a6f0b
|
||||
DIST vault-1.11.1-vendor.tar.gz 52063513 BLAKE2B adb2fb6ab7991e94ce00aa298837f2fac21c24bb8ea8edd2265eed6664498b38567d81fcfe28749b4bf16c449c769448a75fa3c1403f5cdf33b18580d8a65936 SHA512 c1247308f390117c98e43dd82498a069c34d3e766298dd05d5ddb5f69b9a3db2e312b897f35c9f63225cffcac476ba1021a4a71100721848642b6c4412123251
|
||||
DIST vault-1.11.1-webui.tar.xz 1335740 BLAKE2B 6a6fdcb22563ad4c3f18bf3816fe8a016c11d19a014458594c2dade3dc8e908db252c34bad88be9e80c2a6408af28af6324158e1e69b40061af6d6fe1a66c655 SHA512 1c02e0ef645df946ffb9d967a9be230800e67597d0ed6cf8afb2688eed9ca863a1f29efeefbb51e0257d2be588da443864df9e1306956844645b0168c2d58d9b
|
||||
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
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"
|
||||
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}\':: \
|
||||
-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}
|
||||
}
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
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}\':: \
|
||||
-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}
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
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}
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,14 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>fonts@gentoo.org</email>
|
||||
<name>Fonts</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="extras">Install experimental extra tools: wince_info and
|
||||
wince_rename for examining and processing Windows CE installation cabinet
|
||||
header files; cabinfo for examining the structure of a cab file.
|
||||
</flag>
|
||||
</use>
|
||||
<maintainer type="project">
|
||||
<email>fonts@gentoo.org</email>
|
||||
<name>Fonts</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="extras">Install experimental extra tools: wince_info and
|
||||
wince_rename for examining and processing Windows CE installation cabinet
|
||||
header files; cabinfo for examining the structure of a cab file.
|
||||
</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">kyz/libmspack</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,33 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module
|
||||
GIT_COMMIT=a6ec8f11be5fdc116dc7bbfebdc03bfc13cd2005
|
||||
SYFT_VERSION=0.52.0
|
||||
|
||||
DESCRIPTION="A vulnerability scanner for container images and filesystems"
|
||||
HOMEPAGE="https://www.anchore.com"
|
||||
SRC_URI="https://github.com/anchore/grype/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# tests require a running docker
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
ego build -o bin/grype -ldflags "
|
||||
-extldflags '-static'
|
||||
-X github.com/anchore/grype/internal/version.version=${PV}
|
||||
-X github.com/anchore/grype/internal/version.syftVersion=${SYFT_VERSION}
|
||||
-X github.com/anchore/grype/internal/version.gitCommit=${GIT_COMMIT}
|
||||
-X github.com/anchore/grype/internal/version.buildDate=${BUILD_DATE}
|
||||
-X github.com/anchore/grype/internal/version.gitDescription=v${PV}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/grype
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module
|
||||
GIT_COMMIT=ba9adb17ebb510a2a3bd2b641738b1d9235e1f3e
|
||||
|
||||
DESCRIPTION="Generate a Software Bill of Materials from container images and filesystems"
|
||||
HOMEPAGE="https://www.anchore.com"
|
||||
SRC_URI="https://github.com/anchore/syft/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
|
||||
# tests require a running docker daemon
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
local BUILD_DATE
|
||||
BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
ego build -o bin/syft -ldflags "
|
||||
-extldflags '-static'
|
||||
-X github.com/anchore/syft/internal/version.version=${PV}
|
||||
-X github.com/anchore/syft/internal/version.gitCommit=${GIT_COMMIT}
|
||||
-X github.com/anchore/syft/internal/version.buildDate=${BUILD_DATE}
|
||||
-X github.com/anchore/syft/internal/version.gitDescription=v${PV}
|
||||
" ./cmd/syft
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/*
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST acme-tiny-4.1.0.tar.gz 12776 BLAKE2B 7efd9d1399ec3bbd98180511c9f36fbf6f9a96a0d4e0e72b9d4c85d16246118eaaad25bc26ba42f746fd4b60b498ceca5307e279d788157237ac6ad153848501 SHA512 31d69a5031c019acbc23b3f06041eae8e261766396d4a7420fd70a71cfa16de953bea4c0c2ad0c6a6e793ed61ab5331f40145352ffce69f4f062f35dd0db7519
|
||||
DIST acme-tiny-5.0.1.tar.gz 21036 BLAKE2B a09c16ca19570b48d34c919e2a361e3be5d66ed8fc0ccff7af74e4018d294f2940a552906dee45bac27a16e7b039a3567dc35e201b058015c5123baa2cbb01c1 SHA512 6e0619917b31a5795c2c7d8aa811b46231b81fc6b57227f611f7f4b9f73eb3de669676482563c33d935a4a0812498677bcbe974663a561af61abb441a880947e
|
||||
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{3_7,3_8,3_9} )
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/diafygi/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/diafygi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A tiny, auditable script for Let's Encrypt's ACME Protocol"
|
||||
HOMEPAGE="https://github.com/diafygi/acme-tiny"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]"
|
||||
RDEPEND="dev-libs/openssl:0"
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's|#!/usr/bin/sh|#!/bin/sh|g' README.md || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "$v" "-lt" "4.0.3" || ver_test "$v" "-ge" "9999"; then
|
||||
einfo "The --account-email flag has been changed to --contact and"
|
||||
einfo "has different syntax."
|
||||
einfo "Please update your scripts accordingly"
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python{3_7,3_8,3_9,3_10} )
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/diafygi/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/diafygi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A tiny, auditable script for Let's Encrypt's ACME Protocol"
|
||||
HOMEPAGE="https://github.com/diafygi/acme-tiny"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]"
|
||||
RDEPEND="dev-libs/openssl:0"
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's|#!/usr/bin/sh|#!/bin/sh|g' README.md || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "$v" "-lt" "4.0.3" || ver_test "$v" "-ge" "9999"; then
|
||||
einfo "The --account-email flag has been changed to --contact and"
|
||||
einfo "has different syntax."
|
||||
einfo "Please update your scripts accordingly"
|
||||
fi
|
||||
done
|
||||
}
|
@ -1,8 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="github">diafygi/acme-tiny</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>graaff@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">diafygi/acme-tiny</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
FROM_LANG="English"
|
||||
TO_LANG="Japanese"
|
||||
DICT_PREFIX="jmdict-"
|
||||
|
||||
inherit stardict
|
||||
|
||||
HOMEPAGE="http://download.huzheng.org/ja/"
|
||||
SRC_URI="http://download.huzheng.org/ja/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GDLS"
|
||||
KEYWORDS="~amd64 ~ppc ~riscv sparc x86"
|
||||
IUSE=""
|
@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
FROM_LANG="English"
|
||||
TO_LANG="Japanese"
|
@ -1,17 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
FROM_LANG="Japanese"
|
||||
TO_LANG="English"
|
||||
DICT_PREFIX="jmdict-"
|
||||
|
||||
inherit stardict
|
||||
|
||||
HOMEPAGE="http://download.huzheng.org/ja/"
|
||||
SRC_URI="http://download.huzheng.org/ja/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GDLS"
|
||||
KEYWORDS="~amd64 ~ppc ~riscv sparc x86"
|
||||
IUSE=""
|
@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
FROM_LANG="Japanese"
|
||||
TO_LANG="English"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue