git: 3be4a4bdee2e - main - sysutils/amrstat: Fix periodic script
Jung-uk Kim
jkim at FreeBSD.org
Mon Sep 20 21:54:31 UTC 2021
The branch main has been updated by jkim:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3be4a4bdee2e4c5009ca6f6386c57c90acf07a9a
commit 3be4a4bdee2e4c5009ca6f6386c57c90acf07a9a
Author: Leonid Nevecherya <nevecherya at gmail.com>
AuthorDate: 2021-09-20 21:44:17 +0000
Commit: Jung-uk Kim <jkim at FreeBSD.org>
CommitDate: 2021-09-20 21:53:58 +0000
sysutils/amrstat: Fix periodic script
Replace a GNU-specific option with more generic option.
PR: 258625
---
sysutils/amrstat/Makefile | 1 +
sysutils/amrstat/files/407.status-amr-raid.in | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/sysutils/amrstat/Makefile b/sysutils/amrstat/Makefile
index 6a64fe7abe73..5720e2928017 100644
--- a/sysutils/amrstat/Makefile
+++ b/sysutils/amrstat/Makefile
@@ -2,6 +2,7 @@
PORTNAME= amrstat
PORTVERSION= 20070216
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= LOCAL/jkim
diff --git a/sysutils/amrstat/files/407.status-amr-raid.in b/sysutils/amrstat/files/407.status-amr-raid.in
index af1a5d1e9c22..9f3bf62558a1 100644
--- a/sysutils/amrstat/files/407.status-amr-raid.in
+++ b/sysutils/amrstat/files/407.status-amr-raid.in
@@ -46,7 +46,7 @@ case "$daily_status_amr_raid_enable" in
esac
fi
lines=`wc -l ${ctrl_log}.today | awk '{ print $1 }'`
- diff -u -${lines} ${ctrl_log}.yesterday ${ctrl_log}.today
+ diff -U ${lines} ${ctrl_log}.yesterday ${ctrl_log}.today
raid_rc=$?
if test $raid_rc -eq 0; then
cat ${ctrl_log}.today
More information about the dev-commits-ports-all
mailing list