From 42e72d315e62f8a4739935564862f758b50546dd Mon Sep 17 00:00:00 2001 From: Zakk <221879664+Zakkaus@users.noreply.github.com> Date: Sat, 11 Jul 2026 05:39:04 +1000 Subject: [PATCH] www-client/adspower-global: new package, add 8.6.3 Signed-off-by: Zakk <221879664+Zakkaus@users.noreply.github.com> --- .github/workflows/overlay.toml | 6 ++ licenses/AdsPower-EULA | 11 +++ www-client/adspower-global/Manifest | 1 + .../adspower-global-8.6.3.ebuild | 98 +++++++++++++++++++ www-client/adspower-global/metadata.xml | 11 +++ 5 files changed, 127 insertions(+) create mode 100644 licenses/AdsPower-EULA create mode 100644 www-client/adspower-global/Manifest create mode 100644 www-client/adspower-global/adspower-global-8.6.3.ebuild create mode 100644 www-client/adspower-global/metadata.xml diff --git a/.github/workflows/overlay.toml b/.github/workflows/overlay.toml index 9d520ce224..20a14931d3 100644 --- a/.github/workflows/overlay.toml +++ b/.github/workflows/overlay.toml @@ -1786,6 +1786,12 @@ include_regex = "desktop/v.*" prefix = "desktop/v" github_account = "gouwazi" +["www-client/adspower-global"] +source = "regex" +url = "https://www.adspower.com/tc/download" +regex = 'linux-x64-global/([\d.]+)/AdsPower' +github_account = "zakkaus" + ["www-client/brave-bin"] source = "aur" aur = "brave-bin" diff --git a/licenses/AdsPower-EULA b/licenses/AdsPower-EULA new file mode 100644 index 0000000000..d963a4cdd8 --- /dev/null +++ b/licenses/AdsPower-EULA @@ -0,0 +1,11 @@ +AdsPower End User License Agreement + +AdsPower Global is proprietary software from AdsPower. Use of the +application is governed by AdsPower's terms: + +- User Agreement: https://www.adspower.com/tc/terms-of-use +- Privacy Policy: https://www.adspower.com/tc/privacy-policy +- Legal and Agreements: https://www.adspower.com/tc/law-agreement + +The package redistributes the upstream binary unmodified from +https://www.adspower.com/ diff --git a/www-client/adspower-global/Manifest b/www-client/adspower-global/Manifest new file mode 100644 index 0000000000..2b5beb5a80 --- /dev/null +++ b/www-client/adspower-global/Manifest @@ -0,0 +1 @@ +DIST AdsPower-Global-8.6.3-x64.deb 315341062 BLAKE2B d45a64bee221c200c109770967a68eb719c406e3c41e8b90425919aeab393f81048913a4b4cac39cc80ff00c7725f1da20bcccf9d584d0733e54c3e42f9d5466 SHA512 905c77eaf7515f60cb385f4cf3db26f0a51ee735924ede34f94d832bbb6863f4438aea4137b934eb7d39e6a91300f396a164feceba6d340ec968a244e7525d06 diff --git a/www-client/adspower-global/adspower-global-8.6.3.ebuild b/www-client/adspower-global/adspower-global-8.6.3.ebuild new file mode 100644 index 0000000000..5f96bbd4ac --- /dev/null +++ b/www-client/adspower-global/adspower-global-8.6.3.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop optfeature pax-utils unpacker xdg + +DESCRIPTION="Antidetect browser for multi-account management" +HOMEPAGE="https://www.adspower.com/" + +SRC_URI="https://version.adspower.net/software/linux-x64-global/${PV}/AdsPower-Global-${PV}-x64.deb" +S="${WORKDIR}" + +LICENSE="AdsPower-EULA" +SLOT="0" +KEYWORDS="-* ~amd64" +RESTRICT="bindist mirror strip" + +RDEPEND=" + || ( + sys-apps/systemd + sys-apps/systemd-utils + ) + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + app-misc/ca-certificates + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa[gbm(+)] + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libnotify + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libXrandr + x11-libs/libXScrnSaver + x11-libs/libXtst + x11-libs/pango + x11-misc/xdg-utils +" + +QA_PREBUILT="*" + +# Upstream installs the app under a directory name that contains a space. +ADSPOWER_DIR="AdsPower Global" + +src_install() { + # Install the application to /opt (without the space in the upstream name) + mkdir -p "${ED}/opt/${PN}" || die + cp -a "opt/${ADSPOWER_DIR}/." "${ED}/opt/${PN}/" || die + + # Drop bundled native modules for other platforms and libc implementations. + # They are never loaded on glibc x86-64 and their sonames trip QA checks. + local nm="${ED}/opt/${PN}/resources/app.asar.unpacked/node_modules" + if [[ -d ${nm}/koffi/build/koffi ]]; then + find "${nm}/koffi/build/koffi" -mindepth 1 -maxdepth 1 -type d \ + ! -name linux_x64 -exec rm -r {} + || die + fi + # sharp is unusable here: upstream ships no glibc libvips for it. + rm -rf "${nm}/@img" || die + + # Fix chrome-sandbox permissions + fperms 4755 "/opt/${PN}/chrome-sandbox" + + # Allow V8's JIT to run under PaX/hardened kernels + pax-mark m "${ED}/opt/${PN}/adspower_global" + + # Launcher on PATH + dosym -r "/opt/${PN}/adspower_global" /usr/bin/${PN} + + # Desktop entry (point Exec at the launcher) and icons + sed -i -e "s|^Exec=.*|Exec=${PN} %U|" \ + usr/share/applications/adspower_global.desktop || die + domenu usr/share/applications/adspower_global.desktop + insinto /usr/share/icons + doins -r usr/share/icons/hicolor +} + +pkg_postinst() { + xdg_pkg_postinst + + elog "The browser kernel is downloaded on first run into ~/.config/adspower_global." + elog "It expects Qt5/GTK3 theme libraries; a Qt6/GTK4 desktop theme may crash or" + elog "render it wrong. Fix: set Settings > Appearance > Theme > Classic." + + optfeature "system tray icon" dev-libs/libayatana-appindicator +} diff --git a/www-client/adspower-global/metadata.xml b/www-client/adspower-global/metadata.xml new file mode 100644 index 0000000000..f7e63d9767 --- /dev/null +++ b/www-client/adspower-global/metadata.xml @@ -0,0 +1,11 @@ + + + + + zakk@gentoozh.org + Zakk + + + https://www.adspower.com/ + +