pkgsrc-WIP-changes archive

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

Import sfwbar



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Wed Feb 18 18:43:17 2026 +0100
Changeset:	a421622540c8101d7ca2e50a8458ce3fffbe7779

Modified Files:
	Makefile
Added Files:
	sfwbar/DESCR
	sfwbar/Makefile
	sfwbar/PLIST
	sfwbar/TODO
	sfwbar/distinfo
	sfwbar/patches/patch-modules_network.c

Log Message:
Import sfwbar

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a421622540c8101d7ca2e50a8458ce3fffbe7779

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

diffstat:
 Makefile                               |   1 +
 sfwbar/DESCR                           |   9 ++
 sfwbar/Makefile                        |  54 +++++++++
 sfwbar/PLIST                           | 201 +++++++++++++++++++++++++++++++++
 sfwbar/TODO                            |   1 +
 sfwbar/distinfo                        |   6 +
 sfwbar/patches/patch-modules_network.c |  37 ++++++
 7 files changed, 309 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 86f835c041..132f638cac 100644
--- a/Makefile
+++ b/Makefile
@@ -5394,6 +5394,7 @@ SUBDIR+=	sfeed-git
 SUBDIR+=	sfeed_curses-git
 SUBDIR+=	sflphoned
 SUBDIR+=	sftpgo
+SUBDIR+=	sfwbar
 SUBDIR+=	sgmltools-lite
 SUBDIR+=	shaarli
 SUBDIR+=	shadow
diff --git a/sfwbar/DESCR b/sfwbar/DESCR
new file mode 100644
index 0000000000..42906d3ee0
--- /dev/null
+++ b/sfwbar/DESCR
@@ -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).
diff --git a/sfwbar/Makefile b/sfwbar/Makefile
new file mode 100644
index 0000000000..bfa4dcd16e
--- /dev/null
+++ b/sfwbar/Makefile
@@ -0,0 +1,54 @@
+# $NetBSD$
+
+DISTNAME=	sfwbar-1.0_beta16.1
+CATEGORIES=	x11
+MASTER_SITES=	${MASTER_SITE_GITHUB:=LBCrion/}
+GITHUB_TAG=	d30db7c77fde25093f55eae8203f5a4995768152
+
+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_CXX_FEATURES+=	filesystem
+USE_LANGUAGES=		c c++
+
+USE_TOOLS+=	pkg-config
+#TOOL_DEPENDS+=	${PYPKGPREFIX}-docutils-[0-9]*:../../textproc/py-docutils
+
+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
+
+#SUBST_CLASSES+=		nogit
+#SUBST_STAGE.nogit=	pre-configure
+#SUBST_MESSAGE.nogit=	Set version
+#SUBST_FILES.nogit+=	meson.build
+#SUBST_SED.nogit+=	-e 's/git =/\#git =/g'
+#SUBST_SED.nogit+=	-e 's/git.found()/false/g'
+#SUBST_SED.nogit+=	-e '/project_version/s/@0@/${PKGVERSION}/g'
+
+#SUBST_CLASSES+=		conf
+#SUBST_STAGE.conf=	pre-configure
+#SUBST_MESSAGE.conf=	Set SYSCONFDIR
+#SUBST_FILES.conf+=	src/config.cpp
+#SUBST_SED.conf+=	-e 's|SYSCONFDIR "|"${PKG_SYSCONFBASE}|g'
+
+#EGDIR=		${PREFIX}/share/examples/waybar
+#CONF_FILES=	${EGDIR}/config.jsonc ${PKG_SYSCONFDIR}/config.jsonc
+#CONF_FILES+=	${EGDIR}/style.css ${PKG_SYSCONFDIR}/style.css
+
+.include "../../wip/gtk-layer-shell/buildlink3.mk"
+
+.include "../../devel/meson/build.mk"
+.include "../../devel/wayland/buildlink3.mk"
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sfwbar/PLIST b/sfwbar/PLIST
new file mode 100644
index 0000000000..49a9db74aa
--- /dev/null
+++ b/sfwbar/PLIST
@@ -0,0 +1,201 @@
+@comment $NetBSD$
+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-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-svg.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/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/idle.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-module.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/sway-lang.widget
+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.widget
+share/sfwbar/winops.widget
diff --git a/sfwbar/TODO b/sfwbar/TODO
new file mode 100644
index 0000000000..b1953cbc3c
--- /dev/null
+++ b/sfwbar/TODO
@@ -0,0 +1 @@
+Start pkg
diff --git a/sfwbar/distinfo b/sfwbar/distinfo
new file mode 100644
index 0000000000..dfe5cd32ea
--- /dev/null
+++ b/sfwbar/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (sfwbar-1.0_beta16.1-d30db7c77fde25093f55eae8203f5a4995768152.tar.gz) = a02801bb12d28d3917fbf0a3e70571741dbb81ff380ea9ae162326d2991a5ce7
+SHA512 (sfwbar-1.0_beta16.1-d30db7c77fde25093f55eae8203f5a4995768152.tar.gz) = a55c9c3b982ec1d452fa666cf664d760b45e45c990bcbe62d3e6eeebf0ba0e9fe2fd4707c3c5d311942103ff296bf1cdff239c9811dcdfaf8a6f9b7a45ccefbc
+Size (sfwbar-1.0_beta16.1-d30db7c77fde25093f55eae8203f5a4995768152.tar.gz) = 515619 bytes
+SHA1 (patch-modules_network.c) = 91f29ad52ddfb0e5acfe34eb3fa613629afe34e1
diff --git a/sfwbar/patches/patch-modules_network.c b/sfwbar/patches/patch-modules_network.c
new file mode 100644
index 0000000000..328aa2a783
--- /dev/null
+++ b/sfwbar/patches/patch-modules_network.c
@@ -0,0 +1,37 @@
+$NetBSD$
+
+--- 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