pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/smartmontools Initial import of smartmontools...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2d3f0b503f91
branches: trunk
changeset: 478056:2d3f0b503f91
user: xtraeme <xtraeme%pkgsrc.org@localhost>
date: Thu Jul 15 20:17:45 2004 +0000
description:
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:
sysutils/smartmontools/DESCR | 6 +++
sysutils/smartmontools/Makefile | 26 +++++++++++++++
sysutils/smartmontools/PLIST | 22 ++++++++++++
sysutils/smartmontools/distinfo | 5 ++
sysutils/smartmontools/files/smartd.sh | 18 ++++++++++
sysutils/smartmontools/patches/patch-aa | 56 +++++++++++++++++++++++++++++++++
6 files changed, 133 insertions(+), 0 deletions(-)
diffs (157 lines):
diff -r 97f37096a274 -r 2d3f0b503f91 sysutils/smartmontools/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/smartmontools/DESCR Thu Jul 15 20:17:45 2004 +0000
@@ -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 -r 97f37096a274 -r 2d3f0b503f91 sysutils/smartmontools/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/smartmontools/Makefile Thu Jul 15 20:17:45 2004 +0000
@@ -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@localhost
+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 -r 97f37096a274 -r 2d3f0b503f91 sysutils/smartmontools/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/smartmontools/PLIST Thu Jul 15 20:17:45 2004 +0000
@@ -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 -r 97f37096a274 -r 2d3f0b503f91 sysutils/smartmontools/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/smartmontools/distinfo Thu Jul 15 20:17:45 2004 +0000
@@ -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 -r 97f37096a274 -r 2d3f0b503f91 sysutils/smartmontools/files/smartd.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/smartmontools/files/smartd.sh Thu Jul 15 20:17:45 2004 +0000
@@ -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 -r 97f37096a274 -r 2d3f0b503f91 sysutils/smartmontools/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/smartmontools/patches/patch-aa Thu Jul 15 20:17:45 2004 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index