aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/ssd_report/Makefile36
-rw-r--r--sysutils/ssd_report/distinfo3
-rw-r--r--sysutils/ssd_report/pkg-descr5
4 files changed, 45 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index edb1a8fccf90..e25dcd76668b 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1202,6 +1202,7 @@
SUBDIR += spinner
SUBDIR += spiped
SUBDIR += squashfs-tools
+ SUBDIR += ssd_report
SUBDIR += sshsudo
SUBDIR += ssid
SUBDIR += ssync
diff --git a/sysutils/ssd_report/Makefile b/sysutils/ssd_report/Makefile
new file mode 100644
index 000000000000..a1fa12c860b7
--- /dev/null
+++ b/sysutils/ssd_report/Makefile
@@ -0,0 +1,36 @@
+# $FreeBSD$
+
+PORTNAME= ssd_report
+DISTVERSION= 0.2
+CATEGORIES= sysutils
+
+MAINTAINER= dteske@FreeBSD.org
+COMMENT= SSD health report
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+FLAVORS= smart smartmontools
+FLAVOR?= ${FLAVORS:[1]}
+
+smart_RUN_DEPENDS= smart:sysutils/smart
+smartmontools_RUN_DEPENDS= smartctl:sysutils/smartmontools
+
+USE_GITHUB= yes
+GH_ACCOUNT= FrauBSD
+NO_ARCH= yes
+NO_BUILD= yes
+
+PLIST_FILES= sbin/ssd_report
+PORTDOCS= README.md
+
+OPTIONS_DEFINE= DOCS
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/ssd_report ${STAGEDIR}${PREFIX}/sbin
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/ssd_report/distinfo b/sysutils/ssd_report/distinfo
new file mode 100644
index 000000000000..9e52e1b7e5f2
--- /dev/null
+++ b/sysutils/ssd_report/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1529303779
+SHA256 (FrauBSD-ssd_report-0.2_GH0.tar.gz) = a56a76277dc095ef24dd954447e6ad86140838308e667d6143a84202a8c17f2c
+SIZE (FrauBSD-ssd_report-0.2_GH0.tar.gz) = 7715
diff --git a/sysutils/ssd_report/pkg-descr b/sysutils/ssd_report/pkg-descr
new file mode 100644
index 000000000000..f5c962798d58
--- /dev/null
+++ b/sysutils/ssd_report/pkg-descr
@@ -0,0 +1,5 @@
+Report SSD health by looking at SMART data. Supports `smartctl' from
+sysutils/smartmontools but prefers `smart' from sysutils/smart. Also
+supports JSON output upon request.
+
+WWW: https://fraubsd.org/ssd_report/