Initial import of wminfo-1.51
This WindowMaker Dockapp is designed to be very general purposed. It is capable to display any kind of information as long as it's in text-format.
This commit is contained in:
parent
518b16426f
commit
58692205e8
20
x11/wminfo/Makefile
Normal file
20
x11/wminfo/Makefile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# $OpenBSD: Makefile,v 1.1.1.1 2001/02/01 16:14:22 wilfried Exp $
|
||||||
|
|
||||||
|
DISTNAME= wminfo-1.51
|
||||||
|
CATEGORIES= x11 x11/windowmaker
|
||||||
|
NEED_VERSION= 1.340
|
||||||
|
MASTER_SITES= http://boombox.campus.luth.se/files/
|
||||||
|
HOMEPAGE= http://boombox.campus.luth.se/projects.php
|
||||||
|
|
||||||
|
MAINTAINER= Peter Stromberg <wilfried@openbsd.org>
|
||||||
|
|
||||||
|
PERMIT_PACKAGE_CDROM= Yes
|
||||||
|
PERMIT_PACKAGE_FTP= Yes
|
||||||
|
PERMIT_DISTFILES_CDROM= Yes
|
||||||
|
PERMIT_DISTFILES_FTP= Yes
|
||||||
|
|
||||||
|
USE_X11= Yes
|
||||||
|
WRKDIST= ${WRKDIR}/wminfo
|
||||||
|
WRKSRC= ${WRKDIST}/wminfo
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
3
x11/wminfo/files/md5
Normal file
3
x11/wminfo/files/md5
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 (wminfo-1.51.tar.gz) = dd4b168a31847694dfdb74772c57b7da
|
||||||
|
RMD160 (wminfo-1.51.tar.gz) = 1f9b19a018f13fa659c74934f7bf14457f461ab5
|
||||||
|
SHA1 (wminfo-1.51.tar.gz) = e50e4e3b2ff5a0fbe19547b18953585dda5e00ab
|
33
x11/wminfo/patches/patch-wminfo_Makefile
Normal file
33
x11/wminfo/patches/patch-wminfo_Makefile
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
$OpenBSD: patch-wminfo_Makefile,v 1.1.1.1 2001/02/01 16:14:22 wilfried Exp $
|
||||||
|
--- wminfo/Makefile.orig Tue Jul 25 10:40:30 2000
|
||||||
|
+++ wminfo/Makefile Thu Feb 1 16:41:25 2001
|
||||||
|
@@ -1,16 +1,16 @@
|
||||||
|
-LIBDIR = -L/usr/X11R6/lib
|
||||||
|
+CFLAGS+= -I${X11BASE}/include
|
||||||
|
+LIBDIR = -L${X11BASE}/lib
|
||||||
|
LIBS = -lXpm -lXext -lX11
|
||||||
|
-FLAGS = -O2
|
||||||
|
OBJS = wminfo.o \
|
||||||
|
../wmgeneral/wmgeneral.o \
|
||||||
|
../wmgeneral/misc.o \
|
||||||
|
../wmgeneral/list.o
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
- cc -I/usr/X11R6/share/include $(FLAGS) -c -Wall $< -o $*.o
|
||||||
|
+ ${CC} ${CFLAGS} -c $< -o $@
|
||||||
|
|
||||||
|
wminfo: $(OBJS)
|
||||||
|
- cc $(FLAGS) -o wminfo $^ -lXext $(LIBDIR) $(LIBS)
|
||||||
|
+ cc -o wminfo ${OBJS} $(LIBDIR) $(LIBS)
|
||||||
|
|
||||||
|
all:: wminfo
|
||||||
|
|
||||||
|
@@ -23,7 +23,4 @@ clean::
|
||||||
|
rm -f core
|
||||||
|
|
||||||
|
install:: wminfo
|
||||||
|
- cp -f wminfo /usr/local/bin/
|
||||||
|
- chmod 755 /usr/local/bin/wminfo
|
||||||
|
- chown root:root /usr/local/bin/wminfo
|
||||||
|
- echo "wmInfo installed in /usr/local/bin"
|
||||||
|
+ $(BSD_INSTALL_PROGRAM) wminfo $(PREFIX)/bin
|
42
x11/wminfo/patches/patch-wminfo_wminfo_c
Normal file
42
x11/wminfo/patches/patch-wminfo_wminfo_c
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
$OpenBSD: patch-wminfo_wminfo_c,v 1.1.1.1 2001/02/01 16:14:22 wilfried Exp $
|
||||||
|
--- wminfo/wminfo.c.orig Mon Jul 31 14:39:20 2000
|
||||||
|
+++ wminfo/wminfo.c Thu Feb 1 16:41:17 2001
|
||||||
|
@@ -140,11 +140,13 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
|
for (i = 0; i < MAXNOF_LINES; i++) { k[i] = 5; j[i] = 0; scroll[i] = 0; }
|
||||||
|
|
||||||
|
- strcpy(plugin_exec,"sh ");
|
||||||
|
- strcat(plugin_exec,plugin);
|
||||||
|
- strcat(plugin_exec," > wmiout.tmp");
|
||||||
|
- strcpy(plugin_out,getenv("PWD"));
|
||||||
|
- strcat(plugin_out,"/wmiout.tmp");
|
||||||
|
+ strlcpy(plugin_exec,"sh ",sizeof(plugin_exec));
|
||||||
|
+ strlcat(plugin_exec,plugin,sizeof(plugin_exec));
|
||||||
|
+ strlcat(plugin_exec," > ",sizeof(plugin_exec));
|
||||||
|
+ strlcat(plugin_exec,getenv("HOME"),sizeof(plugin_exec));
|
||||||
|
+ strlcat(plugin_exec,"/.wminfo",sizeof(plugin_exec));
|
||||||
|
+ strlcpy(plugin_out,getenv("HOME"),sizeof(plugin_out));
|
||||||
|
+ strlcat(plugin_out,"/.wminfo",sizeof(plugin_out));
|
||||||
|
|
||||||
|
createXBMfromXPM(wminfo_mask_bits, wminfo_xpm, wminfo_mask_width, wminfo_mask_height);
|
||||||
|
openXwindow(argc, argv, wminfo_xpm, wminfo_mask_bits, wminfo_mask_width, wminfo_mask_height);
|
||||||
|
@@ -261,6 +263,7 @@ int main(int argc, char **argv)
|
||||||
|
void print_help() {
|
||||||
|
printf("\nwmInfo %s (C) 2000 Robert Kling (%s)\n\n",WMINFO_VERSION,WMINFO_REVDATE);
|
||||||
|
printf(" Usage: wminfo -p <plugin> [-suoknh]\n\n");
|
||||||
|
+ printf(" -p plugin : shellscript that writes to stdout.\n");
|
||||||
|
printf(" -s x : text scroll-speed (default 1).\n");
|
||||||
|
printf(" -r x : text \"rewind\"-speed (default 2).\n");
|
||||||
|
printf(" -u x : run the plugin every x seconds (default 180).\n");
|
||||||
|
@@ -425,10 +428,9 @@ void getlines(char *plug)
|
||||||
|
|
||||||
|
if (strlen(temp) > longestline) longestline = strlen(temp);
|
||||||
|
|
||||||
|
- strcpy(lines[k],"");
|
||||||
|
strcpy(lines[k],temp);
|
||||||
|
if (i > 1) k++;
|
||||||
|
- strcpy(temp,"");
|
||||||
|
+ temp[0]='\0';
|
||||||
|
i = 0;
|
||||||
|
}
|
||||||
|
noflines = k;
|
1
x11/wminfo/pkg/COMMENT
Normal file
1
x11/wminfo/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
wm-dockapp that displays scrolling text
|
25
x11/wminfo/pkg/DESCR
Normal file
25
x11/wminfo/pkg/DESCR
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
This WindowMaker Dockapp is designed to be very general
|
||||||
|
purposed. It is capable to display any kind of information
|
||||||
|
as long as it's in text-format. It uses plugins (or modules
|
||||||
|
if you like) to retrieve the information, any script or
|
||||||
|
program that sends its output to stdout can be used. wminfo
|
||||||
|
simply captures this information and displays it row by row.
|
||||||
|
You can scroll the information both vertically and horizont-
|
||||||
|
ally so even though the window only fits 5 rows at a time
|
||||||
|
you can scroll down (by clicking with the mouse in the lower
|
||||||
|
left corner) and reveal more rows. Vertically you can scroll
|
||||||
|
a specific row by clicking it or scroll all rows by clicking
|
||||||
|
the upper right corner.
|
||||||
|
|
||||||
|
Possible uses for this application is system logging, whats-
|
||||||
|
on-tv-ticker, news headline ticker, weather info, freshmeat
|
||||||
|
announcements, stock ticker, you name it! If the plugin
|
||||||
|
fetches information by http or ftp it is obviously best if
|
||||||
|
it uses common utilities like lynx or wget for the retrieval.
|
||||||
|
There are switches in the app that (by default) discards html-
|
||||||
|
tags and multiple consequtive blanks so that the parsing won't
|
||||||
|
be such a pain in the *ss :). Another useful option is to
|
||||||
|
have wminfo monitor changes in the information and start
|
||||||
|
scrolling the rows that changed.
|
||||||
|
|
||||||
|
WWW: ${HOMEPAGE}
|
2
x11/wminfo/pkg/PLIST
Normal file
2
x11/wminfo/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/02/01 16:14:22 wilfried Exp $
|
||||||
|
bin/wminfo
|
Loading…
Reference in New Issue
Block a user