pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/misc/nq
Module Name: pkgsrc
Committed By: vins
Date: Sat Aug 26 10:54:11 UTC 2023
Added Files:
pkgsrc/misc/nq: DESCR Makefile PLIST distinfo
pkgsrc/misc/nq/patches: patch-Makefile
Log Message:
misc/nq: import nq-0.5 from wip.
These small utilities allow creating very lightweight job queue systems
which require no setup, maintenance, supervision, or any long-running
processes.
The intended purpose is ad-hoc queuing of command lines (e.g. for building
several targets of a Makefile, downloading multiple files one at a time,
running benchmarks in several configurations, or simply as a glorified
`nohup`), but as any good Unix tool, it can be abused for whatever you like.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/nq/DESCR pkgsrc/misc/nq/Makefile \
pkgsrc/misc/nq/PLIST pkgsrc/misc/nq/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/nq/patches/patch-Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/misc/nq/DESCR
diff -u /dev/null pkgsrc/misc/nq/DESCR:1.1
--- /dev/null Sat Aug 26 10:54:11 2023
+++ pkgsrc/misc/nq/DESCR Sat Aug 26 10:54:11 2023
@@ -0,0 +1,8 @@
+These small utilities allow creating very lightweight job queue systems
+which require no setup, maintenance, supervision, or any long-running
+processes.
+
+The intended purpose is ad-hoc queuing of command lines (e.g. for building
+several targets of a Makefile, downloading multiple files one at a time,
+running benchmarks in several configurations, or simply as a glorified
+`nohup`), but as any good Unix tool, it can be abused for whatever you like.
Index: pkgsrc/misc/nq/Makefile
diff -u /dev/null pkgsrc/misc/nq/Makefile:1.1
--- /dev/null Sat Aug 26 10:54:11 2023
+++ pkgsrc/misc/nq/Makefile Sat Aug 26 10:54:11 2023
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2023/08/26 10:54:11 vins Exp $
+
+DISTNAME= nq-0.5
+CATEGORIES= misc sysutils
+MASTER_SITES= https://git.vuxu.org/nq/snapshot/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://git.vuxu.org/nq/about/
+COMMENT= Command line queueing utility
+LICENSE= public-domain
+
+USE_TOOLS+= perl:test
+
+REPLACE_SH= tq
+
+TEST_TARGET= check
+
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= MANDIR=${PREFIX}/${PKGMANDIR}
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/misc/nq/PLIST
diff -u /dev/null pkgsrc/misc/nq/PLIST:1.1
--- /dev/null Sat Aug 26 10:54:11 2023
+++ pkgsrc/misc/nq/PLIST Sat Aug 26 10:54:11 2023
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2023/08/26 10:54:11 vins Exp $
+bin/fq
+bin/nq
+bin/tq
+man/man1/fq
+man/man1/nq
+man/man1/tq
Index: pkgsrc/misc/nq/distinfo
diff -u /dev/null pkgsrc/misc/nq/distinfo:1.1
--- /dev/null Sat Aug 26 10:54:11 2023
+++ pkgsrc/misc/nq/distinfo Sat Aug 26 10:54:11 2023
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2023/08/26 10:54:11 vins Exp $
+
+BLAKE2s (nq-0.5.tar.gz) = 2e677c13154b3bd0026795a172dcb9fb00f33cd667592b3a8edc0246eac372e0
+SHA512 (nq-0.5.tar.gz) = 784031971df0585c38c8e47b37d1a5ce73c35c71ab6c9abb7c3df6450eb26a53ad0e649f86a40a742201125ef88e246db34781491935e709ae8fc66afcdf6c0e
+Size (nq-0.5.tar.gz) = 12229 bytes
+SHA1 (patch-Makefile) = f21ad79a4ec3862f61c0f8152c67bd3b1c78ed6e
Index: pkgsrc/misc/nq/patches/patch-Makefile
diff -u /dev/null pkgsrc/misc/nq/patches/patch-Makefile:1.1
--- /dev/null Sat Aug 26 10:54:11 2023
+++ pkgsrc/misc/nq/patches/patch-Makefile Sat Aug 26 10:54:11 2023
@@ -0,0 +1,42 @@
+$NetBSD: patch-Makefile,v 1.1 2023/08/26 10:54:11 vins Exp $
+
+* Do not override CFLAGS.
+* Provide a pkgsrc-compliant install target.
+
+--- Makefile.orig 2022-03-26 14:57:40.000000000 +0000
++++ Makefile
+@@ -1,25 +1,26 @@
+-ALL=nq fq tq
++ALL=nq fq
++MAN=nq fq tq
+
+-CFLAGS=-g -Wall -O2
++CFLAGS=-Wall
+
+ DESTDIR=
+ PREFIX=/usr/local
+ BINDIR=$(PREFIX)/bin
+ MANDIR=$(PREFIX)/share/man
+
+-INSTALL=install
+-
+ all: $(ALL)
+
+ clean: FRC
+- rm -f nq fq
++ rm -f $(ALL)
+
+ check: FRC all
+ prove -v ./tests
+
+ install: FRC all
+- mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+- $(INSTALL) -m0755 $(ALL) $(DESTDIR)$(BINDIR)
+- $(INSTALL) -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1
++ $(BSD_INSTALL_PROGRAM_DIR) $(DESTDIR)$(BINDIR)
++ $(BSD_INSTALL_PROGRAM) $(ALL) $(DESTDIR)$(BINDIR)
++ $(BSD_INSTALL_SCRIPT) tq $(DESTDIR)$(BINDIR)
++ $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(MANDIR)/man1
++ $(BSD_INSTALL_MAN) $(MAN) $(DESTDIR)$(MANDIR)/man1
+
+ FRC:
Home |
Main Index |
Thread Index |
Old Index