aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/waydroid/51_waydroid.nft11
-rw-r--r--community/waydroid/APKBUILD13
2 files changed, 22 insertions, 2 deletions
diff --git a/community/waydroid/51_waydroid.nft b/community/waydroid/51_waydroid.nft
new file mode 100644
index 0000000000..69fd45e5a2
--- /dev/null
+++ b/community/waydroid/51_waydroid.nft
@@ -0,0 +1,11 @@
+#!/usr/sbin/nft -f
+table inet filter {
+ chain input {
+ iifname "waydroid0" accept comment "Allow incoming network traffic from WayDroid"
+ }
+ chain forward {
+ iifname "waydroid0" accept comment "Allow outgoing network traffic from WayDroid"
+ ct state {established, related} counter accept comment "accept established connections"
+ }
+}
+
diff --git a/community/waydroid/APKBUILD b/community/waydroid/APKBUILD
index b37f414da8..51e5448677 100644
--- a/community/waydroid/APKBUILD
+++ b/community/waydroid/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=waydroid
pkgver=1.2.0
-pkgrel=0
+pkgrel=1
pkgdesc="A container-based approach to boot a full Android system on a regular Linux system"
url="https://github.com/waydroid/waydroid"
# Only x86, armv7, x86_64 and aarch64 supported upstream
@@ -16,11 +16,12 @@ depends="
python3
"
triggers="$pkgname.trigger=/usr/share/waydroid-extra/images"
-subpackages="$pkgname-openrc"
+subpackages="$pkgname-openrc $pkgname-nftables"
source="https://github.com/waydroid/waydroid/archive/$pkgver/waydroid-$pkgver.tar.gz
gbinder.conf
waydroid-container.initd
waydroid-container.confd
+ 51_waydroid.nft
waydroid-session.desktop
"
options="!check" # No tests
@@ -40,10 +41,18 @@ package() {
install -Dm644 "$srcdir"/waydroid-container.confd "$pkgdir"/etc/conf.d/waydroid-container
}
+nftables() {
+ pkgdesc="$pkgdesc (nftables rules)"
+ install_if="$pkgname=$pkgver-r$pkgrel nftables"
+
+ install -Dm644 -t "$subpkgdir"/etc/nftables.d "$srcdir"/51_waydroid.nft
+}
+
sha512sums="
e3ad8cdf637a90be92049289a9bfa636c368342846615cf84cabe5ea6400b08c9f36b25e183bdf52551fd09c861a611d5ced278e23ad8da720697790aab715f9 waydroid-1.2.0.tar.gz
5619d1196144cb9eb02ae3cff44b910ff7f040657b262ddd25060e7c5e6834937b6593b7e9cacd43e1c19e47990d61b6a88fc8f668113815fe95da6a7445c3f4 gbinder.conf
b2a6969422af3398e9f5c1fc48624efd945011ccb5f63e6e23ba926efc3b886eb18a7a26ba0d4c0ab66ecd462a82a090836a05d8a48848b5952b812c7e663b33 waydroid-container.initd
b841282b96110ec59a7aa539db0737327b09549d55c78dc4b2c3b28b4a6ad1facf015b3175cb6d3a38f13e47aa6314ef3dc1514a4e60dd653a97409ec54ba706 waydroid-container.confd
+27cec579cfda197ff70d6328043755fc3d1719347bf4987edb86a07341bc4f02b99b65a6ef1fcde58b48a925176e6d770ed7cef304edff6a860bf4d408a62e06 51_waydroid.nft
56dc332d66c3eb3af08887eb2f4b8235419ff87a4e4632108cdde39cf274bc88b9e95c650a7d407d05a72f1ce2edf5d465a06b7e526113d9c9ae3817a6ed1f78 waydroid-session.desktop
"