mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
Merge updates from master
This commit is contained in:
96
app-containers/waydroid/waydroid-1.4.2-r2.ebuild
Normal file
96
app-containers/waydroid/waydroid-1.4.2-r2.ebuild
Normal file
@@ -0,0 +1,96 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
inherit linux-info xdg python-single-r1
|
||||
|
||||
DESCRIPTION="Container-based approach to boot a full Android system on Linux systems"
|
||||
HOMEPAGE="https://waydro.id"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
IUSE="apparmor +clipboard systemd"
|
||||
|
||||
DEPEND="|| ( virtual/linux-sources virtual/dist-kernel )"
|
||||
RDEPEND="
|
||||
systemd? ( sys-apps/systemd )
|
||||
app-containers/lxc[systemd?,apparmor?,seccomp]
|
||||
$(python_gen_cond_dep '
|
||||
clipboard? ( >=dev-python/pyclip-0.7.0[wayland,${PYTHON_USEDEP}] )
|
||||
dev-python/pygobject[${PYTHON_USEDEP}]
|
||||
>=dev-python/gbinder-1.1.1[${PYTHON_USEDEP}]
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
')
|
||||
net-firewall/nftables
|
||||
net-dns/dnsmasq
|
||||
>=dev-libs/libglibutil-1.0.67
|
||||
>=dev-libs/gbinder-1.1.21
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
|
||||
CONFIG_CHECK="
|
||||
~ANDROID_BINDER_IPC
|
||||
~ANDROID_BINDERFS
|
||||
~MEMFD_CREATE
|
||||
~NETFILTER_XT_TARGET_MASQUERADE
|
||||
~NETFILTER_XT_NAT
|
||||
"
|
||||
ERROR_ANDROID_BINDERFS="CONFIG_ANDROID_BINDERFS: need for creating Android-specific binder IPC channels"
|
||||
ERROR_ANDROID_BINDER_IPC="CONFIG_ANDROID_BINDER_IPC: need for creating Android-specific binder IPC channels"
|
||||
ERROR_MEMFD_CREATE="CONFIG_MEMFD_CREATE: it completely replaced deprecated ISHMEM drivers,
|
||||
therefore it's vital for android-specific memory management"
|
||||
ERROR_NETFILTER_XT_NAT="CONFIG_NETFILTER_XT_NAT: see bug #937106"
|
||||
ERROR_NETFILTER_XT_TARGET_MASQUERADE="CONFIG_NETFILTER_XT_TARGET_MASQUERADE: see bug #937106"
|
||||
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if ! use apparmor; then
|
||||
# https://github.com/waydroid/waydroid/issues/652
|
||||
sed -e '/^lxc\.apparmor\.profile =/d' \
|
||||
-i data/configs/config_3 || die
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_fix_shebang waydroid.py
|
||||
emake install DESTDIR="${D}" USE_NFTABLES=1 USE_SYSTEMD=$(usex systemd 1 0)
|
||||
if ! use systemd; then
|
||||
elog "Installing waydroid OpenRC daemon"
|
||||
doinitd "${FILESDIR}"/waydroid
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
elog "After package installation run either 'emerge --config app-containers/waydroid'"
|
||||
elog "or 'waydroid init' from root shell to install android container runtime"
|
||||
elog "To run waydroid, 1. Start container: 'rc-service waydroid start'"
|
||||
elog "2. start wayland channel (from user shell) 'waydroid session start'"
|
||||
elog "Contact https://docs.waydro.id/usage/install-on-desktops for how-to guides"
|
||||
elog "(does not cover Gentoo-specific things sadly)"
|
||||
elog
|
||||
|
||||
ewarn "Make sure you have NFTABLES up and running in your kernel. See"
|
||||
ewarn "https://wiki.gentoo.org/wiki/Nftables for how-to details"
|
||||
ewarn
|
||||
|
||||
if use apparmor; then
|
||||
ewarn "Apparmor support has not been tested by package maintainer yet"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
"${EROOT}"/usr/bin/waydroid init
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
DIST mpvpaper-1.6.tar.gz 89132 BLAKE2B 3d60e7f320375daedeed83c0776d34257d11ab70ad8b97f29a764ba02254b8e2e2ab24e74dea232bb4a0b442ec4a48237aae0d53691892d3b4703b576fd15d4b SHA512 01aa087e646f36118cfd21de849d0fe7eb7aba4a2efcd24762245d8619c84590eaf8d6f3a1e78c2ade0c55481ab2b2d93698e517cb95ef7bf6def00d8f9d8147
|
||||
DIST mpvpaper-1.7.tar.gz 89594 BLAKE2B 103582b7e5cce6293572c21299c125ef112441d1cec355e133bf54cb299123cde77deb92cd19f819102a0e6389018d4027965bb66070098a01c06f11c30b64c4 SHA512 1087d86e1586e5f5c36494787f4b981ddfd48c576add9b2758df7ed05fd219078e3fce2b135cb744d93211db254fe2e1a8b3ce2f107358fc6af3d25045ad43b6
|
||||
|
||||
@@ -26,7 +26,7 @@ IUSE="X"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/wayland
|
||||
>=gui-libs/wlroots-0.17.0[X?]
|
||||
>=gui-libs/wlroots-0.17.0:0[X?]
|
||||
x11-libs/libxkbcommon[X?]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
@@ -23,7 +23,7 @@ IUSE="X"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/wayland
|
||||
>=gui-libs/wlroots-0.17.0[X?]
|
||||
>=gui-libs/wlroots-0.17.0:0[X?]
|
||||
x11-libs/libxkbcommon[X?]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
Reference in New Issue
Block a user