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
This commit is contained in:
parent
c3551f98fd
commit
707a80cf9a
19
x11/xautolock/Makefile
Normal file
19
x11/xautolock/Makefile
Normal file
@ -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 <bsd.port.mk>
|
1
x11/xautolock/files/md5
Normal file
1
x11/xautolock/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xautolock-pl11.tar.gz) = 06e0cdd98aa7645366a31f4b895801bc
|
28
x11/xautolock/patches/patch-aa
Normal file
28
x11/xautolock/patches/patch-aa
Normal file
@ -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 <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#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))
|
1
x11/xautolock/pkg/COMMENT
Normal file
1
x11/xautolock/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
xautolock - fire up programs in case of user inactivity under X
|
12
x11/xautolock/pkg/DESCR
Normal file
12
x11/xautolock/pkg/DESCR
Normal file
@ -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.
|
2
x11/xautolock/pkg/PLIST
Normal file
2
x11/xautolock/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
||||
bin/xautolock
|
||||
man/cat1/xautolock.0
|
Loading…
x
Reference in New Issue
Block a user