summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-13 18:58:10 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-13 18:58:10 +0000
commit075273bf447b4f7e0eb18c9d36c19d1507609059 (patch)
tree09e51ad8334e26d016707127e840126c79e3ec19 /user
parentb6e0b26d5938c1567fd496a1c4d53fd1211ce6d7 (diff)
downloadpackages-075273bf447b4f7e0eb18c9d36c19d1507609059.tar.gz
packages-075273bf447b4f7e0eb18c9d36c19d1507609059.tar.bz2
packages-075273bf447b4f7e0eb18c9d36c19d1507609059.tar.xz
packages-075273bf447b4f7e0eb18c9d36c19d1507609059.zip
user/livecd-support: New package
Diffstat (limited to 'user')
-rw-r--r--user/livecd-support/APKBUILD43
-rw-r--r--user/livecd-support/kde.sddm.conf3
-rw-r--r--user/livecd-support/livecd-support.post-deinstall3
-rw-r--r--user/livecd-support/livecd-support.post-install3
-rw-r--r--user/livecd-support/lxqt.sddm.conf3
-rw-r--r--user/livecd-support/mate.sddm.conf3
6 files changed, 58 insertions, 0 deletions
diff --git a/user/livecd-support/APKBUILD b/user/livecd-support/APKBUILD
new file mode 100644
index 000000000..2a5e2a901
--- /dev/null
+++ b/user/livecd-support/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=livecd-support
+pkgver=1.0
+pkgrel=0
+pkgdesc="Support files for booting Adélie live media"
+url="https://www.adelielinux.org/"
+arch="noarch"
+options="!check" # Metapackage
+license="NCSA"
+subpackages="$pkgname-kde $pkgname-lxqt $pkgname-mate"
+depends=""
+install="livecd-support.post-install livecd-support.post-deinstall"
+source="kde.sddm.conf
+ lxqt.sddm.conf
+ mate.sddm.conf
+ "
+
+package() {
+ mkdir -p $pkgdir
+}
+
+kde() {
+ pkgdesc="$pkgdesc (KDE spin)"
+ depends="livecd-support adelie-kde-theme kde sddm x11"
+ install -D -m644 "$srcdir"/kde.sddm.conf "$subpkgdir"/etc/sddm.conf.d/kde.conf
+}
+
+lxqt() {
+ pkgdesc="$pkgdesc (LXQt spin)"
+ depends="livecd-support lxqt-desktop sddm x11"
+ install -D -m644 "$srcdir"/lxqt.sddm.conf "$subpkgdir"/etc/sddm.conf.d/lxqt.conf
+}
+
+mate() {
+ pkgdesc="$pkgdesc (MATE spin)"
+ depends="livecd-support mate-complete sddm x11"
+ install -D -m644 "$srcdir"/mate.sddm.conf "$subpkgdir"/etc/sddm.conf.d/mate.conf
+}
+
+sha512sums="eddcc68917b4dc376bb9b7e7ed5e2c06379957c787c7152e654f31adb402f5811463bff69ce2a41a2cb87b0fa83a4aa3718b63d830eb9ee46b7d0d2058663d34 kde.sddm.conf
+9a9a61035c0a8c5ee84d235f319ca158216056221d03a0f5a3846982cb6110c569d7b4eadd2e24de66a75a428c18850e0393e20412e0edcfc8ad41c9d4783604 lxqt.sddm.conf
+603d2a5b1fdad0cb0abfefa8a4019c690ee4f5f9ac45057eeeac3bac3207e7871bdb32a564791fb99d965959b39a7de979d575db2694c2d1d88a4a16b68adb25 mate.sddm.conf"
diff --git a/user/livecd-support/kde.sddm.conf b/user/livecd-support/kde.sddm.conf
new file mode 100644
index 000000000..d8b190abe
--- /dev/null
+++ b/user/livecd-support/kde.sddm.conf
@@ -0,0 +1,3 @@
+[Autologin]
+User=live
+Session=plasma.desktop
diff --git a/user/livecd-support/livecd-support.post-deinstall b/user/livecd-support/livecd-support.post-deinstall
new file mode 100644
index 000000000..cfd0c59ac
--- /dev/null
+++ b/user/livecd-support/livecd-support.post-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sed -i 's/pam_unix.so nullok_secure$/pam_unix.so/' /etc/pam.d/base-auth
diff --git a/user/livecd-support/livecd-support.post-install b/user/livecd-support/livecd-support.post-install
new file mode 100644
index 000000000..9556f5a52
--- /dev/null
+++ b/user/livecd-support/livecd-support.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sed -i 's/pam_unix.so$/pam_unix.so nullok_secure/' /etc/pam.d/base-auth
diff --git a/user/livecd-support/lxqt.sddm.conf b/user/livecd-support/lxqt.sddm.conf
new file mode 100644
index 000000000..797782fed
--- /dev/null
+++ b/user/livecd-support/lxqt.sddm.conf
@@ -0,0 +1,3 @@
+[Autologin]
+User=live
+Session=lxqt.desktop
diff --git a/user/livecd-support/mate.sddm.conf b/user/livecd-support/mate.sddm.conf
new file mode 100644
index 000000000..56e53c6fb
--- /dev/null
+++ b/user/livecd-support/mate.sddm.conf
@@ -0,0 +1,3 @@
+[Autologin]
+User=live
+Session=mate.desktop