summaryrefslogtreecommitdiff
path: root/sysutils/smartmontools
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/smartmontools')
-rw-r--r--sysutils/smartmontools/Makefile1
-rw-r--r--sysutils/smartmontools/files/smart.in5
-rw-r--r--sysutils/smartmontools/files/smartd.in2
3 files changed, 6 insertions, 2 deletions
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile
index 85d841432579..e4cc6bc5a5a5 100644
--- a/sysutils/smartmontools/Makefile
+++ b/sysutils/smartmontools/Makefile
@@ -1,5 +1,6 @@
PORTNAME= smartmontools
DISTVERSION= 7.5
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF
diff --git a/sysutils/smartmontools/files/smart.in b/sysutils/smartmontools/files/smart.in
index 8460df0f231a..606bd02cefa3 100644
--- a/sysutils/smartmontools/files/smart.in
+++ b/sysutils/smartmontools/files/smart.in
@@ -13,7 +13,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|vtbd)[0-9]+//g; s/n(da|vd)/nvme/g')"
+ daily_status_smart_devices="$(sysctl -n kern.disks | sed -E 's/[[:<:]](cd|ar|vtbd|mfid)[0-9]+//g; s/n(da|vd)/nvme/g')"
;;
*) ;;
esac
@@ -51,6 +51,9 @@ case "${daily_status_smart_enable}" in
mrsas*) devflags="-dmegaraid,${device##mrsas[0-9]*,}"
device="/dev/${device%,[0-9]*}"
;;
+ pass*) devflags="${device#pass[0-9]*,}"
+ device="/dev/${device%%,[:alpha:0-9-]*}"
+ ;;
/*) ;;
*) device="/dev/${device}"
;;
diff --git a/sysutils/smartmontools/files/smartd.in b/sysutils/smartmontools/files/smartd.in
index 1176089041ad..832b3bb6b2c7 100644
--- a/sysutils/smartmontools/files/smartd.in
+++ b/sysutils/smartmontools/files/smartd.in
@@ -1,7 +1,7 @@
#!/bin/sh
# PROVIDE: smartd
-# REQUIRE: root ldconfig devfs syslogd mail
+# REQUIRE: DAEMON mail
# KEYWORD: shutdown nojail
#
# Define these smartd_* variables in one of these files: