From owner-svn-ports-all@freebsd.org Wed Feb 10 17:04:20 2021 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 626CD54CD8B; Wed, 10 Feb 2021 17:04:20 +0000 (UTC) (envelope-from rhurlin@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DbR1w2HQVz4lM7; Wed, 10 Feb 2021 17:04:20 +0000 (UTC) (envelope-from rhurlin@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 41D8C217F4; Wed, 10 Feb 2021 17:04:20 +0000 (UTC) (envelope-from rhurlin@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 11AH4K4P044331; Wed, 10 Feb 2021 17:04:20 GMT (envelope-from rhurlin@FreeBSD.org) Received: (from rhurlin@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 11AH4Ixv044322; Wed, 10 Feb 2021 17:04:18 GMT (envelope-from rhurlin@FreeBSD.org) Message-Id: <202102101704.11AH4Ixv044322@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rhurlin set sender to rhurlin@FreeBSD.org using -f From: Rainer Hurling Date: Wed, 10 Feb 2021 17:04:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r564878 - in head/sysutils: . wmscript wmscript/files X-SVN-Group: ports-head X-SVN-Commit-Author: rhurlin X-SVN-Commit-Paths: in head/sysutils: . wmscript wmscript/files X-SVN-Commit-Revision: 564878 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2021 17:04:20 -0000 Author: rhurlin Date: Wed Feb 10 17:04:17 2021 New Revision: 564878 URL: https://svnweb.freebsd.org/changeset/ports/564878 Log: New port: sysutils/wmscript: System monitoring dockapp for Window Maker WMScript allows to specify a command and have the numeric result of that command displayed in the dock app's window. Up to 5 things to monitor, the interval is configurable. See http://freshmeat.sourceforge.net/projects/wmscript for details. PR: 253346 Submitted by: Igor Pokrovsky (maintainer) Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D28558 Added: head/sysutils/wmscript/ head/sysutils/wmscript/Makefile (contents, props changed) head/sysutils/wmscript/distinfo (contents, props changed) head/sysutils/wmscript/files/ head/sysutils/wmscript/files/patch-wmgeneral_list.h (contents, props changed) head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c (contents, props changed) head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h (contents, props changed) head/sysutils/wmscript/files/patch-wmscript_Makefile (contents, props changed) head/sysutils/wmscript/files/patch-wmscript_wmscript.c (contents, props changed) head/sysutils/wmscript/pkg-descr (contents, props changed) head/sysutils/wmscript/pkg-plist (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Wed Feb 10 17:03:38 2021 (r564877) +++ head/sysutils/Makefile Wed Feb 10 17:04:17 2021 (r564878) @@ -1483,6 +1483,7 @@ SUBDIR += wmflame SUBDIR += wmmemfree SUBDIR += wmmemload + SUBDIR += wmscript SUBDIR += wmtop SUBDIR += wmupmon SUBDIR += worldtools Added: head/sysutils/wmscript/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/Makefile Wed Feb 10 17:04:17 2021 (r564878) @@ -0,0 +1,38 @@ +# Created by: Igor Pokrovsky +# $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 Added: head/sysutils/wmscript/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/distinfo Wed Feb 10 17:04:17 2021 (r564878) @@ -0,0 +1,3 @@ +TIMESTAMP = 1612783763 +SHA256 (wmscript-1.0.tar.gz) = 11f7fcd03ab2eecafd09500dd42124f67229061043acbbe8b589bdd1fdec4a97 +SIZE (wmscript-1.0.tar.gz) = 22914 Added: head/sysutils/wmscript/files/patch-wmgeneral_list.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/files/patch-wmgeneral_list.h Wed Feb 10 17:04:17 2021 (r564878) @@ -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 Added: head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.c Wed Feb 10 17:04:17 2021 (r564878) @@ -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; Added: head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/files/patch-wmgeneral_wmgeneral.h Wed Feb 10 17:04:17 2021 (r564878) @@ -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 */ Added: head/sysutils/wmscript/files/patch-wmscript_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/files/patch-wmscript_Makefile Wed Feb 10 17:04:17 2021 (r564878) @@ -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 + Added: head/sysutils/wmscript/files/patch-wmscript_wmscript.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/files/patch-wmscript_wmscript.c Wed Feb 10 17:04:17 2021 (r564878) @@ -0,0 +1,10 @@ +--- wmscript/wmscript.c.orig 2000-01-16 13:28:42 UTC ++++ wmscript/wmscript.c +@@ -31,7 +31,6 @@ + #include + #include + +-#include + #include + + #include Added: head/sysutils/wmscript/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/pkg-descr Wed Feb 10 17:04:17 2021 (r564878) @@ -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 Added: head/sysutils/wmscript/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/wmscript/pkg-plist Wed Feb 10 17:04:17 2021 (r564878) @@ -0,0 +1,4 @@ +bin/wmscript +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/HINTS +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wmscriptrc.example