Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Sun Feb 1 15:53:54 2026 +0100
Changeset: 53eb3861e725620136577c8573b41ceb75ce2ecc
Added Files:
xssstate/DESCR
xssstate/Makefile
xssstate/PLIST
xssstate/distinfo
Log Message:
xssstate: Import xssstate-1.1 as wip/xssstate
This is a simple utility to get the state of the X screensaver extension.
These states include the idle time, the screensaver state and the time
how long to wait until the screensaver should be active.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=53eb3861e725620136577c8573b41ceb75ce2ecc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
xssstate/DESCR | 4 ++++
xssstate/Makefile | 30 ++++++++++++++++++++++++++++++
xssstate/PLIST | 3 +++
xssstate/distinfo | 5 +++++
4 files changed, 42 insertions(+)
diffs:
diff --git a/xssstate/DESCR b/xssstate/DESCR
new file mode 100644
index 0000000000..bc18628156
--- /dev/null
+++ b/xssstate/DESCR
@@ -0,0 +1,4 @@
+This is a simple utility to get the state of the X screensaver extension.
+
+These states include the idle time, the screensaver state and the time
+how long to wait until the screensaver should be active.
diff --git a/xssstate/Makefile b/xssstate/Makefile
new file mode 100644
index 0000000000..ff90a04902
--- /dev/null
+++ b/xssstate/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD$
+
+DISTNAME= xssstate-1.1
+CATEGORIES= x11
+MASTER_SITES= https://dl.suckless.org/tools/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://tools.suckless.org/x/xssstate/
+COMMENT= Simple tool to retrieve the X screensaver state
+LICENSE= mit
+
+USE_LANGUAGES= c99
+
+SUBST_CLASSES+= makefile
+SUBST_STAGE.makefile= pre-configure
+SUBST_MESSAGE.makefile= Fixing config.mk
+SUBST_FILES.makefile= config.mk
+SUBST_SED.makefile= -e 's,/usr/local,${PREFIX},g'
+SUBST_SED.makefile+= -e 's,share/man,${PKGMANDIR},g'
+SUBST_SED.makefile+= -e 's,^CFLAGS *= ,CFLAGS += ,'
+SUBST_SED.makefile+= -e 's,^CPPFLAGS *= ,CPPFLAGS += ,'
+SUBST_SED.makefile+= -e 's,^LDFLAGS *= ,LDFLAGS += ,'
+SUBST_SED.makefile+= -e '/^CFLAGS/s/-g//'
+SUBST_SED.makefile+= -e '/^CFLAGS/s/-O0//'
+SUBST_SED.makefile+= -e '/^LDFLAGS/s/-g//'
+SUBST_SED.makefile+= -e 's/cc/${CC:Q}/'
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXScrnSaver/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/xssstate/PLIST b/xssstate/PLIST
new file mode 100644
index 0000000000..fdcfc47aac
--- /dev/null
+++ b/xssstate/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/xssstate
+man/man1/xssstate.1
diff --git a/xssstate/distinfo b/xssstate/distinfo
new file mode 100644
index 0000000000..4f8c4de603
--- /dev/null
+++ b/xssstate/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.25 2026/01/30 10:32:57 leot Exp $
+
+BLAKE2s (xssstate-1.1.tar.gz) = 2a4334c6e22485b5038feb39326c425eae3823f0a617ceea1494dfea3a87d424
+SHA512 (xssstate-1.1.tar.gz) = 96c59e9cc7b78aec8a95040cd1c4c6aaeb85f092c5a52cf64a62ceeb3fed65bdd3eb6f070b3d66ae8ec2544371a236f32e83e0a5c45e6d21f2bf7791b5c0d519
+Size (xssstate-1.1.tar.gz) = 3725 bytes