xautolock: 2.2

This commit is contained in:
Daniel Azevedo 2024-10-01 15:13:42 +01:00
parent a883c98583
commit 620e2e8e2b
5 changed files with 54 additions and 0 deletions

3
xautolock/.footprint Normal file
View file

@ -0,0 +1,3 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/xautolock

2
xautolock/.md5sum Normal file
View file

@ -0,0 +1,2 @@
d313c2e392be59c2cbbb4226caf98bd4 union-wait.patch
9526347a202694ad235d731d9d3de91f xautolock-2.2.tgz

6
xautolock/.signature Normal file
View file

@ -0,0 +1,6 @@
untrusted comment: verify with /etc/ports/d77crux.pub
RWT0dvMs3lAWkFmPW62xCvwL8YcU7SquJlk9euF8x9HzWfsdrJJEfMqsOU9pl24nfc6TSPcSJnIKhaTmcLSsyRu7L7ikT2x1YQY=
SHA256 (Pkgfile) = 0b953276a4838711c297ce41e040d9a5df1e70f9f154b08628563b3d1c037bcc
SHA256 (.footprint) = b0fb0857591a76b23fef9ef72d7d4d077697de31419570ffc0337d5118f25758
SHA256 (xautolock-2.2.tgz) = 11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2
SHA256 (union-wait.patch) = 3fb37a10157a751728ed07f74aa42832d8fad92166c19eafbeb2edc1d4fc08e2

17
xautolock/Pkgfile Normal file
View file

@ -0,0 +1,17 @@
# Description: Locker for Xorg.
# URL: https://ibiblio.org/pub/Linux/X11/screensavers/
# Maintainer: Daniel Azevedo, daniazevedo77 at posteo dot net
# Depends on: xorg-imake
name=xautolock
version=2.2
release=1
source=(https://ibiblio.org/pub/Linux/X11/screensavers/$name-$version.tgz union-wait.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/union-wait.patch
xmkmf
make
make DESTDIR=$PKG install
}

View file

@ -0,0 +1,26 @@
diff -ru xautolock-2.2-orig/src/engine.c xautolock-2.2/src/engine.c
--- xautolock-2.2-orig/src/engine.c 2007-12-28 18:15:26.000000000 +0100
+++ xautolock-2.2/src/engine.c 2018-05-31 14:13:55.438216644 +0200
@@ -210,22 +210,14 @@
#else /* VMS */
if (lockerPid)
{
-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
- union wait status; /* childs process status */
-#else /* !UTEKV && !SYSV && !SVR4 */
int status = 0; /* childs process status */
-#endif /* !UTEKV && !SYSV && !SVR4 */
if (unlockNow && !disabled)
{
(void) kill (lockerPid, SIGTERM);
}
-#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
- if (wait3 (&status, WNOHANG, 0))
-#else /* !UTEKV && !SYSV && !SVR4 */
if (waitpid (-1, &status, WNOHANG))
-#endif /* !UTEKV && !SYSV && !SVR4 */
{
/*
* If the locker exited normally, we disable any pending kill