pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/mlog



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Fri Jan 19 15:58:00 UTC 2024

Added Files:
        pkgsrc/sysutils/mlog: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/mlog/patches: patch-Makefile

Log Message:
Add mlog: Merge log files by timestamp

mlog reads lines from multiple log files and prints them in
chronological order. The files need to start with comparable timestamps.
mlog prints the oldest line first, thus preserving relative order.

mlog behaves like a combination of 'sort -m' and 'tail -f'.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/mlog/DESCR \
    pkgsrc/sysutils/mlog/Makefile pkgsrc/sysutils/mlog/PLIST \
    pkgsrc/sysutils/mlog/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/mlog/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/sysutils/mlog/DESCR
diff -u /dev/null pkgsrc/sysutils/mlog/DESCR:1.1
--- /dev/null   Fri Jan 19 15:58:00 2024
+++ pkgsrc/sysutils/mlog/DESCR  Fri Jan 19 15:57:59 2024
@@ -0,0 +1,5 @@
+mlog reads lines from multiple log files and prints them in
+chronological order. The files need to start with comparable timestamps.
+mlog prints the oldest line first, thus preserving relative order.
+
+mlog behaves like a combination of 'sort -m' and 'tail -f'.
Index: pkgsrc/sysutils/mlog/Makefile
diff -u /dev/null pkgsrc/sysutils/mlog/Makefile:1.1
--- /dev/null   Fri Jan 19 15:58:00 2024
+++ pkgsrc/sysutils/mlog/Makefile       Fri Jan 19 15:57:59 2024
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2024/01/19 15:57:59 schmonz Exp $
+
+DISTNAME=              mlog-0.1
+CATEGORIES=            sysutils
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=leahneukirchen/}
+GITHUB_TAG=            v${PKGVERSION_NOREV}
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://github.com/leahneukirchen/mlog/
+COMMENT=               Merge log files by timestamp
+LICENSE=               public-domain
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
+do-install:
+       cd ${WRKSRC}; \
+       ${INSTALL_PROGRAM} ${PKGBASE} ${DESTDIR}${PREFIX}/bin/; \
+       ${INSTALL_DATA} ${PKGBASE}.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/mlog/PLIST
diff -u /dev/null pkgsrc/sysutils/mlog/PLIST:1.1
--- /dev/null   Fri Jan 19 15:58:00 2024
+++ pkgsrc/sysutils/mlog/PLIST  Fri Jan 19 15:57:59 2024
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2024/01/19 15:57:59 schmonz Exp $
+bin/mlog
+man/man1/mlog.1
Index: pkgsrc/sysutils/mlog/distinfo
diff -u /dev/null pkgsrc/sysutils/mlog/distinfo:1.1
--- /dev/null   Fri Jan 19 15:58:00 2024
+++ pkgsrc/sysutils/mlog/distinfo       Fri Jan 19 15:58:00 2024
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2024/01/19 15:58:00 schmonz Exp $
+
+BLAKE2s (mlog-0.1.tar.gz) = 071e55e72be3493449851e85bd1e64abce71282edcd918c2f3a3157c70f9d262
+SHA512 (mlog-0.1.tar.gz) = 5e68d0554c79af546738d360bdd7997e308b4377a887db758a8f04274f36f8b4010463409d9932c51b14f9cf6a2d3e2f4a72f61171a039379c6183ebb2c4dbae
+Size (mlog-0.1.tar.gz) = 3931 bytes
+SHA1 (patch-Makefile) = dc2678274e12482b7c6879d3a7c7ec5fc162b250

Index: pkgsrc/sysutils/mlog/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/mlog/patches/patch-Makefile:1.1
--- /dev/null   Fri Jan 19 15:58:00 2024
+++ pkgsrc/sysutils/mlog/patches/patch-Makefile Fri Jan 19 15:58:00 2024
@@ -0,0 +1,14 @@
+$NetBSD: patch-Makefile,v 1.1 2024/01/19 15:58:00 schmonz Exp $
+
+Respect CFLAGS.
+
+--- Makefile.orig      2024-01-12 17:51:01.000000000 +0000
++++ Makefile
+@@ -1,6 +1,6 @@
+ ALL=mlog
+ 
+-CFLAGS=-g -O2 -Wall -Wno-unused-parameter -Wextra -Wwrite-strings
++CFLAGS?=-g -O2 -Wall -Wno-unused-parameter -Wextra -Wwrite-strings
+ 
+ all: $(ALL)
+ 



Home | Main Index | Thread Index | Old Index