aboutsummaryrefslogtreecommitdiff
path: root/x11/keyboardcast
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-09-23 03:36:00 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-09-23 03:36:00 +0000
commit9c1b0b33c2b230677794985c90e4db1861069152 (patch)
tree278e9236519463e79120a44f743e2d97f1b489f6 /x11/keyboardcast
parent773083a98c83bc864f606e6fa2ea9fde806b3b0f (diff)
downloadports-9c1b0b33c2b230677794985c90e4db1861069152.tar.gz
ports-9c1b0b33c2b230677794985c90e4db1861069152.zip
Notes
Diffstat (limited to 'x11/keyboardcast')
-rw-r--r--x11/keyboardcast/Makefile25
-rw-r--r--x11/keyboardcast/distinfo3
-rw-r--r--x11/keyboardcast/files/patch-Makefile19
-rw-r--r--x11/keyboardcast/files/patch-window-list.c24
-rw-r--r--x11/keyboardcast/pkg-descr19
-rw-r--r--x11/keyboardcast/pkg-message5
-rw-r--r--x11/keyboardcast/pkg-plist5
7 files changed, 100 insertions, 0 deletions
diff --git a/x11/keyboardcast/Makefile b/x11/keyboardcast/Makefile
new file mode 100644
index 000000000000..6cce05b1f974
--- /dev/null
+++ b/x11/keyboardcast/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: keyboardcast
+# Date created: 12 jaan 2010
+# Whom: eimar.koort
+#
+# $FreeBSD$
+#
+
+PORTNAME= keyboardcast
+PORTVERSION= 0.1.1
+CATEGORIES= x11
+MASTER_SITES= http://desrt.mcmaster.ca/code/keyboardcast/
+
+MAINTAINER= eimar.koort@gmail.com
+COMMENT= Broadcast keystrokes to multiple X windows for Gnome2
+
+BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
+
+USE_XORG= xmu
+USE_GNOME= libwnck libglade2 gtk20
+INSTALLS_ICONS= yes
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/x11/keyboardcast/distinfo b/x11/keyboardcast/distinfo
new file mode 100644
index 000000000000..3170bbd6cf70
--- /dev/null
+++ b/x11/keyboardcast/distinfo
@@ -0,0 +1,3 @@
+MD5 (keyboardcast-0.1.1.tar.gz) = 5ed46188c70f5622a64d90965db389dc
+SHA256 (keyboardcast-0.1.1.tar.gz) = d87c96c7f977c762ce7af81a8efeb60274d65de287d63abe15982c454cbcd710
+SIZE (keyboardcast-0.1.1.tar.gz) = 15469
diff --git a/x11/keyboardcast/files/patch-Makefile b/x11/keyboardcast/files/patch-Makefile
new file mode 100644
index 000000000000..49a264102389
--- /dev/null
+++ b/x11/keyboardcast/files/patch-Makefile
@@ -0,0 +1,19 @@
+--- Makefile.orig 2005-12-06 19:29:22.000000000 +0200
++++ Makefile 2010-01-12 12:17:24.000000000 +0200
+@@ -1,3 +1,4 @@
++CC = cc
+ PREFIX = /usr/local
+ SHAREDIR = $(PREFIX)/share/keyboardcast
+ APPSDIR = $(PREFIX)/share/applications
+@@ -9,7 +10,10 @@
+ LDLIBS += -lXmu
+ CFLAGS += -Wall -O2 -DPREFIX=\"$(PREFIX)\"
+
+-keyboardcast: keyboardcast.o window-list.o grab-window.o
++all: keyboardcast
++
++keyboardcast: keyboardcast.o window-list.o grab-window.o
++ $(CC) $(CFLAGS) $(LDLIBS) keyboardcast.o window-list.o grab-window.o -o keyboardcast
+
+ clean:
+ rm -f keyboardcast *.o *.gladep *.bak
diff --git a/x11/keyboardcast/files/patch-window-list.c b/x11/keyboardcast/files/patch-window-list.c
new file mode 100644
index 000000000000..5a6811da0353
--- /dev/null
+++ b/x11/keyboardcast/files/patch-window-list.c
@@ -0,0 +1,24 @@
+--- window-list.c.orig 2005-12-06 04:57:05.000000000 +0200
++++ window-list.c 2010-01-11 13:37:39.000000000 +0200
+@@ -15,6 +15,12 @@
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110 USA
+ */
++#include <sys/param.h>
++#ifdef __FreeBSD__
++#define LINKPATH "/proc/%d/file"
++#else
++#define LINKPATH "/proc/%d/exe"
++#endif
+
+ #define WNCK_I_KNOW_THIS_IS_UNSTABLE wankfactor
+
+@@ -57,7 +63,7 @@
+ if( pid < 0 || pid == getpid() ) // never list myself
+ return FALSE;
+
+- path = g_strdup_printf( "/proc/%d/exe", pid );
++ path = g_strdup_printf( LINKPATH, pid );
+ len = readlink( path, destination, sizeof destination );
+ g_free( path );
+
diff --git a/x11/keyboardcast/pkg-descr b/x11/keyboardcast/pkg-descr
new file mode 100644
index 000000000000..1fbcf4407505
--- /dev/null
+++ b/x11/keyboardcast/pkg-descr
@@ -0,0 +1,19 @@
+The purpose of keyboardcast is to allow you to send keystrokes to multiple
+X windows at once. This allows you, for example, to control a number of
+terminals connected to different but similar hosts for purposes of mass-
+administration.
+
+You can also select non-terminals. If you come up with a reasonable use
+for this ability I'd be interested in hearing about it.
+
+The program can select windows to send to either by matching their titles
+(using a substring) or by clicking on them (in a method similar to GIMP's
+screenshot feature).
+
+The program also features the ability to spawn off multiple instances of
+gnome-terminal executing a single command on multiple arguments (for example
+executing 'ssh' on several hosts). The gnome-terminals are invoked with
+the profile 'keyboardcast' if it exists (so, for example, your font size
+can be smaller).
+
+WWW: https://launchpad.net/keyboardcast
diff --git a/x11/keyboardcast/pkg-message b/x11/keyboardcast/pkg-message
new file mode 100644
index 000000000000..00cd0a3cdde9
--- /dev/null
+++ b/x11/keyboardcast/pkg-message
@@ -0,0 +1,5 @@
+======================================================================
+keyboardcast requires /proc to be mounted!
+
+See man procfs for more information.
+======================================================================
diff --git a/x11/keyboardcast/pkg-plist b/x11/keyboardcast/pkg-plist
new file mode 100644
index 000000000000..1b8f98a2db87
--- /dev/null
+++ b/x11/keyboardcast/pkg-plist
@@ -0,0 +1,5 @@
+bin/keyboardcast
+share/applications/keyboardcast.desktop
+%%DATADIR%%/keyboardcast.glade
+@dirrmtry share/applications
+@dirrm %%DATADIR%%