Module Name: pkgsrc
Committed By: leot
Date: Sun Feb 1 20:30:52 UTC 2026
Added Files:
pkgsrc/x11/xssstate: DESCR Makefile PLIST distinfo
Log Message:
xssstate: import xssstate-1.1 as x11/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.
Packaged in pkgsrc-wip by myself.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/xssstate/DESCR pkgsrc/x11/xssstate/Makefile \
pkgsrc/x11/xssstate/PLIST pkgsrc/x11/xssstate/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/x11/xssstate/DESCR
diff -u /dev/null pkgsrc/x11/xssstate/DESCR:1.1
--- /dev/null Sun Feb 1 20:30:52 2026
+++ pkgsrc/x11/xssstate/DESCR Sun Feb 1 20:30:52 2026
@@ -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.
Index: pkgsrc/x11/xssstate/Makefile
diff -u /dev/null pkgsrc/x11/xssstate/Makefile:1.1
--- /dev/null Sun Feb 1 20:30:52 2026
+++ pkgsrc/x11/xssstate/Makefile Sun Feb 1 20:30:52 2026
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2026/02/01 20:30:52 leot Exp $
+
+DISTNAME= xssstate-1.1
+CATEGORIES= x11
+MASTER_SITES= https://dl.suckless.org/tools/
+
+MAINTAINER= leot%NetBSD.org@localhost
+HOMEPAGE= https://tools.suckless.org/x/xssstate/
+COMMENT= Simple tool to retrieve the X screensaver state
+LICENSE= mit
+
+USE_CC_FEATURES= 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"
Index: pkgsrc/x11/xssstate/PLIST
diff -u /dev/null pkgsrc/x11/xssstate/PLIST:1.1
--- /dev/null Sun Feb 1 20:30:52 2026
+++ pkgsrc/x11/xssstate/PLIST Sun Feb 1 20:30:52 2026
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2026/02/01 20:30:52 leot Exp $
+bin/xssstate
+man/man1/xssstate.1
Index: pkgsrc/x11/xssstate/distinfo
diff -u /dev/null pkgsrc/x11/xssstate/distinfo:1.1
--- /dev/null Sun Feb 1 20:30:52 2026
+++ pkgsrc/x11/xssstate/distinfo Sun Feb 1 20:30:52 2026
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2026/02/01 20:30:52 leot Exp $
+
+BLAKE2s (xssstate-1.1.tar.gz) = 2a4334c6e22485b5038feb39326c425eae3823f0a617ceea1494dfea3a87d424
+SHA512 (xssstate-1.1.tar.gz) = 96c59e9cc7b78aec8a95040cd1c4c6aaeb85f092c5a52cf64a62ceeb3fed65bdd3eb6f070b3d66ae8ec2544371a236f32e83e0a5c45e6d21f2bf7791b5c0d519
+Size (xssstate-1.1.tar.gz) = 3725 bytes