From 9c02b383265c6399cb9f0b71eecb1a52510d6c59 Mon Sep 17 00:00:00 2001 From: steven Date: Fri, 19 Jan 2007 05:24:08 +0000 Subject: [PATCH] import slock-0.4 A small screen locking utility for X. from willmaier at ml1 dot net --- x11/slock/Makefile | 28 ++++++++++++++++++++++++++++ x11/slock/distinfo | 4 ++++ x11/slock/patches/patch-config_mk | 29 +++++++++++++++++++++++++++++ x11/slock/pkg/DESCR | 1 + x11/slock/pkg/PLIST | 3 +++ 5 files changed, 65 insertions(+) create mode 100644 x11/slock/Makefile create mode 100644 x11/slock/distinfo create mode 100644 x11/slock/patches/patch-config_mk create mode 100644 x11/slock/pkg/DESCR create mode 100644 x11/slock/pkg/PLIST diff --git a/x11/slock/Makefile b/x11/slock/Makefile new file mode 100644 index 00000000000..350d82c3315 --- /dev/null +++ b/x11/slock/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/01/19 05:24:08 steven Exp $ + +COMMENT= "simple X screen locker" + +DISTNAME= slock-0.4 + +CATEGORIES= x11 + +HOMEPAGE= http://tools.suckless.org/ + +MAINTAINER= Will Maier + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= X11 c + +MASTER_SITES= ${HOMEPAGE}download/ + +FAKE_FLAGS= DESTDIR="" + +USE_X11= Yes +NO_REGRESS= Yes + +.include diff --git a/x11/slock/distinfo b/x11/slock/distinfo new file mode 100644 index 00000000000..9f3e7fe3e8f --- /dev/null +++ b/x11/slock/distinfo @@ -0,0 +1,4 @@ +MD5 (slock-0.4.tar.gz) = 979c1e089e9989ac8a6054987e085393 +RMD160 (slock-0.4.tar.gz) = 63431c9d4b46de059ea458cad69a95fd5474ca86 +SHA1 (slock-0.4.tar.gz) = cacf3a05c786e915b3d85e95cc56ae0c638d2e62 +SIZE (slock-0.4.tar.gz) = 3415 diff --git a/x11/slock/patches/patch-config_mk b/x11/slock/patches/patch-config_mk new file mode 100644 index 00000000000..ced42f4a830 --- /dev/null +++ b/x11/slock/patches/patch-config_mk @@ -0,0 +1,29 @@ +$OpenBSD: patch-config_mk,v 1.1.1.1 2007/01/19 05:24:08 steven Exp $ +--- config.mk.orig Sat Jan 13 08:12:11 2007 ++++ config.mk Sat Jan 13 08:16:20 2007 +@@ -4,18 +4,18 @@ VERSION = 0.4 + # Customize below to fit your system + + # paths +-PREFIX = /usr/local +-MANPREFIX = ${PREFIX}/share/man ++#PREFIX = /usr/local ++MANPREFIX = ${PREFIX}/man + +-X11INC = /usr/X11R6/include +-X11LIB = /usr/X11R6/lib ++X11INC = ${X11BASE}/include ++X11LIB = ${X11BASE}/lib + + # includes and libs +-INCS = -I. -I/usr/include -I${X11INC} +-LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 ++INCS = -I${X11INC} ++LIBS = -L${X11LIB} -lX11 + + # flags +-CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" -DHAVE_SHADOW_H ++CFLAGS += ${INCS} -DVERSION=\"${VERSION}\" + LDFLAGS = ${LIBS} + #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DHAVE_SHADOW_H + #LDFLAGS = -g ${LIBS} diff --git a/x11/slock/pkg/DESCR b/x11/slock/pkg/DESCR new file mode 100644 index 00000000000..b5ff5b710c2 --- /dev/null +++ b/x11/slock/pkg/DESCR @@ -0,0 +1 @@ +A small screen locking utility for X. diff --git a/x11/slock/pkg/PLIST b/x11/slock/pkg/PLIST new file mode 100644 index 00000000000..dcd3505a8c7 --- /dev/null +++ b/x11/slock/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/01/19 05:24:08 steven Exp $ +@mode u+s +bin/slock