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

New package: gtkgreet-0.7 #20873

Closed
wants to merge 4 commits into from
Closed
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
1 change: 1 addition & 0 deletions srcpkgs/greetd/INSTALL.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In order for agreety to work correctly, disable the agetty service for the tty
Copy link
Contributor Author

@travankor travankor Jan 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this is relevant on the latest version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe should be added to README.voidlinux instead of INSTALL.msg

7 changes: 7 additions & 0 deletions srcpkgs/greetd/files/greetd.pam
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#%PAM-1.0

auth required pam_securetty.so
auth requisite pam_nologin.so
auth include system-local-login
account include system-local-login
session include system-local-login
2 changes: 2 additions & 0 deletions srcpkgs/greetd/files/greetd/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec greetd
49 changes: 49 additions & 0 deletions srcpkgs/greetd/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Template file for 'greetd'
pkgname=greetd
version=0.7.0
revision=1
build_style=cargo
conf_files="/etc/greetd/greetd.conf"
hostmakedepends="scdoc"
makedepends="pam-devel"
short_desc="Minimal and flexible login manager daemon"
maintainer="travankor <travankor@tuta.io>"
license="GPL-3.0-or-later"
homepage="https://git.sr.ht/~kennylevinsen/greetd"
distfiles="https://git.sr.ht/~kennylevinsen/greetd/archive/${version}.tar.gz"
checksum=c84214490479f291ed3f27424e6c020a9f3115f5745c90a05f7508999b1b69a3

system_accounts="_greeter"
_greeter_groups="video"

pre_build() {
# Void accounts are prefixed with underscore
vsed -i "16s/greeter/_greeter/" config.toml

for i in man/*.scd; do
scdoc < "$i" > "${i:: -4}"
done

for f in man/*-[0-9]; do
num="${f: -1}"
mv "$f" "${f/-$num/.$num}"
done
Comment on lines +23 to +30
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meson.build doesn't do the dance for us? :(

Ah, cargo

}

do_install() {
vbin "target/${RUST_TARGET}/release/agreety"
vbin "target/${RUST_TARGET}/release/fakegreet"
vbin "target/${RUST_TARGET}/release/greetd"
vinstall ${FILESDIR}/greetd.pam 644 etc/pam.d/
vinstall config.toml 644 etc/greetd/ greetd.conf
vsv greetd

for i in man/*.[0-9]; do
vman "$i"
done
}

post_install() {
rm -f "${DESTDIR}"/usr/.crates.toml
rm -f "${DESTDIR}"/usr/.crates2.json
Comment on lines +47 to +48
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this ever copied there??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is normally part of do_install() for the cargo build style, but I moved it to post_install() since there is a custom do_install().

}
11 changes: 11 additions & 0 deletions srcpkgs/gtkgreet/patches/native_scdoc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- meson.build 2020-05-26 00:34:49.046352613 -0700
+++ meson.build 2020-05-26 00:36:29.910154222 -0700
@@ -16,7 +16,7 @@

subdir('gtkgreet')

-scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7')
+scdoc = dependency('scdoc', native:true, required: get_option('man-pages'), version: '>= 1.9.7')

if scdoc.found()
sh = find_program('sh')
14 changes: 14 additions & 0 deletions srcpkgs/gtkgreet/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Template file for 'gtkgreet'
pkgname=gtkgreet
version=0.7
revision=1
build_style=meson
hostmakedepends="pkg-config scdoc"
makedepends="gtk-layer-shell-devel json-c-devel"
depends="greetd"
short_desc="GTK based greeter for greetd"
maintainer="travankor <travankor@tuta.io>"
license="GPL-3.0-or-later"
homepage="https://git.sr.ht/~kennylevinsen/gtkgreet"
distfiles="https://git.sr.ht/~kennylevinsen/gtkgreet/archive/${version}.tar.gz"
checksum=85b76deb53899ae322f729aaae2065c788a7acd03fef4f7bd4b5d75b6158b921
12 changes: 12 additions & 0 deletions srcpkgs/tuigreet/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Template file for 'tuigreet'
pkgname=tuigreet
version=0.2.0
revision=1
build_style=cargo
depends="greetd"
short_desc="Graphical console greeter for greetd"
maintainer="travankor <travankor@tuta.io>"
license="GPL-3.0-or-later"
homepage="https://github.com/apognu/tuigreet"
distfiles="https://github.com/apognu/tuigreet/archive/${version}.tar.gz"
checksum=40784a8eb2d44e956b31d3a36604e6ae0b740938eb4d94134b9881e570caa551
12 changes: 12 additions & 0 deletions srcpkgs/wlgreet/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Template file for 'wlgreet'
pkgname=wlgreet
version=0.3
revision=1
build_style=cargo
depends="greetd"
short_desc="Raw wayland greeter for greetd"
maintainer="travankor <travankor@tuta.io>"
license="GPL-3.0-or-later"
homepage="https://git.sr.ht/~kennylevinsen/wlgreet"
distfiles="https://git.sr.ht/~kennylevinsen/wlgreet/archive/${version}.tar.gz"
checksum=d484411c8f61648901a4e8f8de6f0424a6bf2c9a951b4ff97e234318febaecac