greetd: dropped duplicate port

This commit is contained in:
John McQuah 2022-11-01 07:44:02 -04:00
parent f356d0567e
commit 84e2ba7c96
7 changed files with 0 additions and 134 deletions

View File

@ -1,20 +0,0 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/greetd/
-rwxr-xr-x root/root etc/greetd/config.toml
drwxr-xr-x root/root etc/pam.d/
-rw-r--r-- root/root etc/pam.d/greetd
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/greetd
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/agreety
-rwxr-xr-x root/root usr/bin/greetd
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/agreety.1.gz
-rw-r--r-- root/root usr/share/man/man1/greetd.1.gz
drwxr-xr-x root/root usr/share/man/man5/
-rw-r--r-- root/root usr/share/man/man5/greetd.5.gz
drwxr-xr-x root/root usr/share/man/man7/
-rw-r--r-- root/root usr/share/man/man7/greetd-ipc.7.gz

View File

@ -1,7 +0,0 @@
untrusted comment: verify with /etc/ports/jmq.pub
RWTTPlFarK9CxKgUTkJCA8fhyhIspvB0BfH13tUZKZ3kme36D7LIHPDV5ZJfKpQNRCnRKEcjMBH0fiuFQu6c50sLFCwgVVGeVwU=
SHA256 (Pkgfile) = 1166d2b7f67dd90cf90a30274b7f5085c8a4d2bf73e999076549e712ab2e3bd1
SHA256 (.footprint) = 6f32537104797307d97d208d2647d44928a69baa80756ee598329a70a2c05974
SHA256 (greetd-0.8.0.tar.gz) = 47a73709df60f04b63fc50cfc409e47a451a9620777638f527b9d9333256035f
SHA256 (greetd.pam) = 47288a182c28a0d3614e67210492b9b39a82131a16674575cca03f76ac80e686
SHA256 (greetd.service) = 96da60dcf7c6f78d766e32693111cfa2640698ae2be3b4074ef27ba07cbf3a6f

View File

@ -1,45 +0,0 @@
# Description: minimal and flexible login manager daemon
# URL: https://git.sr.ht/~kennylevinsen/greetd
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: rust scdoc
name=greetd
version=0.8.0
release=1
source=(https://git.sr.ht/~kennylevinsen/greetd/archive/$version.tar.gz
greetd.pam greetd.service)
renames=($name-$version.tar.gz SKIP SKIP)
build() {
cd $name-*
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
[ -d "$PKGMK_SOURCE_DIR/rust" ] || mkdir "$PKGMK_SOURCE_DIR/rust"
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
cargo update
cargo fetch
cargo build --release --locked
install -Dt $PKG/usr/bin target/release/greetd
install -Dt $PKG/usr/bin target/release/agreety
install -Dt $PKG/etc/greetd config.toml
# install pam configuration
install -Dm644 $SRC/greetd.pam \
$PKG/etc/pam.d/greetd
# install service file
install -Dm 755 $SRC/greetd.service $PKG/etc/rc.d/greetd
## needs scdoc
# install man files
cd man
for i in *.scd; do
scdoc < "$i"> "$i".roff
done
for s in 1 5 7; do
install -d $PKG/usr/share/man/man$s
done
for i in *.roff; do
s=$(echo $i | sed 's/.*-//; s/\.scd\.roff//')
gzip -c $i > $PKG/usr/share/man/man$s/${i%-*}.$s.gz
done
}

View File

@ -1,15 +0,0 @@
This branch can be started from a rooted tty shell.
Currently tested is the included agreety (minimal) greeter.
Can start a shell, X, or anything. This is my config.toml
############### /etc/greetd/config.toml
[terminal]
# The VT to run the greeter on. Can be "next", "current" or a number
vt = 2
[default_session]
#command = "sway --config /etc/greetd/sway-config"
command = "agreety --cmd start-sway"
user = "greeter"
############### End of file

View File

@ -1,7 +0,0 @@
#%PAM-1.0
auth required pam_securetty.so
auth requisite pam_nologin.so
auth include common-auth
account include common-account
session include common-session

View File

@ -1,35 +0,0 @@
#!/bin/sh
#
# /etc/rc.d/greetd: start/stop greetd
#
SSD=/sbin/start-stop-daemon
PROG=/usr/bin/greetd
OPTS=""
RUNDIR=/var/run/greetd
PIDFILE=$RUNDIR/greetd.pid
case $1 in
start)
greetd
;;
stop)
killall greetd
;;
restart)
$0 stop
$0 start
;;
status)
$SSD --status --exec $PROG
case $? in
0) echo "$PROG is running with pid $(pidof $PROG)" ;;
1) echo "$PROG is not running but the pid file $PID exists" ;;
3) echo "$PROG is not running" ;;
4) echo "Unable to determine the program status" ;;
esac
;;
*)
echo "usage: $0 [start|stop|restart|status]"
;;
esac

View File

@ -1,5 +0,0 @@
#!/bin/sh
getent group greeter || /usr/sbin/groupadd greeter
getent passwd greeter || /usr/sbin/useradd -M -g greeter -G video,tty -c "greetd user" greeter
/usr/bin/passwd -l greeter