summaryrefslogtreecommitdiff
path: root/x11/xwit
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-03-16 14:15:53 +0000
committerwiz <wiz@pkgsrc.org>2001-03-16 14:15:53 +0000
commitebcea233dbb12338bfd4c8ce0d2f0cee72ef4f4d (patch)
treeb3be25da50ffeeb27a02f61063eeafc7566d4b19 /x11/xwit
parent9c82eb852e67958e1032bcac6c8e4d030040c0fb (diff)
downloadpkgsrc-ebcea233dbb12338bfd4c8ce0d2f0cee72ef4f4d.tar.gz
Initial import of xwit-3.4: Utility for calling X11 functions from the
shell. From pkg/11789.
Diffstat (limited to 'x11/xwit')
-rw-r--r--x11/xwit/Makefile18
-rw-r--r--x11/xwit/files/md53
-rw-r--r--x11/xwit/files/patch-sum3
-rw-r--r--x11/xwit/patches/patch-aa19
-rw-r--r--x11/xwit/pkg/DESCR10
-rw-r--r--x11/xwit/pkg/PLIST4
6 files changed, 57 insertions, 0 deletions
diff --git a/x11/xwit/Makefile b/x11/xwit/Makefile
new file mode 100644
index 00000000000..ab05df90bcb
--- /dev/null
+++ b/x11/xwit/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/03/16 14:15:53 wiz Exp $
+#
+
+DISTNAME= xwit-3.4
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_XCONTRIB:=utilities/}
+
+MAINTAINER= seb@pbox.org
+COMMENT= Utility for calling X11 functions from the shell
+
+USE_IMAKE= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/xwit ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/xwit.man ${PREFIX}/man/man1/xwit.1
+ ${INSTALL_MAN} ${WRKSRC}/xwit.0 ${PREFIX}/man/cat1/xwit.0
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/xwit/files/md5 b/x11/xwit/files/md5
new file mode 100644
index 00000000000..421b1a2905a
--- /dev/null
+++ b/x11/xwit/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/03/16 14:15:53 wiz Exp $
+
+MD5 (xwit-3.4.tar.gz) = 627a2ff424ae5593be929f3def62dd1e
diff --git a/x11/xwit/files/patch-sum b/x11/xwit/files/patch-sum
new file mode 100644
index 00000000000..d4931837ae6
--- /dev/null
+++ b/x11/xwit/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2001/03/16 14:15:53 wiz Exp $
+
+MD5 (patch-aa) = 6be049bc61b1d30cf4ffb91537f15dca
diff --git a/x11/xwit/patches/patch-aa b/x11/xwit/patches/patch-aa
new file mode 100644
index 00000000000..bad3085f4d8
--- /dev/null
+++ b/x11/xwit/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/03/16 14:15:53 wiz Exp $
+
+--- xwit.c.orig Tue Oct 21 03:32:54 1997
++++ xwit.c
+@@ -131,10 +131,14 @@
+ mssleep(ms)
+ int ms;
+ {
++#ifdef __NetBSD__
++ usleep((useconds_t) ms*1000);
++#else
+ struct timeval tv;
+ tv.tv_sec = ms/1000;
+ tv.tv_usec = (ms%1000)*1000;
+ select(0,(int*)0,(int*)0,(int*)0,&tv);
++#endif
+ }
+
+ /*
diff --git a/x11/xwit/pkg/DESCR b/x11/xwit/pkg/DESCR
new file mode 100644
index 00000000000..8933f8cad63
--- /dev/null
+++ b/x11/xwit/pkg/DESCR
@@ -0,0 +1,10 @@
+xwit ("x window interface tool") is a hodge-podge collection of simple
+routines to call some of those X11 functions that don't already have any
+utility commands built around them. The reasoning behind this is that
+loosely every X function should be accessible from a shell script.
+
+For example, XWarpPointer() will move the X pointer, but no utility program
+exists to do so on those rare occasions when you could really use it. xwit
+will also resize, iconify, pop, and move windows given by name or id,
+change an icon, title or name, set the screen saver going, and change
+individual key autorepeat settings, etc.
diff --git a/x11/xwit/pkg/PLIST b/x11/xwit/pkg/PLIST
new file mode 100644
index 00000000000..e36814aae78
--- /dev/null
+++ b/x11/xwit/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/16 14:15:53 wiz Exp $
+bin/xwit
+man/cat1/xwit.0
+man/man1/xwit.1