Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config to hide multi user in SDDM #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ArchLinux/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgbase = multiverse-git
pkgdesc = A decentralized version control system for peer-to-peer software development.
pkgver = d945c32
pkgver = 0.0.5.3.g6171b8f
pkgrel = 1
url = http://www.multiverse-vcs.com/
arch = aarch64
Expand All @@ -10,7 +10,10 @@ pkgbase = multiverse-git
depends = go>=1.16
provides = multiverse
source = multiverse-git::git+https://github.com/multiverse-vcs/go-multiverse
source = multi-gensddmconfig.hook
source = multi-rmsddmconfig.hook
sha256sums = SKIP
sha256sums = 573122034ce6c0ee969668b85506396f1ad80afed6a5acea0dfb3331516c2a5e
sha256sums = 4986379de5a8dbd5acf04b93b170cb1cd36ff16fd1a1181d6bcf1b7c2db85a3f

pkgname = multiverse-git

21 changes: 15 additions & 6 deletions ArchLinux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
# Maintainer Keenan Nemetz <[email protected]>
# Maintainer teknomunk <https://github.com/teknomunk>
pkgname=multiverse-git
pkgver=abe236f
pkgrel=1
pkgver=0.0.5.3.g6171b8f
pkgrel=2
pkgdesc="A decentralized version control system for peer-to-peer software development."
arch=(aarch64 x86_64)
url=http://www.multiverse-vcs.com/
licence=("AGPL3")
provides=(multiverse)
depends=("go>=1.16")
makedepends=("git" "go>=1.16")
source=(${pkgname}::git+https://github.com/multiverse-vcs/go-multiverse)
sha256sums=("SKIP")
source=(
${pkgname}::git+https://github.com/multiverse-vcs/go-multiverse
multi-gensddmconfig.hook
multi-rmsddmconfig.hook
)
sha256sums=('SKIP'
'573122034ce6c0ee969668b85506396f1ad80afed6a5acea0dfb3331516c2a5e'
'4986379de5a8dbd5acf04b93b170cb1cd36ff16fd1a1181d6bcf1b7c2db85a3f')
check(){
export GOPATH=${srcdir}/go

Expand All @@ -20,7 +25,7 @@ check(){
}
pkgver(){
cd ${srcdir}/${pkgname}
git log --format=%h -1
git describe --tags | sed "s/v//;s/-/./g"
}
prepare(){
export GOPATH=${srcdir}/go
Expand All @@ -43,4 +48,8 @@ package(){
chown 5000:5000 ${pkgdir}/var/lib/multi
install -Dm644 ${srcdir}/${pkgname}/init/multiverse.service ${pkgdir}/usr/lib/systemd/system/multiverse.service
install -Dm644 ${srcdir}/${pkgname}/init/multi-user.conf ${pkgdir}/usr/lib/sysusers.d/multi.conf
# Create SDDM config to hide multi user in SDDM greeter
mkdir -p ${pkgdir}/usr/share/libalpm/hooks
install -Dm644 ${srcdir}/multi-gensddmconfig.hook ${pkgdir}/usr/share/libalpm/hooks/multi-gensddmconfig.hook
install -Dm644 ${srcdir}/multi-rmsddmconfig.hook ${pkgdir}/usr/share/libalpm/hooks/milti-rmssddmconfig.hook
}
10 changes: 10 additions & 0 deletions ArchLinux/multi-gensddmconfig.hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = multiverse-git

[Action]
Description = Trying to create SDDM config to hide multi user...
When = PostTransaction
Exec = /usr/bin/sh -c "which sddm-greeter > /dev/null; if [ $? -eq 0 ]; then mkdir -p /etc/sddm.conf.d && echo [Users] > /etc/sddm.conf.d/multi.conf && echo HideUsers=multi >> /etc/sddm.conf.d/multi.conf; fi"
10 changes: 10 additions & 0 deletions ArchLinux/multi-rmsddmconfig.hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Trigger]
Type = Package
Operation = Remove
Target = multiverse-git

[Action]
Description = Removing SDDM config generated by multiverse...
When = PreTransaction
Exec = /usr/bin/sh -c "rm -f /etc/sddm.conf.d/multi.conf > /dev/null"