Updated for phosh

This commit is contained in:
Gerben Jan Dijkman 2023-01-07 23:10:25 +01:00
parent 32cf9f3e0f
commit d663432c9b
5 changed files with 34 additions and 5 deletions

View File

@ -58,4 +58,15 @@ src_install() {
mkdir -p "${ED}"/usr/share/gtk-doc/html/ || die
mv "${ED}"/usr/share/doc/libfeedback-${SLOT} "${ED}"/usr/share/gtk-doc/html/ || die
fi
udev_newrules "${S}/debian/feedbackd.udev" 90-feedbackd.rules
systemd_newunit "${FILESDIR}"/org.sigxcpu.Feedback.service 'org.sigxcpu.Feedback.service'
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}

View File

@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.sigxcpu.Feedback
Exec=@libexecdir@/feedbackd

View File

@ -0,0 +1,8 @@
#!/bin/sh
set -e
OSK=/usr/bin/virtboard
if [ -x /usr/bin/squeekboard ]; then
OSK=/usr/bin/squeekboard
fi
exec $OSK

View File

@ -2,10 +2,15 @@
Description=Phosh, a shell for mobile phones
Documentation=https://gitlab.gnome.org/World/Phosh/phosh
# Make sure we are started after logins are permitted.
After=systemd-user-sessions.service
# If Plymouth is used, we want to start when it is on its way out.
After=plymouth-quit-wait.service
# replaces the getty
Conflicts=getty@tty1.service
After=getty@tty1.service
# Needs all the dependencies of the services it's replacing
# (currently getty@tty1.service):
After=rc-local.service plymouth-quit-wait.service systemd-user-sessions.service
OnFailure=getty@tty1.service
# D-Bus is necessary for contacting logind. Logind is required.
Wants=dbus.socket
@ -26,7 +31,7 @@ ConditionPathExists=/dev/tty0
[Service]
Environment=LANG=C.UTF-8
Environment=XDG_CURRENT_DESKTOP=GNOME:Phosh
Environment=XDG_CURRENT_DESKTOP=Phosh:GNOME
Environment=XDG_SESSION_DESKTOP=phosh
Environment=XDG_SESSION_TYPE=wayland
ExecStart=/usr/bin/phosh

View File

@ -44,6 +44,7 @@ DEPEND="
app-misc/geoclue
net-libs/libnma
media-sound/callaudiod
media-libs/mesa[zink]
"
RDEPEND="${DEPEND}"
BDEPEND="
@ -86,6 +87,7 @@ src_install() {
newpamd "${FILESDIR}"/pam_phosh 'phosh'
systemd_newunit "${FILESDIR}"/phosh.service 'phosh.service'
domenu "${FILESDIR}"/sm.puri.OSK0.desktop
dobin "${FILESDIR}"/osk-wayland
DOC_CONTENTS="To amend the existing password policy please see the man 5 passwdqc.conf
page and then edit the /etc/security/passwdqc.conf file to change enforce=none