1
0
forked from ports/contrib

xautolock: initial commit, v2.2

This commit is contained in:
Alexandr Savca 2020-11-19 15:03:13 +02:00
parent 0f7a6cba7f
commit 75b70d10e4
4 changed files with 63 additions and 0 deletions

7
xautolock/.footprint Normal file
View File

@ -0,0 +1,7 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/xautolock
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-r--r--r-- root/root usr/share/man/man1/xautolock.1x.gz

6
xautolock/.signature Normal file
View File

@ -0,0 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3+bWG+V+VhCiQK64tTTXw7w7iZOhN7kELWvS8c7lve00hPA9qzbVbhPWfWzLUh4nm5k77Y5Y9txQKwmj3rLEKAE=
SHA256 (Pkgfile) = 828caab586c4d6877c3fbac0196d92673b03a76d210629d8e2748454ea49f682
SHA256 (.footprint) = 12194ba767e40694fd99db43971954b2bfdf2378896668ec6e924d82415b7ee8
SHA256 (xautolock-2.2.tgz) = 11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2
SHA256 (union-wait.patch) = 440a9a93f19eb7ecbfcfc14c38bb6eea57e369a6be6bd5830b6b184d83d7f3d4

23
xautolock/Pkgfile Normal file
View File

@ -0,0 +1,23 @@
# Description: Automatic X screen-locker/screen-saver
# URL: https://ibiblio.org/pub/Linux/X11/screensavers/
# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
# Depends on: xorg-imake xorg-libxscrnsaver
name=xautolock
version=2.2
release=1
source=(http://ibiblio.org/pub/Linux/X11/screensavers/$name-$version.tgz
union-wait.patch)
build() {
cd "$name-$version"
patch -p1 -i ../union-wait.patch
xmkmf
make \
CDEBUGFLAGS="$CFLAGS -fno-strength-reduce -fno-strict-aliasing" \
CXXDEBUGFLAGS="$CXXFLAGS -fno-strength-reduce -fno-strict-aliasing"
make DESTDIR=$PKG PREFIX=/usr MANPATH=/usr/share/man install install.man
}

View File

@ -0,0 +1,27 @@
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