pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/rtty rtty: allow overriding the number of sav...
details: https://anonhg.NetBSD.org/pkgsrc/rev/133700e7233a
branches: trunk
changeset: 458118:133700e7233a
user: he <he%pkgsrc.org@localhost>
date: Fri Sep 10 08:28:21 2021 +0000
description:
rtty: allow overriding the number of saved daily log files
via NLOGS environment variable.
diffstat:
sysutils/rtty/Makefile | 4 ++--
sysutils/rtty/patches/patch-agelogs.sh | 23 +++++++++++++++++++++++
2 files changed, 25 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 3afe887029bc -r 133700e7233a sysutils/rtty/Makefile
--- a/sysutils/rtty/Makefile Thu Sep 09 22:41:43 2021 +0000
+++ b/sysutils/rtty/Makefile Fri Sep 10 08:28:21 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.33 2017/01/19 18:52:26 agc Exp $
+# $NetBSD: Makefile,v 1.34 2021/09/10 08:28:21 he Exp $
DISTNAME= rtty-3.2
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://gatekeeper.hpl.hp.com/archive/pub/misc/vixie/
MASTER_SITES+= ftp://gatekeeper.hpl.hp.com/pub/misc/vixie/
diff -r 3afe887029bc -r 133700e7233a sysutils/rtty/patches/patch-agelogs.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/rtty/patches/patch-agelogs.sh Fri Sep 10 08:28:21 2021 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-agelogs.sh,v 1.1 2021/09/10 08:28:21 he Exp $
+
+Allow overriding the number of daily saved logs via
+NLOGS environment variable.
+
+--- agelogs.sh.orig 1996-08-23 22:25:26.000000000 +0000
++++ agelogs.sh
+@@ -19,12 +19,14 @@
+
+ agelog=/usr/etc/agelog
+
++nlogs=${NLOGS:-7}
++
+ cd DESTPATH/dev
+ for tty in *
+ do
+ $agelog -m DESTPATH/log/$tty \
+ -p `cat DESTPATH/pid/$tty` \
+- 7 \
++ $nlogs \
+ DESTPATH/log/.aged
+ done
+
Home |
Main Index |
Thread Index |
Old Index