pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/wayland/sfwbar



Module Name:    pkgsrc
Committed By:   kikadf
Date:           Tue Apr 14 12:53:47 UTC 2026

Added Files:
        pkgsrc/wayland/sfwbar: DESCR Makefile PLIST distinfo
        pkgsrc/wayland/sfwbar/patches: patch-config_memory.source
            patch-modules_network.c

Log Message:
sfwbar: new package

SFWBar (S* Floating Window Bar) is a flexible taskbar
application for wayland compositors, designed with a
stacking layout in mind. Originally developed for Sway,
SFWBar will work with any wayland compositor supporting
layer shell protocol, the taskbar and window switcher
functionality shall work with any compositor supportinig
foreign toplevel protocol, but the pager, and window
placement functionality require sway
(or at least i3 IPC support).


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/wayland/sfwbar/DESCR \
    pkgsrc/wayland/sfwbar/Makefile pkgsrc/wayland/sfwbar/PLIST \
    pkgsrc/wayland/sfwbar/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/wayland/sfwbar/patches/patch-config_memory.source \
    pkgsrc/wayland/sfwbar/patches/patch-modules_network.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/wayland/sfwbar/DESCR
diff -u /dev/null pkgsrc/wayland/sfwbar/DESCR:1.1
--- /dev/null   Tue Apr 14 12:53:47 2026
+++ pkgsrc/wayland/sfwbar/DESCR Tue Apr 14 12:53:47 2026
@@ -0,0 +1,9 @@
+SFWBar (S* Floating Window Bar) is a flexible taskbar
+application for wayland compositors, designed with a
+stacking layout in mind. Originally developed for Sway,
+SFWBar will work with any wayland compositor supporting
+layer shell protocol, the taskbar and window switcher
+functionality shall work with any compositor supportinig
+foreign toplevel protocol, but the pager, and window
+placement functionality require sway
+(or at least i3 IPC support).
Index: pkgsrc/wayland/sfwbar/Makefile
diff -u /dev/null pkgsrc/wayland/sfwbar/Makefile:1.1
--- /dev/null   Tue Apr 14 12:53:47 2026
+++ pkgsrc/wayland/sfwbar/Makefile      Tue Apr 14 12:53:47 2026
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2026/04/14 12:53:47 kikadf Exp $
+
+DISTNAME=      sfwbar-1.0_beta17
+CATEGORIES=    wayland
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=LBCrion/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    kikadf.01%gmail.com@localhost
+HOMEPAGE=      https://github.com/LBCrion/sfwbar/
+COMMENT=       S* Floating Window Bar for wayland compositors
+LICENSE=       gnu-gpl-v3
+
+USE_LANGUAGES= c c++
+USE_TOOLS+=    pkg-config
+LDFLAGS+=      ${COMPILER_RPATH_FLAG}${PREFIX}/lib/sfwbar
+
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "FreeBSD"
+MESON_ARGS+=   -Dbsdctl=enabled
+.else
+MESON_ARGS+=   -Dbsdctl=disabled
+.endif
+MESON_ARGS+=   -Dpulse=disabled
+MESON_ARGS+=   -Dpipewire=disabled
+MESON_ARGS+=   -Dalsa=disabled
+MESON_ARGS+=   -Diwd=disabled
+MESON_ARGS+=   -Dnm=disabled
+MESON_ARGS+=   -Dxkb=enabled
+MESON_ARGS+=   -Ddbus=enabled
+
+post-install:
+       ${RM} ${DESTDIR}${PREFIX}/share/sfwbar/memory.source.orig
+
+
+.include "../../devel/meson/build.mk"
+.include "../../devel/wayland/buildlink3.mk"
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../wayland/gtk-layer-shell/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/wayland/sfwbar/PLIST
diff -u /dev/null pkgsrc/wayland/sfwbar/PLIST:1.1
--- /dev/null   Tue Apr 14 12:53:47 2026
+++ pkgsrc/wayland/sfwbar/PLIST Tue Apr 14 12:53:47 2026
@@ -0,0 +1,203 @@
+@comment $NetBSD: PLIST,v 1.1 2026/04/14 12:53:47 kikadf Exp $
+bin/sfwbar
+lib/sfwbar/appmenu.so
+lib/sfwbar/bluez.so
+lib/sfwbar/dbus.so
+lib/sfwbar/idle.so
+lib/sfwbar/idleinhibit.so
+lib/sfwbar/libsfwbar.so
+lib/sfwbar/mpd.so
+lib/sfwbar/ncenter.so
+lib/sfwbar/network.so
+lib/sfwbar/xkbmap.so
+man/man1/sfwbar-appmenu.1
+man/man1/sfwbar-bluez.1
+man/man1/sfwbar-dbus.1
+man/man1/sfwbar-idle.1
+man/man1/sfwbar-idleinhibit.1
+man/man1/sfwbar-mpd.1
+man/man1/sfwbar-ncenter.1
+man/man1/sfwbar-network.1
+man/man1/sfwbar-xkbmap.1
+man/man1/sfwbar.1
+share/icons/hicolor/scalable/apps/sfwbar.svg
+share/locale/pl/LC_MESSAGES/sfwbar.mo
+share/locale/ru/LC_MESSAGES/sfwbar.mo
+share/locale/zh_CN/LC_MESSAGES/sfwbar.mo
+share/locale/zh_TW/LC_MESSAGES/sfwbar.mo
+share/sfwbar/alsa.widget
+share/sfwbar/backlight.source
+share/sfwbar/backlight.widget
+share/sfwbar/battery.source
+share/sfwbar/battery.widget
+share/sfwbar/bluez-popup.widget
+share/sfwbar/bluez.widget
+share/sfwbar/cal.widget
+share/sfwbar/clock.widget
+share/sfwbar/cpu-temp.source
+share/sfwbar/cpu-temp.widget
+share/sfwbar/cpu.source
+share/sfwbar/cpu.widget
+share/sfwbar/desktop-directories/AudioVideo.directory
+share/sfwbar/desktop-directories/Development.directory
+share/sfwbar/desktop-directories/Education.directory
+share/sfwbar/desktop-directories/Game.directory
+share/sfwbar/desktop-directories/Graphics.directory
+share/sfwbar/desktop-directories/Network.directory
+share/sfwbar/desktop-directories/Office.directory
+share/sfwbar/desktop-directories/Settings.directory
+share/sfwbar/desktop-directories/System-Tools.directory
+share/sfwbar/desktop-directories/Utility-Accessibility.directory
+share/sfwbar/desktop-directories/Utility.directory
+share/sfwbar/fan-rpm.widget
+share/sfwbar/icons/misc/comp.svg
+share/sfwbar/icons/misc/cpu.svg
+share/sfwbar/icons/misc/dialog-cancel-symbolic.svg
+share/sfwbar/icons/misc/dialog-ok-symbolic.svg
+share/sfwbar/icons/misc/fan.svg
+share/sfwbar/icons/misc/fforward.svg
+share/sfwbar/icons/misc/hibernate-symbolic.svg
+share/sfwbar/icons/misc/lan.svg
+share/sfwbar/icons/misc/lock-symbolic.svg
+share/sfwbar/icons/misc/missing.svg
+share/sfwbar/icons/misc/music-player-symbolic.svg
+share/sfwbar/icons/misc/music-player.svg
+share/sfwbar/icons/misc/play.svg
+share/sfwbar/icons/misc/rewind.svg
+share/sfwbar/icons/misc/stop.svg
+share/sfwbar/icons/misc/suspend-symbolic.svg
+share/sfwbar/icons/misc/unlock-symbolic.svg
+share/sfwbar/icons/weather/LICENSE
+share/sfwbar/icons/weather/clearsky_day.svg
+share/sfwbar/icons/weather/clearsky_night.svg
+share/sfwbar/icons/weather/clearsky_polartwilight.svg
+share/sfwbar/icons/weather/cloudy.svg
+share/sfwbar/icons/weather/fair_day.svg
+share/sfwbar/icons/weather/fair_night.svg
+share/sfwbar/icons/weather/fair_polartwilight.svg
+share/sfwbar/icons/weather/fog.svg
+share/sfwbar/icons/weather/heavyrain.svg
+share/sfwbar/icons/weather/heavyrainandthunder.svg
+share/sfwbar/icons/weather/heavyrainshowers_day.svg
+share/sfwbar/icons/weather/heavyrainshowers_night.svg
+share/sfwbar/icons/weather/heavyrainshowers_polartwilight.svg
+share/sfwbar/icons/weather/heavyrainshowersandthunder_day.svg
+share/sfwbar/icons/weather/heavyrainshowersandthunder_night.svg
+share/sfwbar/icons/weather/heavyrainshowersandthunder_polartwilight.svg
+share/sfwbar/icons/weather/heavysleet.svg
+share/sfwbar/icons/weather/heavysleetandthunder.svg
+share/sfwbar/icons/weather/heavysleetshowers_day.svg
+share/sfwbar/icons/weather/heavysleetshowers_night.svg
+share/sfwbar/icons/weather/heavysleetshowers_polartwilight.svg
+share/sfwbar/icons/weather/heavysleetshowersandthunder_day.svg
+share/sfwbar/icons/weather/heavysleetshowersandthunder_night.svg
+share/sfwbar/icons/weather/heavysleetshowersandthunder_polartwilight.svg
+share/sfwbar/icons/weather/heavysnow.svg
+share/sfwbar/icons/weather/heavysnowandthunder.svg
+share/sfwbar/icons/weather/heavysnowshowers_day.svg
+share/sfwbar/icons/weather/heavysnowshowers_night.svg
+share/sfwbar/icons/weather/heavysnowshowers_polartwilight.svg
+share/sfwbar/icons/weather/heavysnowshowersandthunder_day.svg
+share/sfwbar/icons/weather/heavysnowshowersandthunder_night.svg
+share/sfwbar/icons/weather/heavysnowshowersandthunder_polartwilight.svg
+share/sfwbar/icons/weather/lightrain.svg
+share/sfwbar/icons/weather/lightrainandthunder.svg
+share/sfwbar/icons/weather/lightrainshowers_day.svg
+share/sfwbar/icons/weather/lightrainshowers_night.svg
+share/sfwbar/icons/weather/lightrainshowers_polartwilight.svg
+share/sfwbar/icons/weather/lightrainshowersandthunder_day.svg
+share/sfwbar/icons/weather/lightrainshowersandthunder_night.svg
+share/sfwbar/icons/weather/lightrainshowersandthunder_polartwilight.svg
+share/sfwbar/icons/weather/lightsleet.svg
+share/sfwbar/icons/weather/lightsleetandthunder.svg
+share/sfwbar/icons/weather/lightsleetshowers_day.svg
+share/sfwbar/icons/weather/lightsleetshowers_night.svg
+share/sfwbar/icons/weather/lightsleetshowers_polartwilight.svg
+share/sfwbar/icons/weather/lightsnow.svg
+share/sfwbar/icons/weather/lightsnowandthunder.svg
+share/sfwbar/icons/weather/lightsnowshowers_day.svg
+share/sfwbar/icons/weather/lightsnowshowers_night.svg
+share/sfwbar/icons/weather/lightsnowshowers_polartwilight.svg
+share/sfwbar/icons/weather/lightssleetshowersandthunder_day.svg
+share/sfwbar/icons/weather/lightssleetshowersandthunder_night.svg
+share/sfwbar/icons/weather/lightssleetshowersandthunder_polartwilight.svg
+share/sfwbar/icons/weather/lightssnowshowersandthunder_day.svg
+share/sfwbar/icons/weather/lightssnowshowersandthunder_night.svg
+share/sfwbar/icons/weather/lightssnowshowersandthunder_polartwilight.svg
+share/sfwbar/icons/weather/partlycloudy_day.svg
+share/sfwbar/icons/weather/partlycloudy_night.svg
+share/sfwbar/icons/weather/partlycloudy_polartwilight.svg
+share/sfwbar/icons/weather/rain.svg
+share/sfwbar/icons/weather/rainandthunder.svg
+share/sfwbar/icons/weather/rainshowers_day.svg
+share/sfwbar/icons/weather/rainshowers_night.svg
+share/sfwbar/icons/weather/rainshowers_polartwilight.svg
+share/sfwbar/icons/weather/rainshowersandthunder_day.svg
+share/sfwbar/icons/weather/rainshowersandthunder_night.svg
+share/sfwbar/icons/weather/rainshowersandthunder_polartwilight.svg
+share/sfwbar/icons/weather/sleet.svg
+share/sfwbar/icons/weather/sleetandthunder.svg
+share/sfwbar/icons/weather/sleetshowers_day.svg
+share/sfwbar/icons/weather/sleetshowers_night.svg
+share/sfwbar/icons/weather/sleetshowers_polartwilight.svg
+share/sfwbar/icons/weather/sleetshowersandthunder_day.svg
+share/sfwbar/icons/weather/sleetshowersandthunder_night.svg
+share/sfwbar/icons/weather/sleetshowersandthunder_polartwilight.svg
+share/sfwbar/icons/weather/snow.svg
+share/sfwbar/icons/weather/snowandthunder.svg
+share/sfwbar/icons/weather/snowshowers_day.svg
+share/sfwbar/icons/weather/snowshowers_night.svg
+share/sfwbar/icons/weather/snowshowers_polartwilight.svg
+share/sfwbar/icons/weather/snowshowersandthunder_day.svg
+share/sfwbar/icons/weather/snowshowersandthunder_night.svg
+share/sfwbar/icons/weather/snowshowersandthunder_polartwilight.svg
+share/sfwbar/idleinhibit.widget
+share/sfwbar/lan-bps.widget
+share/sfwbar/language.widget
+share/sfwbar/mb-temp.widget
+share/sfwbar/memory.source
+share/sfwbar/memory.widget
+share/sfwbar/mpd-browser.widget
+share/sfwbar/mpd-intmod.widget
+share/sfwbar/mpd-mini.widget
+share/sfwbar/mpd-module.widget
+share/sfwbar/mpd.source
+share/sfwbar/mpd.widget
+share/sfwbar/ncenter.widget
+share/sfwbar/network.widget
+share/sfwbar/oneline.config
+share/sfwbar/privacy.widget
+share/sfwbar/rfkill-bt.widget
+share/sfwbar/rfkill-wifi.widget
+share/sfwbar/rfkill.source
+share/sfwbar/session.widget
+share/sfwbar/sfwbar.config
+share/sfwbar/showdesktop.widget
+share/sfwbar/startmenu.source
+share/sfwbar/startmenu.widget
+share/sfwbar/swap.source
+share/sfwbar/switcher.config
+share/sfwbar/t2.config
+share/sfwbar/twoline.config
+share/sfwbar/upower.widget
+share/sfwbar/usage.widget
+share/sfwbar/vertical.config
+share/sfwbar/volume-popup.widget
+share/sfwbar/volume.widget
+share/sfwbar/w10.config
+share/sfwbar/wbar-backlight.widget
+share/sfwbar/wbar-battery.widget
+share/sfwbar/wbar-bluetooth.widget
+share/sfwbar/wbar-cpu.widget
+share/sfwbar/wbar-idleinhibit.widget
+share/sfwbar/wbar-memory.widget
+share/sfwbar/wbar-mpd.widget
+share/sfwbar/wbar-net.widget
+share/sfwbar/wbar-pulse.widget
+share/sfwbar/wbar-sway-lang.widget
+share/sfwbar/wbar-temp.widget
+share/sfwbar/wbar.config
+share/sfwbar/weather.widget
+share/sfwbar/wifi-secret.widget
+share/sfwbar/wifi.widget
+share/sfwbar/winops.widget
Index: pkgsrc/wayland/sfwbar/distinfo
diff -u /dev/null pkgsrc/wayland/sfwbar/distinfo:1.1
--- /dev/null   Tue Apr 14 12:53:47 2026
+++ pkgsrc/wayland/sfwbar/distinfo      Tue Apr 14 12:53:47 2026
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2026/04/14 12:53:47 kikadf Exp $
+
+BLAKE2s (sfwbar-1.0_beta17.tar.gz) = b088dacefd56c0cdbd52d094a30540e411085c53060ea877d0e893867c21c0bd
+SHA512 (sfwbar-1.0_beta17.tar.gz) = f9444ace3e01997aecba7bf2a6e1edfdbe6bf67022d7ec60874e2f86da20e0e3c1a41defa7720f74eb1ff646ce65fa0343a89186883c3ac7ae59001e22aeaf23
+Size (sfwbar-1.0_beta17.tar.gz) = 518367 bytes
+SHA1 (patch-config_memory.source) = b0cd1d907322841b19160be3d19074d63168bdc0
+SHA1 (patch-modules_network.c) = b91f130ff7b53a162315f6ab0372a8a383c49510

