*/*: cleanup
This commit is contained in:
parent
cdc3b11bb1
commit
af36dbd9a1
@ -1 +0,0 @@
|
||||
DIST pass-import-3.5.tar.gz 259550 BLAKE2B 3bd0a2a09262d91d00c385264828dda3d728ec738fa30f0c678bdf028c777c71213e25e3d5158a4744a3dcdb9a40ba551f261a5151ad2d154ba56f6cc8b3c54d SHA512 6a71dfd4f4622978cf8e84a5ef930e3a25aa6691485bbbf8054becb8569b770675a664eae125e509b92a34705219bbceb7234e19c1454a3d842360ec79c44f75
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{6..12} )
|
||||
|
||||
# pass-import makes only one Python implementation, needs PYTHON_SINGLE_TARGET.
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="generic importer extension for password manager ZX2C4's pass"
|
||||
HOMEPAGE="https://github.com/roddhjav/pass-import"
|
||||
SRC_URI="https://github.com/roddhjav/pass-import/archive/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
COMMON_DEPEND="app-shells/bash
|
||||
dev-python/cryptography
|
||||
dev-python/defusedxml
|
||||
|| (
|
||||
sys-apps/file[python]
|
||||
dev-python/python-magic
|
||||
)
|
||||
dev-python/pyyaml
|
||||
dev-python/secretstorage"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-python/setuptools
|
||||
dev-python/dominate
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=app-admin/pass-1.7.0"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
DOCS=( CHANGELOG.rst CONTRIBUTING.rst README.md )
|
||||
|
||||
pkg_setup() {
|
||||
python_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
python_fix_shebang .
|
||||
sed -i -e 's:python3:'${EPYTHON}':g' scripts/import.bash scripts/pimport
|
||||
touch share/man/man1/pass-import.1 share/man/man1/pimport.1 CHANGELOG.rst CONTRIBUTING.rst
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
python_domodule pass_import
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you want to import passwords from KeePass, install pykeepass."
|
||||
elog "https://pypi.org/project/pykeepass/"
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST discord-0.0.86.tar.gz 102420356 BLAKE2B 053dc544110a8397461097831a39a14233ae394df3350a9efc41e190922f02971320a7834ffefee2333e8b6cc2b967733c6d618c4d259ed66fd73300a9435e45 SHA512 f3c1096d8065dd7a26381efdc07f0b0f977bed697659ed5cbc9dd7733ef79f14608fd163d7f33d8f98e9543f8a73778f4385edb07911ca13f60a4711d7ece517
|
@ -1,146 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="${PN/-bin/}"
|
||||
MY_PV="${PV/-r*/}"
|
||||
|
||||
CHROMIUM_LANGS="
|
||||
af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi
|
||||
hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv
|
||||
sw ta te th tr uk ur vi zh-CN zh-TW
|
||||
"
|
||||
|
||||
inherit chromium-2 desktop linux-info optfeature unpacker xdg
|
||||
|
||||
DESCRIPTION="All-in-one voice and text chat for gamers"
|
||||
HOMEPAGE="https://discord.com/"
|
||||
SRC_URI="https://dl.discordapp.net/apps/linux/${MY_PV}/${MY_PN}-${MY_PV}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN^}"
|
||||
|
||||
LICENSE="all-rights-reserved"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
|
||||
IUSE="appindicator +seccomp wayland"
|
||||
RESTRICT="bindist mirror strip test"
|
||||
|
||||
RDEPEND="
|
||||
>=app-accessibility/at-spi2-core-2.46.0:2
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
media-libs/alsa-lib
|
||||
media-libs/fontconfig
|
||||
media-libs/mesa[gbm(+)]
|
||||
net-print/cups
|
||||
sys-apps/dbus
|
||||
sys-apps/util-linux
|
||||
sys-libs/glibc
|
||||
x11-libs/cairo
|
||||
x11-libs/libdrm
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libX11
|
||||
x11-libs/libXScrnSaver
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libxcb
|
||||
x11-libs/libxkbcommon
|
||||
x11-libs/libxshmfence
|
||||
x11-libs/pango
|
||||
appindicator? ( dev-libs/libayatana-appindicator )
|
||||
"
|
||||
|
||||
DESTDIR="/opt/${MY_PN}"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
CONFIG_CHECK="~USER_NS"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_PN}-${MY_PV}.tar.gz
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
default
|
||||
chromium_suid_sandbox_check_kernel_config
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# remove post-install script
|
||||
rm postinst.sh || die "the removal of the unneeded post-install script failed"
|
||||
# cleanup languages
|
||||
pushd "locales/" >/dev/null || die "location change for language cleanup failed"
|
||||
chromium_remove_language_paks
|
||||
popd >/dev/null || die "location reset for language cleanup failed"
|
||||
|
||||
# fix .desktop exec location
|
||||
sed --in-place --expression "/^Exec=/s:/usr/share/discord/Discord:/usr/bin/${MY_PN}:" \
|
||||
"${MY_PN}.desktop" ||
|
||||
die "fixing of exec location on .desktop failed"
|
||||
|
||||
# Update exec location in launcher
|
||||
sed --expression "s:@@DESTDIR@@:${DESTDIR}:" \
|
||||
"${FILESDIR}/launcher.sh" > "${T}/launcher.sh" || die "updating of exec location in launcher failed"
|
||||
|
||||
# USE seccomp in launcher
|
||||
if use seccomp; then
|
||||
sed --in-place --expression '/^EBUILD_SECCOMP=/s/false/true/' \
|
||||
"${T}/launcher.sh" || die "sed failed for seccomp"
|
||||
fi
|
||||
|
||||
# USE wayland in launcher
|
||||
if use wayland; then
|
||||
sed --in-place --expression '/^EBUILD_WAYLAND=/s/false/true/' \
|
||||
"${T}/launcher.sh" || die "sed failed for wayland"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doicon -s 256 "${MY_PN}.png"
|
||||
|
||||
# install .desktop file
|
||||
domenu "${MY_PN}.desktop"
|
||||
|
||||
exeinto "${DESTDIR}"
|
||||
|
||||
doexe "${MY_PN^}" chrome-sandbox libEGL.so libffmpeg.so libGLESv2.so libvk_swiftshader.so
|
||||
|
||||
insinto "${DESTDIR}"
|
||||
doins chrome_100_percent.pak chrome_200_percent.pak icudtl.dat resources.pak snapshot_blob.bin v8_context_snapshot.bin
|
||||
insopts -m0755
|
||||
doins -r locales resources
|
||||
|
||||
# Chrome-sandbox requires the setuid bit to be specifically set.
|
||||
# see https://github.com/electron/electron/issues/17972
|
||||
fowners root "${DESTDIR}/chrome-sandbox"
|
||||
fperms 4711 "${DESTDIR}/chrome-sandbox"
|
||||
|
||||
# Crashpad is included in the package once in a while and when it does, it must be installed.
|
||||
# See #903616 and #890595
|
||||
[[ -x chrome_crashpad_handler ]] && doins chrome_crashpad_handler
|
||||
|
||||
exeinto "/usr/bin"
|
||||
newexe "${T}/launcher.sh" "discord" || die "failing to install launcher"
|
||||
|
||||
# https://bugs.gentoo.org/898912
|
||||
if use appindicator; then
|
||||
dosym ../../usr/lib64/libayatana-appindicator3.so /opt/discord/libappindicator3.so
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
optfeature_header "Install the following packages for additional support:"
|
||||
optfeature "sound support" \
|
||||
media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
|
||||
optfeature "emoji support" media-fonts/noto-emoji
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# coding: UTF-8
|
||||
|
||||
|
||||
declare -a discord_parameters
|
||||
|
||||
# Variables set during ebuild configuration
|
||||
EBUILD_SECCOMP=false
|
||||
EBUILD_WAYLAND=false
|
||||
|
||||
"${EBUILD_SECCOMP}" || discord_parameters+=( --disable-seccomp-filter-sandbox )
|
||||
|
||||
"${EBUILD_WAYLAND}" && \
|
||||
[[ -n "${WAYLAND_DISPLAY}" ]] && discord_parameters+=(
|
||||
--enable-features=UseOzonePlatform
|
||||
--ozone-platform=wayland
|
||||
--enable-wayland-ime
|
||||
)
|
||||
|
||||
@@DESTDIR@@/Discord "${discord_parameters[@]}" "$@"
|
@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>ran.dall@icloud.com</email>
|
||||
<name>Randall T. Vasquez</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>sarnex@gentoo.org</email>
|
||||
<name>Nick Sarnie</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST rsync-bpc-3.1.3.0.tar.gz 883808 BLAKE2B 56cb299fb75219043364344d6575a443e32b5992a00f6691dde0f6b99c9b54d73d74bbef8dc98a9c927643985031e027df89d4aa1969d493e624290f28cb19f0 SHA512 24ae86c6108720d7f0ba6d144053ccba6499623018bc2bcff8f1d8e289f9c015f80e73244e965a7fcdccb5f9b2a876f1a54ceed42a19a80fd7c87c6b05c7701d
|
@ -1,13 +0,0 @@
|
||||
--- rsync-bpc-3.1.3.0/configure.ac.old 2025-02-21 20:05:47.000000000 -0600
|
||||
+++ rsync-bpc-3.1.3.0/configure.ac 2025-02-21 20:02:27.000000000 -0600
|
||||
@@ -852,7 +852,9 @@
|
||||
|
||||
AC_CACHE_CHECK([if gettimeofday takes tz argument],rsync_cv_HAVE_GETTIMEOFDAY_TZ,[
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>
|
||||
-#include <unistd.h>]], [[struct timeval tv; exit(gettimeofday(&tv, NULL));]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])])
|
||||
+#ifdef HAVE_UNISTD_H
|
||||
+#include <unistd.h>
|
||||
+#endif]], [[struct timeval tv; return gettimeofday(&tv, NULL);]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])])
|
||||
if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
|
||||
AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday() takes a time-zone arg])
|
||||
fi
|
@ -1,26 +0,0 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Rsync-bpc is a customized version of rsync that is used as part of BackupPC"
|
||||
HOMEPAGE="https://github.com/backuppc/rsync-bpc"
|
||||
SRC_URI="https://github.com/backuppc/rsync-bpc/releases/download/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="virtual/ssh"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-${PV}-configure.ac.patch
|
||||
)
|
||||
|
||||
inherit autotools
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST fwupd-2.0.2.tar.xz 5082328 BLAKE2B 78c558e9479d87e143667babe63daf15c3bcb2d1098948d7ad10f2c79cb7fe57790f7817020bed75af77b23ddef59624a4eca61df92c8e9a6baa6d83dd7912fb SHA512 c8be8639605e5721b3e3608152e15a73bced7d628101fea7675a71462032757a32f96fde6537df0c28325fbe8254fdc485d55eb3ad56fa0a9930004406543069
|
@ -1,13 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Firmware update daemon"
|
||||
pidfile="/var/run/fwupd.pid"
|
||||
command="/usr/libexec/fwupd/fwupd"
|
||||
command_background="true"
|
||||
|
||||
depend() {
|
||||
need elogind dbus
|
||||
before display-manager
|
||||
}
|
@ -1,187 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit meson python-single-r1 vala udev xdg
|
||||
|
||||
DESCRIPTION="Aims to make updating firmware on Linux automatic, safe and reliable"
|
||||
HOMEPAGE="https://fwupd.org"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
||||
IUSE="amdgpu amt +archive bash-completion bluetooth cbor elogind fastboot flashrom gnutls gtk-doc introspection logitech lzma minimal modemmanager nvme policykit spi +sqlite synaptics systemd test tpm uefi"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
^^ ( elogind minimal systemd )
|
||||
minimal? ( !introspection )
|
||||
spi? ( lzma )
|
||||
synaptics? ( gnutls )
|
||||
test? ( archive )
|
||||
uefi? ( gnutls )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="$(vala_depend)
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/jinja2[${PYTHON_USEDEP}]
|
||||
')
|
||||
>=dev-build/meson-1.3.2
|
||||
virtual/pkgconfig
|
||||
sys-apps/hwdata
|
||||
gtk-doc? (
|
||||
$(python_gen_cond_dep '
|
||||
>=dev-python/markdown-3.2[${PYTHON_USEDEP}]
|
||||
')
|
||||
>=dev-util/gi-docgen-2021.1
|
||||
)
|
||||
bash-completion? ( >=app-shells/bash-completion-2.0 )
|
||||
introspection? ( dev-libs/gobject-introspection )
|
||||
test? (
|
||||
net-libs/gnutls[tools]
|
||||
)
|
||||
"
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
>=app-arch/gcab-1.0
|
||||
app-arch/xz-utils
|
||||
>=dev-libs/glib-2.72:2
|
||||
>=dev-libs/json-glib-1.6.0
|
||||
>=dev-libs/libjcat-0.1.4[gpg,pkcs7]
|
||||
>=dev-libs/libxmlb-0.3.19:=[introspection?]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
|
||||
')
|
||||
>=net-misc/curl-7.62.0
|
||||
archive? ( app-arch/libarchive:= )
|
||||
cbor? ( >=dev-libs/libcbor-0.7.0:= )
|
||||
elogind? ( >=sys-auth/elogind-211 )
|
||||
flashrom? ( >=sys-apps/flashrom-1.2-r3 )
|
||||
gnutls? ( >=net-libs/gnutls-3.6.0 )
|
||||
virtual/libusb:1
|
||||
logitech? ( dev-libs/protobuf-c:= )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
modemmanager? ( net-misc/modemmanager[mbim,qmi] )
|
||||
policykit? ( >=sys-auth/polkit-0.114 )
|
||||
sqlite? ( dev-db/sqlite )
|
||||
systemd? ( >=sys-apps/systemd-211 )
|
||||
tpm? ( app-crypt/tpm2-tss:= )
|
||||
uefi? (
|
||||
sys-apps/fwupd-efi
|
||||
sys-boot/efibootmgr
|
||||
sys-fs/udisks
|
||||
sys-libs/efivar
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
sys-apps/dbus
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
x11-libs/pango[introspection]
|
||||
amdgpu? (
|
||||
sys-kernel/linux-headers
|
||||
x11-libs/libdrm[video_cards_amdgpu]
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
vala_setup
|
||||
|
||||
sed -e "/install_dir.*'doc'/s/doc/gtk-doc/" \
|
||||
-i docs/meson.build || die
|
||||
|
||||
python_fix_shebang "${S}"/contrib/*.py
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local plugins=(
|
||||
-Dplugin_gpio="enabled"
|
||||
-Dplugin_uf2="enabled"
|
||||
$(meson_feature amdgpu plugin_amdgpu)
|
||||
$(meson_feature amt plugin_intel_me)
|
||||
$(meson_feature fastboot plugin_fastboot)
|
||||
$(meson_feature flashrom plugin_flashrom)
|
||||
$(meson_feature logitech plugin_logitech_bulkcontroller)
|
||||
$(meson_feature modemmanager plugin_modem_manager)
|
||||
$(meson_feature nvme plugin_nvme)
|
||||
$(meson_feature synaptics plugin_synaptics_mst)
|
||||
$(meson_feature synaptics plugin_synaptics_rmi)
|
||||
$(meson_feature tpm plugin_tpm)
|
||||
$(meson_feature uefi plugin_uefi_capsule)
|
||||
$(meson_use uefi plugin_uefi_capsule_splash)
|
||||
$(meson_feature uefi plugin_uefi_pk)
|
||||
)
|
||||
if use ppc64 || use riscv ; then
|
||||
plugins+=( -Dplugin_msr="disabled" )
|
||||
fi
|
||||
|
||||
local emesonargs=(
|
||||
--localstatedir "${EPREFIX}"/var
|
||||
-Dbuild="$(usex minimal standalone all)"
|
||||
-Dconsolekit="disabled"
|
||||
-Dcurl="enabled"
|
||||
-Defi_binary="false"
|
||||
-Dman="true"
|
||||
-Dsupported_build="enabled"
|
||||
-Dsystemd_unit_user=""
|
||||
$(meson_feature archive libarchive)
|
||||
$(meson_use bash-completion bash_completion)
|
||||
$(meson_feature bluetooth bluez)
|
||||
$(meson_feature cbor)
|
||||
$(meson_feature elogind)
|
||||
$(meson_feature gnutls)
|
||||
$(meson_feature gtk-doc docs)
|
||||
$(meson_feature lzma)
|
||||
$(meson_feature introspection)
|
||||
$(meson_feature policykit polkit)
|
||||
$(meson_feature sqlite)
|
||||
$(meson_feature systemd)
|
||||
$(meson_use test tests)
|
||||
|
||||
${plugins[@]}
|
||||
)
|
||||
use uefi && emesonargs+=( -Defi_os_dir="gentoo" )
|
||||
export CACHE_DIRECTORY="${T}"
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
LC_ALL="C" meson_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
if ! use minimal ; then
|
||||
newinitd "${FILESDIR}"/${PN}-r2 ${PN}
|
||||
fi
|
||||
|
||||
if use test; then
|
||||
# Preventing tests from being installed in the first place is a moving target,
|
||||
# just axe them all afterwards.
|
||||
rm -rf \
|
||||
"${ED}"/usr/libexec/installed-tests \
|
||||
"${ED}"/usr/share/fwupd/device-tests \
|
||||
"${ED}"/usr/share/fwupd/host-emulate.d/thinkpad-p1-iommu.json.gz \
|
||||
"${ED}"/usr/share/fwupd/remotes.d/fwupd-tests.conf \
|
||||
"${ED}"/usr/share/installed-tests \
|
||||
|| die
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
use minimal || udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
use minimal || udev_reload
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user