From 5519ec85d3d31cc842adad352288e10bdb1fd3f4 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Fri, 14 Jan 2022 20:24:20 -0500 Subject: [PATCH] main/postmarketos-ui-framebufferphone: new aport (MR 2850) [ci:skip-build] already built successfully in CI --- .../postmarketos-ui-framebufferphone/APKBUILD | 36 +++++++++++++++++++ .../postmarketos-ui-framebufferphone/fbp.init | 25 +++++++++++++ ...tmarketos-ui-framebufferphone.post-install | 3 ++ ...tmarketos-ui-framebufferphone.post-upgrade | 1 + ...marketos-ui-framebufferphone.pre-deinstall | 3 ++ 5 files changed, 68 insertions(+) create mode 100644 main/postmarketos-ui-framebufferphone/APKBUILD create mode 100644 main/postmarketos-ui-framebufferphone/fbp.init create mode 100644 main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-install create mode 120000 main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-upgrade create mode 100644 main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.pre-deinstall diff --git a/main/postmarketos-ui-framebufferphone/APKBUILD b/main/postmarketos-ui-framebufferphone/APKBUILD new file mode 100644 index 000000000..ea5ee422a --- /dev/null +++ b/main/postmarketos-ui-framebufferphone/APKBUILD @@ -0,0 +1,36 @@ +# Reference: https://postmarketos.org/uipkg +# Maintainer: Miles Alan +pkgname=postmarketos-ui-framebufferphone +pkgver=1 +pkgrel=0 +pkgdesc="Minimalist framebuffer menu/keyboard UI accessible via touch/volume keys & compatible scripts" +url="http://sr.ht/~mil/framebufferphone" +arch="aarch64 x86_64" # Limited by fbp / zig in alpine support +license="GPL-3.0-or-later" +depends=" + postmarketos-base-ui + fbp +" +_pmb_recommends=" + f_scripts-f_audio + f_scripts-f_files + f_scripts-f_game + f_scripts-f_maps + f_scripts-f_networks + f_scripts-f_phone + f_scripts-f_rss + f_scripts-f_theme + f_scripts-f_timer + f_scripts-f_web + f_scripts-f_youtube +" +install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade" +source="fbp.init" +options="!check" # No tests + +package() { + install -Dm755 "$srcdir"/fbp.init "$pkgdir"/etc/init.d/fbp +} +sha512sums=" +e95d2daaa90b8f4cf4ba7da9e7330b59057505857b8688b4d60b7f2ddeec8d59308002ecd17083b1c6096a40dc496b996dba42ef21fff95619fe535280465372 fbp.init +" diff --git a/main/postmarketos-ui-framebufferphone/fbp.init b/main/postmarketos-ui-framebufferphone/fbp.init new file mode 100644 index 000000000..1906aee7e --- /dev/null +++ b/main/postmarketos-ui-framebufferphone/fbp.init @@ -0,0 +1,25 @@ +#!/sbin/openrc-run + +name="fbp" +command="/usr/bin/fbp" +pidfile="/var/run/fbp.pid" +output_log="/var/log/fbp_stdout.log" +error_log="/var/log/fbp_stderr.log" +command_background=true + +depend() +{ + after consolefont + keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu +} + +start_pre() +{ + # Setup kernel support for user level drivers (input subsystem) + if [ ! -e /dev/uinput ]; then + if ! modprobe -q uinput; then + eerror "The uinput module needs to be loaded by " \ + "the fbp service or built in." + fi + fi +} diff --git a/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-install b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-install new file mode 100644 index 000000000..42198142c --- /dev/null +++ b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-install @@ -0,0 +1,3 @@ +#!/bin/sh + +rc-update add fbp default diff --git a/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-upgrade b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-upgrade new file mode 120000 index 000000000..b4a23d469 --- /dev/null +++ b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.post-upgrade @@ -0,0 +1 @@ +postmarketos-ui-framebufferphone.post-install \ No newline at end of file diff --git a/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.pre-deinstall b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.pre-deinstall new file mode 100644 index 000000000..c7d01ba9c --- /dev/null +++ b/main/postmarketos-ui-framebufferphone/postmarketos-ui-framebufferphone.pre-deinstall @@ -0,0 +1,3 @@ +#!/bin/sh + +rc-update del fbp