diff options
author | Steve Wills <swills@FreeBSD.org> | 2019-10-03 01:46:41 +0800 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2019-10-03 01:46:41 +0800 |
commit | c5df23e8ca2dcf6abf990ad519dfe32516c454a2 (patch) | |
tree | 901a13e58482de3e555a7f839f76ad8c89147ce5 /sysutils/smartmontools | |
parent | c9e48d5c4b1593ad8391e5dd322df1bff943de58 (diff) | |
download | freebsd-ports-gnome-c5df23e8ca2dcf6abf990ad519dfe32516c454a2.tar.gz freebsd-ports-gnome-c5df23e8ca2dcf6abf990ad519dfe32516c454a2.tar.zst freebsd-ports-gnome-c5df23e8ca2dcf6abf990ad519dfe32516c454a2.zip |
sysutils/smartmontools: support areca controllers and nvme
While here, ensure mail starts before smartd
PR: 240519
Submitted by: VVD <vvd@unislabs.com>
Approved by: samm@os2.kiev.ua (maintianer)
Diffstat (limited to 'sysutils/smartmontools')
-rw-r--r-- | sysutils/smartmontools/Makefile | 2 | ||||
-rw-r--r-- | sysutils/smartmontools/files/smart.in | 5 | ||||
-rw-r--r-- | sysutils/smartmontools/files/smartd.in | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile index e16a26115bde..2bf1a9e3f2c6 100644 --- a/sysutils/smartmontools/Makefile +++ b/sysutils/smartmontools/Makefile @@ -3,7 +3,7 @@ PORTNAME= smartmontools PORTVERSION= 7.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF diff --git a/sysutils/smartmontools/files/smart.in b/sysutils/smartmontools/files/smart.in index 7cc73ac17893..58480b3fe214 100644 --- a/sysutils/smartmontools/files/smart.in +++ b/sysutils/smartmontools/files/smart.in @@ -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 @@ -48,6 +48,9 @@ case "${daily_status_smart_enable}" in ciss*) devflags="-dcciss,${device##ciss[0-9]*,}" device="/dev/${device%,[0-9]*}" ;; + arcmsr*) devflags="-dareca,${device##arcmsr[0-9]*,}" + device="/dev/${device%,[0-9]*}" + ;; /*) ;; *) device="/dev/${device}" ;; diff --git a/sysutils/smartmontools/files/smartd.in b/sysutils/smartmontools/files/smartd.in index c44f5bf72563..9304c90b5140 100644 --- a/sysutils/smartmontools/files/smartd.in +++ b/sysutils/smartmontools/files/smartd.in @@ -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: |