pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
i3blocks: add package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Wed Feb 11 22:12:13 2026 +0100
Changeset: b6da670f31f7d6c5bc54f0793607217ee0cc1682
Modified Files:
Makefile
Added Files:
i3blocks/DESCR
i3blocks/Makefile
i3blocks/PLIST
i3blocks/TODO
i3blocks/distinfo
i3blocks/patches/patch-sys.c
Log Message:
i3blocks: add package
Builds, untested.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b6da670f31f7d6c5bc54f0793607217ee0cc1682
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
i3blocks/DESCR | 13 +++++++++++++
i3blocks/Makefile | 21 +++++++++++++++++++++
i3blocks/PLIST | 5 +++++
i3blocks/TODO | 3 +++
i3blocks/distinfo | 6 ++++++
i3blocks/patches/patch-sys.c | 18 ++++++++++++++++++
7 files changed, 67 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 621e906ed9..6250085fef 100644
--- a/Makefile
+++ b/Makefile
@@ -1730,6 +1730,7 @@ SUBDIR+= hztool
SUBDIR+= i2pd
SUBDIR+= i2pd-git
SUBDIR+= i3-git
+SUBDIR+= i3blocks
SUBDIR+= i686-elf-binutils
SUBDIR+= i686-elf-gcc
SUBDIR+= iText
diff --git a/i3blocks/DESCR b/i3blocks/DESCR
new file mode 100644
index 0000000000..7abef5fcca
--- /dev/null
+++ b/i3blocks/DESCR
@@ -0,0 +1,13 @@
+3blocks is a feed generator for text based status bars. It executes
+your command lines and generates a status line from their output.
+Commands are scheduled at configured time intervals, upon signal
+reception or on clicks.
+
+The generated line is meant to be displayed by the i3 window manager
+through its i3bar component, as an alternative to i3status. This
+program naturally works out of the box with the sway Wayland
+compositor since it is a drop-in replacement for i3.
+
+i3blocks is meant to be highly flexible but intuitive. No library
+package is required, just output what your status bar expects, from
+your favorite programming language and your preferred format.
diff --git a/i3blocks/Makefile b/i3blocks/Makefile
new file mode 100644
index 0000000000..41809a11d7
--- /dev/null
+++ b/i3blocks/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+DISTNAME= i3blocks-1.5
+CATEGORIES= wm
+MASTER_SITES= ${MASTER_SITE_GITHUB:=vivien/}
+GITHUB_TAG= ${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/vivien/i3blocks/
+COMMENT= Hacker-friendly status_command for Sway and i3
+LICENSE= gnu-gpl-v3
+
+GNU_CONFIGURE= yes
+
+# pkg-config needed for autoreconf step
+USE_TOOLS+= autoconf automake autoreconf pkg-config
+
+pre-configure:
+ cd ${WRKSRC} && autoreconf -fiv
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/i3blocks/PLIST b/i3blocks/PLIST
new file mode 100644
index 0000000000..912a947b61
--- /dev/null
+++ b/i3blocks/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/i3blocks
+etc/i3blocks.conf
+man/man1/i3blocks.1
+share/bash-completion/completions/i3blocks
diff --git a/i3blocks/TODO b/i3blocks/TODO
new file mode 100644
index 0000000000..a132e3ac43
--- /dev/null
+++ b/i3blocks/TODO
@@ -0,0 +1,3 @@
+Test.
+
+Fix config file handling.
diff --git a/i3blocks/distinfo b/i3blocks/distinfo
new file mode 100644
index 0000000000..0b2891bc80
--- /dev/null
+++ b/i3blocks/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (i3blocks-1.5.tar.gz) = 6495b723bed05de9169ae6fa0c69bdfbe125b7a6b2be5f26de804730e70da1ba
+SHA512 (i3blocks-1.5.tar.gz) = 759829d59f94070251378d437891c2df05715fbd0b734c34dd41767d61957f301c6125b0058668295b8eeac29038fae6b2e8c194f903398ee736662213d1d534
+Size (i3blocks-1.5.tar.gz) = 66019 bytes
+SHA1 (patch-sys.c) = 42375f257b564f8b1dbde55d06882ccbaae8a9bb
diff --git a/i3blocks/patches/patch-sys.c b/i3blocks/patches/patch-sys.c
new file mode 100644
index 0000000000..e8b9fd8a3f
--- /dev/null
+++ b/i3blocks/patches/patch-sys.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+F_SETSIG is not portable, add hacky workaround.
+
+--- sys.c.orig 2026-02-11 21:09:41.513072679 +0000
++++ sys.c
+@@ -322,7 +322,11 @@ static int sys_setsig(int fd, int sig)
+ {
+ int rc;
+
++#ifdef F_SETSIG
+ rc = fcntl(fd, F_SETSIG, sig);
++#else
++ rc = -1;
++#endif
+ if (rc == -1) {
+ sys_errno("fcntl(%d, F_SETSIG, %d (%s))", fd, sig,
+ strsignal(sig));
Home |
Main Index |
Thread Index |
Old Index