From 73d14304ca4cc706812ab1cc4523bbf9659d2fe9 Mon Sep 17 00:00:00 2001 From: Nikita Ermakov Date: Sat, 2 Dec 2023 23:12:43 -0600 Subject: [PATCH] New package: consolelocker-1.1.0 --- srcpkgs/consolelocker/files/consolelocker.8 | 47 +++++++++++++++++++ .../consolelocker/files/consolelockerd/run | 3 ++ srcpkgs/consolelocker/template | 27 +++++++++++ 3 files changed, 77 insertions(+) create mode 100644 srcpkgs/consolelocker/files/consolelocker.8 create mode 100755 srcpkgs/consolelocker/files/consolelockerd/run create mode 100644 srcpkgs/consolelocker/template diff --git a/srcpkgs/consolelocker/files/consolelocker.8 b/srcpkgs/consolelocker/files/consolelocker.8 new file mode 100644 index 0000000000000..e16aa6a5c479f --- /dev/null +++ b/srcpkgs/consolelocker/files/consolelocker.8 @@ -0,0 +1,47 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. +.TH \FBCONSOLELOCKER\FR "8" "August 2023" "consolelocker version 1.0.0" "System Administration Utilities" +.SH NAME +\fBconsolelocker\fR \- virtual console lock daemon +.SH SYNOPSIS +.B consolelocker +[\fI\,OPTIONS\/\fR] +.SH DESCRIPTION +This is a program to lock sessions on the Linux console +and virtual consoles. After startup it open FIFO to read +events from console user. +This program is simple wrapper for vlock(1). +.SH OPTIONS +.TP +\fB\-g\fR, \fB\-\-group\fR=\fI\,NAME\/\fR +make socket group writable +.TP +\fB\-p\fR, \fB\-\-pidfile\fR=\fI\,FILE\/\fR +pidfile location; +.TP +\fB\-l\fR, \fB\-\-loglevel\fR=\fI\,LVL\/\fR +set logging level; +.TP +\fB\-f\fR, \fB\-\-foreground\fR +stay in the foreground; +.TP +\fB\-V\fR, \fB\-\-version\fR +print program version and exit. +.TP +\fB\-h\fR, \fB\-\-help\fR +output a brief help message. +.SH FILES +.TP +.I /var/run/consolelocker +.TP +\fI/var/run/consolelocker.pid +.SH AUTHOR +Written by Alexey Gladkov +.SH COPYRIGHT +Copyright \(co 2006\-2018 Alexey Gladkov +.PP +.br +This is free software; see the source for copying conditions. +There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +.SH "SEE ALSO" +.BR vlock (1), +.BR pam_console (8). diff --git a/srcpkgs/consolelocker/files/consolelockerd/run b/srcpkgs/consolelocker/files/consolelockerd/run new file mode 100755 index 0000000000000..aed511823193b --- /dev/null +++ b/srcpkgs/consolelocker/files/consolelockerd/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec consolelocker -g wheel -f diff --git a/srcpkgs/consolelocker/template b/srcpkgs/consolelocker/template new file mode 100644 index 0000000000000..23dac5c13653b --- /dev/null +++ b/srcpkgs/consolelocker/template @@ -0,0 +1,27 @@ +# Template file for 'consolelocker' +pkgname=consolelocker +version=1.1.0 +revision=1 +build_style=gnu-makefile +# Disable manpage generation for now as the program uses help2man(1) to +# generate a man page. help2man(1) executes binary to get the help message. +# This causes issues with cross compiled binaries. It could be solved by using +# binfmt but let's bundle the manpage. +make_build_args="MAN8PAGES=" +depends=kbd +short_desc="Lock sessions on the Linux console and virtual consoles" +maintainer="Nikita Ermakov " +license="GPL-2.0-or-later" +homepage="https://github.com/legionus/consolelocker" +distfiles="https://github.com/legionus/consolelocker/archive/refs/tags/${version}-alt1.tar.gz" +checksum="a26ce14bcecbe909743766cbc040afc673534300b2c21dc86c936fad9026f94d" + +do_install() { + vbin consolelock + vbin consolelocker + # Helper program and script + vmkdir usr/libexec/consolelocker 755 + vinstall vlocka 700 usr/libexec/consolelocker/ + vman "${FILESDIR}/consolelocker.8" + vsv consolelockerd +}