From 15e5de079c5136b4959cbf8bbd2fe7dfc8ee01f8 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 28 May 2019 00:55:19 +0200 Subject: [PATCH] main/postmarketos-ui-phosh: new aport (!8) --- .../60-lightdm-autologin.conf | 5 +++++ main/postmarketos-ui-phosh/APKBUILD | 19 +++++++++++++++++++ .../postmarketos-ui-phosh.post-install | 5 +++++ 3 files changed, 29 insertions(+) create mode 100644 main/postmarketos-ui-phosh/60-lightdm-autologin.conf create mode 100644 main/postmarketos-ui-phosh/APKBUILD create mode 100644 main/postmarketos-ui-phosh/postmarketos-ui-phosh.post-install diff --git a/main/postmarketos-ui-phosh/60-lightdm-autologin.conf b/main/postmarketos-ui-phosh/60-lightdm-autologin.conf new file mode 100644 index 000000000..f5b313248 --- /dev/null +++ b/main/postmarketos-ui-phosh/60-lightdm-autologin.conf @@ -0,0 +1,5 @@ +# This file gets removed with postmarketos-ui-phosh, even if modified! +[Seat:*] +autologin-user=username +autologin-user-timeout=0 +autologin-session=phosh diff --git a/main/postmarketos-ui-phosh/APKBUILD b/main/postmarketos-ui-phosh/APKBUILD new file mode 100644 index 000000000..951edf449 --- /dev/null +++ b/main/postmarketos-ui-phosh/APKBUILD @@ -0,0 +1,19 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=postmarketos-ui-phosh +pkgver=1 +pkgrel=0 +pkgdesc="(Wayland) Mobile UI developed for the Librem 5 (x86 and x86_64 only for now)" +url="https://puri.sm" +arch="noarch !armhf !armv7 !aarch64" +license="GPL-3.0-or-later" +depends="phosh lightdm xorg-server" +install="$pkgname.post-install" +source="60-lightdm-autologin.conf" +options="!check" + +package() { + install -Dm644 "$srcdir"/60-lightdm-autologin.conf \ + "$pkgdir"/usr/share/lightdm/lightdm.conf.d/60-autologin.conf +} +sha512sums="c51a5cf93495069d71900dd1c6fbddfa3bdfb70dbab8141d1b115b6150975a12206c63517f18dc516e0366028b32e014b6d37a20e19ff73d5f0934c518d3ab39 60-lightdm-autologin.conf" diff --git a/main/postmarketos-ui-phosh/postmarketos-ui-phosh.post-install b/main/postmarketos-ui-phosh/postmarketos-ui-phosh.post-install new file mode 100644 index 000000000..a7791b1e4 --- /dev/null +++ b/main/postmarketos-ui-phosh/postmarketos-ui-phosh.post-install @@ -0,0 +1,5 @@ +#!/bin/sh + +sed -i "s/username/$(getent passwd 10000 | cut -d: -f1)/g" /usr/share/lightdm/lightdm.conf.d/60-autologin.conf + +rc-update add lightdm default