Files
BMLFS/build-scripts/turnstile.build
2025-07-26 11:35:57 -05:00

56 lines
1.9 KiB
Bash

#! /bin/bash
# turnstile
# Source: https://github.com/chimera-linux/turnstile/archive/refs/tags/v0.1.10.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: linux-pam
# Recommended: seatd
# Optional: scdoc (for manpages)
export PVER="0.1.10"
export MARG="--libexecdir=/usr/lib "
export MARG+="-Ddinit=disabled "
export MARG+="-Dmanage_rundir=true "
export MARG+="-Dman=false "
export MARG+="-Dpamdir=/etc/pam.d "
meson setup --prefix=/usr $MARG OUT
read -p "Compile?" && ninja -C OUT -j2 &&
sudo -S DESTDIR=$BUILD ninja -C OUT install &&
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
turnstile: turnstile
turnstile:
turnstile: A work in progress effort to create a session/login tracker to serve
turnstile: as a fully featured alternative to the logind subproject from
turnstile: systemd, and to provide a neutral API to both our session tracker
turnstile: and to logind itself.
turnstile:
turnstile: https://github.com/chimera-linux/turnstile
turnstile:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/turnstile-$PVER-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*
# If using turnstile to replace elogind/ConsoleKit2:
# >> The PAM module needs to be in your login path. This will differ per-distro,
# >> but typically it will involve a line like this:
# session optional pam_turnstile.so