Add xtrlock, a minimal transparent X lock. Transparent means that all windows

are still visible and updated on the locked session.

PR:		ports/66964
Submitted by:	Alexey Y. Mikhailov <karma@ez.pereslavl.ru>
This commit is contained in:
Pav Lucistnik 2004-05-23 11:40:52 +00:00
parent 9296daba21
commit 206b294339
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109778
6 changed files with 84 additions and 0 deletions

View file

@ -234,6 +234,7 @@
SUBDIR += xtermset
SUBDIR += xtestpicture
SUBDIR += xtoolwait
SUBDIR += xtrlock
SUBDIR += xtset
SUBDIR += xvattr
SUBDIR += xvkbd

25
x11/xtrlock/Makefile Normal file
View file

@ -0,0 +1,25 @@
# New ports collection makefile for: xtrlock
# Date created: 18 May 2004
# Whom: Alexey Mikhailov <karma@ez.pereslavl.ru>
#
# $FreeBSD$
#
PORTNAME= xtrlock
PORTVERSION= 2.0.8
CATEGORIES= x11
MASTER_SITES= http://ftp.debian.org/debian/pool/main/x/xtrlock/
DISTNAME= ${PORTNAME}_2.0-8
MAINTAINER= karma@ez.pereslavl.ru
COMMENT= X Transparent Lock
USE_X_PREFIX= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-2.0
MAKEFILE= ${FILESDIR}/Makefile
MAN1= xtrlock.1
PLIST_FILES= bin/xtrlock
.include <bsd.port.mk>

2
x11/xtrlock/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (xtrlock_2.0-8.tar.gz) = db68dc8f1e4b5b55183cc3c33a5bd799
SIZE (xtrlock_2.0-8.tar.gz) = 7310

View file

@ -0,0 +1,39 @@
# Makefile for xtrlock - X Transparent Lock
# This Makefile provided for those of you who lack a functioning xmkmf.
#
# Copyright (C)1993,1994 Ian Jackson
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# $FreeBSD$
#
LDLIBS=-lX11 -lcrypt
CC=gcc
CFLAGS=-I${X11BASE}/include -L${X11BASE}/lib
INSTALL=install -c
INSTALL_PROGRAM = ${INSTALL}
INSTPGMFLAGS = -s -o root -m4111
OBJS=xtrlock.o
xtrlock: xtrlock.o
${CC} ${CFLAGS} ${LDLIBS} -o xtrlock ${OBJS}
xtrlock.o: xtrlock.c lock.bitmap mask.bitmap patchlevel.h
${CC} -c ${CFLAGS} xtrlock.c
install: xtrlock install.man
$(INSTALL_PROGRAM) $(INSTPGMFLAGS) xtrlock ${PREFIX}/bin
install.man:
$(INSTALL) -m 644 xtrlock.man ${PREFIX}/man/man1/xtrlock.1
all: xtrlock

View file

@ -0,0 +1,16 @@
*** xtrlock.c.orig Sun Sep 1 08:46:29 2002
--- xtrlock.c Tue May 18 17:45:48 2004
***************
*** 31,41 ****
#include <grp.h>
#include <limits.h>
#include <string.h>
- #include <crypt.h>
#include <unistd.h>
#include <math.h>
#include <ctype.h>
- #include <values.h>
#ifdef SHADOW_PWD
#include <shadow.h>
--- 31,39 ----

1
x11/xtrlock/pkg-descr Normal file
View file

@ -0,0 +1 @@
A minimal xlock with minimum usage of resources.