parent
7f19283bcb
commit
33893783cc
Binary file not shown.
Binary file not shown.
@ -1,3 +1,5 @@
|
||||
DIST aws-cli-1.27.32.gh.tar.gz 2328348 BLAKE2B 0958525a47f6dac8422dd37c9e099c2bf48d4bb5a8897673d18bb5b747dc6a0806d71cdf92899daf768ffa7cf9b7d39fe559cadad46eabc7913130d98c578d75 SHA512 db034e58761368a72e5a233e49e6c904281635fb47384f984b2ead1bd285bdb0af1a7e7b76d77ddaa6d19496ee1add756e1dbc43044aab1ba2b1f09232a112c9
|
||||
DIST aws-cli-1.27.37.gh.tar.gz 2332965 BLAKE2B 9c855f02bc63f64e3d9bb706139305a6b3dad523bd2563c9d6ca4b39b340ea242bf8e85ee369ca92d327073d9eb0a4f0e3da59b4016eaa2ce4f48aa083cc9c51 SHA512 3f53d4c15244019d1773486e192bda4ca69a9afe8e32f2fcfd9f56affc3bcc84e15a1aa4b27563f404bc5471b868eabc74c8fb3884deb0372d61a038e101202a
|
||||
DIST aws-cli-1.27.41.gh.tar.gz 2333941 BLAKE2B ab39bd9acdf7d2d6f7ac6a8168b5959ede6799b4e06e04892fd49fae056b384c4fe9f7d721301b46be90f84fc0ead345968d1bc93399c8d8a374559e10c31519 SHA512 81d36eb1554386968924ea14c42e03fc21ab32ab97750f2d8fd20ac0deb6a6a7184b84b41e06ba0738ece233ff9dba08fe1f9f801bce1a2b38656c73f23e76e0
|
||||
DIST aws-cli-1.27.42.gh.tar.gz 2334306 BLAKE2B ae531e82fcc4f7fc290d1a383f3d93eb20fc238a759d9f2afefed64998f47958456b9f32345a314e0d34a8817777d47e554fa367845c8d7dcfac27f3e3b6a12e SHA512 f2d976e9892b512a9d0d4bf2a629089aa0b63f273ef6464173cdabbe7e9e348bfaded1e2b1e15656db0ca4245d9de798b6e896da945aab359dacd8f1811bd5ba
|
||||
DIST aws-cli-1.27.43.gh.tar.gz 2334390 BLAKE2B dce5ebdf220a946084506765a72f6d7afd7a8667c9cc8d4c5ffe39fc0386d96a96f129fe54c5b150b5b47b5cfa1a3a1b3dbd7e8f424191030f5ff22872ac169e SHA512 a927b05bc2dd9eb5c64f4f80e85719f8571f025ab3734beed34720376088f0434c286d050159a7042f1149f3a5c1936588c20faf97cbd4b068d0a74a390876db
|
||||
|
@ -0,0 +1,80 @@
|
||||
# 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,80 @@
|
||||
# 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
|
||||
}
|
Binary file not shown.
@ -1,215 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit cmake flag-o-matic python-any-r1 systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="https://www.clamav.net/"
|
||||
SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc clamonacc +clamapp libclamav-only milter rar selinux systemd test"
|
||||
|
||||
REQUIRED_USE="libclamav-only? ( !clamonacc !clamapp !milter )
|
||||
clamonacc? ( clamapp )
|
||||
milter? ( clamapp )
|
||||
test? ( !libclamav-only )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Require acct-{user,group}/clamav at build time so that we can set
|
||||
# the permissions on /var/lib/clamav in src_install rather than in
|
||||
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||
CDEPEND="acct-group/clamav
|
||||
acct-user/clamav
|
||||
dev-libs/libltdl
|
||||
dev-libs/libmspack
|
||||
dev-libs/json-c:=
|
||||
dev-libs/libpcre2
|
||||
>=sys-libs/zlib-1.2.2:=
|
||||
app-arch/bzip2
|
||||
clamapp? ( sys-libs/ncurses:= net-misc/curl )
|
||||
elibc_musl? ( sys-libs/fts-standalone )
|
||||
virtual/libiconv
|
||||
!libclamav-only? ( net-misc/curl )
|
||||
dev-libs/openssl:=
|
||||
milter? ( mail-filter/libmilter:= )
|
||||
dev-libs/libxml2
|
||||
rar? ( app-arch/unrar )
|
||||
test? ( dev-python/pytest )"
|
||||
# TODO: there is no way to use this with the new build system instead of the bundled one
|
||||
# dev-libs/tomsfastmath
|
||||
BDEPEND="virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]')
|
||||
)"
|
||||
DEPEND="${CDEPEND}
|
||||
test? ( dev-libs/check )"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
python_check_deps() {
|
||||
has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use elibc_musl && append-ldflags -lfts
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
|
||||
local mycmakeargs=(
|
||||
-DDATABASE_DIRECTORY="${EPREFIX}"/var/lib/clamav
|
||||
-DAPP_CONFIG_DIRECTORY="${EPREFIX}"/etc/clamav
|
||||
-DENABLE_EXPERIMENTAL=OFF
|
||||
-DENABLE_JSON_SHARED=ON
|
||||
-DENABLE_APP=$(usex clamapp ON OFF)
|
||||
-DENABLE_MILTER=$(usex milter ON OFF)
|
||||
-DENABLE_CLAMONACC=$(usex clamonacc ON OFF)
|
||||
-DCLAMAV_USER="clamav"
|
||||
-DCLAMAV_GROUP="clamav"
|
||||
-DBYTECODE_RUNTIME=interpreter
|
||||
-DOPTIMIZE=ON
|
||||
-DENABLE_EXTERNAL_MSPACK=ON
|
||||
-DENABLE_MAN_PAGES=ON
|
||||
-DENABLE_DOXYGEN=$(usex doc)
|
||||
-DENABLE_UNRAR=$(usex rar ON OFF)
|
||||
-DENABLE_TESTS=$(usex test ON OFF)
|
||||
# Used to enable some more tests but doesn't behave well in
|
||||
# sandbox necessarily(?) + needs certain debug symbols present
|
||||
# in e.g. glibc.
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Valgrind=ON
|
||||
-DENABLE_STATIC_LIB=OFF
|
||||
-DENABLE_SHARED_LIB=ON
|
||||
-DENABLE_SYSTEMD=$(usex systemd ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
# init scripts
|
||||
newinitd "${FILESDIR}/clamd.initd" clamd
|
||||
newinitd "${FILESDIR}/freshclam.initd" freshclam
|
||||
use clamonacc && \
|
||||
newinitd "${FILESDIR}/clamonacc.initd" clamonacc
|
||||
use milter && \
|
||||
newinitd "${FILESDIR}/clamav-milter.initd" clamav-milter
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav || die
|
||||
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
# The tmpfiles entry is behind USE=systemd because the
|
||||
# upstream OpenRC service files should (and do) ensure that
|
||||
# the directories they need exist and have the correct
|
||||
# permissions without the help of opentmpfiles. There are
|
||||
# years-old root exploits in opentmpfiles, the design is
|
||||
# fundamentally flawed, and the maintainer is not up to
|
||||
# the task of fixing it.
|
||||
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service-0.104.0" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
|
||||
"freshclamd.service"
|
||||
fi
|
||||
|
||||
if use clamapp ; then
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(LocalSocket .*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/clamd.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamd.conf || die
|
||||
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(DatabaseOwner .*\)/\1/" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamav/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/freshclam.conf.sample > \
|
||||
"${ED}"/etc/clamav/freshclam.conf || die
|
||||
|
||||
if use milter ; then
|
||||
# Note: only keep the "unix" ClamdSocket and MilterSocket!
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(ClamdSocket unix:.*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s/^#\(MilterSocket unix:.*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf || die
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-0.104.0" clamav-milter.service
|
||||
fi
|
||||
|
||||
local i
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
if [[ -f "${ED}"/etc/"${i}".conf.sample ]] ; then
|
||||
mv "${ED}"/etc/"${i}".conf{.sample,} || die
|
||||
fi
|
||||
done
|
||||
|
||||
# These both need to be writable by the clamav user.
|
||||
# TODO: use syslog by default; that's what it's for.
|
||||
diropts -o clamav -g clamav
|
||||
keepdir /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fi
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
local HTML_DOCS=( docs/html/. )
|
||||
einstalldocs
|
||||
fi
|
||||
|
||||
# Don't install man pages for utilities we didn't install
|
||||
if use libclamav-only ; then
|
||||
rm -r "${ED}"/usr/share/man || die
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
tmpfiles_process clamav.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
|
||||
local databases=( "${EROOT}"/var/lib/clamav/main.c[lv]d )
|
||||
if [[ ! -f "${databases}" ]] ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database"
|
||||
ewarn "before starting clamav for the first time."
|
||||
fi
|
||||
|
||||
ewarn "This version of ClamAV provides separate OpenRC services"
|
||||
ewarn "for clamd, freshclam, clamav-milter, and clamonacc. The"
|
||||
ewarn "clamd service now starts only the clamd daemon itself. You"
|
||||
ewarn "should add freshclam (and perhaps clamav-milter) to any"
|
||||
ewarn "runlevels that previously contained clamd."
|
||||
}
|
@ -1,246 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_MAX_SLOT=13
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
inherit cmake flag-o-matic llvm python-any-r1 systemd tmpfiles
|
||||
|
||||
DESCRIPTION="Clam Anti-Virus Scanner"
|
||||
HOMEPAGE="https://www.clamav.net/"
|
||||
SRC_URI="https://www.clamav.net/downloads/production/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="doc clamonacc +clamapp experimental jit libclamav-only milter rar selinux systemd test"
|
||||
|
||||
REQUIRED_USE="libclamav-only? ( !clamonacc !clamapp !milter )
|
||||
clamonacc? ( clamapp )
|
||||
milter? ( clamapp )
|
||||
test? ( !libclamav-only )"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
# Require acct-{user,group}/clamav at build time so that we can set
|
||||
# the permissions on /var/lib/clamav in src_install rather than in
|
||||
# pkg_postinst; calling "chown" on the live filesystem scares me.
|
||||
CDEPEND="
|
||||
acct-group/clamav
|
||||
acct-user/clamav
|
||||
app-arch/bzip2
|
||||
dev-libs/json-c:=
|
||||
dev-libs/libltdl
|
||||
dev-libs/libmspack
|
||||
dev-libs/libpcre2:=
|
||||
dev-libs/libxml2
|
||||
dev-libs/openssl:=
|
||||
dev-libs/tomsfastmath:=
|
||||
>=sys-libs/zlib-1.2.2:=
|
||||
virtual/libiconv
|
||||
!libclamav-only? ( net-misc/curl )
|
||||
clamapp? ( sys-libs/ncurses:= net-misc/curl )
|
||||
elibc_musl? ( sys-libs/fts-standalone )
|
||||
jit? ( <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):= )
|
||||
milter? ( mail-filter/libmilter:= )
|
||||
rar? ( app-arch/unrar )
|
||||
test? ( dev-python/pytest )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
>=virtual/rust-1.56
|
||||
doc? ( app-doc/doxygen )
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_any_dep 'dev-python/pytest[${PYTHON_USEDEP}]')
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
test? ( dev-libs/check )"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-clamav )"
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
use jit && llvm_pkg_setup
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-cmake-llvm-fix.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
use elibc_musl && append-ldflags -lfts
|
||||
use ppc64 && append-flags -mminimal-toc
|
||||
|
||||
local mycmakeargs=(
|
||||
-DDATABASE_DIRECTORY="${EPREFIX}"/var/lib/clamav
|
||||
-DAPP_CONFIG_DIRECTORY="${EPREFIX}"/etc/clamav
|
||||
-DENABLE_EXPERIMENTAL=$(usex experimental ON OFF)
|
||||
-DENABLE_JSON_SHARED=ON
|
||||
-DENABLE_APP=$(usex clamapp ON OFF)
|
||||
-DENABLE_MILTER=$(usex milter ON OFF)
|
||||
-DENABLE_CLAMONACC=$(usex clamonacc ON OFF)
|
||||
-DCLAMAV_USER="clamav"
|
||||
-DCLAMAV_GROUP="clamav"
|
||||
-DBYTECODE_RUNTIME=$(usex jit llvm interpreter)
|
||||
-DOPTIMIZE=ON
|
||||
-DENABLE_EXTERNAL_MSPACK=ON
|
||||
-DENABLE_EXTERNAL_TOMSFASTMATH=ON
|
||||
-DENABLE_MAN_PAGES=ON
|
||||
-DENABLE_DOXYGEN=$(usex doc)
|
||||
-DENABLE_UNRAR=$(usex rar ON OFF)
|
||||
-DENABLE_TESTS=$(usex test ON OFF)
|
||||
-DENABLE_STATIC_LIB=OFF
|
||||
-DENABLE_SHARED_LIB=ON
|
||||
-DENABLE_SYSTEMD=$(usex systemd ON OFF)
|
||||
)
|
||||
|
||||
if use test ; then
|
||||
# https://bugs.gentoo.org/818673
|
||||
# Used to enable some more tests but doesn't behave well in
|
||||
# sandbox necessarily(?) + needs certain debug symbols present
|
||||
# in e.g. glibc.
|
||||
mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Valgrind=ON )
|
||||
fi
|
||||
|
||||
if use jit ; then
|
||||
# Suppress CMake warnings that variables aren't consumed if we aren't using LLVM
|
||||
# https://github.com/Cisco-Talos/clamav/blob/main/INSTALL.md#llvm-optional-see-bytecode-runtime-section
|
||||
# https://github.com/Cisco-Talos/clamav/blob/main/INSTALL.md#bytecode-runtime
|
||||
mycmakeargs+=(
|
||||
-DLLVM_ROOT_DIR="$(get_llvm_prefix -d ${LLVM_MAX_SLOT})"
|
||||
-DLLVM_FIND_VERSION="$(best_version sys-devel/llvm:${LLVM_MAX_SLOT} | cut -c 16-)"
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
# init scripts
|
||||
newinitd "${FILESDIR}/clamd.initd" clamd
|
||||
newinitd "${FILESDIR}/freshclam.initd" freshclam
|
||||
use clamonacc && \
|
||||
newinitd "${FILESDIR}/clamonacc.initd" clamonacc
|
||||
use milter && \
|
||||
newinitd "${FILESDIR}/clamav-milter.initd" clamav-milter
|
||||
|
||||
rm -rf "${ED}"/var/lib/clamav || die
|
||||
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
# The tmpfiles entry is behind USE=systemd because the
|
||||
# upstream OpenRC service files should (and do) ensure that
|
||||
# the directories they need exist and have the correct
|
||||
# permissions without the help of opentmpfiles. There are
|
||||
# years-old root exploits in opentmpfiles, the design is
|
||||
# fundamentally flawed, and the maintainer is not up to
|
||||
# the task of fixing it.
|
||||
dotmpfiles "${FILESDIR}/tmpfiles.d/clamav.conf"
|
||||
systemd_newunit "${FILESDIR}/clamd_at.service-0.104.0" "clamd@.service"
|
||||
systemd_dounit "${FILESDIR}/clamd.service"
|
||||
systemd_newunit "${FILESDIR}/freshclamd.service-r1" \
|
||||
"freshclamd.service"
|
||||
fi
|
||||
|
||||
if use clamapp ; then
|
||||
# Modify /etc/{clamd,freshclam}.conf to be usable out of the box
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(LocalSocket .*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamd.log:" \
|
||||
-e "s:^\#\(LogTime\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/clamd.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamd.conf || die
|
||||
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(DatabaseOwner .*\)/\1/" \
|
||||
-e "s:^\#\(UpdateLogFile\) .*:\1 ${EPREFIX}/var/log/clamav/freshclam.log:" \
|
||||
-e "s:^\#\(NotifyClamd\).*:\1 ${EPREFIX}/etc/clamav/clamd.conf:" \
|
||||
-e "s:^\#\(ScriptedUpdates\).*:\1 yes:" \
|
||||
-e "s/^#\(DatabaseDirectory .*\)/\1/" \
|
||||
"${ED}"/etc/clamav/freshclam.conf.sample > \
|
||||
"${ED}"/etc/clamav/freshclam.conf || die
|
||||
|
||||
if use milter ; then
|
||||
# Note: only keep the "unix" ClamdSocket and MilterSocket!
|
||||
sed -e "s:^\(Example\):\# \1:" \
|
||||
-e "s/^#\(PidFile .*\)/\1/" \
|
||||
-e "s/^#\(ClamdSocket unix:.*\)/\1/" \
|
||||
-e "s/^#\(User .*\)/\1/" \
|
||||
-e "s/^#\(MilterSocket unix:.*\)/\1/" \
|
||||
-e "s:^\#\(LogFile\) .*:\1 ${EPREFIX}/var/log/clamav/clamav-milter.log:" \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf.sample > \
|
||||
"${ED}"/etc/clamav/clamav-milter.conf || die
|
||||
|
||||
systemd_newunit "${FILESDIR}/clamav-milter.service-0.104.0" clamav-milter.service
|
||||
fi
|
||||
|
||||
local i
|
||||
for i in clamd freshclam clamav-milter
|
||||
do
|
||||
if [[ -f "${ED}"/etc/"${i}".conf.sample ]] ; then
|
||||
mv "${ED}"/etc/"${i}".conf{.sample,} || die
|
||||
fi
|
||||
done
|
||||
|
||||
# These both need to be writable by the clamav user.
|
||||
# TODO: use syslog by default; that's what it's for.
|
||||
diropts -o clamav -g clamav
|
||||
keepdir /var/lib/clamav
|
||||
keepdir /var/log/clamav
|
||||
fi
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
local HTML_DOCS=( docs/html/. )
|
||||
einstalldocs
|
||||
fi
|
||||
|
||||
# Don't install man pages for utilities we didn't install
|
||||
if use libclamav-only ; then
|
||||
rm -r "${ED}"/usr/share/man || die
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use libclamav-only ; then
|
||||
if use systemd ; then
|
||||
tmpfiles_process clamav.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
if use milter ; then
|
||||
elog "For simple instructions how to setup the clamav-milter read the"
|
||||
elog "clamav-milter.README.gentoo in /usr/share/doc/${PF}"
|
||||
fi
|
||||
|
||||
local databases=( "${EROOT}"/var/lib/clamav/main.c[lv]d )
|
||||
if [[ ! -f "${databases}" ]] ; then
|
||||
ewarn "You must run freshclam manually to populate the virus database"
|
||||
ewarn "before starting clamav for the first time."
|
||||
fi
|
||||
|
||||
if ! systemd_is_booted ; then
|
||||
ewarn "This version of ClamAV provides separate OpenRC services"
|
||||
ewarn "for clamd, freshclam, clamav-milter, and clamonacc. The"
|
||||
ewarn "clamd service now starts only the clamd daemon itself. You"
|
||||
ewarn "should add freshclam (and perhaps clamav-milter) to any"
|
||||
ewarn "runlevels that previously contained clamd."
|
||||
fi
|
||||
}
|
@ -1,73 +0,0 @@
|
||||
clamav 0.105.1 doesn't support LLVM version detection
|
||||
|
||||
See: https://github.com/Cisco-Talos/clamav/pull/692
|
||||
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -480,39 +480,43 @@ find_package(JSONC REQUIRED)
|
||||
# Set variable required by libclamav to use libjson-c
|
||||
set(HAVE_JSON 1)
|
||||
|
||||
+set(LLVM_MAX_VER "14.0.0")
|
||||
+set(LLVM_MIN_VER "8.0.0")
|
||||
+
|
||||
string (TOLOWER ${BYTECODE_RUNTIME} bytecodeRuntime)
|
||||
if(${bytecodeRuntime} STREQUAL "llvm")
|
||||
- set (LLVM_FIND_VERSION "8.0.0")
|
||||
- find_package(LLVM REQUIRED)
|
||||
+ if(DEFINED LLVM_ROOT_DIR AND DEFINED LLVM_FIND_VERSION)
|
||||
+ find_package(LLVM EXACT ${LLVM_FIND_VERSION} REQUIRED HINTS ${LLVM_ROOT_DIR})
|
||||
+ elseif(DEFINED LLVM_ROOT_DIR)
|
||||
+ find_package(LLVM REQUIRED HINTS ${LLVM_ROOT_DIR})
|
||||
+ elseif(DEFINED LLVM_FIND_VERSION)
|
||||
+ find_package(LLVM EXACT ${LLVM_FIND_VERSION} REQUIRED)
|
||||
+ else()
|
||||
+ set (LLVM_FIND_VERSION ${LLVM_MIN_VER})
|
||||
+ find_package(LLVM REQUIRED)
|
||||
+ endif()
|
||||
if(LLVM_FOUND)
|
||||
if (LLVM_AVAILABLE_LIBS)
|
||||
- # Found using LLVMConfig.cmake
|
||||
- message("LLVM found using LLVMConfig.cmake")
|
||||
- set(LLVM_VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR})
|
||||
+ message(STATUS "LLVM found using LLVMConfig.cmake")
|
||||
set(LLVM_LIBRARIES ${LLVM_AVAILABLE_LIBS})
|
||||
-
|
||||
- if (${LLVM_PACKAGE_VERSION} VERSION_LESS "8.0.0")
|
||||
- message(FATAL "LLVM version ${LLVM_PACKAGE_VERSION} is too old")
|
||||
- endif()
|
||||
-
|
||||
else()
|
||||
- # Found using FindLLVM.cmake
|
||||
- message("LLVM found using FindLLVM.cmake")
|
||||
-
|
||||
- # Set variable required by libclamav to use llvm instead of interpreter
|
||||
- set(LLVM_VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR})
|
||||
- message("LLVM_FOUND ${LLVM_FOUND}")
|
||||
+ message(STATUS "LLVM found using FindLLVM.cmake")
|
||||
+ set(LLVM_PACKAGE_VERSION ${LLVM_VERSION_STRING})
|
||||
|
||||
- if (${LLVM_VERSION_STRING} VERSION_GREATER_EQUAL "9.0.0")
|
||||
- if (${LLVM_VERSION_STRING} VERSION_LESS "10.0.0")
|
||||
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG")
|
||||
- endif()
|
||||
+ if (${LLVM_VERSION_STRING} VERSION_GREATER_EQUAL "9.0.0" AND ${LLVM_VERSION_STRING} VERSION_LESS "10.0.0")
|
||||
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNDEBUG")
|
||||
endif()
|
||||
+ endif()
|
||||
|
||||
- if (${LLVM_VERSION_STRING} VERSION_LESS "8.0.0")
|
||||
- message(FATAL "LLVM version ${LLVM_VERSION_STRING} is too old")
|
||||
- endif()
|
||||
+ if (${LLVM_PACKAGE_VERSION} VERSION_LESS ${LLVM_MIN_VER})
|
||||
+ message(FATAL_ERROR "LLVM version ${LLVM_PACKAGE_VERSION} is too old")
|
||||
+ elseif (${LLVM_PACKAGE_VERSION} VERSION_GREATER_EQUAL ${LLVM_MAX_VER} )
|
||||
+ message(FATAL_ERROR "LLVM version ${LLVM_PACKAGE_VERSION} is too new")
|
||||
+ else()
|
||||
+ message(STATUS "LLVM version ${LLVM_PACKAGE_VERSION} found")
|
||||
endif()
|
||||
+ # Set variable required by libclamav to use llvm instead of interpreter
|
||||
+ set(LLVM_VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR})
|
||||
endif()
|
||||
endif()
|
||||
|
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
https://bugs.gentoo.org/880373
|
||||
https://savannah.gnu.org/bugs/index.php?63349
|
||||
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=0cc39712803ade7b2d4b89c36b143dad72404063
|
||||
|
||||
From 0cc39712803ade7b2d4b89c36b143dad72404063 Mon Sep 17 00:00:00 2001
|
||||
From: Bruno Haible <bruno@clisp.org>
|
||||
Date: Sun, 18 Oct 2020 14:37:13 +0200
|
||||
Subject: obstack: Fix a clang warning.
|
||||
|
||||
* lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
|
||||
--- a/gnu/obstack.c
|
||||
+++ b/gnu/obstack.c
|
||||
@@ -326,7 +326,7 @@ int obstack_exit_failure = EXIT_FAILURE;
|
||||
# include <libio/iolibio.h>
|
||||
# endif
|
||||
|
||||
-static _Noreturn void
|
||||
+static __attribute_noreturn__ void
|
||||
print_and_abort (void)
|
||||
{
|
||||
/* Don't change any of these strings. Yes, it would be possible to add
|
||||
--
|
||||
cgit v1.1
|
@ -1,4 +1,4 @@
|
||||
DIST dpkg_1.20.12.tar.xz 5009108 BLAKE2B 47ecb53c331503c72081a4c472acd6e94a5b7fca2032358809aa8c546cfd6c1542c7cdfad2a5ceff0e40dc454a61974ec47233061b98cf99aabbb8e53621858c SHA512 ce20b1b00b972e6fa5d5cd6427003415a92a78742dc02a9055fee6f00db22b037c54560170e657d7b74c2ae542fff4b7eba46f642adf911dc2f3b90eebefc3ff
|
||||
DIST dpkg_1.20.9.tar.xz 4954428 BLAKE2B 4e04f7a90c8696971895081e18b220d9dee4bc5930428f131556ae71c673e61e18c363e279b566c2218da60a5aca421807c14cf518952502e707c7397769097b SHA512 904a4742f5f340dc65b2137364dce102a0b2eb42ccedb2a73f79c207362c699fbffaaf1379f1f6c8b8b0e490321af1d03c34b50ebe0c703f5ce8a7f75f17a839
|
||||
DIST dpkg_1.21.1.tar.xz 4986936 BLAKE2B f5b0f9fe7ac5fe7ba47191a9e467356e748418846ce0fc9f3c61d731e035eb096932848b15e6a85a15938d3bbd6fa069c786ab0e89c77119958fe632a91c309f SHA512 3f3f263e1300f3e4b55e84521847703dcfe465aa54829a69c31c174a2ad5e8b6a8a251da7c6020d31a38e9e6744113924a71e9579469e32289328e91a48db07f
|
||||
DIST dpkg_1.21.11.tar.xz 5147576 BLAKE2B c6854e9b3d9db9744675104ec477d0967a7de7fad1b9774fcfce3be6f7cfe587ea09b4824764f4cf7ab658fcb92864d57da0e2a5f601c7e9dc253adbda01e1b0 SHA512 ed93ccb6b39779c9aa03c4d3505c5c3f70cb198445d95d14eb119f8d5382539fe529e46c062b89f27a7b96ad44fe1d48c9cb30be76dd5c3dbf716af2b25d7b48
|
||||
DIST dpkg_1.21.15.tar.xz 5350148 BLAKE2B f26611db365266ef9f43484c20d3150889238b34b156cac26f0ae8ae9572e7e4a9839e08a0073a25c886cd2891fc6d84afc97262ae6992267b47fa6e86c03a33 SHA512 eb31db63dd454048c3b7539b539720ed71239303ca679df92b934e971914d63dd771da09149054048e24dde1f5627ee24d43dbd8782ca1dc28c4a2bd3ed8f26a
|
||||
|
@ -0,0 +1,324 @@
|
||||
From 58814cacee39c4ce9e2cd0e3a3b9b57ad437eff5 Mon Sep 17 00:00:00 2001
|
||||
From: Guillem Jover <guillem@debian.org>
|
||||
Date: Tue, 3 May 2022 02:09:32 +0200
|
||||
Subject: Dpkg::Source::Archive: Prevent directory traversal for in-place
|
||||
extracts
|
||||
|
||||
For untrusted v2 and v3 source package formats that include a debian.tar
|
||||
archive, when we are extracting it, we do that as an in-place extraction,
|
||||
which can lead to directory traversal situations on specially crafted
|
||||
orig.tar and debian.tar tarballs.
|
||||
|
||||
GNU tar replaces entries on the filesystem by the entries present on
|
||||
the tarball, but it will follow symlinks when the symlink pathname
|
||||
itself is not present as an actual directory on the tarball.
|
||||
|
||||
This means we can create an orig.tar where there's a symlink pointing
|
||||
out of the source tree root directory, and then a debian.tar that
|
||||
contains an entry within that symlink as if it was a directory, without
|
||||
a directory entry for the symlink pathname itself, which will be
|
||||
extracted following the symlink outside the source tree root.
|
||||
|
||||
This is currently noted as expected in GNU tar documentation. But even
|
||||
if there was a new extraction mode avoiding this problem we'd need such
|
||||
new version. Using perl's Archive::Tar would solve the problem, but
|
||||
switching to such different pure perl implementation, could cause
|
||||
compatibility or performance issues.
|
||||
|
||||
What we do is when we are requested to perform an in-place extract, we
|
||||
instead still use a temporary directory, then walk that directory and
|
||||
remove any matching entry in the destination directory, replicating what
|
||||
GNU tar would do, but in addition avoiding the directory traversal issue
|
||||
for symlinks. Which should work with any tar implementation and be safe.
|
||||
|
||||
Reported-by: Max Justicz <max@justi.cz>
|
||||
Stable-Candidates: 1.18.x 1.19.x 1.20.x
|
||||
Fixes: commit 0c0057a27fecccab77d2b3cffa9a7d172846f0b4 (1.14.17)
|
||||
Fixes: CVE-2022-1664
|
||||
(cherry picked from commit 7a6c03cb34d4a09f35df2f10779cbf1b70a5200b)
|
||||
---
|
||||
scripts/Dpkg/Source/Archive.pm | 122 +++++++++++++++++++++++++++++++---------
|
||||
scripts/t/Dpkg_Source_Archive.t | 110 +++++++++++++++++++++++++++++++++++-
|
||||
2 files changed, 204 insertions(+), 28 deletions(-)
|
||||
|
||||
diff --git a/scripts/Dpkg/Source/Archive.pm b/scripts/Dpkg/Source/Archive.pm
|
||||
index 33c181b20..2ddd04af8 100644
|
||||
--- a/scripts/Dpkg/Source/Archive.pm
|
||||
+++ b/scripts/Dpkg/Source/Archive.pm
|
||||
@@ -21,9 +21,11 @@ use warnings;
|
||||
our $VERSION = '0.01';
|
||||
|
||||
use Carp;
|
||||
+use Errno qw(ENOENT);
|
||||
use File::Temp qw(tempdir);
|
||||
use File::Basename qw(basename);
|
||||
use File::Spec;
|
||||
+use File::Find;
|
||||
use Cwd;
|
||||
|
||||
use Dpkg ();
|
||||
@@ -110,19 +112,13 @@ sub extract {
|
||||
my %spawn_opts = (wait_child => 1);
|
||||
|
||||
# Prepare destination
|
||||
- my $tmp;
|
||||
- if ($opts{in_place}) {
|
||||
- $spawn_opts{chdir} = $dest;
|
||||
- $tmp = $dest; # So that fixperms call works
|
||||
- } else {
|
||||
- my $template = basename($self->get_filename()) . '.tmp-extract.XXXXX';
|
||||
- unless (-e $dest) {
|
||||
- # Kludge so that realpath works
|
||||
- mkdir($dest) or syserr(g_('cannot create directory %s'), $dest);
|
||||
- }
|
||||
- $tmp = tempdir($template, DIR => Cwd::realpath("$dest/.."), CLEANUP => 1);
|
||||
- $spawn_opts{chdir} = $tmp;
|
||||
+ my $template = basename($self->get_filename()) . '.tmp-extract.XXXXX';
|
||||
+ unless (-e $dest) {
|
||||
+ # Kludge so that realpath works
|
||||
+ mkdir($dest) or syserr(g_('cannot create directory %s'), $dest);
|
||||
}
|
||||
+ my $tmp = tempdir($template, DIR => Cwd::realpath("$dest/.."), CLEANUP => 1);
|
||||
+ $spawn_opts{chdir} = $tmp;
|
||||
|
||||
# Prepare stuff that handles the input of tar
|
||||
$self->ensure_open('r', delete_sig => [ 'PIPE' ]);
|
||||
@@ -145,22 +141,94 @@ sub extract {
|
||||
# have to be calculated using mount options and other madness.
|
||||
fixperms($tmp) unless $opts{no_fixperms};
|
||||
|
||||
- # Stop here if we extracted in-place as there's nothing to move around
|
||||
- return if $opts{in_place};
|
||||
-
|
||||
- # Rename extracted directory
|
||||
- opendir(my $dir_dh, $tmp) or syserr(g_('cannot opendir %s'), $tmp);
|
||||
- my @entries = grep { $_ ne '.' && $_ ne '..' } readdir($dir_dh);
|
||||
- closedir($dir_dh);
|
||||
- my $done = 0;
|
||||
- erasedir($dest);
|
||||
- if (scalar(@entries) == 1 && ! -l "$tmp/$entries[0]" && -d _) {
|
||||
- rename("$tmp/$entries[0]", $dest)
|
||||
- or syserr(g_('unable to rename %s to %s'),
|
||||
- "$tmp/$entries[0]", $dest);
|
||||
+ # If we are extracting "in-place" do not remove the destination directory.
|
||||
+ if ($opts{in_place}) {
|
||||
+ my $canon_basedir = Cwd::realpath($dest);
|
||||
+ # On Solaris /dev/null points to /devices/pseudo/mm@0:null.
|
||||
+ my $canon_devnull = Cwd::realpath('/dev/null');
|
||||
+ my $check_symlink = sub {
|
||||
+ my $pathname = shift;
|
||||
+ my $canon_pathname = Cwd::realpath($pathname);
|
||||
+ if (not defined $canon_pathname) {
|
||||
+ return if $! == ENOENT;
|
||||
+
|
||||
+ syserr(g_("pathname '%s' cannot be canonicalized"), $pathname);
|
||||
+ }
|
||||
+ return if $canon_pathname eq $canon_devnull;
|
||||
+ return if $canon_pathname eq $canon_basedir;
|
||||
+ return if $canon_pathname =~ m{^\Q$canon_basedir/\E};
|
||||
+ warning(g_("pathname '%s' points outside source root (to '%s')"),
|
||||
+ $pathname, $canon_pathname);
|
||||
+ };
|
||||
+
|
||||
+ my $move_in_place = sub {
|
||||
+ my $relpath = File::Spec->abs2rel($File::Find::name, $tmp);
|
||||
+ my $destpath = File::Spec->catfile($dest, $relpath);
|
||||
+
|
||||
+ my ($mode, $atime, $mtime);
|
||||
+ lstat $File::Find::name
|
||||
+ or syserr(g_('cannot get source pathname %s metadata'), $File::Find::name);
|
||||
+ ((undef) x 2, $mode, (undef) x 5, $atime, $mtime) = lstat _;
|
||||
+ my $src_is_dir = -d _;
|
||||
+
|
||||
+ my $dest_exists = 1;
|
||||
+ if (not lstat $destpath) {
|
||||
+ if ($! == ENOENT) {
|
||||
+ $dest_exists = 0;
|
||||
+ } else {
|
||||
+ syserr(g_('cannot get target pathname %s metadata'), $destpath);
|
||||
+ }
|
||||
+ }
|
||||
+ my $dest_is_dir = -d _;
|
||||
+ if ($dest_exists) {
|
||||
+ if ($dest_is_dir && $src_is_dir) {
|
||||
+ # Refresh the destination directory attributes with the
|
||||
+ # ones from the tarball.
|
||||
+ chmod $mode, $destpath
|
||||
+ or syserr(g_('cannot change directory %s mode'), $File::Find::name);
|
||||
+ utime $atime, $mtime, $destpath
|
||||
+ or syserr(g_('cannot change directory %s times'), $File::Find::name);
|
||||
+
|
||||
+ # We should do nothing, and just walk further tree.
|
||||
+ return;
|
||||
+ } elsif ($dest_is_dir) {
|
||||
+ rmdir $destpath
|
||||
+ or syserr(g_('cannot remove destination directory %s'), $destpath);
|
||||
+ } else {
|
||||
+ $check_symlink->($destpath);
|
||||
+ unlink $destpath
|
||||
+ or syserr(g_('cannot remove destination file %s'), $destpath);
|
||||
+ }
|
||||
+ }
|
||||
+ # If we are moving a directory, we do not need to walk it.
|
||||
+ if ($src_is_dir) {
|
||||
+ $File::Find::prune = 1;
|
||||
+ }
|
||||
+ rename $File::Find::name, $destpath
|
||||
+ or syserr(g_('cannot move %s to %s'), $File::Find::name, $destpath);
|
||||
+ };
|
||||
+
|
||||
+ find({
|
||||
+ wanted => $move_in_place,
|
||||
+ no_chdir => 1,
|
||||
+ dangling_symlinks => 0,
|
||||
+ }, $tmp);
|
||||
} else {
|
||||
- rename($tmp, $dest)
|
||||
- or syserr(g_('unable to rename %s to %s'), $tmp, $dest);
|
||||
+ # Rename extracted directory
|
||||
+ opendir(my $dir_dh, $tmp) or syserr(g_('cannot opendir %s'), $tmp);
|
||||
+ my @entries = grep { $_ ne '.' && $_ ne '..' } readdir($dir_dh);
|
||||
+ closedir($dir_dh);
|
||||
+
|
||||
+ erasedir($dest);
|
||||
+
|
||||
+ if (scalar(@entries) == 1 && ! -l "$tmp/$entries[0]" && -d _) {
|
||||
+ rename("$tmp/$entries[0]", $dest)
|
||||
+ or syserr(g_('unable to rename %s to %s'),
|
||||
+ "$tmp/$entries[0]", $dest);
|
||||
+ } else {
|
||||
+ rename($tmp, $dest)
|
||||
+ or syserr(g_('unable to rename %s to %s'), $tmp, $dest);
|
||||
+ }
|
||||
}
|
||||
erasedir($tmp);
|
||||
}
|
||||
diff --git a/scripts/t/Dpkg_Source_Archive.t b/scripts/t/Dpkg_Source_Archive.t
|
||||
index 7b70da68e..504fbe1d4 100644
|
||||
--- a/scripts/t/Dpkg_Source_Archive.t
|
||||
+++ b/scripts/t/Dpkg_Source_Archive.t
|
||||
@@ -16,12 +16,120 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More tests => 1;
|
||||
+use Test::More tests => 4;
|
||||
+use Test::Dpkg qw(:paths);
|
||||
+
|
||||
+use File::Spec;
|
||||
+use File::Path qw(make_path rmtree);
|
||||
|
||||
BEGIN {
|
||||
use_ok('Dpkg::Source::Archive');
|
||||
}
|
||||
|
||||
+use Dpkg;
|
||||
+
|
||||
+my $tmpdir = test_get_temp_path();
|
||||
+
|
||||
+rmtree($tmpdir);
|
||||
+
|
||||
+sub test_touch
|
||||
+{
|
||||
+ my ($name, $data) = @_;
|
||||
+
|
||||
+ open my $fh, '>', $name
|
||||
+ or die "cannot touch file $name\n";
|
||||
+ print { $fh } $data if $data;
|
||||
+ close $fh;
|
||||
+}
|
||||
+
|
||||
+sub test_path_escape
|
||||
+{
|
||||
+ my $name = shift;
|
||||
+
|
||||
+ my $treedir = File::Spec->rel2abs("$tmpdir/$name-tree");
|
||||
+ my $overdir = File::Spec->rel2abs("$tmpdir/$name-overlay");
|
||||
+ my $outdir = "$tmpdir/$name-out";
|
||||
+ my $expdir = "$tmpdir/$name-exp";
|
||||
+
|
||||
+ # This is the base directory, where we are going to be extracting stuff
|
||||
+ # into, which include traps.
|
||||
+ make_path("$treedir/subdir-a");
|
||||
+ test_touch("$treedir/subdir-a/file-a");
|
||||
+ test_touch("$treedir/subdir-a/file-pre-a");
|
||||
+ make_path("$treedir/subdir-b");
|
||||
+ test_touch("$treedir/subdir-b/file-b");
|
||||
+ test_touch("$treedir/subdir-b/file-pre-b");
|
||||
+ symlink File::Spec->abs2rel($outdir, $treedir), "$treedir/symlink-escape";
|
||||
+ symlink File::Spec->abs2rel("$outdir/nonexistent", $treedir), "$treedir/symlink-nonexistent";
|
||||
+ symlink "$treedir/file", "$treedir/symlink-within";
|
||||
+ test_touch("$treedir/supposed-dir");
|
||||
+
|
||||
+ # This is the overlay directory, which we'll pack and extract over the
|
||||
+ # base directory.
|
||||
+ make_path($overdir);
|
||||
+ make_path("$overdir/subdir-a/aa");
|
||||
+ test_touch("$overdir/subdir-a/aa/file-aa", 'aa');
|
||||
+ test_touch("$overdir/subdir-a/file-a", 'a');
|
||||
+ make_path("$overdir/subdir-b/bb");
|
||||
+ test_touch("$overdir/subdir-b/bb/file-bb", 'bb');
|
||||
+ test_touch("$overdir/subdir-b/file-b", 'b');
|
||||
+ make_path("$overdir/symlink-escape");
|
||||
+ test_touch("$overdir/symlink-escape/escaped-file", 'escaped');
|
||||
+ test_touch("$overdir/symlink-nonexistent", 'nonexistent');
|
||||
+ make_path("$overdir/symlink-within");
|
||||
+ make_path("$overdir/supposed-dir");
|
||||
+ test_touch("$overdir/supposed-dir/supposed-file", 'something');
|
||||
+
|
||||
+ # Generate overlay tar.
|
||||
+ system($Dpkg::PROGTAR, '-cf', "$overdir.tar", '-C', $overdir, qw(
|
||||
+ subdir-a subdir-b
|
||||
+ symlink-escape/escaped-file symlink-nonexistent symlink-within
|
||||
+ supposed-dir
|
||||
+ )) == 0
|
||||
+ or die "cannot create overlay tar archive\n";
|
||||
+
|
||||
+ # This is the expected directory, which we'll be comparing against.
|
||||
+ make_path($expdir);
|
||||
+ system('cp', '-a', $overdir, $expdir) == 0
|
||||
+ or die "cannot copy overlay hierarchy into expected directory\n";
|
||||
+
|
||||
+ # Store the expected and out reference directories into a tar to compare
|
||||
+ # its structure against the result reference.
|
||||
+ system($Dpkg::PROGTAR, '-cf', "$expdir.tar", '-C', $overdir, qw(
|
||||
+ subdir-a subdir-b
|
||||
+ symlink-escape/escaped-file symlink-nonexistent symlink-within
|
||||
+ supposed-dir
|
||||
+ ), '-C', $treedir, qw(
|
||||
+ subdir-a/file-pre-a
|
||||
+ subdir-b/file-pre-b
|
||||
+ )) == 0
|
||||
+ or die "cannot create expected tar archive\n";
|
||||
+
|
||||
+ # This directory is supposed to remain empty, anything inside implies a
|
||||
+ # directory traversal.
|
||||
+ make_path($outdir);
|
||||
+
|
||||
+ my $warnseen;
|
||||
+ local $SIG{__WARN__} = sub { $warnseen = $_[0] };
|
||||
+
|
||||
+ # Perform the extraction.
|
||||
+ my $tar = Dpkg::Source::Archive->new(filename => "$overdir.tar");
|
||||
+ $tar->extract($treedir, in_place => 1);
|
||||
+
|
||||
+ # Store the result into a tar to compare its structure against a reference.
|
||||
+ system($Dpkg::PROGTAR, '-cf', "$treedir.tar", '-C', $treedir, '.');
|
||||
+
|
||||
+ # Check results
|
||||
+ ok(length $warnseen && $warnseen =~ m/points outside source root/,
|
||||
+ 'expected warning seen');
|
||||
+ ok(system($Dpkg::PROGTAR, '--compare', '-f', "$expdir.tar", '-C', $treedir) == 0,
|
||||
+ 'expected directory matches');
|
||||
+ ok(! -e "$outdir/escaped-file",
|
||||
+ 'expected output directory is empty, directory traversal');
|
||||
+}
|
||||
+
|
||||
+test_path_escape('in-place');
|
||||
+
|
||||
# TODO: Add actual test cases.
|
||||
|
||||
1;
|
||||
--
|
||||
cgit v1.2.3
|
||||
|
@ -0,0 +1,45 @@
|
||||
From 5356621172d669d8f62e7e746a6c7a11345aec4e Mon Sep 17 00:00:00 2001
|
||||
From: Guillem Jover <guillem@debian.org>
|
||||
Date: Tue, 3 Jan 2023 23:29:05 +0100
|
||||
Subject: dpkg-deb: Fix buffer overflow on long directory names with old deb
|
||||
formats
|
||||
|
||||
The handling for deb 0.x formats that relocates files around once
|
||||
extracted was using a buffer with a hardcoded size, not taking into
|
||||
account the length of the directory which would overflow it.
|
||||
|
||||
Switch to use a dynamically allocated buffer to handle any destination
|
||||
directory length.
|
||||
|
||||
Reported-by: Georgy Yakovlev <gyakovlev@gentoo.org>
|
||||
---
|
||||
src/deb/extract.c | 7 ++++---
|
||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/deb/extract.c b/src/deb/extract.c
|
||||
index a09853962..6466fa6f2 100644
|
||||
--- a/src/deb/extract.c
|
||||
+++ b/src/deb/extract.c
|
||||
@@ -53,15 +53,16 @@
|
||||
static void
|
||||
movecontrolfiles(const char *dir, const char *thing)
|
||||
{
|
||||
- char buf[200];
|
||||
+ char *cmd;
|
||||
pid_t pid;
|
||||
|
||||
- sprintf(buf, "mv %s/%s/* %s/ && rmdir %s/%s", dir, thing, dir, dir, thing);
|
||||
+ cmd = str_fmt("mv %s/%s/* %s/ && rmdir %s/%s", dir, thing, dir, dir, thing);
|
||||
pid = subproc_fork();
|
||||
if (pid == 0) {
|
||||
- command_shell(buf, _("shell command to move files"));
|
||||
+ command_shell(cmd, _("shell command to move files"));
|
||||
}
|
||||
subproc_reap(pid, _("shell command to move files"), 0);
|
||||
+ free(cmd);
|
||||
}
|
||||
|
||||
static void DPKG_ATTR_NORET
|
||||
--
|
||||
cgit v1.2.3
|
||||
|
@ -1,2 +1 @@
|
||||
DIST file-roller-3.42.0.tar.xz 878968 BLAKE2B af3a8bb566a0549434f20911315358dbcfb98aab17ca47adaad166f620fc3b8cfc6b60301842a55a0d35ca29f6317b16d07497de759b55bc42b61100e7357066 SHA512 ad151e1dc6546ca45550ab4c7384fb89e91dc2fc17a29437922192fefd5cbcd115d1f064e090dac48ae3fca33709a54bac918cbe03cbfd0e6fc3554913dd8322
|
||||
DIST file-roller-43.0.tar.xz 894308 BLAKE2B 85bf73947e153a3b40507e524c35f8be98a08a9ce5916e24ef44559400d7d44e4e0fbd94de8b5638fd1da967ff007894011624ccf9ad8c3481cac63aba3da6e5 SHA512 dff3d9ef5c96e5957fb4ca146072b5fdf0309299d0b1a4ab6db55e24a0652b52ba45915121db4d59d9b1ab60b4c3c64bbb56799a46a0eac5609236f4e1251837
|
||||
|
@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit gnome.org gnome2-utils meson python-any-r1 readme.gentoo-r1 xdg
|
||||
|
||||
DESCRIPTION="Archive manager for GNOME"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/FileRoller"
|
||||
|
||||
LICENSE="GPL-2+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
IUSE="libnotify nautilus"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
# gdk-pixbuf used extensively in the source
|
||||
# cairo used in eggtreemultidnd.c
|
||||
# pango used in fr-window
|
||||
RDEPEND="
|
||||
>=app-arch/libarchive-3.2:=
|
||||
>=dev-libs/glib-2.38:2
|
||||
>=dev-libs/json-glib-0.14
|
||||
>=x11-libs/gtk+-3.22.0:3
|
||||
>=gui-libs/libhandy-1.5.0:1
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/pango
|
||||
libnotify? ( >=x11-libs/libnotify-0.4.3:= )
|
||||
nautilus? ( >=gnome-base/nautilus-3.28.0 )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-util/glib-utils
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="
|
||||
${PN} is a frontend for several archiving utilities. If you want a
|
||||
particular archive format support, see ${HOMEPAGE}
|
||||
and install the relevant package. For example:
|
||||
7-zip - app-arch/p7zip
|
||||
ace - app-arch/unace
|
||||
arj - app-arch/arj
|
||||
brotli - app-arch/brotli
|
||||
cpio - app-arch/cpio
|
||||
deb - app-arch/dpkg
|
||||
iso - app-cdr/cdrtools
|
||||
jar,zip - app-arch/zip and app-arch/unzip
|
||||
lha - app-arch/lha
|
||||
lzop - app-arch/lzop
|
||||
lz4 - app-arch/lz4
|
||||
rar - app-arch/unrar or app-arch/unar
|
||||
rpm - app-arch/rpm
|
||||
unstuff - app-arch/stuffit
|
||||
zstd - app-arch/zstd
|
||||
zoo - app-arch/zoo"
|
||||
|
||||
src_prepare() {
|
||||
# File providing Gentoo package names for various archivers
|
||||
cp -v "${FILESDIR}"/3.36-packages.match data/packages.match || die
|
||||
|
||||
default
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Drun-in-place=false
|
||||
$(meson_feature nautilus nautilus-actions)
|
||||
$(meson_feature libnotify notification)
|
||||
-Dpackagekit=false
|
||||
-Dlibarchive=enabled
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
DIST containerd-1.6.8-deps.tar.xz 96625924 BLAKE2B 773b7c660826648b4077d320cbb3b265129fdd81233ac4aeb833586c9f25707c62e338492fb9905010b160e3fa635069ca4220136bca344ce54d154ee074bdeb SHA512 d805fefc0500fe2156bd8c6a752f9d13cafe85b528454ddc6efc95b09e05548df666cf9136aa3169794a0f7cc8135b943da1b106eec7e3dbbc83938892d80ead
|
||||
DIST containerd-1.6.8.tar.gz 8663866 BLAKE2B 4b1473febb738ce46d435a687971058f4bf586a2877b2899446a323e2e7ccf8a0ec9015277693f9b1bac6f663721117704e97031ce923ae62d27a8d7b882bdfd SHA512 c204c028cdfd76537d1da01c66526fc85b29b02d2412569bb9b265375603614b037356c61846025a72281398f0f46df326a5ea3df97f57901cce85f2f728f0ba
|
||||
DIST containerd-1.6.14-deps.tar.xz 95727780 BLAKE2B 15782df59512ee66eacbbb65b21520edfe1ae13bf4324a7262b0731c9bf650b328c328a72cb3113d31f23ef87a74e45292a6282f8f07e79db750c1238943e203 SHA512 8db408f87924741b80b55f8e9099ab64da41021f1708ed3c156716de17dd92b2ca6cfa469b3c8d5545fbebd51f9eefcf62c57139de545762815a73eb772fbbec
|
||||
DIST containerd-1.6.14.tar.gz 8698335 BLAKE2B 5f088faa35ffbcfd2e62334c12f9c741e23199d6d9999e28c69ad21b760fb85f514ef70cfdeebbdfaab914a8905ea7dae989d9fc8da36f3e077196e14dd6a220 SHA512 d29e2fb4a43f12d7e196f95b59b2c55793a1848177fb64b8bd9a4fd299fe54680a26f8a809b1d63f653ed9f0b30c209fc39d46b78ac0914d3253a10e5d3b015b
|
||||
|
@ -1 +1 @@
|
||||
DIST docker-cli-20.10.17.tar.gz 7636087 BLAKE2B 2777ca5c310ffeca75a07f2667703a3f1d24b4d1c1691ffb58df3144b7bfe54bb2b9cb9896a253718b7f47ab4c246064c5944a1ca05328fe7924f9bb79e10ff3 SHA512 9c2cff7e248272e234eac9febdfd7c5c844fc65ee4b08fd4ce0f526e4fed33f2d12682d0991ef28b42977b9de2c84d7ef9c6ddd6f31c4e8c34a3985c1cea3316
|
||||
DIST docker-cli-20.10.22.tar.gz 7590020 BLAKE2B ab003a9af2b441a9bad9c27345dea2e82087cfc8a8ac865adeb2e47e91be4bd9b27f499ae95b0ddcddb66d27c3498938682dcd10d5e3bef41fc18ce1f034a476 SHA512 550346904d172725f48c4de0e34fa95123c7022b14980d30cd01df0c9e154ac817f19e24b61538f8cbc23db090de56977c8b885b96f99583e8a5f773691280a6
|
||||
|
@ -1,8 +1,8 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
GIT_COMMIT=100c70180f
|
||||
GIT_COMMIT=3a2c30b63a
|
||||
EGO_PN="github.com/docker/cli"
|
||||
MY_PV=${PV/_/-}
|
||||
inherit bash-completion-r1 golang-vcs-snapshot
|
@ -1 +1 @@
|
||||
DIST docker-20.10.17.tar.gz 11182479 BLAKE2B 515c048ab6f19e256040122323f394dfa2e8f7a4aefd89e5b374355bd7907f3ba5eaae37d7ce3aed0d1add8fa025b8e5ac3c46c4dc90adf757426fd40af39dbf SHA512 1def92a4f87695b1889e482947f2bc49342ad868ee15425900b0c6f8954ba77aa2a9a8bd4fc500ba124218603aa8c7127daf7192140cace6e652a311391397c4
|
||||
DIST docker-20.10.22.tar.gz 11232083 BLAKE2B 89dea21be77beb00a5c7fde382f1621558c676c63a85cac9664ec04130b875db649b84433ef2d9a0ca9ee221bf38a46b3af85ad6bfe920cf22a15d0cac450b99 SHA512 81aec7faedced07718e3e228e999c4774fd293cedfacd272798a0057177ddca5322a701d0f644777a69b87140cd7a7194aa93a524507f202d050eb30b1a4142c
|
||||
|
@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EGO_PN=github.com/docker/docker
|
||||
MY_PV=${PV/_/-}
|
||||
GIT_COMMIT=a89b84221c
|
||||
GIT_COMMIT=42c8b31499
|
||||
inherit linux-info systemd udev golang-vcs-snapshot
|
||||
|
||||
DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
|
@ -1 +1 @@
|
||||
DIST runc-1.1.3.tar.gz 2333384 BLAKE2B 7530faa80a6d51c840a1ea702ec59580a3e42514f5932a7dd4df9f80ff93245bde05accd572a942190b6be76316f38a408566b003ad380611376e73abe3cb5c0 SHA512 27fce2569d0dc710a0f90095957be30c29da24ce1d2b8e115b9dc11d36f5226d98c4b2d8b92ecfa7581eade90bc51c5d9bccaf15fcb2542dafebe4fabc6e1cd9
|
||||
DIST runc-1.1.4.tar.gz 2334639 BLAKE2B bc7eb7de29e8ebb9ce146bc77bf6cfc116f4af3e28c0344059183cf0c8082c629ccb235531c368cce99915991b25df0b50b7cbb98b9c6a7d141ba6cc15958651 SHA512 c8e79ad839964680d29ab56a4de255f91192741951673025da6889c544a232d4d392db2da8005d8e22999a37bfbc9c9fe7f6043b165bc4edc2f2a29261d8a3d6
|
||||
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
COMMIT=37727a45f96ac208785b606f7772d609bf50dbc4
|
||||
inherit go-module bash-completion-r1
|
||||
|
||||
DESCRIPTION="Command line utility foroperations on container images and image repositories"
|
||||
HOMEPAGE="https://github.com/containers/skopeo"
|
||||
SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="btrfs"
|
||||
|
||||
COMMON_DEPEND=">=app-crypt/gpgme-1.5.5:=
|
||||
>=dev-libs/libassuan-2.4.3:=
|
||||
dev-libs/libgpg-error:=
|
||||
btrfs? ( >=sys-fs/btrfs-progs-4.0.1 )
|
||||
>=sys-fs/lvm2-2.02.145:="
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-go/go-md2man"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
RESTRICT+=" test"
|
||||
|
||||
src_compile() {
|
||||
local BUILDTAGS
|
||||
BUILDTAGS="containers_image_ostree_stub $(usex btrfs "" exclude_graphdriver_btrfs)"
|
||||
set -- go build -mod=vendor -ldflags "-X main.gitCommit=${COMMIT}" \
|
||||
-gcflags "${GOGCFLAGS}" -tags "${BUILDTAGS}" \
|
||||
-o skopeo ./cmd/skopeo
|
||||
echo "$@"
|
||||
"$@" || die
|
||||
cd docs || die
|
||||
for f in *.1.md; do
|
||||
go-md2man -in ${f} -out ${f%%.md} || die
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin skopeo
|
||||
doman docs/*.1
|
||||
dobashcomp completions/bash/skopeo
|
||||
insinto /etc/containers
|
||||
newins default-policy.json policy.json
|
||||
insinto /etc/containers/registries.d
|
||||
doins default.yaml
|
||||
keepdir /var/lib/atomic/sigstore
|
||||
einstalldocs
|
||||
}
|
Binary file not shown.
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="Tools for manipulating UEFI secure boot platforms"
|
||||
HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/jejb/efitools.git"
|
||||
SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 x86"
|
||||
IUSE="static"
|
||||
|
||||
LIB_DEPEND="dev-libs/openssl:0=[static-libs(+)]"
|
||||
|
||||
RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
|
||||
sys-apps/util-linux"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
app-crypt/sbsigntools
|
||||
dev-perl/File-Slurp
|
||||
static? ( ${LIB_DEPEND} )
|
||||
sys-apps/help2man
|
||||
sys-boot/gnu-efi
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/1.7.0-Make.rules.patch"
|
||||
"${FILESDIR}/1.8.1-respect-ar.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
if use static; then
|
||||
append-ldflags -static
|
||||
sed -i "s/-lcrypto\b/$($(tc-getPKG_CONFIG) --static --libs libcrypto)/g" \
|
||||
Makefile || die
|
||||
fi
|
||||
|
||||
# Let it build with clang.
|
||||
if tc-is-clang; then
|
||||
sed -i -e 's/-fno-toplevel-reorder//g' Make.rules || die
|
||||
fi
|
||||
|
||||
# Respect users CFLAGS
|
||||
sed -i -e 's/CFLAGS.*= -O2 -g/CFLAGS += /' Make.rules || die
|
||||
|
||||
# Respect users LDFLAGS
|
||||
sed -i -e 's/LDFLAGS/LIBS/g' Make.rules || die
|
||||
sed -i -e 's/\$(CC)/& $(LDFLAGS)/g' Makefile || die
|
||||
|
||||
# Run 'default', to apply user patches
|
||||
default
|
||||
}
|
@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit gnome.org gnome2-utils meson python-any-r1 vala xdg
|
||||
|
||||
DESCRIPTION="Libraries for cryptographic UIs and accessing PKCS#11 modules"
|
||||
HOMEPAGE="https://gitlab.gnome.org/GNOME/gcr"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2+"
|
||||
SLOT="0/1" # subslot = suffix of libgcr-base-3 and co
|
||||
|
||||
IUSE="gtk gtk-doc +introspection systemd test +vala"
|
||||
REQUIRED_USE="
|
||||
gtk-doc? ( introspection )
|
||||
vala? ( introspection )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.44.0:2
|
||||
>=dev-libs/libgcrypt-1.2.2:0=
|
||||
>=app-crypt/p11-kit-0.19.0
|
||||
>=app-crypt/libsecret-0.20
|
||||
systemd? ( sys-apps/systemd:= )
|
||||
gtk? ( >=x11-libs/gtk+-3.22:3[introspection?] )
|
||||
>=sys-apps/dbus-1
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.58:= )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
PDEPEND="app-crypt/gnupg"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
gtk? ( dev-libs/libxml2:2 )
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/glib-utils
|
||||
gtk-doc? ( dev-util/gi-docgen )
|
||||
>=sys-devel/gettext-0.19.8
|
||||
test? ( app-crypt/gnupg )
|
||||
virtual/pkgconfig
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/3.38.0-optional-vapi.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use vala && vala_setup
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_use introspection)
|
||||
$(meson_use gtk)
|
||||
$(meson_use gtk-doc gtk_doc)
|
||||
-Dgpg_path="${EPREFIX}"/usr/bin/gpg
|
||||
-Dssh_agent=true
|
||||
$(meson_feature systemd)
|
||||
$(meson_use vala vapi)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
dbus-run-session meson test -C "${BUILD_DIR}" || die 'tests failed'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if use gtk-doc; then
|
||||
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
mv "${ED}"/usr/share/doc/{gck-1,gcr-3,gcr-ui-3} "${ED}"/usr/share/gtk-doc/html/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,5 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<maintainer type="project">
|
||||
<email>base-system@gentoo.org</email>
|
||||
<name>Gentoo Base System</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="freedesktop-gitlab">libbsd/libmd</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,35 @@
|
||||
https://github.com/p11-glue/p11-kit/commit/d39043f7c6e44247b5b1a237888e80b2a4d9c2b2
|
||||
|
||||
From d39043f7c6e44247b5b1a237888e80b2a4d9c2b2 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Weimer <fweimer@redhat.com>
|
||||
Date: Mon, 12 Dec 2022 19:40:25 +0100
|
||||
Subject: [PATCH] Fix meson/configure _Thread_local checks for C99
|
||||
compatibility
|
||||
|
||||
The type was missing from the definition, which happens to work
|
||||
in current compilers for historic reasons. Implicit ints were
|
||||
actually removed from C in 1999.
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -148,7 +148,7 @@ if test "$os_unix" = "yes"; then
|
||||
[ac_cv_tls_keyword=
|
||||
for keyword in _Thread_local __thread; do
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdlib.h>]],
|
||||
- [[static ]$keyword[ foo;]])],
|
||||
+ [[static ]$keyword[ int foo;]])],
|
||||
[ac_cv_tls_keyword=$keyword])
|
||||
done])
|
||||
if test -n "$ac_cv_tls_keyword"; then
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -200,7 +200,7 @@ if host_system != 'windows'
|
||||
tls_test_code_template = '''
|
||||
#include <stdlib.h>
|
||||
int main (void) {
|
||||
-static @0@ foo;
|
||||
+static @0@ int foo;
|
||||
return 0;
|
||||
}
|
||||
'''
|
||||
|
||||
|
@ -1,2 +1 @@
|
||||
DIST seahorse-42.0.tar.xz 1395040 BLAKE2B ae40d587c881851014b1989af986993768598a6a530f281cef3e177f0e6dbb3a97ec5128c5f39a463f69a4dfabb5c9f95af1dd3de7af12247338b8003c102ea3 SHA512 2a961a4054360c9a4fe0e9e360d6ea621a65325db8e40365e75d747cfe751c2dc3230ff51ffe0435d24766a91e8a042b8c01183fd58a70974a7ad095af8d247e
|
||||
DIST seahorse-43.0.tar.xz 1392460 BLAKE2B b7ae8b42042ad8e07eaf2633583b566f9757f83bd066eb8b0786d5e89353901f5526ed925bb6152820a5b2a36defb0c0f38dea634c3ae78ebf8d29ab07ff9cfb SHA512 168fdfc829134915f513028b1d35b647aa18a0390786cbf512f7ddb7b125b239f3f3d880a847119a5aa22580354f0b594e553fe3940a3afbda5861e69dd88e5d
|
||||
|
@ -0,0 +1,20 @@
|
||||
https://bugs.gentoo.org/889362
|
||||
https://gitlab.gnome.org/GNOME/seahorse/-/commit/9260c74779be3d7a378db0671af862ffa3573d42
|
||||
|
||||
From: Xi Ruoyao <xry111@xry111.site>
|
||||
Date: Wed, 21 Dec 2022 20:58:26 +0800
|
||||
Subject: [PATCH] Allow building with GnuPG-2.4.x
|
||||
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -26,7 +26,7 @@ endif
|
||||
# Dependencies
|
||||
min_glib_version = '2.66'
|
||||
min_gcr_version = '3.38'
|
||||
-accepted_gpg_versions = [ '2.2.0', '2.3.0' ]
|
||||
+accepted_gpg_versions = [ '2.2.0', '2.3.0', '2.4.0' ]
|
||||
gpg_check_version = find_program('build-aux' / 'gpg_check_version.py')
|
||||
|
||||
glib_deps = [
|
||||
--
|
||||
GitLab
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit gnome.org gnome2-utils meson python-any-r1 vala xdg
|
||||
|
||||
DESCRIPTION="Manage your passwords and encryption keys"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Seahorse"
|
||||
|
||||
LICENSE="GPL-2+ FDL-1.1+"
|
||||
SLOT="0"
|
||||
IUSE="ldap zeroconf"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.66:2
|
||||
>=app-crypt/gcr-3.38:0=
|
||||
>=app-crypt/gpgme-1.14.0:=
|
||||
>=x11-libs/gtk+-3.24.0:3
|
||||
>=app-crypt/gnupg-2.2
|
||||
>=gui-libs/libhandy-1.6:1=
|
||||
>=app-crypt/libsecret-0.16
|
||||
dev-libs/libpwquality
|
||||
net-misc/openssh
|
||||
ldap? ( net-nds/openldap:= )
|
||||
>=net-libs/libsoup-2.33.92:2.4
|
||||
zeroconf? ( >=net-dns/avahi-0.6:=[dbus] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
$(vala_depend)
|
||||
dev-libs/libxml2:2
|
||||
app-crypt/gcr:0[vala]
|
||||
app-crypt/libsecret[vala]
|
||||
gui-libs/libhandy:1[vala]
|
||||
"
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-text/docbook-xml-dtd:4.2
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-libs/appstream-glib
|
||||
dev-libs/libxslt
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/glib-utils
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
vala_setup
|
||||
gnome2_environment_reset
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Dhelp=true
|
||||
-Dpgp-support=true
|
||||
-Dcheck-compatible-gpg=false # keep lowest version listed as compatible as min dep for gnupg RDEPEND
|
||||
-Dpkcs11-support=true
|
||||
-Dkeyservers-support=true
|
||||
-Dhkp-support=true
|
||||
$(meson_use ldap ldap-support)
|
||||
$(meson_use zeroconf key-sharing)
|
||||
-Dmanpage=true
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST myspell-ca-3.0.6.oxt 1729644 BLAKE2B d20655f9f3533aa280706463b9db0263e30294e3ca9468dad4f3f9273ff19d91d65c247e7a5ab954d9497f7f1f388129ca596759067c718899575e92110ff778 SHA512 4d5b867bd1a923bb2d52fba4b30d73f9e5b4d441c78c77aa88b0d67cf9d7ebef9cac0f0ea1addbaf873b6395590a1295fc43f7a9a0567af79f351d1dc2618259
|
||||
DIST myspell-ca-3.0.7.oxt 4743865 BLAKE2B 019d171f06b8bc5c4e3359213907bdb11f53aaf153899e643d18c0fd2f2c090b05018d0ef32c9f3238730ecad7859423ddb3f7b9081acdda820f29af192c58bc SHA512 75f42a3e1723e75a535f352e72018add4baf0faab4c89208fbd732579f75f040138d9c784fe6e96bbc8194c2416731e920a6950fd9a9a196dbacfd1a03d4512d
|
||||
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MYSPELL_DICT=(
|
||||
"ca_ES.aff"
|
||||
"ca_ES.dic"
|
||||
"ca_ES-valencia.aff"
|
||||
"ca_ES-valencia.dic"
|
||||
)
|
||||
|
||||
MYSPELL_HYPH=(
|
||||
"hyph_ca_ES.dic"
|
||||
)
|
||||
|
||||
MYSPELL_THES=(
|
||||
"th_ca_ES_v3.idx"
|
||||
"th_ca_ES_v3.dat"
|
||||
)
|
||||
|
||||
inherit myspell-r2
|
||||
|
||||
DESCRIPTION="Catalan dictionaries for myspell/hunspell"
|
||||
HOMEPAGE="https://www.softcatala.org/programes/corrector-ortografic-de-catala-general-per-al-libreoffice-i-lapache-openoffice/ https://github.com/Softcatala/catalan-dict-tools/"
|
||||
SRC_URI="https://github.com/Softcatala/catalan-dict-tools/releases/download/v${PV}/ca.${PV}.oxt -> ${P}.oxt"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# rename to conform the common naming scheme
|
||||
mv ca.aff ca_ES.aff || die
|
||||
mv ca.dic ca_ES.dic || die
|
||||
mv ca-ES-valencia.aff ca_ES-valencia.aff || die
|
||||
mv ca-ES-valencia.dic ca_ES-valencia.dic || die
|
||||
mv hyph_ca.dic hyph_ca_ES.dic || die
|
||||
|
||||
# remove licenses
|
||||
rm LICENSES-en.txt LLICENCIES-ca.txt || die
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
MYSPELL_DICT=(
|
||||
"de_AT.aff"
|
||||
"de_AT.dic"
|
||||
"de_DE.aff"
|
||||
"de_DE.dic"
|
||||
"de_CH.aff"
|
||||
"de_CH.dic"
|
||||
)
|
||||
|
||||
MYSPELL_HYPH=(
|
||||
"hyph_de_AT.dic"
|
||||
"hyph_de_DE.dic"
|
||||
"hyph_de_CH.dic"
|
||||
)
|
||||
|
||||
MYSPELL_THES=(
|
||||
"th_de_AT_v2.dat"
|
||||
"th_de_AT_v2.idx"
|
||||
"th_de_DE_v2.dat"
|
||||
"th_de_DE_v2.idx"
|
||||
"th_de_CH_v2.dat"
|
||||
"th_de_CH_v2.idx"
|
||||
)
|
||||
|
||||
inherit myspell-r2
|
||||
|
||||
MY_PV=$(ver_rs 1- -) # YYYY-MM-DD
|
||||
|
||||
DESCRIPTION="German (AT,CH,DE) dictionaries for myspell/hunspell"
|
||||
HOMEPAGE="
|
||||
https://extensions.libreoffice.org/extensions/german-de-at-frami-dictionaries
|
||||
https://extensions.libreoffice.org/extensions/german-de-ch-frami-dictionaries
|
||||
https://extensions.libreoffice.org/extensions/german-de-de-frami-dictionaries
|
||||
"
|
||||
SRC_URI="
|
||||
https://extensions.libreoffice.org/extensions/german-de-at-frami-dictionaries/$(ver_rs 1 -)/@@download/file/dict-de_AT-frami_${MY_PV}.oxt
|
||||
https://extensions.libreoffice.org/extensions/german-de-ch-frami-dictionaries/$(ver_rs 1 -)/@@download/file/dict-de_CH-frami_${MY_PV}.oxt
|
||||
https://extensions.libreoffice.org/extensions/german-de-de-frami-dictionaries/${MY_PV}/@@download/file/dict-de_DE-frami_${MY_PV}.oxt
|
||||
"
|
||||
|
||||
LICENSE="GPL-3 GPL-2 LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
|
||||
|
||||
src_prepare() {
|
||||
# fixing file names
|
||||
for i in *_frami.*; do
|
||||
mv "${i}" "${i/_frami}" || die
|
||||
done
|
||||
|
||||
default
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST dict-en-20210601.oxt 6104083 BLAKE2B 192252e85918d3d47167ff9243f70178bc548de3e93152c4139e64ffb013e147fda1fa9c7741ce7bf74b149ec0ab6e001760990cd1ee33dad06fd5e3813ef591 SHA512 c9d791a12aa97d6c2a0928f9f500b22492208b415f877d6b5bd192b5da4c243c32b8d0b7af6b3f5cbfefe6b1c695626db204fc29a922dc4b083538ed144cb472
|
||||
DIST dict-en-20221001_lo.oxt 6099681 BLAKE2B 206380ca9da3198cc057a43f71b9bc1bcbf2c2794f4bcff8893b86bacb2201f7709a645e98b131072a92df5dc5a95127807e2f5726d1224fe3fa75e11bd93b50 SHA512 d08f66829f3d5f03c1cfcefb4981af016f1f7127fbccfbe76cf40cbcdf70ad4c5d612517fe6beb4d0457e5cdd4e779b5816d9685468e5b3cb0c8058efa064c74
|
||||
DIST dict-en-20221101_lo.oxt 6099028 BLAKE2B 0a8e967670de07a62c2b0d1b39878eea02eae8371eccfeab967ddf1059b9f9866202dddeaebf017c9035153753d8dcafb92eca2868103ec8754396fafe736db4 SHA512 51ea769a87b70e22c84101a131d111db2f9c186707a4fac361378965dce11f03ecd1d1c5c6908bc1199e709870e2b38c1c675ab4d0d8393022e522d765a948c1
|
||||
DIST dict-en-20230101_lo.oxt 6099782 BLAKE2B 5103d0bdf9558184deb8d5d3d9ce00d7b597d4bdf4bfa2fefe3caa68d6e0fa68e2f9295d87c7a8315ba244ccbf007c198cad017aee6faf6590914f63c161cf61 SHA512 d34948b012245c0ad07819d625cd417a85b9edc13b842ad7d3974ed1428af4d2e02020ff0b89cde64a1b844ca8c2a54a7e77f37076e8cc1b38d6a2473da01d7d
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit myspell-r2
|
||||
|
||||
DESCRIPTION="English dictionaries for myspell/hunspell"
|
||||
HOMEPAGE="https://extensions.libreoffice.org/extensions/english-dictionaries"
|
||||
SRC_URI="https://extensions.libreoffice.org/assets/downloads/41/dict-en-${PV}.oxt"
|
||||
|
||||
LICENSE="BSD MIT LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
|
||||
|
||||
PLOCALES=( "en" "en-AU" "en-CA" "en-GB" "en-US" "en-ZA" )
|
||||
IUSE+="${PLOCALES[@]/#/l10n_}"
|
||||
REQUIRED_USE="|| ( ${IUSE[@]} )"
|
||||
|
||||
src_prepare() {
|
||||
if use l10n_en-GB || use l10n_en; then
|
||||
MYSPELL_HYPH+=( "hyph_en_GB.dic" )
|
||||
fi
|
||||
if use l10n_en-US || use l10n_en; then
|
||||
MYSPELL_THES+=(
|
||||
"th_en_US_v2.dat"
|
||||
"th_en_US_v2.idx"
|
||||
)
|
||||
MYSPELL_HYPH+=( "hyph_en_US.dic" )
|
||||
fi
|
||||
|
||||
MYSPELL_DICT=( )
|
||||
for lang in "${PLOCALES[@]}"; do
|
||||
if [[ "${lang}" == "en" ]]; then
|
||||
continue
|
||||
fi
|
||||
local mylinguas="${lang//-/_}"
|
||||
if use "l10n_${lang}" || use l10n_en; then
|
||||
MYSPELL_DICT+=( "${mylinguas}.aff" "${mylinguas}.dic" )
|
||||
else
|
||||
rm "README_${mylinguas}.txt" || die
|
||||
if [[ ${lang} == "en-US" ]]; then
|
||||
rm "README_hyph_en_US.txt" || die
|
||||
fi
|
||||
if [[ ${lang} == "en-GB" ]]; then
|
||||
rm "README_hyph_en_GB.txt" || die
|
||||
rm "README_en_GB_thes.txt" || die
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
}
|
Binary file not shown.
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Please bump with app-office/gnucash
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR=emake
|
||||
inherit cmake optfeature
|
||||
|
||||
DESCRIPTION="Documentation package for GnuCash"
|
||||
HOMEPAGE="https://www.gnucash.org/"
|
||||
SRC_URI="https://github.com/Gnucash/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 FDL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
LOCALES=( de it ja pt )
|
||||
IUSE="${LOCALES[*]/#/l10n_}"
|
||||
|
||||
BDEPEND="app-text/docbook-xml-dtd:4.5
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt"
|
||||
|
||||
src_install() {
|
||||
local doc_type my_lang
|
||||
|
||||
for doc_type in manual guide; do
|
||||
for my_lang in C ${L10N}; do
|
||||
case ${my_lang} in
|
||||
# Both help and guides translated
|
||||
C|de|it|pt) ;;
|
||||
ja|ru) # Only guides translated
|
||||
if [[ ${doc_type} = "manual" ]] ; then
|
||||
elog "Help documentation hasn't been translated for ${my_lang}"
|
||||
elog "Will do English instead."
|
||||
continue
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
die "Invalid locale: $my_lang"
|
||||
;;
|
||||
esac
|
||||
|
||||
emake \
|
||||
-C "${BUILD_DIR}/${doc_type}/${my_lang}" \
|
||||
DESTDIR="${D}" \
|
||||
install
|
||||
done
|
||||
done
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "generating PDF files" dev-java/fop
|
||||
optfeature "viewing the docs" gnome-extra/yelp
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
CMAKE_MAKEFILE_GENERATOR=emake
|
||||
|
||||
inherit cmake optfeature
|
||||
|
||||
DESCRIPTION="Documentation package for GnuCash"
|
||||
HOMEPAGE="https://www.gnucash.org/"
|
||||
SRC_URI="https://github.com/Gnucash/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2 FDL-1.1"
|
||||
KEYWORDS="amd64 ~arm64 ~ppc ~ppc64 ~riscv x86"
|
||||
LOCALES=( de it ja pt )
|
||||
IUSE="${LOCALES[*]/#/l10n_}"
|
||||
|
||||
DEPEND="
|
||||
app-text/docbook-xml-dtd:4.5
|
||||
app-text/docbook-xsl-stylesheets
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
"
|
||||
|
||||
src_install() {
|
||||
local doc_type my_lang
|
||||
|
||||
for doc_type in manual guide; do
|
||||
for my_lang in C ${L10N}; do
|
||||
case $my_lang in
|
||||
# Both help and guides translated
|
||||
C|de|it|pt) ;;
|
||||
ja|ru) # Only guides translated
|
||||
if [[ ${doc_type} = "manual" ]] ; then
|
||||
elog "Help documentation hasn't been translated for $my_lang"
|
||||
elog "Will do English instead."
|
||||
continue
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
die "Invalid locale: $my_lang"
|
||||
;;
|
||||
esac
|
||||
|
||||
emake \
|
||||
-C "${BUILD_DIR}/${doc_type}/${my_lang}" \
|
||||
DESTDIR="${D}" \
|
||||
install
|
||||
done
|
||||
done
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "generating PDF files" dev-java/fop
|
||||
optfeature "viewing the docs" gnome-extra/yelp
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="A compendium of hacker slang illuminating many aspects of hackish tradition"
|
||||
HOMEPAGE="http://www.catb.org/~esr/jargon"
|
||||
SRC_URI="http://www.catb.org/~esr/jargon/${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
|
||||
IUSE=""
|
||||
|
||||
src_prepare() {
|
||||
find "${S}" -name .xvpics | xargs rm -rf || die
|
||||
cd "${S}/html" || die
|
||||
sed -i -e 's#\.\./\.\.#..#' */* \
|
||||
|| die "sed failed"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc -r html/*
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST gedit-plugins-42.1.tar.xz 946368 BLAKE2B 6ee8c42d5d5214cdb9095bce71623f9486c973ade69aad91eed4ae13a1ad5ab59bcc43d30078bdb9db46527160f8bc6b183a56c255d10f8027c4ff2e603fffa6 SHA512 2e36919f7b7232e4471e2c1277c33e2f79ff513b76574cf765e451064979587c170ae003c9517d33f3b9cfce916cb7f25f9e3d0a4f6a6b203086fcfff9f265aa
|
||||
DIST gedit-plugins-43.1.tar.xz 913072 BLAKE2B ebfaa6311aac490c75339cf506a58ce60864925ebee8284d72cc4b42634696511d7060eca1b8988d574e1b17dc0e0d32cc934da3c29421339044a220ea5e854e SHA512 2aad05ce15e148121b8e0dcf59546061e448aac09f42c28cee7dfc0b3c16965716059cf147c6391f1c439ac04241e94384bf6ff8dfaa40303dfe80d8de1e2fbc
|
||||
|
@ -1,108 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit gnome.org gnome2-utils meson python-single-r1 vala xdg
|
||||
|
||||
DESCRIPTION="Collection of extra plugins for the gedit Text Editor"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Gedit/ThirdPartyPlugins"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv x86"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="charmap git +python terminal vala"
|
||||
REQUIRED_USE="
|
||||
charmap? ( python )
|
||||
git? ( python )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
terminal? ( python )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libpeas-1.14.1[gtk]
|
||||
>=app-editors/gedit-40.0
|
||||
|
||||
>=dev-libs/glib-2.32:2
|
||||
>=x11-libs/gtk+-3.9:3
|
||||
>=x11-libs/gtksourceview-4.0.2:4
|
||||
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
app-editors/gedit[python,${PYTHON_SINGLE_USEDEP}]
|
||||
dev-libs/libpeas[python,${PYTHON_SINGLE_USEDEP}]
|
||||
>=dev-python/dbus-python-0.82[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
|
||||
')
|
||||
>=x11-libs/gtk+-3.9:3[introspection]
|
||||
>=x11-libs/gtksourceview-4.0.2:4[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
x11-libs/gdk-pixbuf:2[introspection]
|
||||
)
|
||||
charmap? ( >=gnome-extra/gucharmap-3:2.90[introspection] )
|
||||
git? ( >=dev-libs/libgit2-glib-0.0.6[python] )
|
||||
terminal? ( >=x11-libs/vte-0.52:2.91[introspection] )
|
||||
" # vte-0.52+ for feed_child API compatibility
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-libs/libxml2
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
vala? ( $(vala_depend) )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
use vala && vala_setup
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Dplugin_bookmarks=true
|
||||
$(meson_use python plugin_bracketcompletion)
|
||||
$(meson_use charmap plugin_charmap)
|
||||
$(meson_use python plugin_codecomment)
|
||||
$(meson_use python plugin_colorpicker)
|
||||
$(meson_use python plugin_colorschemer)
|
||||
$(meson_use python plugin_commander)
|
||||
-Dplugin_drawspaces=true
|
||||
$(meson_use vala plugin_findinfiles)
|
||||
$(meson_use git plugin_git)
|
||||
$(meson_use python plugin_joinlines)
|
||||
$(meson_use python plugin_multiedit)
|
||||
$(meson_use python plugin_sessionsaver)
|
||||
$(meson_use python plugin_smartspaces)
|
||||
$(meson_use python plugin_synctex)
|
||||
$(meson_use terminal plugin_terminal)
|
||||
$(meson_use python plugin_textsize)
|
||||
$(meson_use python plugin_translate)
|
||||
-Dplugin_wordcompletion=true
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
use python && python_optimize "${ED}/usr/$(get_libdir)/gedit/plugins/"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST gedit-42.2.tar.xz 6917596 BLAKE2B fd7b0a1c113e944b1b3f0c2bb55a061e76e7ee71ebbfe8d64c6d5b0c7e47b8dd54519bde1b7b095a1cab27a169427eecdf35d06422c1a984f51dab82e19c7cb0 SHA512 d50f021f33764e0cdd3ac51650db0e37dacb5b6edeadddfd8136e8120e83eb740db66ada25ae43eac810896714859d6f8876640a8976ddfd6e7e602c278dcc99
|
||||
DIST gedit-43.2.tar.xz 2724036 BLAKE2B 64039018c604874945cc6835bba14d80f969b0a860c0384d969af7fc81cdc4ade568539a80571440af605f14eaf33730140a48b48b92d1bdb652199770ca3411 SHA512 447f0da946ff7474637bb6b88f41eb53e5ba886c66e8b9f8c17e67d2f52e3eb115d905a850300f70488cfebcd6654a14ce8c57044760f4fdb3394cedf4e91f23
|
||||
|
@ -1,91 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
|
||||
inherit gnome.org gnome2-utils meson python-single-r1 vala xdg
|
||||
|
||||
DESCRIPTION="A text editor for the GNOME desktop"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Gedit https://gitlab.gnome.org/GNOME/gedit"
|
||||
|
||||
LICENSE="GPL-2+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+python gtk-doc spell"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/glib-2.64:2
|
||||
>=x11-libs/gtk+-3.22.0:3[introspection]
|
||||
>=x11-libs/gtksourceview-4.0.2:4[introspection,vala]
|
||||
>=dev-libs/libpeas-1.14.1[gtk]
|
||||
>=dev-libs/libxml2-2.5.0:2
|
||||
>=dev-libs/gobject-introspection-1.54:=
|
||||
|
||||
spell? ( >=app-text/gspell-0.2.5:0= )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}]
|
||||
dev-libs/libpeas[python,${PYTHON_SINGLE_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
x11-themes/adwaita-icon-theme
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
gnome-base/gvfs
|
||||
"
|
||||
BDEPEND="
|
||||
$(vala_depend)
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
dev-util/glib-utils
|
||||
gtk-doc? ( >=dev-util/gtk-doc-1 )
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.18
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
vala_setup
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
$(meson_use gtk-doc gtk_doc)
|
||||
$(meson_use python)
|
||||
$(meson_feature spell)
|
||||
-Duser_documentation=true
|
||||
-Denable-gvfs-metadata=yes
|
||||
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
if use python; then
|
||||
python_optimize
|
||||
python_optimize "${ED}/usr/$(get_libdir)/gedit/plugins/"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST gnome-latex-3.40.0.tar.xz 1050088 BLAKE2B bd8764450ee122599fd96a7e889291805fc09d854d77aa4e7d3b01709cda8bf0c38327d05de6117a19f325ca6a61ab42e014d27b941ed8e40f0bfd963dd65680 SHA512 822d86eac81994593e71428f1c893ce7d6970bb8e98349c8ad9cc6a113e3fdb49209f1bc7f19fb8d5a22da98d7650a822c8f8ab1f5aa096e6ea0cbaf74dfafca
|
||||
DIST gnome-latex-3.42.0.tar.xz 1170904 BLAKE2B 0bd1b3c50910f70d5ef690bbc9d755a61f6e076c4a491662be77ffeb5985d50c664323c7e743d108bc65fd2c826ee12cf28076a0bfb1111cc2a922381b02034c SHA512 b36300226344eced21a694ecfa6aaef0b1e788ebbc461e0ae57adab30361bc6765c6b0136213ecf19e5b61ddbb35ac5c832fb21b6f1e7f555564bb372d5f2c7b
|
||||
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit gnome2
|
||||
|
||||
DESCRIPTION="Integrated LaTeX environment for GNOME"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/GNOME-LaTeX https://gitlab.gnome.org/swilmet/gnome-latex"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~riscv x86"
|
||||
IUSE="+introspection +latexmk rubber"
|
||||
|
||||
DEPEND="
|
||||
>=app-text/gspell-1.8:0=
|
||||
>=dev-libs/glib-2.56:2
|
||||
>=dev-libs/libgee-0.10:0.8=
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
>=x11-libs/gtk+-3.22:3
|
||||
>=x11-libs/gtksourceview-4.0:4
|
||||
>=gui-libs/amtk-5.2:5
|
||||
>=gui-libs/tepl-6.0.1:6
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/pango
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.30.0:= )
|
||||
gnome-base/dconf
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
virtual/latex-base
|
||||
x11-themes/hicolor-icon-theme
|
||||
latexmk? ( dev-tex/latexmk )
|
||||
rubber? ( dev-tex/rubber )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/glib-utils
|
||||
>=dev-util/gtk-doc-am-1.14
|
||||
>=dev-util/intltool-0.50.1
|
||||
dev-util/itstool
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
$(use_enable introspection) \
|
||||
--enable-dconf_migration \
|
||||
--enable-vala=no
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST neovim-0.7.2.tar.gz 10933623 BLAKE2B c2db449a91f1685233da7125e3d4b49cb8fe26db5e498fd3a83340bd14842399474fcc7f2c78b88783195c6f7b0b8df196985b70387ed88972372a8866e2c721 SHA512 04d0fa5b23018531b70b53271821bf6944cde1bcec2210b99f5888e1339cd38f57feaa8e40874a3a504930e6614980947f31852185cbcd2ce106a0867896dd79
|
||||
DIST neovim-0.8.0.tar.gz 11387355 BLAKE2B 341f0fa10f0001324c87c26e7c0047334c25808901034f073945c3977dde4dda44b03869be1f530398d549f0b13dafae0eb82766464875ced2cd26621a0c5d88 SHA512 e9504e33df292043656b0ef064e465069c93d4be52bbe29ec33c111f3e00ed83647148d653e3f143e2243dac537eede6a9351990bd858ac20abc8edbc5249432
|
||||
DIST neovim-0.8.1.tar.gz 11387691 BLAKE2B fecdf430c854f36839332e1fd3b8fc4878a9d8a04adc83182d43a82047946de05f58c794b045678123a4f2ab820ec20e7f0fedb8f3bacc87071d27c1024f84db SHA512 b4059a8a0a3caedf15f4160f2342306f6f1d625f8f8499491efd6b4440e275de95a63aa857395f844cbc871432359f96abbca138f6278d1228366d6fb4c4f1a6
|
||||
DIST neovim-0.8.2.tar.gz 11401444 BLAKE2B 2b652e98fa68c64f547777396726b80c28493841f2ec5acc01ef5dd659f0babce0baf3d5575cec1d08dd924b1855b21f13b75d2de9d117fcc125b1ec7945376e SHA512 f6c9ad09618c9f8ebb4fe522f55fd3381cc4b6d079d912a0d2ef6ca5f48ed6c4c66805c14695469e2b3d2be2266a9b60e5fc698116cd655fd92ef0f4705fdbb2
|
||||
|
@ -1,13 +0,0 @@
|
||||
Ensure that :checkhealth is happy with the Gentoo build type.
|
||||
https://bugs.gentoo.org/757744
|
||||
--- a/runtime/autoload/health/nvim.vim
|
||||
+++ b/runtime/autoload/health/nvim.vim
|
||||
@@ -118,7 +118,7 @@ function! s:check_performance() abort
|
||||
let buildtype = matchstr(execute('version'), '\v\cbuild type:?\s*[^\n\r\t ]+')
|
||||
if empty(buildtype)
|
||||
call health#report_error('failed to get build type from :version')
|
||||
- elseif buildtype =~# '\v(MinSizeRel|Release|RelWithDebInfo)'
|
||||
+ elseif buildtype =~# '\v(MinSizeRel|Release|RelWithDebInfo|Gentoo)'
|
||||
call health#report_ok(buildtype)
|
||||
else
|
||||
call health#report_info(buildtype)
|
@ -1,11 +0,0 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -384,7 +384,7 @@
|
||||
option(PREFER_LUA "Prefer Lua over LuaJIT in the nvim executable." OFF)
|
||||
|
||||
if(PREFER_LUA)
|
||||
- find_package(Lua 5.1 REQUIRED)
|
||||
+ find_package(Lua ${PREFER_LUA} EXACT REQUIRED)
|
||||
set(LUA_PREFERRED_INCLUDE_DIRS ${LUA_INCLUDE_DIR})
|
||||
set(LUA_PREFERRED_LIBRARIES ${LUA_LIBRARIES})
|
||||
# Passive (not REQUIRED): if LUAJIT_FOUND is not set, nvim-test is skipped.
|
@ -1,55 +0,0 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -80,23 +80,6 @@ set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${DEPS_PREFIX}/lib/pkgconfig")
|
||||
# used for check_c_compiler_flag
|
||||
include(CheckCCompilerFlag)
|
||||
|
||||
-if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
- # CMake tries to treat /sw and /opt/local as extension of the system path, but
|
||||
- # that doesn't really work out very well. Once you have a dependency that
|
||||
- # resides there and have to add it as an include directory, then any other
|
||||
- # dependency that could be satisfied from there must be--otherwise you can end
|
||||
- # up with conflicting versions. So, let's make them more of a priority having
|
||||
- # them be included as one of the first places to look for dependencies.
|
||||
- list(APPEND CMAKE_PREFIX_PATH /sw /opt/local)
|
||||
-
|
||||
- # Work around some old, broken detection by CMake for knowing when to use the
|
||||
- # isystem flag. Apple's compilers have supported this for quite some time
|
||||
- # now.
|
||||
- if(CMAKE_COMPILER_IS_GNUCC)
|
||||
- set(CMAKE_INCLUDE_SYSTEM_FLAG_C "-isystem ")
|
||||
- endif()
|
||||
-endif()
|
||||
-
|
||||
if(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
# Ignore case when comparing filenames on Windows and Mac.
|
||||
set(CASE_INSENSITIVE_FILENAME TRUE)
|
||||
--- a/src/nvim/CMakeLists.txt
|
||||
+++ b/src/nvim/CMakeLists.txt
|
||||
@@ -205,10 +205,6 @@ get_directory_property(gen_includes INCLUDE_DIRECTORIES)
|
||||
foreach(gen_include ${gen_includes} ${LUA_PREFERRED_INCLUDE_DIRS})
|
||||
list(APPEND gen_cflags "-I${gen_include}")
|
||||
endforeach()
|
||||
-if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_OSX_SYSROOT)
|
||||
- list(APPEND gen_cflags "-isysroot")
|
||||
- list(APPEND gen_cflags "${CMAKE_OSX_SYSROOT}")
|
||||
-endif()
|
||||
string(TOUPPER "${CMAKE_BUILD_TYPE}" build_type)
|
||||
separate_arguments(C_FLAGS_ARRAY UNIX_COMMAND ${CMAKE_C_FLAGS})
|
||||
separate_arguments(C_FLAGS_${build_type}_ARRAY UNIX_COMMAND ${CMAKE_C_FLAGS_${build_type}})
|
||||
--- a/third-party/CMakeLists.txt
|
||||
+++ b/third-party/CMakeLists.txt
|
||||
@@ -117,13 +117,6 @@ if(CMAKE_CXX_COMPILER)
|
||||
set(DEPS_CXX_COMPILER "${CMAKE_CXX_COMPILER}")
|
||||
endif()
|
||||
|
||||
-if(CMAKE_OSX_SYSROOT)
|
||||
- set(DEPS_C_COMPILER "${DEPS_C_COMPILER} -isysroot${CMAKE_OSX_SYSROOT}")
|
||||
- if(DEPS_CXX_COMPILER)
|
||||
- set(DEPS_CXX_COMPILER "${DEPS_CXX_COMPILER} -isysroot${CMAKE_OSX_SYSROOT}")
|
||||
- endif()
|
||||
-endif()
|
||||
-
|
||||
if(CMAKE_OSX_ARCHITECTURES)
|
||||
string(REPLACE ";" "|" CMAKE_OSX_ARCHITECTURES_ALT_SEP "${CMAKE_OSX_ARCHITECTURES}")
|
||||
# The LuaJIT build does not like being passed multiple `-arch` flags
|
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST consult-0.19.tar.gz 94673 BLAKE2B a0bfacd0eccde14a332e85d31ad37092f418b5d250db8bc5a674881828d198fd2b26d66be1574539c33fcdc70f7165f4be84a4f920f1eb62b6bee0048b46ac54 SHA512 b1f023d57f29ec9443add83aca818a0f7f2c4954e8d5f53246fbb5a2525c03c20c71d69d8e748fe6fe6044393849b33f9589428528d2d0837e5848aab2724f4e
|
||||
DIST consult-0.20.tar.gz 96288 BLAKE2B 41d35655b75c6f3901b5b20f743bdf5119d0347a2d2a0dd6884cbf3856146ed30a224da75147063a93f4274772d54bbb6f91d4deb9fbda5f93d57d1b70083ef0 SHA512 d9f847f086e2921a769e84b10439512e0b614b87c424d6b206ed1007bbd67360072e02441a4249ac31ea6aa9ad5d36a042af27c0ebc935de3889e31d604ac8c9
|
||||
DIST consult-0.29.tar.gz 98233 BLAKE2B e500e3b48609000934c82832c80c9a253ee260a67c1b7e437f792668f607aa8d8e7909bd889341bf2cfc46bd4e54ed133350862aa2e7fe51fe36948d5b5edc17 SHA512 fff55c1eb435955b48e830626e06eb657cdd7c48722e9583f47842c720d1a3bc1ee8ca97ef758ad4270709fc303ba6c76dfa4c153fc958acee348aadf1e5a1f9
|
||||
DIST consult-0.30.tar.gz 97691 BLAKE2B 3e09bf24a1385f70b77d072c58e5d63a7a3bf3f89e7c2a22751e5dabead62b759c6a52577660c65a17134e0c0dc8f2ea63c79cfb874df4de06556ac2af995a8d SHA512 2eff338c557d096b4bf048d1abcfde093cd600350ce691c33408f15fdf112738eb9aee33c043412b87d7a81d27c939860ea82e5ca55f32382afecded1668934b
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
@ -0,0 +1 @@
|
||||
DIST crux-0.4.0.tar.gz 12611 BLAKE2B aa5655b703c81db3cd212caba0027873ccfe42e5b22e7534285d36b9eb9fc17178ee5d2b6500feb281f0fb82c18e599e7769d0a6647f75825695ea8eb5aba5c9 SHA512 d961d7f41a184c8521e4cd27e262feda4516807d3157e8ea79bc67086fe65d70be60673246bf3114ddaa50d25caa2622c85a62742e3cd230e5fe69a224ecfa5d
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="Collection of Ridiculously Useful eXtensions for GNU Emacs"
|
||||
HOMEPAGE="https://github.com/bbatsov/crux/"
|
||||
SRC_URI="https://github.com/bbatsov/${PN}/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
elisp_src_compile
|
||||
elisp-make-autoload-file
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
(add-to-list 'load-path "@SITELISP@")
|
||||
(load "crux-autoloads" nil t)
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnu-emacs@gentoo.org</email>
|
||||
<name>Gentoo GNU Emacs project</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
A Collection of Ridiculously Useful eXtensions for Emacs. crux bundles many
|
||||
useful interactive commands to enhance your overall Emacs experience. Most
|
||||
of the crux commands are related to the editing experience, but there are
|
||||
also a bunch of utility commands that are just very useful to have (e.g.
|
||||
crux-open-with and crux-reopen-as-root). Many of the functions in crux
|
||||
started life as blog posts on Emacs Redux, then were included in Emacs
|
||||
Prelude, before finally being extracted to crux. You can see a full list of
|
||||
blog posts on functions in crux on the tags page.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/bbatsov/crux/issues/</bugs-to>
|
||||
<remote-id type="github">bbatsov/crux</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue