Two enhancements
User Facing: Avoid error in the diff command run by the periodic script included in this port. Port Infrastructure: Reorder the port Makefile to be compliant with the FreeBSD port infrastructure. PR: 234383 Submitted by: takefu@airport.fm
This commit is contained in:
parent
a7a8d8bb19
commit
867623eea6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=488801
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= tw_cli
|
||||
PORTVERSION= 9.5.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/
|
||||
DISTNAME= CLI_freebsd-from_the_10-2-2-1_9-5-5-1_codesets
|
||||
@ -17,13 +18,12 @@ LICENSE_TEXT= Source recipient must acknowledge license.\
|
||||
See https://www.broadcom.com/cs/Satellite?pagename=AVG2/Utilities/EulaMsg
|
||||
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
|
||||
|
||||
USES= zip
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
USES= zip
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
SUB_FILES= 407.status-3ware-raid
|
||||
PORTDOCS= tw_cli.8.html
|
||||
PLIST_FILES= etc/periodic/daily/407.status-3ware-raid\
|
||||
|
@ -43,7 +43,7 @@ case "$daily_status_3ware_raid_enable" in
|
||||
mv -f ${ctrl_log}.today ${ctrl_log}.yesterday
|
||||
${tw_cli} info ${ctrl} > ${ctrl_log}.today
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user