pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

x11/xlax: import xlax-2.4 as wip/xlax



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Mon Jul 18 02:59:40 2022 +0200
Changeset:	233ecf04eecf98f4036e2ffdfb30aafe52453fba

Added Files:
	xlax/DESCR
	xlax/Makefile
	xlax/PLIST
	xlax/distinfo
	xlax/files/stddef.h
	xlax/files/xlax.ad
	xlax/patches/patch-xlax.c
	xlax/patches/patch-xlax.h

Log Message:
x11/xlax: import xlax-2.4 as wip/xlax

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=233ecf04eecf98f4036e2ffdfb30aafe52453fba

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xlax/DESCR                |  9 +++++++++
 xlax/Makefile             | 44 ++++++++++++++++++++++++++++++++++++++++++++
 xlax/PLIST                |  6 ++++++
 xlax/distinfo             |  7 +++++++
 xlax/files/stddef.h       | 30 ++++++++++++++++++++++++++++++
 xlax/files/xlax.ad        | 10 ++++++++++
 xlax/patches/patch-xlax.c | 14 ++++++++++++++
 xlax/patches/patch-xlax.h | 19 +++++++++++++++++++
 8 files changed, 139 insertions(+)

diffs:
diff --git a/xlax/DESCR b/xlax/DESCR
new file mode 100644
index 0000000000..f374fc04f2
--- /dev/null
+++ b/xlax/DESCR
@@ -0,0 +1,9 @@
+xlax is an X11 input multiplexer: it sends your keyboard input from the
+xlax window to a group of windows simultaneously. The tool is designed
+for system administrators who typically have to do the same thing on
+several machines (or in several different directories).
+Windows can be added or deleted interactively, or temporarily
+disconnected and reconnected. xlax allows you to assign a custom string
+to each window (e.g. a hostname) that can be sent with a button click.
+An included script handles starting up and arranging windows, and allows
+you to set up commonly used window groupings in a config file.
diff --git a/xlax/Makefile b/xlax/Makefile
new file mode 100644
index 0000000000..7153ffb566
--- /dev/null
+++ b/xlax/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD$
+
+DISTNAME=	xlax2.4
+PKGNAME=	xlax-2.4
+CATEGORIES=	x11
+MASTER_SITES=	http://hea-www.harvard.edu/~fine/Tech/
+
+MAINTAINER=	vms%retrobsd.ddns.net@localhost
+HOMEPAGE=	https://hea-www.harvard.edu/~fine/Tech/xlax.html
+COMMENT=	Multi-window input software
+LICENSE=	mit
+
+USE_IMAKE=	yes
+
+INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+=	lib/X11/app-defaults
+
+SUBST_CLASSES+=		paths
+SUBST_MESSAGE.paths=	Fixing perl hashbang.
+SUBST_STAGE.paths=	pre-configure
+SUBST_FILES.paths=	mkxlax
+SUBST_SED.paths=	-e 's|/usr/bin/perl|${PERL5}|g'
+
+post-patch:
+	${RUN} ${CP} ${FILESDIR}/stddef.h ${WRKSRC}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/xlax ${DESTDIR}${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/mkxlax ${DESTDIR}${PREFIX}/bin
+
+.for m in xlax mkxlax
+	${INSTALL_MAN} ${WRKSRC}/${m}.man 									\
+	${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${m}.1
+.endfor
+
+post-install:
+	${INSTALL_DATA} ${FILESDIR}/xlax.ad 								\
+	${DESTDIR}${PREFIX}/lib/X11/app-defaults/Xlax
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXaw/buildlink3.mk"
+.include "../../x11/libXmu/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/xlax/PLIST b/xlax/PLIST
new file mode 100644
index 0000000000..ea0a28d3e2
--- /dev/null
+++ b/xlax/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+bin/mkxlax
+bin/xlax
+lib/X11/app-defaults/Xlax
+man/man1/mkxlax.1
+man/man1/xlax.1
diff --git a/xlax/distinfo b/xlax/distinfo
new file mode 100644
index 0000000000..ed81cf52dc
--- /dev/null
+++ b/xlax/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (xlax2.4.tar.gz) = 90e7169a24fd5c1805ff27576b876cfbc4991be4e95e2bc58644a9d0fcffdb68
+SHA512 (xlax2.4.tar.gz) = 294aad75a5ca8dc396c6e07044f66b36e7a99d6cb10a3d89f39660223e0b5063d302b34dd804b272df9d951a7f2bcf1cf1c8a3746d97ae1fb836c9bbcc9e2dd9
+Size (xlax2.4.tar.gz) = 15804 bytes
+SHA1 (patch-xlax.c) = 4237e27ff1550c165a9deb1e4c2a782bd5616a3e
+SHA1 (patch-xlax.h) = e6e146997a48a2ed6f15b56657e6a911fedee9c9
diff --git a/xlax/files/stddef.h b/xlax/files/stddef.h
new file mode 100644
index 0000000000..e01be3a3c1
--- /dev/null
+++ b/xlax/files/stddef.h
@@ -0,0 +1,30 @@
+/*
+ * stddef.h
+ *
+ * Prepocessor defined type definitions.
+ *
+ */
+
+#ifndef __PTRDIFF_TYPE__
+#define __PTRDIFF_TYPE__ long int
+#endif
+typedef __PTRDIFF_TYPE__ ptrdiff_t;
+
+#ifndef __SIZE_TYPE__
+#define __SIZE_TYPE__ long unsigned int
+#endif
+#if !(defined (__GNUG__) && defined (size_t))
+typedef __SIZE_TYPE__ size_t;
+#endif
+
+#ifndef __WCHAR_TYPE__
+#define __WCHAR_TYPE__ int
+#endif
+#ifndef __cplusplus
+typedef __WCHAR_TYPE__ wchar_t;
+#endif
+
+#ifndef __WINT_TYPE__
+#define __WINT_TYPE__ unsigned int
+#endif
+typedef __WINT_TYPE__ wint_t;
diff --git a/xlax/files/xlax.ad b/xlax/files/xlax.ad
new file mode 100644
index 0000000000..b78d445406
--- /dev/null
+++ b/xlax/files/xlax.ad
@@ -0,0 +1,10 @@
+! X11 Resources for xlax multi window input utility
+!Default Green on Black, Black on Grey is commented out if you prefer
+
+xlax*foreground:         green
+xlax*borderPixmap:       gradient:horizontal?dimension=1&start=green&end=green
+xlax*background:         black
+
+!xlax*foreground:         black
+!xlax*borderPixmap:       gradient:horizontal?dimension=512&start=gray40&end=gray20
+!xlax*background:         gray
diff --git a/xlax/patches/patch-xlax.c b/xlax/patches/patch-xlax.c
new file mode 100644
index 0000000000..4f908c2a9c
--- /dev/null
+++ b/xlax/patches/patch-xlax.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Fix warnings about prepocessor defined macros. 
+
+--- xlax.c.orig	2008-07-31 20:18:25.000000000 +0000
++++ xlax.c
+@@ -30,6 +30,7 @@
+  *
+  */
+ 
++#include "stddef.h"
+ #include "xlax.h"
+ #include "vroot.h"
+ 
diff --git a/xlax/patches/patch-xlax.h b/xlax/patches/patch-xlax.h
new file mode 100644
index 0000000000..1ae5aac369
--- /dev/null
+++ b/xlax/patches/patch-xlax.h
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Avoid redefinitions.
+
+--- xlax.h.orig	2008-07-31 20:18:25.000000000 +0000
++++ xlax.h
+@@ -39,8 +39,12 @@
+ #include <X11/Xmu/WinUtil.h>
+ 
+ #include <X11/cursorfont.h>
++#ifndef XK_MISCELLANY
+ #define XK_MISCELLANY  1
++#endif
++#ifndef XK_LATIN1
+ #define XK_LATIN1  1
++#endif
+ #include <X11/keysymdef.h>
+ 
+ #include <stdlib.h>


Home | Main Index | Thread Index | Old Index