Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2017 22:55:39 +0000 (UTC)
From:      Joseph Mingrone <jrm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r453260 - in head/sysutils: . smart
Message-ID:  <201710312255.v9VMtd1C060491@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jrm
Date: Tue Oct 31 22:55:39 2017
New Revision: 453260
URL: https://svnweb.freebsd.org/changeset/ports/453260

Log:
  New port, sysutils/smart: Output disk SMART values
  
  WWW: https://github.com/ctuffli/smart

Added:
  head/sysutils/smart/
  head/sysutils/smart/Makefile   (contents, props changed)
  head/sysutils/smart/distinfo   (contents, props changed)
  head/sysutils/smart/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Tue Oct 31 22:20:27 2017	(r453259)
+++ head/sysutils/Makefile	Tue Oct 31 22:55:39 2017	(r453260)
@@ -1103,6 +1103,7 @@
     SUBDIR += sloth
     SUBDIR += slst
     SUBDIR += slurm-wlm
+    SUBDIR += smart
     SUBDIR += smartmontools
     SUBDIR += smenu
     SUBDIR += smp_utils

Added: head/sysutils/smart/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/smart/Makefile	Tue Oct 31 22:55:39 2017	(r453260)
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME=	smart
+DISTVERSION=	0.0.6
+CATEGORIES=	sysutils
+
+MAINTAINER=	jrm@FreeBSD.org
+COMMENT=	Output disk SMART values
+
+LICENSE=	ISCL
+
+IGNORE_FreeBSD_10=	Requires FreeBSD 11
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	ctuffli
+
+PLIST_FILES=	sbin/atasmart sbin/nvmesmart sbin/scsismart sbin/smart
+
+post-patch:
+	@${REINPLACE_CMD} -e "s|./${PORTNAME}|${PREFIX}/sbin/${PORTNAME}|" \
+		${WRKSRC}/[ans]*${PORTNAME}
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
+	${INSTALL_SCRIPT} ${WRKSRC}/[ans]*${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
+
+.include <bsd.port.mk>

Added: head/sysutils/smart/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/smart/distinfo	Tue Oct 31 22:55:39 2017	(r453260)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1509490147
+SHA256 (ctuffli-smart-0.0.6_GH0.tar.gz) = db664a96eec757939daf52f751e736a843e5127e5907fc92487463ff3762c9cd
+SIZE (ctuffli-smart-0.0.6_GH0.tar.gz) = 14484

Added: head/sysutils/smart/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/smart/pkg-descr	Tue Oct 31 22:55:39 2017	(r453260)
@@ -0,0 +1,14 @@
+The format and location of SMART / health data varies across protocols.  To
+simplify the output, this application uses a Dumb Unified Model of SMART
+Buffers. In this model, SMART data is located in one or more log pages.  Each
+page contains one or more values ("attributes") differentiated by an ID.  Note
+that ID's are only unique within a log page. Thus, the application outputs:
+
+<Log Page ID> <Attribute ID> <Attribute value>
+
+for each selected attribute.
+
+See the shell scripts atasmart, nvmesmart, and scsismart for examples of parsing
+the output.
+
+WWW: https://github.com/ctuffli/smart



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710312255.v9VMtd1C060491>