Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176877508
D28558.1793544144.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
6 KB
Referenced Files
None
Subscribers
None
D28558.1793544144.diff
View Options
Index: head/sysutils/Makefile
===================================================================
--- head/sysutils/Makefile
+++ head/sysutils/Makefile
@@ -1483,6 +1483,7 @@
SUBDIR += wmflame
SUBDIR += wmmemfree
SUBDIR += wmmemload
+ SUBDIR += wmscript
SUBDIR += wmtop
SUBDIR += wmupmon
SUBDIR += worldtools
Index: head/sysutils/wmscript/Makefile
===================================================================
--- head/sysutils/wmscript/Makefile
+++ head/sysutils/wmscript/Makefile
@@ -0,0 +1,38 @@
+# Created by: Igor Pokrovsky <ip@unixway.org>
+# $FreeBSD$
+
+PORTNAME= wmscript
+DISTVERSION= 1.0
+CATEGORIES= sysutils windowmaker
+MASTER_SITES= http://krapplets.cream.org/linux/
+
+MAINTAINER= ip@unixway.org
+COMMENT= System monitoring dockapp for Window Maker
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USES= gmake xorg
+USE_XORG= x11 xext xpm
+
+BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}.app
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${BUILD_WRKSRC}/Makefile
+
+do-install:
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/HINTS ${STAGEDIR}${DOCSDIR}
+
+do-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${BUILD_WRKSRC}/${PORTNAME}rc.example ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
Index: head/sysutils/wmscript/distinfo
===================================================================
--- head/sysutils/wmscript/distinfo
+++ head/sysutils/wmscript/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1612783763
+SHA256 (wmscript-1.0.tar.gz) = 11f7fcd03ab2eecafd09500dd42124f67229061043acbbe8b589bdd1fdec4a97
+SIZE (wmscript-1.0.tar.gz) = 22914
Index: head/sysutils/wmscript/files/patch-wmgeneral_list.h
===================================================================
--- head/sysutils/wmscript/files/patch-wmgeneral_list.h
+++ head/sysutils/wmscript/files/patch-wmgeneral_list.h
@@ -0,0 +1,31 @@
+--- wmgeneral/list.h.orig 1998-11-14 22:36:10 UTC
++++ wmgeneral/list.h
+@@ -40,20 +40,20 @@ typedef struct LinkedList {
+ struct LinkedList *tail;
+ } LinkedList;
+
+-INLINE LinkedList* list_cons(void* head, LinkedList* tail);
++extern INLINE LinkedList* list_cons(void* head, LinkedList* tail);
+
+-INLINE int list_length(LinkedList* list);
++extern INLINE int list_length(LinkedList* list);
+
+-INLINE void* list_nth(int index, LinkedList* list);
++extern INLINE void* list_nth(int index, LinkedList* list);
+
+-INLINE void list_remove_head(LinkedList** list);
++extern INLINE void list_remove_head(LinkedList** list);
+
+-INLINE LinkedList *list_remove_elem(LinkedList* list, void* elem);
++extern INLINE LinkedList *list_remove_elem(LinkedList* list, void* elem);
+
+-INLINE void list_mapcar(LinkedList* list, void(*function)(void*));
++extern INLINE void list_mapcar(LinkedList* list, void(*function)(void*));
+
+-INLINE LinkedList*list_find(LinkedList* list, void* elem);
++extern INLINE LinkedList*list_find(LinkedList* list, void* elem);
+
+-INLINE void list_free(LinkedList* list);
++extern INLINE void list_free(LinkedList* list);
+
+ #endif
Index: head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h
===================================================================
--- head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h
+++ head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h
@@ -0,0 +1,11 @@
+--- wmgeneral/wmgeneral.h.orig 2021-02-09 17:07:55 UTC
++++ wmgeneral/wmgeneral.h
+@@ -36,7 +36,7 @@ typedef struct {
+ /* Global variable */
+ /*******************/
+
+-Display *display;
++extern Display *display;
+
+ /***********************/
+ /* Function Prototypes */
Index: head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c
===================================================================
--- head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c
+++ head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c
@@ -0,0 +1,11 @@
+--- wmgeneral/wmgeneral.c.orig 2021-02-09 17:08:45 UTC
++++ wmgeneral/wmgeneral.c
+@@ -55,6 +55,8 @@
+ /* X11 Variables */
+ /*****************/
+
++Display *display;
++
+ Window Root;
+ int screen;
+ int x_fd;
Index: head/sysutils/wmscript/files/patch-wmscript_Makefile
===================================================================
--- head/sysutils/wmscript/files/patch-wmscript_Makefile
+++ head/sysutils/wmscript/files/patch-wmscript_Makefile
@@ -0,0 +1,25 @@
+--- wmscript/Makefile.orig 2000-01-16 13:27:20 UTC
++++ wmscript/Makefile
+@@ -1,6 +1,7 @@
+-LIBDIR = -L/usr/X11R6/lib
++CC?= cc
++LIBDIR = -L%%LOCALBASE%%/lib
+ LIBS = -lXpm -lXext -lX11
+-FLAGS = -O2
++CFLAGS += -O2
+ OBJS = wmscript.o \
+ ../wmgeneral/wmgeneral.o \
+ ../wmgeneral/misc.o \
+@@ -8,10 +9,10 @@ OBJS = wmscript.o \
+
+
+ .c.o:
+- cc -I/usr/X11R6/share/include $(FLAGS) -c -Wall $< -o $*.o
++ $(CC) -I%%LOCALBASE%%/include $(CFLAGS) -c -Wall $< -o $*.o
+
+ wmscript: $(OBJS)
+- cc $(FLAGS) -o wmscript $^ -lXext $(LIBDIR) $(LIBS)
++ $(CC) -o wmscript $^ -lXext $(LIBDIR) $(LIBS)
+
+ all:: wmscript
+
Index: head/sysutils/wmscript/files/patch-wmscript_wmscript.c
===================================================================
--- head/sysutils/wmscript/files/patch-wmscript_wmscript.c
+++ head/sysutils/wmscript/files/patch-wmscript_wmscript.c
@@ -0,0 +1,10 @@
+--- wmscript/wmscript.c.orig 2000-01-16 13:28:42 UTC
++++ wmscript/wmscript.c
+@@ -31,7 +31,6 @@
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
+
+-#include <utmp.h>
+ #include <dirent.h>
+
+ #include <X11/Xlib.h>
Index: head/sysutils/wmscript/pkg-descr
===================================================================
--- head/sysutils/wmscript/pkg-descr
+++ head/sysutils/wmscript/pkg-descr
@@ -0,0 +1,8 @@
+WMScript is a system monitoring dock app for Window Maker.
+It allows you to specify a command and have the numeric result of that command
+displayed in the dock app's window. You may specify up to 5 things to monitor
+and the interval is configurable.
+This combines to make it a very flexible tool for system monitoring.
+It is based on WMiNet, and the look is the same.
+
+WWW: http://freshmeat.sourceforge.net/projects/wmscript
Index: head/sysutils/wmscript/pkg-plist
===================================================================
--- head/sysutils/wmscript/pkg-plist
+++ head/sysutils/wmscript/pkg-plist
@@ -0,0 +1,4 @@
+bin/wmscript
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/HINTS
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wmscriptrc.example
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 1, 2:42 PM (12 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41289337
Default Alt Text
D28558.1793544144.diff (6 KB)
Attached To
Mode
D28558: New port: sysutils/wmscript: System monitoring dockapp for Window Maker
Attached
Detach File
Event Timeline