aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-02-04 12:19:39 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2024-02-05 00:11:01 +0500
commitd35b177204ed06b392a62e06d9630f8dc0aee3b1 (patch)
tree2da436760a292251b4d9967335cede70657f6399 /phosh-base
parentphosh-base: new category (diff)
downloadguru-d35b177204ed06b392a62e06d9630f8dc0aee3b1.tar.gz
guru-d35b177204ed06b392a62e06d9630f8dc0aee3b1.tar.bz2
guru-d35b177204ed06b392a62e06d9630f8dc0aee3b1.zip
phosh-base/phosh-shell: rename gui-wm/phosh
It's not a window manager but a GNOME shell. Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'phosh-base')
-rw-r--r--phosh-base/phosh-shell/Manifest3
-rw-r--r--phosh-base/phosh-shell/files/pam_phosh5
-rw-r--r--phosh-base/phosh-shell/files/phosh.service56
-rw-r--r--phosh-base/phosh-shell/files/sm.puri.OSK0.desktop12
-rw-r--r--phosh-base/phosh-shell/metadata.xml17
-rw-r--r--phosh-base/phosh-shell/phosh-shell-0.17.0.ebuild79
6 files changed, 172 insertions, 0 deletions
diff --git a/phosh-base/phosh-shell/Manifest b/phosh-base/phosh-shell/Manifest
new file mode 100644
index 000000000..d0e5e6c20
--- /dev/null
+++ b/phosh-base/phosh-shell/Manifest
@@ -0,0 +1,3 @@
+DIST libcall-ui-acfbb136bbf74514e0b9801ce6c1e8acf36350b6.tar.gz 159337 BLAKE2B 47cd388043514baf568914adea281e884d0fa04375d8cc116cabd6a1061fcfb5e224a8065afffd2957513657ff5970d1dead33cea99f36117bb80b35d6f34513 SHA512 b79e3d8ac9889109e0fe20f149ffb14bde198f7a364152a60c7175228c283f18a7abe2049b01935d11fd005e14ef4da9c23ada6c651801364c79bc2dca1e71f2
+DIST libgnome-volume-control-ae1a34aafce7026b8c0f65a43c9192d756fe1057.tar.gz 45164 BLAKE2B c6807f855e7d4f45b58c7776cd497077b4adf8d577f9af014a8631a054c47374dfe5caa5652be208c6e566bfb8af70a0bb5e164f345b7612cb8786039625a191 SHA512 723334bff55927363dab47ef22c71dcaf94263fe76e49c40f1cbfbd5f86383e68fd4bf2182eb5777dda8e2ede4ee4710e1a7ab1379d3ca40d68f68ff30c62e21
+DIST phosh-v0.17.0.tar.gz 726863 BLAKE2B 6a4c6bc6b3f645b7805445be21a4d8df13b786ee8cf104cf202a88a8333c5123cf34e5c136fa21d13476c71a51240d87388587bca84a37487e4984434fd32c53 SHA512 020a0cc5659d5c1a5f4291baed231f3f7b698dc41f027173cc59f3429a1a43bbf6f2213f2fb79d7d2c175518cb6a892c419a3b0ad902e51cca2c313f5bbc84bf
diff --git a/phosh-base/phosh-shell/files/pam_phosh b/phosh-base/phosh-shell/files/pam_phosh
new file mode 100644
index 000000000..0580d9841
--- /dev/null
+++ b/phosh-base/phosh-shell/files/pam_phosh
@@ -0,0 +1,5 @@
+#%PAM-1.0
+
+auth include system-local-login
+account include system-local-login
+session include system-local-login
diff --git a/phosh-base/phosh-shell/files/phosh.service b/phosh-base/phosh-shell/files/phosh.service
new file mode 100644
index 000000000..6a1bda33c
--- /dev/null
+++ b/phosh-base/phosh-shell/files/phosh.service
@@ -0,0 +1,56 @@
+[Unit]
+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
+
+# D-Bus is necessary for contacting logind. Logind is required.
+Wants=dbus.socket
+After=dbus.socket
+
+# This scope is created by pam_systemd when logging in as the user.
+# This directive is a workaround to a systemd bug, where the setup of the
+# user session by PAM has some race condition, possibly leading to a failure.
+# See README for more details.
+After=session-c1.scope
+
+# Since we are part of the graphical session, make sure we are started before
+# it is complete.
+Before=graphical.target
+
+# Prevent starting on systems without virtual consoles
+ConditionPathExists=/dev/tty0
+
+[Service]
+Environment=LANG=C.UTF-8
+Environment=XDG_CURRENT_DESKTOP=GNOME:Phosh
+Environment=XDG_SESSION_DESKTOP=phosh
+Environment=XDG_SESSION_TYPE=wayland
+ExecStart=/usr/bin/phosh
+TimeoutStartSec=30
+User=1000
+PAMName=login
+WorkingDirectory=~
+Restart=always
+RestartSec=5s
+
+# A virtual terminal is needed.
+TTYPath=/dev/tty7
+TTYReset=yes
+TTYVHangup=yes
+TTYVTDisallocate=yes
+
+# Fail to start if not controlling the tty.
+StandardInput=tty-fail
+StandardOutput=journal
+StandardError=journal
+
+# Log this user with utmp, letting it show up with commands 'w' and 'who'.
+UtmpIdentifier=tty7
+UtmpMode=user
+
+[Install]
+WantedBy=graphical.target
diff --git a/phosh-base/phosh-shell/files/sm.puri.OSK0.desktop b/phosh-base/phosh-shell/files/sm.puri.OSK0.desktop
new file mode 100644
index 000000000..e4a875340
--- /dev/null
+++ b/phosh-base/phosh-shell/files/sm.puri.OSK0.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Type=Application
+Name=On-screen keyboard
+Comment=Default on-screen keyboard
+Exec=/usr/bin/phosh-osk-stub
+Categories=GNOME;Core;
+OnlyShowIn=GNOME;
+NoDisplay=true
+X-GNOME-Autostart-Phase=Panel
+X-GNOME-Provides=inputmethod
+X-GNOME-Autostart-Notify=true
+X-GNOME-AutoRestart=true
diff --git a/phosh-base/phosh-shell/metadata.xml b/phosh-base/phosh-shell/metadata.xml
new file mode 100644
index 000000000..dbc793aa3
--- /dev/null
+++ b/phosh-base/phosh-shell/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gjdijkman@gjdwebserver.nl</email>
+ <name>Gerben Jan Dijkman</name>
+ </maintainer>
+ <longdescription lang="en">
+ A pure Wayland shell for GNOME on mobile devices. For a matching
+ compositor see gui-wm/phoc but others implementing wlr-layer-shell
+ should work as well.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://gitlab.gnome.org/World/Phosh/phosh/-/issues</bugs-to>
+ <remote-id type="gnome-gitlab">World/Phosh/phosh</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/phosh-base/phosh-shell/phosh-shell-0.17.0.ebuild b/phosh-base/phosh-shell/phosh-shell-0.17.0.ebuild
new file mode 100644
index 000000000..8263db680
--- /dev/null
+++ b/phosh-base/phosh-shell/phosh-shell-0.17.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop gnome2-utils meson pam readme.gentoo-r1 systemd xdg
+
+MY_P="phosh-v${PV}"
+LVC_COMMIT="ae1a34aafce7026b8c0f65a43c9192d756fe1057"
+LCU_COMMIT="acfbb136bbf74514e0b9801ce6c1e8acf36350b6"
+
+DESCRIPTION="A pure Wayland shell prototype for GNOME on mobile devices"
+HOMEPAGE="https://gitlab.gnome.org/World/Phosh/phosh/"
+SRC_URI="
+ https://gitlab.gnome.org/World/Phosh/phosh/-/archive/v${PV}/${MY_P}.tar.gz
+ https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/archive/${LVC_COMMIT}/libgnome-volume-control-${LVC_COMMIT}.tar.gz
+ https://gitlab.gnome.org/World/Phosh/libcall-ui/-/archive/${LCU_COMMIT}/libcall-ui-${LCU_COMMIT}.tar.gz
+"
+S="${WORKDIR}/${MY_P}"
+
+KEYWORDS="~amd64 ~arm64"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="+systemd"
+
+DEPEND="
+ app-crypt/gcr
+ dev-libs/feedbackd
+ media-sound/pulseaudio
+ >=gui-libs/libhandy-1.1.90
+ net-misc/networkmanager
+ gnome-base/gnome-control-center
+ gnome-base/gnome-desktop
+ gnome-base/gnome-session
+ x11-themes/gnome-backgrounds
+ gnome-base/gnome-keyring
+ gnome-base/gnome-shell
+ gui-wm/phoc
+ systemd? ( sys-apps/systemd )
+ sys-power/upower
+ app-misc/geoclue
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-util/ctags
+ dev-build/meson
+"
+
+src_prepare() {
+ default
+ rm -r "${S}"/subprojects/gvc || die
+ mv "${WORKDIR}"/libgnome-volume-control-"${LVC_COMMIT}" "${S}"/subprojects/gvc || die
+ rm -r "${S}"/subprojects/libcall-ui || die
+ mv "${WORKDIR}"/libcall-ui-"${LCU_COMMIT}" "${S}"/subprojects/libcall-ui || die
+}
+
+src_install() {
+ default
+ meson_src_install
+ newpamd "${FILESDIR}"/pam_phosh 'phosh'
+ systemd_newunit "${FILESDIR}"/phosh.service 'phosh.service'
+ domenu "${FILESDIR}"/sm.puri.OSK0.desktop
+
+ 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
+ to allow use digit only password as phosh only support passcode for now"
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_schemas_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_schemas_update
+}