From 707a80cf9a2214c5c275a1937b02f11d226f00fe Mon Sep 17 00:00:00 2001 From: graichen Date: Mon, 16 Mar 1998 12:35:59 +0000 Subject: [PATCH] xautolock - fire up programs in case of user inactivity under X integration of xautolock into the ports tree to settle it for an eventual integration into the x tree --- x11/xautolock/Makefile | 19 +++++++++++++++++++ x11/xautolock/files/md5 | 1 + x11/xautolock/patches/patch-aa | 28 ++++++++++++++++++++++++++++ x11/xautolock/pkg/COMMENT | 1 + x11/xautolock/pkg/DESCR | 12 ++++++++++++ x11/xautolock/pkg/PLIST | 2 ++ 6 files changed, 63 insertions(+) create mode 100644 x11/xautolock/Makefile create mode 100644 x11/xautolock/files/md5 create mode 100644 x11/xautolock/patches/patch-aa create mode 100644 x11/xautolock/pkg/COMMENT create mode 100644 x11/xautolock/pkg/DESCR create mode 100644 x11/xautolock/pkg/PLIST diff --git a/x11/xautolock/Makefile b/x11/xautolock/Makefile new file mode 100644 index 00000000000..e287991008b --- /dev/null +++ b/x11/xautolock/Makefile @@ -0,0 +1,19 @@ +# OpenBSD makefile for: xautolock +# Version required: pl-11 +# Date created: 16 March 1998 +# Whom: Thomas Graichen +# +# $OpenBSD: Makefile,v 1.1.1.1 1998/03/16 12:35:59 graichen Exp $ +# + +DISTNAME= xautolock-pl11 +CATEGORIES= x11 +MASTER_SITES= ftp://ftp.science.unitn.it/pub/unix/X11/utilities/ + +MAINTAINER= graichen@OpenBSD.ORG + +USE_IMAKE= yes +XMKMF= xmkmf +ALL_TARGET= Makefiles all + +.include diff --git a/x11/xautolock/files/md5 b/x11/xautolock/files/md5 new file mode 100644 index 00000000000..b1816d0f79f --- /dev/null +++ b/x11/xautolock/files/md5 @@ -0,0 +1 @@ +MD5 (xautolock-pl11.tar.gz) = 06e0cdd98aa7645366a31f4b895801bc diff --git a/x11/xautolock/patches/patch-aa b/x11/xautolock/patches/patch-aa new file mode 100644 index 00000000000..143e54e66b3 --- /dev/null +++ b/x11/xautolock/patches/patch-aa @@ -0,0 +1,28 @@ +--- xautolock.c.org Thu Feb 19 15:30:29 1998 ++++ xautolock.c Thu Feb 19 15:32:27 1998 +@@ -308,7 +308,7 @@ + #endif /* !NOSTDHDRS */ + + #if !defined (apollo) && !defined (VMS) +-#include ++#include + #include + #endif /* !apollo && !VMS */ + +@@ -1842,14 +1842,14 @@ + #else /* VMS */ + if (locker_pid) + { +-#if !defined (UTEKV) && !defined (SYSV) && !defined(SVR4) ++#if !defined (UTEKV) && !defined (SYSV) && !defined(SVR4) && !defined(__OpenBSD__) + union wait status; /* childs process status */ + #else /* !UTEKV && !SYSV && !SVR4 */ + int status = 0; /* childs process status */ + #endif /* !UTEKV && !SYSV && !SVR4 */ + + +-#if !defined (UTEKV) && !defined (SYSV) && !defined(SVR4) ++#if !defined (UTEKV) && !defined (SYSV) && !defined(SVR4) && !defined(__OpenBSD__) + if (wait3 (&status, WNOHANG, (struct rusage*) NULL)) + #else /* !UTEKV && !SYSV && !SVR4 */ + if (waitpid (-1, &status, WNOHANG)) diff --git a/x11/xautolock/pkg/COMMENT b/x11/xautolock/pkg/COMMENT new file mode 100644 index 00000000000..f6484c25f69 --- /dev/null +++ b/x11/xautolock/pkg/COMMENT @@ -0,0 +1 @@ +xautolock - fire up programs in case of user inactivity under X diff --git a/x11/xautolock/pkg/DESCR b/x11/xautolock/pkg/DESCR new file mode 100644 index 00000000000..8928b33be37 --- /dev/null +++ b/x11/xautolock/pkg/DESCR @@ -0,0 +1,12 @@ +Xautolock monitors the user activity on an X Window dis- +play. If none is detected within mins minutes, a program +is started as specified by the -locker option. Xautolock +will typically be used to lock the screen (hence its pri- +mary name) but it really doesn't care what program you +make it start. For this reason, xautolock does not inter- +fere with the default X screen saver, unless the -reset- +saver option is used. This implies that it is the job of +the locker or the user to take the appropriate actions if +the default screen saver is to be disabled. The only real +assumption made by xautolock is that a new countdown +starts as soon as the locker exits. diff --git a/x11/xautolock/pkg/PLIST b/x11/xautolock/pkg/PLIST new file mode 100644 index 00000000000..ca7b70802e5 --- /dev/null +++ b/x11/xautolock/pkg/PLIST @@ -0,0 +1,2 @@ +bin/xautolock +man/cat1/xautolock.0