diff options
Diffstat (limited to 'sysutils/wmscript')
-rw-r--r-- | sysutils/wmscript/Makefile | 38 | ||||
-rw-r--r-- | sysutils/wmscript/distinfo | 3 | ||||
-rw-r--r-- | sysutils/wmscript/files/patch-wmgeneral_list.h | 31 | ||||
-rw-r--r-- | sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c | 11 | ||||
-rw-r--r-- | sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h | 11 | ||||
-rw-r--r-- | sysutils/wmscript/files/patch-wmscript_Makefile | 25 | ||||
-rw-r--r-- | sysutils/wmscript/files/patch-wmscript_wmscript.c | 10 | ||||
-rw-r--r-- | sysutils/wmscript/pkg-descr | 8 | ||||
-rw-r--r-- | sysutils/wmscript/pkg-plist | 4 |
9 files changed, 141 insertions, 0 deletions
diff --git a/sysutils/wmscript/Makefile b/sysutils/wmscript/Makefile new file mode 100644 index 000000000000..9ed67721573f --- /dev/null +++ b/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> diff --git a/sysutils/wmscript/distinfo b/sysutils/wmscript/distinfo new file mode 100644 index 000000000000..5174568ab6b2 --- /dev/null +++ b/sysutils/wmscript/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1612783763 +SHA256 (wmscript-1.0.tar.gz) = 11f7fcd03ab2eecafd09500dd42124f67229061043acbbe8b589bdd1fdec4a97 +SIZE (wmscript-1.0.tar.gz) = 22914 diff --git a/sysutils/wmscript/files/patch-wmgeneral_list.h b/sysutils/wmscript/files/patch-wmgeneral_list.h new file mode 100644 index 000000000000..3c33863c6ea2 --- /dev/null +++ b/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 diff --git a/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c b/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c new file mode 100644 index 000000000000..6bd7dd0a6f85 --- /dev/null +++ b/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; diff --git a/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h b/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h new file mode 100644 index 000000000000..2aa7cf47264a --- /dev/null +++ b/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 */ diff --git a/sysutils/wmscript/files/patch-wmscript_Makefile b/sysutils/wmscript/files/patch-wmscript_Makefile new file mode 100644 index 000000000000..af0937ab813c --- /dev/null +++ b/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 + diff --git a/sysutils/wmscript/files/patch-wmscript_wmscript.c b/sysutils/wmscript/files/patch-wmscript_wmscript.c new file mode 100644 index 000000000000..39b9fd00658c --- /dev/null +++ b/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> diff --git a/sysutils/wmscript/pkg-descr b/sysutils/wmscript/pkg-descr new file mode 100644 index 000000000000..da0a4bc94a0d --- /dev/null +++ b/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 diff --git a/sysutils/wmscript/pkg-plist b/sysutils/wmscript/pkg-plist new file mode 100644 index 000000000000..877351b24bd7 --- /dev/null +++ b/sysutils/wmscript/pkg-plist @@ -0,0 +1,4 @@ +bin/wmscript +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/HINTS +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wmscriptrc.example |