Index: pkgsrc/wayland/sfwbar/patches/patch-config_memory.source
diff -u /dev/null pkgsrc/wayland/sfwbar/patches/patch-config_memory.source:1.1
--- /dev/null   Tue Apr 14 12:53:47 2026
+++ pkgsrc/wayland/sfwbar/patches/patch-config_memory.source    Tue Apr 14 12:53:47 2026
@@ -0,0 +1,26 @@
+$NetBSD: patch-config_memory.source,v 1.1 2026/04/14 12:53:47 kikadf Exp $
+
+* NetBSD support
+
+--- config/memory.source.orig  2026-03-18 10:39:49.620486824 +0000
++++ config/memory.source
+@@ -6,13 +6,17 @@ file("/proc/meminfo") {
+   MemTotal = RegEx("^MemTotal:[\t ]*([0-9]+)[\t ]")
+   MemFree = RegEx("^MemFree:[\t ]*([0-9]+)[\t ]")
+   MemCache = RegEx( "^Cached:[\t ]*([0-9]+)[\t ]")
+-  MemBuff = Regex("^Buffers:[\t ]*([0-9]+)[\t ]")
++  MemBuff = RegEx("^Buffers:[\t ]*([0-9]+)[\t ]")
++  MemShared = RegEx("^MemShared:[\t ]*([0-9]+)[\t ]")
+ }
+ 
++Set IsNetBSD = MemShared.count
+ Set XPageSize = BSDCtl("vm.stats.vm.v_page_size")
+ Set XMemTotal = If(!Ident(BSDCtl),MemTotal,Val(BSDCtl("vm.stats.vm.v_page_count"))*XPageSize)
+ Set XMemFree = If(!Ident(BSDCtl),MemFree,Val(BSDCtl("vm.stats.vm.v_free_count"))*XPageSize)
+ Set XMemCache = If(!Ident(BSDCtl),MemCache,Val(BSDCtl("vm.stats.vm.v_inactive_count"))*XPageSize)
+ Set XMemBuff = If(!Ident(BSDCtl),MemBuff,Val(BSDCtl("vm.stats.vm_laundry_count"))*XPageSize)
+-Set XMemUtilization = (XMemTotal-XMemFree-XMemCache-XMemBuff)/XMemTotal
++Set XMemUtil_NetBSD = (XMemTotal-XMemFree)/XMemTotal
++Set XMemUtil = (XMemTotal-XMemFree-XMemCache-XMemBuff)/XMemTotal
++Set XMemUtilization = If(IsNetBSD,XMemUtil_NetBSD,XMemUtil)
+ Set XMemPresent = If(Ident(BSDCtl),$XPageSize!="",MemTotal.count)
Index: pkgsrc/wayland/sfwbar/patches/patch-modules_network.c
diff -u /dev/null pkgsrc/wayland/sfwbar/patches/patch-modules_network.c:1.1
--- /dev/null   Tue Apr 14 12:53:47 2026
+++ pkgsrc/wayland/sfwbar/patches/patch-modules_network.c       Tue Apr 14 12:53:47 2026
@@ -0,0 +1,39 @@
+$NetBSD: patch-modules_network.c,v 1.1 2026/04/14 12:53:47 kikadf Exp $
+
+* Add NetBSD support
+
+--- modules/network.c.orig     2026-02-15 14:18:39.000000000 +0000
++++ modules/network.c
+@@ -374,7 +374,7 @@ static gboolean net_rt_parse (GIOChannel
+   return TRUE;
+ }
+ 
+-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
++#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ 
+ #include <net/if_dl.h>
+ #include <net/route.h>
+@@ -414,7 +414,10 @@ static void net_update_traffic ( gchar *
+   freeifaddrs(addrs);
+ }
+ 
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined (__NetBSD__)
++#define COMPAT_FREEBSD_NET80211
++#endif
+ #include <net80211/ieee80211_ioctl.h>
+ 
+ static void net_update_essid ( char *interface )
+@@ -490,7 +493,11 @@ static gdouble net_get_signal ( gchar *i
+   req.i_len = sizeof(nfo);
+   (void)g_strlcpy(req.i_name, interface, sizeof(req.i_name));
+   if(ioctl(sock, SIOCG80211, &req) >=0)
++#if defined(__NetBSD__)
++    rssi = nfo.sreq.info[0].isi_rssi/2;
++#else
+     rssi = nfo.sreq.info[0].isi_noise + nfo.sreq.info[0].isi_rssi/2;
++#endif
+   else
+     rssi = -100;
+   close(sock);



Home | Main Index | Thread Index | Old Index