svn commit: r513591 - in head/sysutils/smartmontools: . files
Steve Wills
swills at FreeBSD.org
Wed Oct 2 17:46:42 UTC 2019
Author: swills
Date: Wed Oct 2 17:46:41 2019
New Revision: 513591
URL: https://svnweb.freebsd.org/changeset/ports/513591
Log:
sysutils/smartmontools: support areca controllers and nvme
While here, ensure mail starts before smartd
PR: 240519
Submitted by: VVD <vvd at unislabs.com>
Approved by: samm at os2.kiev.ua (maintianer)
Modified:
head/sysutils/smartmontools/Makefile (contents, props changed)
head/sysutils/smartmontools/files/smart.in
head/sysutils/smartmontools/files/smartd.in
Modified: head/sysutils/smartmontools/Makefile
==============================================================================
--- head/sysutils/smartmontools/Makefile Wed Oct 2 16:20:16 2019 (r513590)
+++ head/sysutils/smartmontools/Makefile Wed Oct 2 17:46:41 2019 (r513591)
@@ -3,7 +3,7 @@
PORTNAME= smartmontools
PORTVERSION= 7.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SF
Modified: head/sysutils/smartmontools/files/smart.in
==============================================================================
--- head/sysutils/smartmontools/files/smart.in Wed Oct 2 16:20:16 2019 (r513590)
+++ head/sysutils/smartmontools/files/smart.in Wed Oct 2 17:46:41 2019 (r513591)
@@ -16,7 +16,7 @@ smartctl=%%PREFIX%%/sbin/smartctl
case "${daily_status_smart_devices}" in
# XXX AUTO mode selects only regular ad/da disks
[Aa][Uu][Tt][Oo])
- daily_status_smart_devices="$(sysctl -n kern.disks | sed -E 's/[[:<:]](cd|ar)[0-9]+//g')"
+ daily_status_smart_devices="$(sysctl -n kern.disks | sed -E 's/[[:<:]](cd|ar)[0-9]+//g; s/nvd/nvme/g')"
;;
*) ;;
esac
@@ -46,6 +46,9 @@ case "${daily_status_smart_enable}" in
device="/dev/${device%,[0-9]*}"
;;
ciss*) devflags="-dcciss,${device##ciss[0-9]*,}"
+ device="/dev/${device%,[0-9]*}"
+ ;;
+ arcmsr*) devflags="-dareca,${device##arcmsr[0-9]*,}"
device="/dev/${device%,[0-9]*}"
;;
/*) ;;
Modified: head/sysutils/smartmontools/files/smartd.in
==============================================================================
--- head/sysutils/smartmontools/files/smartd.in Wed Oct 2 16:20:16 2019 (r513590)
+++ head/sysutils/smartmontools/files/smartd.in Wed Oct 2 17:46:41 2019 (r513591)
@@ -3,7 +3,7 @@
# $FreeBSD$
#
# PROVIDE: smartd
-# REQUIRE: LOGIN
+# REQUIRE: root ldconfig devfs syslogd mail
# KEYWORD: shutdown nojail
#
# Define these smartd_* variables in one of these files:
More information about the svn-ports-head
mailing list