From 09a853e0569b708592e7313f33dcc217a6345383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Glo=DFner?= Date: Mon, 10 Apr 2006 12:43:50 +0000 Subject: [PATCH] smartmontools: initial import --- smartmontools/.footprint | 14 ++++++++++++++ smartmontools/.md5sum | 2 ++ smartmontools/Pkgfile | 25 +++++++++++++++++++++++++ smartmontools/README | 11 +++++++++++ smartmontools/smartd | 26 ++++++++++++++++++++++++++ 5 files changed, 78 insertions(+) create mode 100644 smartmontools/.footprint create mode 100644 smartmontools/.md5sum create mode 100644 smartmontools/Pkgfile create mode 100644 smartmontools/README create mode 100644 smartmontools/smartd diff --git a/smartmontools/.footprint b/smartmontools/.footprint new file mode 100644 index 000000000..e28bdc49f --- /dev/null +++ b/smartmontools/.footprint @@ -0,0 +1,14 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/rc.d/ +-rwxr-xr-x root/root etc/rc.d/smartd +-rw-r--r-- root/root etc/smartd.conf +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man5/ +-rw-r--r-- root/root usr/man/man5/smartd.conf.5.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/smartctl.8.gz +-rw-r--r-- root/root usr/man/man8/smartd.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/smartctl +-rwxr-xr-x root/root usr/sbin/smartd diff --git a/smartmontools/.md5sum b/smartmontools/.md5sum new file mode 100644 index 000000000..56d75e286 --- /dev/null +++ b/smartmontools/.md5sum @@ -0,0 +1,2 @@ +482b47077510dbac2bf8ce72907ff9f8 smartd +53f6861a916169a88a9edb1848e27dd0 smartmontools-5.33.tar.gz diff --git a/smartmontools/Pkgfile b/smartmontools/Pkgfile new file mode 100644 index 000000000..1bd5e7f73 --- /dev/null +++ b/smartmontools/Pkgfile @@ -0,0 +1,25 @@ +# Description: Utilities to control and monitor S.M.A.R.T. hard drives +# URL: http://smartmontools.sourceforge.net/ +# Maintainer: Simon Gloßner, viper at hometux dot de +# Packager: Jürgen Daubert, juergen dot daubert at t-online dot de + +name=smartmontools +version=5.33 +release=1 +source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz \ + smartd) + +build () { + cd $name-$version + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc + make + make DESTDIR=$PKG install + + install -m 755 ../smartd $PKG/etc/rc.d + + rm -r $PKG/usr/share + rm -r $PKG/etc/rc.d/init.d +} diff --git a/smartmontools/README b/smartmontools/README new file mode 100644 index 000000000..bf5a85d47 --- /dev/null +++ b/smartmontools/README @@ -0,0 +1,11 @@ + +REQUIREMENTS + + To send email notifications smartd needs a mail binary. The contrib + port mailx is recommend for that purpose. + +PRE-INSTALL + +POST-INSTALL + +PRECAUTION diff --git a/smartmontools/smartd b/smartmontools/smartd new file mode 100644 index 000000000..c7c1396fa --- /dev/null +++ b/smartmontools/smartd @@ -0,0 +1,26 @@ +#!/bin/sh +# +# /etc/rc.d/smartd: start/stop smartd daemon +# + +case $1 in +start) + /usr/sbin/smartd -p /var/run/smartd.pid + ;; +stop) + killall -q /usr/sbin/smartd + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +reload) + kill -HUP `pidof smartd` + ;; +*) + echo "usage: $0 [start|stop|restart|reload]" + ;; +esac + +# End of file