summaryrefslogtreecommitdiff
path: root/x11/uwm
diff options
context:
space:
mode:
authoritohy <itohy@pkgsrc.org>1999-12-23 03:10:58 +0000
committeritohy <itohy@pkgsrc.org>1999-12-23 03:10:58 +0000
commit4760a9adaa5a5c015966f3db170f246fef0e6620 (patch)
treea57feb11308b79cda2237ae3d8ab01a010718d93 /x11/uwm
parent44062a988f108444c339ad5bafa28e3e469d7673 (diff)
downloadpkgsrc-4760a9adaa5a5c015966f3db170f246fef0e6620.tar.gz
X11R3 window manager.
Simple and small, but the distfile is large....
Diffstat (limited to 'x11/uwm')
-rw-r--r--x11/uwm/Makefile26
-rw-r--r--x11/uwm/files/md53
-rw-r--r--x11/uwm/files/patch-sum11
-rw-r--r--x11/uwm/patches/patch-aa10
-rw-r--r--x11/uwm/patches/patch-ab94
-rw-r--r--x11/uwm/patches/patch-ac17
-rw-r--r--x11/uwm/patches/patch-ad178
-rw-r--r--x11/uwm/patches/patch-ae14
-rw-r--r--x11/uwm/patches/patch-af13
-rw-r--r--x11/uwm/patches/patch-ag25
-rw-r--r--x11/uwm/patches/patch-ah23
-rw-r--r--x11/uwm/patches/patch-ai23
-rw-r--r--x11/uwm/pkg/COMMENT1
-rw-r--r--x11/uwm/pkg/DESCR10
-rw-r--r--x11/uwm/pkg/PLIST5
15 files changed, 453 insertions, 0 deletions
diff --git a/x11/uwm/Makefile b/x11/uwm/Makefile
new file mode 100644
index 00000000000..5a01c362794
--- /dev/null
+++ b/x11/uwm/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/12/23 03:10:58 itohy Exp $
+
+DISTNAME= X.V11R3
+PKGNAME= uwm-19881027
+CATEGORIES= x11
+MASTER_SITES= ftp://ftp.x.org/pub/R3/
+
+MAINTAINER= packages@netbsd.org
+#HOMEPAGE= http://www.x.org/
+
+EXTRACT_ELEMENTS= X.V11R3/clients/uwm X.V11R3/X11
+WRKSRC= ${WRKDIR}/X.V11R3/clients/uwm
+USE_IMAKE= yes
+
+post-patch:
+ if [ ! -f ${WRKSRC}/uwm.man.src ]; then \
+ ${MV} ${WRKSRC}/uwm.man ${WRKSRC}/uwm.man.src; \
+ fi
+ ${SED} -e 's#/usr/lib/X11#${PREFIX}/lib/X11#g' <${WRKSRC}/uwm.man.src \
+ >${WRKSRC}/uwm.man
+
+post-install:
+ ${MKDIR} ${PREFIX}/lib/X11/uwm
+ ${INSTALL_DATA} ${WRKSRC}/default.uwmrc ${PREFIX}/lib/X11/uwm/system.uwmrc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/uwm/files/md5 b/x11/uwm/files/md5
new file mode 100644
index 00000000000..9c0e6df71b3
--- /dev/null
+++ b/x11/uwm/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+MD5 (X.V11R3.tar.gz) = ed3ce685daf77988ae4286d468198d95
diff --git a/x11/uwm/files/patch-sum b/x11/uwm/files/patch-sum
new file mode 100644
index 00000000000..b69f4e87c48
--- /dev/null
+++ b/x11/uwm/files/patch-sum
@@ -0,0 +1,11 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+MD5 (patch-aa) = 6ebca0c68ccc36ead286d15f64558a0d
+MD5 (patch-ab) = 6a67513fc13f59fe24a8cb93c311dab6
+MD5 (patch-ac) = cd52d12bed44d357df4ccb070d2df0e9
+MD5 (patch-ad) = 1f856f20ee362f0f270d926e712ced61
+MD5 (patch-ae) = 7bbaae6465a104ed063ef8fee1f7cf49
+MD5 (patch-af) = 8d2bb3cf85676e259186241611edf4e4
+MD5 (patch-ag) = d8b35baf6f18314b657cab4076cd4a16
+MD5 (patch-ah) = cce76d53168d7de5f0350bc0409026bc
+MD5 (patch-ai) = d2ae89b2ee16602f37f664a9d2229e04
diff --git a/x11/uwm/patches/patch-aa b/x11/uwm/patches/patch-aa
new file mode 100644
index 00000000000..3208c76049a
--- /dev/null
+++ b/x11/uwm/patches/patch-aa
@@ -0,0 +1,10 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- Imakefile.orig Mon Oct 24 23:54:50 1988
++++ Imakefile Wed Dec 22 13:54:20 1999
+@@ -1,3 +1,5 @@
++ UWMDIR = $(LIBDIR)/uwm
++ TOP_INCLUDES = -I../.. -I$(INCROOT) $(TOP_X_INCLUDES)
+ DEFINES = -DSYSFILE=\"$(UWMDIR)$(PATHSEP)system.uwmrc\"
+ LOCAL_LIBRARIES = $(XLIB)
+ SYS_LIBRARIES = -ll
diff --git a/x11/uwm/patches/patch-ab b/x11/uwm/patches/patch-ab
new file mode 100644
index 00000000000..1fb420745c2
--- /dev/null
+++ b/x11/uwm/patches/patch-ab
@@ -0,0 +1,94 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- uwm.c.orig Sun Oct 23 22:21:55 1988
++++ uwm.c Thu Dec 23 00:21:02 1999
+@@ -42,6 +42,15 @@
+ #include "uwm.h"
+ #include <ctype.h>
+
++#ifdef CSRG_BASED
++#undef MIN
++#undef MAX
++#include <sys/param.h>
++#if defined(BSD) && BSD >= 199306
++#define HAVE_MKSTEMP
++#endif
++#endif
++
+ #ifdef PROFIL
+ #include <signal.h>
+ /*
+@@ -369,7 +378,7 @@
+ if (IFontInfo == NULL) {
+ fprintf(stderr, "uwm: Unable to open icon font '%s', using server default.\n",
+ IFontName);
+- IFontInfo = XQueryFont(dpy, DefaultGC(dpy, scr)->gid);
++ IFontInfo = XQueryFont(dpy, XGContextFromGC(DefaultGC(dpy, scr)));
+ fallbackIFont = True;
+ }
+ PFontInfo = XLoadQueryFont(dpy, PFontName);
+@@ -379,7 +388,7 @@
+ if (fallbackIFont)
+ PFontInfo = IFontInfo;
+ else
+- PFontInfo = XQueryFont(dpy, DefaultGC(dpy, scr)->gid);
++ PFontInfo = XQueryFont(dpy, XGContextFromGC(DefaultGC(dpy, scr)));
+ fallbackPFont = True;
+ }
+ MFontInfo = XLoadQueryFont(dpy, MFontName);
+@@ -389,7 +398,7 @@
+ if (fallbackIFont || fallbackPFont)
+ MFontInfo = fallbackPFont ? PFontInfo : IFontInfo;
+ else
+- MFontInfo = XQueryFont(dpy, DefaultGC(dpy, scr)->gid);
++ MFontInfo = XQueryFont(dpy, XGContextFromGC(DefaultGC(dpy, scr)));
+ fallbackMFont = True;
+ }
+
+@@ -685,7 +694,11 @@
+ */
+ InitBindings()
+ {
++#ifdef HAVE_MKSTEMP
++ int fd;
++#else
+ char *mktemp();
++#endif
+ char *tempfile; /* Temporary filename. */
+ register FILE *fp; /* Temporary file pointer. */
+ register char **ptr; /* Default bindings string array pointer. */
+@@ -699,15 +712,26 @@
+ exit (1);
+ }
+ strcpy (tempfile, TEMPFILE);
++#ifdef HAVE_MKSTEMP
++ if ((fd = mkstemp(tempfile)) < 0 || (fp = fdopen(fd, "r+")) == NULL) {
++ perror("uwm: cannot create temp file");
++ exit(1);
++ }
++#else
+ sfilename = mktemp(tempfile);
+ if ((fp = fopen(tempfile, "w")) == NULL) {
+ perror("uwm: cannot create temp file");
+ exit(1);
+ }
++#endif
+ for (ptr = DefaultBindings; *ptr; ptr++) {
+ fputs(*ptr, fp);
+ fputc('\n', fp);
+ }
++#ifdef HAVE_MKSTEMP
++ rewind(fp);
++ yyin = fp;
++#else
+ fclose(fp);
+
+ /*
+@@ -717,6 +741,7 @@
+ perror("uwm: cannot open temp file");
+ exit(1);
+ }
++#endif
+ Lineno = 1;
+ yyparse();
+ fclose(yyin);
diff --git a/x11/uwm/patches/patch-ac b/x11/uwm/patches/patch-ac
new file mode 100644
index 00000000000..4f6765f0ddb
--- /dev/null
+++ b/x11/uwm/patches/patch-ac
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- uwm.h.orig Mon Oct 24 19:08:24 1988
++++ uwm.h Thu Dec 23 00:27:02 1999
+@@ -39,6 +39,12 @@
+
+ #include <errno.h>
+ #include <stdio.h>
++#ifdef CSRG_BASED
++#include <unistd.h>
++#endif
++#ifndef X_NOT_STDC_ENV
++#include <stdlib.h>
++#endif
+ #include <X11/Xos.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
diff --git a/x11/uwm/patches/patch-ad b/x11/uwm/patches/patch-ad
new file mode 100644
index 00000000000..3eb912289f5
--- /dev/null
+++ b/x11/uwm/patches/patch-ad
@@ -0,0 +1,178 @@
+$NetBSD: patch-ad,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- gram.y.orig Thu Sep 22 22:14:31 1988
++++ gram.y Wed Dec 22 22:32:46 1999
+@@ -111,24 +111,26 @@
+ | ';'
+ ;
+
+-expr: keyword '=' compexpr
++string_slot: /* empty */
++
++expr: keyword '=' string_slot compexpr
+ {
+ switch (KeywordTable[$1].type) {
+ case IsString:
+- if ($3 == C_STRING) {
++ if ($4 == C_STRING) {
+ strcpy(KeywordTable[$1].sptr,
+- yylval.sval);
++ $<sval>3);
+ } else {
+ yyerror("illegal construct");
+ }
+- free(yylval.sval);
++ free($<sval>3);
+ break;
+ case IsNumeric:
+- if ($3 == C_STRING) {
++ if ($4 == C_STRING) {
+ *(KeywordTable[$1].nptr) =
+- y_atoi(yylval.sval);
++ y_atoi($<sval>3);
+ } else yyerror("illegal construct");
+- free(yylval.sval);
++ free($<sval>3);
+ break;
+ case IsBoolTrue:
+ case IsBoolFalse:
+@@ -136,7 +138,7 @@
+ break;
+ case IsQuitFunction:
+ case IsFunction:
+- if ($3 == C_MAP) {
++ if ($4 == C_MAP) {
+ bindtofunc($1, bkmask, cmask, NULL);
+ } else yyerror("illegal construct");
+ break;
+@@ -147,7 +149,7 @@
+ KeywordTable[$1].name);
+ yyerror(msg);
+ }
+- if ($3 == C_MAP) {
++ if ($4 == C_MAP) {
+ bindtofunc($1, bkmask, cmask, NULL);
+ } else yyerror("illegal construct");
+ break;
+@@ -158,13 +160,13 @@
+ KeywordTable[$1].name);
+ yyerror(msg);
+ }
+- if ($3 == C_MENUMAP) {
++ if ($4 == C_MENUMAP) {
+ bindtofunc
+ ($1, bkmask, cmask, menu_name);
+ } else yyerror("illegal construct");
+ break;
+ case IsMenu:
+- if ($3 == C_MENU) {
++ if ($4 == C_MENU) {
+ menu_info = stashmenuinfo(menu_name, ml_ptr, hcolors);
+ menu_link = stashmenulink(menu_info);
+ Menus = appendmenulink(Menus, menu_link);
+@@ -197,12 +199,12 @@
+ ml_ptr = $3;
+ }
+ | STRING
+- { $$ = C_STRING; }
++ { $$ = C_STRING; $<sval>0 = $1; }
+ ;
+
+ boolvar: STRING
+ {
+- ki = keywordlookup(yylval.sval);
++ ki = keywordlookup($1);
+ switch (KeywordTable[ki].type) {
+ case IsBoolTrue:
+ *(KeywordTable[ki].bptr) = TRUE;
+@@ -220,7 +222,7 @@
+ ;
+
+ keyword: STRING {
+- $$ = keywordlookup(yylval.sval);
++ $$ = keywordlookup($1);
+ }
+ ;
+
+@@ -246,9 +248,9 @@
+ { $$ = CheckButtonState($1); }
+ ;
+
+-kmask: STRING { $$ = keyexprlookup(yylval.sval); }
++kmask: STRING { $$ = keyexprlookup($1); }
+
+-contmask: STRING { $$ = contexprlookup(yylval.sval); }
++contmask: STRING { $$ = contexprlookup($1); }
+
+ buttmodexpr: buttmodifier
+ { $$ = $1; }
+@@ -257,7 +259,7 @@
+ ;
+
+ buttmodifier: STRING
+- { $$ = buttexprlookup(yylval.sval); }
++ { $$ = buttexprlookup($1); }
+ ;
+
+ menuname: STRING
+@@ -304,7 +306,7 @@
+
+ menuaction: STRING
+ {
+- ki = keywordlookup(yylval.sval);
++ ki = keywordlookup($1);
+ if ((ki != -1) &&
+ (KeywordTable[ki].type != IsFunction) &&
+ (KeywordTable[ki].type != IsQuitFunction) &&
+@@ -350,7 +352,7 @@
+ }
+ ;
+
+-strings: STRING { $$ = yylval.sval; }
++strings: STRING { $$ = $1; }
+ | strings STRING
+ { $$ = strconcat($1, $2); }
+ ;
+@@ -387,7 +389,7 @@
+ }
+ ;
+
+-color: STRING { $$ = yylval.sval; }
++color: STRING { $$ = $1; }
+ | /* empty */ { $$ = NULL; }
+ ;
+ %%
+@@ -572,6 +574,7 @@
+ setbinding(ICON, index, mask, name);
+ if (context & WINDOW)
+ setbinding(WINDOW, index, mask, name);
++ free(name);
+ }
+
+ /*
+@@ -599,12 +602,13 @@
+ char *mname; /* Pointer to menu name, if needed. */
+ {
+ Binding *ptr;
++ extern char *stash();
+
+ ptr = AllocBinding();
+ ptr->context = cont;
+ ptr->mask = m;
+ ptr->func = KeywordTable[i].fptr;
+- ptr->menuname = mname;
++ ptr->menuname = mname ? stash(mname) : NULL;
+
+ switch (m & (LeftMask | MiddleMask | RightMask)) {
+ case LeftMask:
+@@ -771,9 +775,8 @@
+ else {
+ for(ptr = list; ptr->next; ptr = ptr->next) /* NULL */;
+ ptr->next = link;
+- ptr = ptr->next;
+- ptr->next = NULL;
+ }
++ link->next = NULL;
+ return(list);
+ }
+
diff --git a/x11/uwm/patches/patch-ae b/x11/uwm/patches/patch-ae
new file mode 100644
index 00000000000..e5a46928645
--- /dev/null
+++ b/x11/uwm/patches/patch-ae
@@ -0,0 +1,14 @@
+$NetBSD: patch-ae,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- GetButton.c.orig Mon Oct 24 19:08:17 1988
++++ GetButton.c Wed Dec 22 13:59:28 1999
+@@ -255,7 +255,8 @@
+ /*
+ * We convert the key pressed event to ascii.
+ */
+- nbytes = XLookupString(kp_event, kbd_str, STRLEN, NULL);
++ nbytes = XLookupString(kp_event, kbd_str, STRLEN, (KeySym *) NULL,
++ (XComposeStatus *) NULL);
+
+ /*
+ * If kbd_str is a "non-string", then don't do anything.
diff --git a/x11/uwm/patches/patch-af b/x11/uwm/patches/patch-af
new file mode 100644
index 00000000000..d0081b90fe6
--- /dev/null
+++ b/x11/uwm/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- Kill.c.orig Thu Sep 8 00:28:28 1988
++++ Kill.c Thu Dec 23 00:54:08 1999
+@@ -11,7 +11,7 @@
+ int button; /* Button event detail. */
+ int x, y; /* Event mouse position. */
+ {
+- Window *assoc;
++ Window assoc;
+
+ if (IsIcon(window, x, y, TRUE, &assoc))
+ XKillClient(dpy, assoc);
diff --git a/x11/uwm/patches/patch-ag b/x11/uwm/patches/patch-ag
new file mode 100644
index 00000000000..d89e6ab69c7
--- /dev/null
+++ b/x11/uwm/patches/patch-ag
@@ -0,0 +1,25 @@
+$NetBSD: patch-ag,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- Restart.c.orig Sat Feb 27 07:38:11 1988
++++ Restart.c Thu Dec 23 00:39:16 1999
+@@ -46,6 +46,8 @@
+ XButtonEvent button_event;
+ int percentage;
+ int i;
++ extern char **environ;
++ char **oenv;
+
+ percentage = VOLUME_PERCENTAGE(Volume);
+ XBell(dpy, percentage);
+@@ -55,7 +57,10 @@
+ * Gag, rely on operating system to close connection because we don't
+ * to mess ourselves up in case the exec fails.
+ */
+- execvp(*Argv, Argv, Environ);
++ oenv = environ;
++ environ = Environ;
++ execvp(*Argv, Argv);
++ environ = oenv;
+ for (i = 0; i < 4; i++) {
+ XBell(dpy, percentage);
+ percentage += 10;
diff --git a/x11/uwm/patches/patch-ah b/x11/uwm/patches/patch-ah
new file mode 100644
index 00000000000..fe779b52d26
--- /dev/null
+++ b/x11/uwm/patches/patch-ah
@@ -0,0 +1,23 @@
+$NetBSD: patch-ah,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- default.uwmrc.orig Fri Sep 23 23:08:13 1988
++++ default.uwmrc Thu Dec 23 07:59:56 1999
+@@ -38,7 +38,6 @@
+ f.circleup= meta :root: right down
+ f.circledown= m|s :: left down
+ f.menu= :root: middle down : "WindowOps"
+-f.menu= m|s :: middle down : "WindowOps"
+ f.menu= m|s :: middle down : "Preferences"
+ f.circleup= m|s :: right down
+ f.iconify= m|c :window|icon: left down
+@@ -78,8 +77,8 @@
+ Click Loud: !"xset c 8&"
+ Click Soft: !"xset c on&"
+ Click Off: !"xset c off&"
+-Lock On: !"xset l on&"
+-Lock Off: !"xset l off&"
++Lock On: !"xset led on&"
++Lock Off: !"xset led off&"
+ Mouse Fast: !"xset m 4 2&"
+ Mouse Normal: !"xset m 2 5&"
+ Mouse Slow: !"xset m 1 1&"
diff --git a/x11/uwm/patches/patch-ai b/x11/uwm/patches/patch-ai
new file mode 100644
index 00000000000..63cac0965bc
--- /dev/null
+++ b/x11/uwm/patches/patch-ai
@@ -0,0 +1,23 @@
+$NetBSD: patch-ai,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+
+--- Bindings.c.orig Fri Sep 23 23:08:11 1988
++++ Bindings.c Thu Dec 23 07:59:56 1999
+@@ -63,7 +63,6 @@
+ "f.circleup=m:r:r d",
+ "f.circledown=m|s::l d",
+ "f.menu=:r:m d:\"WindowOps\"",
+-"f.menu=m|s::m d:\"WindowOps\"",
+ "f.menu=m|s::m d:\"Preferences\"",
+ "f.circleup=m|s::r d",
+ "f.iconify=m|c:w|i:l d",
+@@ -102,8 +101,8 @@
+ "Click Loud:!\"xset c 8&\"",
+ "Click Soft:!\"xset c on&\"",
+ "Click Off:!\"xset c off&\"",
+-"Lock On:!\"xset l on&\"",
+-"Lock Off:!\"xset l off&\"",
++"Lock On:!\"xset led on&\"",
++"Lock Off:!\"xset led off&\"",
+ "Mouse Fast:!\"xset m 4 2&\"",
+ "Mouse Normal:!\"xset m 2 5&\"",
+ "Mouse Slow:!\"xset m 1 1&\"",
diff --git a/x11/uwm/pkg/COMMENT b/x11/uwm/pkg/COMMENT
new file mode 100644
index 00000000000..bdfa6b38090
--- /dev/null
+++ b/x11/uwm/pkg/COMMENT
@@ -0,0 +1 @@
+X11R3 window manager.
diff --git a/x11/uwm/pkg/DESCR b/x11/uwm/pkg/DESCR
new file mode 100644
index 00000000000..94877fe1c62
--- /dev/null
+++ b/x11/uwm/pkg/DESCR
@@ -0,0 +1,10 @@
+ uwm is a small, simple windows manager, which came with X11R3.
+The characteristic of uwm is its simplicity. Superfluous and
+unnecessary features, such as title bars or keyboard short-cuts
+don't exist, much less pixmaps, banners, or themes.
+
+ Since no ``frame'' appears around application windows, there is
+no problem about non-rectangular windows, even though the SHAPE
+extension of X11R4 is not explicitly supported by uwm.
+
+ The behavior of uwm is highly customizable by configuration files.
diff --git a/x11/uwm/pkg/PLIST b/x11/uwm/pkg/PLIST
new file mode 100644
index 00000000000..d74f10bcc8e
--- /dev/null
+++ b/x11/uwm/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/12/23 03:10:59 itohy Exp $
+bin/uwm
+man/cat1/uwm.0
+lib/X11/uwm/system.uwmrc
+@dirrm lib/X11/uwm