diff options
author | sborrill <sborrill> | 2009-07-07 12:36:31 +0000 |
---|---|---|
committer | sborrill <sborrill> | 2009-07-07 12:36:31 +0000 |
commit | 11ec8e21155c3fa3a6029b3bbd7a4ab18d8bf05a (patch) | |
tree | 57f2b444d533b7edd2c5f1065b95c353548806ad /x11 | |
parent | 0d8e04da3b99c7c2744e56900e77f5816ed5cdac (diff) | |
download | pkgsrc-11ec8e21155c3fa3a6029b3bbd7a4ab18d8bf05a.tar.gz |
This is a little dockapp that does absolutely nothing except for sitting in
the dockapp area. It consumes very little resources. It is useful in
conjunction with a window manager that allows maximised windows to be
prevented from covering the dockapp area; it allows access to the root
window or menu even when windows are maximised.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/space_dapp/DESCR | 5 | ||||
-rw-r--r-- | x11/space_dapp/Makefile | 28 | ||||
-rw-r--r-- | x11/space_dapp/PLIST | 2 | ||||
-rw-r--r-- | x11/space_dapp/distinfo | 6 | ||||
-rw-r--r-- | x11/space_dapp/patches/patch-space_dapp.c | 18 |
5 files changed, 59 insertions, 0 deletions
diff --git a/x11/space_dapp/DESCR b/x11/space_dapp/DESCR new file mode 100644 index 00000000000..3b65746e045 --- /dev/null +++ b/x11/space_dapp/DESCR @@ -0,0 +1,5 @@ +This is a little dockapp that does absolutely nothing except for sitting in +the dockapp area. It consumes very little resources. It is useful in +conjunction with a window manager that allows maximised windows to be +prevented from covering the dockapp area; it allows access to the root +window or menu even when windows are maximised. diff --git a/x11/space_dapp/Makefile b/x11/space_dapp/Makefile new file mode 100644 index 00000000000..4c748c5b181 --- /dev/null +++ b/x11/space_dapp/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/07/07 12:36:31 sborrill Exp $ + +PKGNAME= space_dapp-20060717 +CATEGORIES= x11 +MASTER_SITES= http://darkshed.net/files/c_cpp/bits/ + +MAINTAINER= sborrill@NetBSD.org +HOMEPAGE= http://darkshed.net/files/c_cpp/bits/ +COMMENT= Tiny dock app to create an empty space +DISTNAME= space_dapp.c +EXTRACT_SUFX= +PKG_DESTDIR_SUPPORT= user-destdir + +NO_CONFIGURE= yes + +WRKSRC= ${WRKDIR} + +.include "../../mk/bsd.prefs.mk" + +do-build: + cd ${WRKSRC} && ${CC} -c ${CFLAGS} space_dapp.c -DSHAPE && \ + ${CC} -o space_dapp space_dapp.o -lc ${LIBS} ${X11_LDFLAGS} -lX11 -lXext + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/space_dapp ${DESTDIR}${PREFIX}/bin/ + +.include "../../x11/libX11/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/x11/space_dapp/PLIST b/x11/space_dapp/PLIST new file mode 100644 index 00000000000..6d955cbfe88 --- /dev/null +++ b/x11/space_dapp/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/07/07 12:36:31 sborrill Exp $ +bin/space_dapp diff --git a/x11/space_dapp/distinfo b/x11/space_dapp/distinfo new file mode 100644 index 00000000000..86a4aad5798 --- /dev/null +++ b/x11/space_dapp/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/07/07 12:36:31 sborrill Exp $ + +SHA1 (space_dapp.c) = 64c7c592459a0e29b06b00c68e3d35e4224ac93e +RMD160 (space_dapp.c) = 65ba055800b04a69da3519b3230944d6f3d12017 +Size (space_dapp.c) = 4938 bytes +SHA1 (patch-space_dapp.c) = 1220ee13501986e99a89001bb4a567f148c93443 diff --git a/x11/space_dapp/patches/patch-space_dapp.c b/x11/space_dapp/patches/patch-space_dapp.c new file mode 100644 index 00000000000..247a25e6d6f --- /dev/null +++ b/x11/space_dapp/patches/patch-space_dapp.c @@ -0,0 +1,18 @@ +$NetBSD: patch-space_dapp.c,v 1.1.1.1 2009/07/07 12:36:31 sborrill Exp $ + +Stop coredump if DISPLAY not set + +--- space_dapp.c.orig 2009-07-07 13:28:13.000000000 +0100 ++++ space_dapp.c 2009-07-07 13:29:06.000000000 +0100 +@@ -92,7 +92,10 @@ + + + dpy = XOpenDisplay(NULL); +- assert(dpy != NULL); ++ if (dpy == NULL) { ++ fprintf(stderr, "DISPLAY not set\n"); ++ exit(1); ++ } + + screen = DefaultScreen(dpy); + root_win = RootWindow(dpy, screen); |