Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163262955
D39833.id121088.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D39833.id121088.diff
View Options
Index: MOVED
===================================================================
--- MOVED
+++ MOVED
@@ -6100,7 +6100,6 @@
security/sudosh2||2014-07-01|Has expired: Funcition replaced by sudo -s
lang/pike76|lang/pike78|2014-07-01|Has expired: Outdated: Users should switch to lang/pike78
archivers/rpm|archivers/rpm4|2014-07-03|rpm3 is long EOLed, rpm4 is the default rpm archivers for most of linux distributions
-x11-clocks/wmitime||2014-07-04|Has expired
x11/xorg-edit||2014-07-04|Has expired: Depends on older version of wxGTK
net/ttbudget||2014-07-06|Has expired: does not build, mastersite disapperead, not staged
sysutil/psgconf||2014-07-06|Removed: abandonware
Index: x11-clocks/Makefile
===================================================================
--- x11-clocks/Makefile
+++ x11-clocks/Makefile
@@ -36,6 +36,7 @@
SUBDIR += wmclock
SUBDIR += wmclockmon
SUBDIR += wmfishtime
+ SUBDIR += wmitime
SUBDIR += wmtime
SUBDIR += wmtimer
SUBDIR += xalarm
Index: x11-clocks/wmitime/Makefile
===================================================================
--- /dev/null
+++ x11-clocks/wmitime/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= wmitime
+PORTVERSION= 0.5
+CATEGORIES= x11-clocks windowmaker
+MASTER_SITES= https://www.dockapps.net/download/
+
+MAINTAINER= khorben@defora.org
+COMMENT= Docking clock app also showing the new Internet time
+WWW= https://www.dockapps.net/wmitime/
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libdockapp.so:x11-wm/libdockapp
+
+USES= gmake iconv xorg
+USE_XORG= xext xpm x11
+
+MAKE_ARGS= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib" \
+ MANDIR="${PREFIX}/man/man1"
+ALL_TARGET= wmitime
+
+WRKSRC= ${WRKDIR}/dockapps-26db447
+
+.include <bsd.port.mk>
Index: x11-clocks/wmitime/distinfo
===================================================================
--- /dev/null
+++ x11-clocks/wmitime/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1682443844
+SHA256 (wmitime-0.5.tar.gz) = a183e208d8babf97e8a40e37e7a5a8b1e1371ca547d7896f314f808516f45e6d
+SIZE (wmitime-0.5.tar.gz) = 15099
Index: x11-clocks/wmitime/files/patch-Makefile
===================================================================
--- /dev/null
+++ x11-clocks/wmitime/files/patch-Makefile
@@ -0,0 +1,24 @@
+--- Makefile.orig 2015-08-22 03:42:17.000000000 +0200
++++ Makefile 2023-04-26 16:02:47.069459000 +0200
+@@ -1,10 +1,10 @@
+ LIBS = -lXpm -lXext -lX11 -lm -ldockapp
+-CFLAGS = -O2 -Wall
++CFLAGS ?= -O2 -Wall
+ OBJS = wmitime.o
+ INSTALL = install
+ PREFIX = /usr/local
+ BINDIR = $(PREFIX)/bin
+-MANDIR = $(PREFIX)/share/man/man1
++MANDIR = $(PREFIX)/man/man1
+ DESKTOPDIR = $(PREFIX)/share/applications
+
+ .c.o:
+@@ -13,7 +13,7 @@
+ wmitime: $(OBJS)
+ $(CC) $(LDFLAGS) -o wmitime $^ $(LIBS)
+
+-all:: wmtime
++all:: wmitime
+
+ clean::
+ for i in $(OBJS) ; do \
Index: x11-clocks/wmitime/files/patch-wmitime.c
===================================================================
--- /dev/null
+++ x11-clocks/wmitime/files/patch-wmitime.c
@@ -0,0 +1,69 @@
+--- wmitime.c.orig 2023-04-26 15:21:25.087121000 +0200
++++ wmitime.c 2023-04-26 15:52:53.247759000 +0200
+@@ -248,7 +248,7 @@
+
+ /* Compute Inet Time */
+ iTime=(clk->tm_hour*3600+clk->tm_min*60+clk->tm_sec);
+- iTime=iTime+((timezone-1)+3600);
++ iTime=iTime+((1-clk->tm_gmtoff)+3600);
+ if (clk->tm_isdst)
+ iTime-=3600;
+ iTime=(iTime*1000)/86400;
+@@ -283,11 +283,11 @@
+ if (i==0)
+ i=12;
+
+- sprintf(blitstr, "%2i:%02i:%02i", i, clk->tm_min, clk->tm_sec);
++ snprintf(blitstr, sizeof(blitstr), "%2i:%02i:%02i", i, clk->tm_min, clk->tm_sec);
+ }
+ else
+ {
+- sprintf(blitstr, "%02i:%02i:%02i", i, clk->tm_min, clk->tm_sec);
++ snprintf(blitstr, sizeof(blitstr), "%02i:%02i:%02i", i, clk->tm_min, clk->tm_sec);
+ }
+
+
+@@ -344,7 +344,7 @@
+ inbytesleft = sizeof OrigBlitStr;
+ outbytesleft = sizeof BlitStr;
+
+- sprintf(OrigBlitStr, "%s", nl_langinfo(ABDAY_1 + clk->tm_wday));
++ snprintf(OrigBlitStr, sizeof(OrigBlitStr), "%s", nl_langinfo(ABDAY_1 + clk->tm_wday));
+ iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
+ BlitStr[2] = 0;
+ BlitString( BlitStr, 6, 50);
+@@ -354,14 +354,14 @@
+ inbytesleft = sizeof OrigBlitStr;
+ outbytesleft = sizeof BlitStr;
+
+- sprintf(OrigBlitStr, "%s", nl_langinfo(ABMON_1 + clk->tm_mon));
++ snprintf(OrigBlitStr, sizeof(OrigBlitStr), "%s", nl_langinfo(ABMON_1 + clk->tm_mon));
+ iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
+ BlitStr[3] = 0;
+ BlitString( BlitStr, 40, 50);
+
+ iconv_close(cd);
+
+- sprintf(BlitStr, "%02i", clk->tm_mday);
++ snprintf(BlitStr, sizeof(BlitStr), "%02i", clk->tm_mday);
+ BlitString( BlitStr, 25, 50);
+ }
+
+@@ -374,7 +374,7 @@
+
+ /* Calculate Wheel Position... */
+ iTime=(clk->tm_hour*3600+clk->tm_min*60+clk->tm_sec);
+- iTime=iTime+((timezone-1)+3600);
++ iTime=iTime+((1-clk->tm_gmtoff)+3600);
+ if (clk->tm_isdst)
+ iTime-=3600;
+ iTime=(iTime*1000)/8640;
+@@ -566,7 +566,7 @@
+ char buf[1024];
+ int newx=x;
+
+- sprintf(buf, "%03i", num);
++ snprintf(buf, sizeof(buf), "%03i", num);
+
+ BlitString(buf, newx, y);
+ }
Index: x11-clocks/wmitime/pkg-descr
===================================================================
--- /dev/null
+++ x11-clocks/wmitime/pkg-descr
@@ -0,0 +1,4 @@
+WMitime is yet another clock dock app which shows standard time, date, as well
+as the new Internet time.
+
+#WWW: https://www.swatch.com/en-en/internet-time.html
Index: x11-clocks/wmitime/pkg-plist
===================================================================
--- /dev/null
+++ x11-clocks/wmitime/pkg-plist
@@ -0,0 +1,3 @@
+bin/wmitime
+man/man1/wmitime.1.gz
+share/applications/wmitime.desktop
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 1:37 PM (3 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35365735
Default Alt Text
D39833.id121088.diff (5 KB)
Attached To
Mode
D39833: Modify the Makefile to simplify the port, use snprintf()
Attached
Detach File
Event Timeline
Log In to Comment