summaryrefslogtreecommitdiff
path: root/sysutils/smartmontools
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-07-15 20:17:45 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-07-15 20:17:45 +0000
commitaac216961972a4ead124bebdaefcd5f9c4da26b1 (patch)
treefc089556e3ff4d07c14757c25596a620fcd71c65 /sysutils/smartmontools
parent04b5aa0a34ecea184552f0994b389fccb37415a7 (diff)
downloadpkgsrc-aac216961972a4ead124bebdaefcd5f9c4da26b1.tar.gz
Initial import of smartmontools-5.32 from pkgsrc-wip, contributed by
<shattered at users.sourceforge.net> with some minor changes by me. The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA and SCSI hard disks. In many cases, these utilities will provide advanced warning of disk degradation and failure. This closes PR pkg/25616.
Diffstat (limited to 'sysutils/smartmontools')
-rw-r--r--sysutils/smartmontools/DESCR6
-rw-r--r--sysutils/smartmontools/Makefile26
-rw-r--r--sysutils/smartmontools/PLIST22
-rw-r--r--sysutils/smartmontools/distinfo5
-rw-r--r--sysutils/smartmontools/files/smartd.sh18
-rw-r--r--sysutils/smartmontools/patches/patch-aa56
6 files changed, 133 insertions, 0 deletions
diff --git a/sysutils/smartmontools/DESCR b/sysutils/smartmontools/DESCR
new file mode 100644
index 00000000000..540733329de
--- /dev/null
+++ b/sysutils/smartmontools/DESCR
@@ -0,0 +1,6 @@
+The smartmontools package contains two utility programs (smartctl
+and smartd) to control and monitor storage systems using the
+Self-Monitoring, Analysis and Reporting Technology System (SMART)
+built into most modern ATA and SCSI hard disks. In many cases,
+these utilities will provide advanced warning of disk degradation
+and failure.
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile
new file mode 100644
index 00000000000..85eb981e43a
--- /dev/null
+++ b/sysutils/smartmontools/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/15 20:17:45 xtraeme Exp $
+#
+
+DISTNAME= smartmontools-5.32
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=smartmontools/}
+
+MAINTAINER= shattered@users.sourceforge.net
+HOMEPAGE= http://smartmontools.sourceforge.net/
+COMMENT= Control and monitor storage systems using SMART
+
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+USE_PKGINSTALL= yes
+GNU_CONFIGURE= yes
+
+EGDIR= ${PREFIX}/share/examples/smartmontools
+
+CONF_FILES= ${EGDIR}/smartd.conf ${PKG_SYSCONFDIR}/smartd.conf
+RCD_SCRIPTS= smartd
+
+CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/smartmontools
+
+INSTALLATION_DIRS= ${EGDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/smartmontools/PLIST b/sysutils/smartmontools/PLIST
new file mode 100644
index 00000000000..a15e9bb05d5
--- /dev/null
+++ b/sysutils/smartmontools/PLIST
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/15 20:17:45 xtraeme Exp $
+man/man5/smartd.conf.5
+man/man8/smartctl.8
+man/man8/smartd.8
+sbin/smartctl
+sbin/smartd
+share/doc/smartmontools/AUTHORS
+share/doc/smartmontools/CHANGELOG
+share/doc/smartmontools/COPYING
+share/doc/smartmontools/INSTALL
+share/doc/smartmontools/NEWS
+share/doc/smartmontools/README
+share/doc/smartmontools/TODO
+share/doc/smartmontools/WARNINGS
+share/doc/smartmontools/examplescripts/Example1
+share/doc/smartmontools/examplescripts/Example2
+share/doc/smartmontools/examplescripts/Example3
+share/doc/smartmontools/examplescripts/README
+share/examples/smartmontools/smartd.conf
+@dirrm share/doc/smartmontools/examplescripts
+@dirrm share/doc/smartmontools
+@dirrm share/examples/smartmontools
diff --git a/sysutils/smartmontools/distinfo b/sysutils/smartmontools/distinfo
new file mode 100644
index 00000000000..fac29eddb06
--- /dev/null
+++ b/sysutils/smartmontools/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/15 20:17:45 xtraeme Exp $
+
+SHA1 (smartmontools-5.32.tar.gz) = 2af09136578ea59565ad00b3638afe9700ed26a2
+Size (smartmontools-5.32.tar.gz) = 408224 bytes
+SHA1 (patch-aa) = d9fd094b59b0e0f68e6ce6edc2b18342faa3b03a
diff --git a/sysutils/smartmontools/files/smartd.sh b/sysutils/smartmontools/files/smartd.sh
new file mode 100644
index 00000000000..21fe70af0d0
--- /dev/null
+++ b/sysutils/smartmontools/files/smartd.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: smartd.sh,v 1.1.1.1 2004/07/15 20:17:45 xtraeme Exp $
+#
+# PROVIDE: smartd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="smartd"
+rcvar=$name
+command="/usr/pkg/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+smartd_flags="-p $pidfile"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/sysutils/smartmontools/patches/patch-aa b/sysutils/smartmontools/patches/patch-aa
new file mode 100644
index 00000000000..477b16e476c
--- /dev/null
+++ b/sysutils/smartmontools/patches/patch-aa
@@ -0,0 +1,56 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/07/15 20:17:46 xtraeme Exp $
+
+--- Makefile.in.orig 2004-07-05 10:10:33.000000000 +0200
++++ Makefile.in 2004-07-15 22:11:59.000000000 +0200
+@@ -148,6 +148,7 @@
+ smartd_suffix = @smartd_suffix@
+ smartmontools_release_date = @smartmontools_release_date@
+ smartmontools_release_time = @smartmontools_release_time@
++examplesdir = $(prefix)/share/examples/@PACKAGE@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+
+@@ -251,8 +252,7 @@
+ NEWS \
+ README \
+ TODO \
+- WARNINGS \
+- smartd.conf
++ WARNINGS
+
+
+ sysconf_DATA = smartd.conf$(smartd_suffix)
+@@ -646,12 +646,12 @@
+ sysconfDATA_INSTALL = $(INSTALL_DATA)
+ install-sysconfDATA: $(sysconf_DATA)
+ @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++ $(mkinstalldirs) $(DESTDIR)$(examplesdir)
+ @list='$(sysconf_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f="`echo $$p | sed -e 's|^.*/||'`"; \
+- echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \
+- $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \
++ echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(examplesdir)/$$f"; \
++ $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(examplesdir)/$$f; \
+ done
+
+ uninstall-sysconfDATA:
+@@ -1079,16 +1079,7 @@
+ cat $(top_builddir)/tmp.tail >> $(srcdir)/smartd.conf.5.in
+ rm -f $(top_builddir)/tmp.head $(top_builddir)/tmp.tail $(top_builddir)/tmp.directives
+
+-install-initdDATA: $(initd_DATA)
+- $(mkinstalldirs) $(DESTDIR)$(initddir)
+- $(INSTALL_SCRIPT) $(top_builddir)/smartd.initd $(DESTDIR)$(initddir)/smartd$(smartd_suffix)
+- @echo -e "\n\n####################################################################\n#"
+- @echo -e "# PLEASE READ THIS BOX!\n#"
+- @echo -e "# To manually start the smartd daemon, run:\n# ${initddir}/smartd start\n#"
+- @echo -e "# To automatically start smartd on bootup, run:\n# /sbin/chkconfig --add smartd\n#"
+- @echo -e "# smartd can now use a configuration file ${sysconfdir}/smartd.conf. Do:\n# man smartd"
+- @echo -e "# to learn about it. A sample configuration file can be found in:\n# ${docdir}\n#"
+- @echo -e "####################################################################\n\n"
++install-initdDATA:
+
+ uninstall-initdDATA:
+ rm -rf $(DESTDIR)$(initddir)/smartd$(smartd_suffix)