ver bump #62717
authorMike Frysinger <vapier@gentoo.org>
Sun, 10 Oct 2004 01:19:01 +0000 (01:19 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 10 Oct 2004 01:19:01 +0000 (01:19 +0000)
sys-apps/smartmontools/ChangeLog
sys-apps/smartmontools/Manifest
sys-apps/smartmontools/files/digest-smartmontools-5.33 [new file with mode: 0644]
sys-apps/smartmontools/files/smartd.confd [new file with mode: 0644]
sys-apps/smartmontools/files/smartd.rc
sys-apps/smartmontools/smartmontools-5.33.ebuild [new file with mode: 0644]

index e894bb4b557ed1700029011b357d1ec4e4ce1fd8..a52846282232ebfdf54d3b20895623e1268d41e1 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-apps/smartmontools
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/ChangeLog,v 1.34 2004/06/24 22:26:58 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/ChangeLog,v 1.35 2004/10/10 01:19:01 vapier Exp $
+
+*smartmontools-5.33 (09 Oct 2004)
+
+  09 Oct 2004; Mike Frysinger <vapier@gentoo.org> +files/smartd.confd,
+  files/smartd.rc, +smartmontools-5.33.ebuild:
+  Version bump #62717 by Ziga Boehm.
 
   24 May 2004; Bryan Ã˜stergaard <kloeri@gentoo.org> smartmontools-5.30.ebuild:
   Keyworded ~alpha, requested in bug #51550.
index 2067e0831128355d9587483debcddc77ca820528..9d904ff35bf05fedc30fe758afccb43be803915f 100644 (file)
@@ -1,15 +1,18 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 378681b89575f6f90802ff7e5b42c9e7 ChangeLog 4262
+MD5 a2abef32a8fc162fa512514375c1c619 ChangeLog 4451
 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 8960d44510392af0e266b190df649360 smartmontools-5.33.ebuild 811
 MD5 0c19ccaedfb318acdd98c872ab3906b0 smartmontools-5.30.ebuild 907
+MD5 79699d2f3e2d148b1d5498b00792cd33 files/smartd.confd 273
 MD5 e7139ba9820a427c563c21362752bed3 files/digest-smartmontools-5.30 70
-MD5 74b30707345231077aa4890d3916f2b7 files/smartd.rc 511
+MD5 3a3bbcc1d33c8f4e7b8831ee0027dae8 files/digest-smartmontools-5.33 70
+MD5 cf38ad63a3b35726d92cb248bfd5cccf files/smartd.rc 856
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.9.10 (GNU/Linux)
 
-iD8DBQFBaI26HTu7gpaalycRAvEcAJsF2d8B8eOvU31EvS29ZPzx/lWxagCg1U7u
-bQOn46O2TldFyFEWLTAR4ew=
-=sDPT
+iD8DBQFBaI4YHTu7gpaalycRAhNmAKDxxM3hhFW07rPO0bNUcy4p9pRbKQCgmwci
+AeNONo5lsqP72X5FxB6PlyI=
+=ElAU
 -----END PGP SIGNATURE-----
diff --git a/sys-apps/smartmontools/files/digest-smartmontools-5.33 b/sys-apps/smartmontools/files/digest-smartmontools-5.33
new file mode 100644 (file)
index 0000000..986515d
--- /dev/null
@@ -0,0 +1 @@
+MD5 53f6861a916169a88a9edb1848e27dd0 smartmontools-5.33.tar.gz 509826
diff --git a/sys-apps/smartmontools/files/smartd.confd b/sys-apps/smartmontools/files/smartd.confd
new file mode 100644 (file)
index 0000000..762e384
--- /dev/null
@@ -0,0 +1,6 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/files/smartd.confd,v 1.1 2004/10/10 01:19:01 vapier Exp $
+
+# Insert any other options needed
+SMARTD_OPTS=""
index 3a10349180540cb709d9527dee9004381d6caa10..c4a5c3c7938137fd3b78f801e7715bfc7f3bdacf 100644 (file)
@@ -1,20 +1,36 @@
 #!/sbin/runscript
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/files/smartd.rc,v 1.3 2004/07/15 00:51:46 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/files/smartd.rc,v 1.4 2004/10/10 01:19:01 vapier Exp $
 
-depend() {
-       need localmount
+opts="${opts} reload"
+
+checkconfig() {
+       if [ ! -f "/etc/smartd.conf" ] ; then
+               eerror "You should setup your /etc/smartd.conf file!"
+               eerror "See sample conf: /etc/smartd.conf.example"
+               return 1
+       fi
+       return 0
 }
 
 start() {
+       checkconfig || return 1
+
        ebegin "Starting S.M.A.R.T. monitoring daemon"
-       start-stop-daemon --start --exec /usr/sbin/smartd
+       start-stop-daemon --start --exec /usr/sbin/smartd \
+               -- -p /var/run/smartd.pid ${SMARTD_OPTS}
        eend $?
 }
 
 stop() {
        ebegin "Stopping S.M.A.R.T. monitoring daemon"
-       start-stop-daemon --stop --exec /usr/sbin/smartd
+       start-stop-daemon --stop --pid /var/run/smartd.pid
+       eend $?
+}
+
+reload() {
+       ebegin "Reloading configuration"
+       killall -HUP smartd &>/dev/null
        eend $?
 }
diff --git a/sys-apps/smartmontools/smartmontools-5.33.ebuild b/sys-apps/smartmontools/smartmontools-5.33.ebuild
new file mode 100644 (file)
index 0000000..55a777f
--- /dev/null
@@ -0,0 +1,24 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/smartmontools-5.33.ebuild,v 1.1 2004/10/10 01:19:01 vapier Exp $
+
+DESCRIPTION="control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.)"
+HOMEPAGE="http://smartmontools.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+src_install() {
+       dosbin smart{ctl,d} || die "dosbin"
+       doman *.[58]
+       dodoc AUTHORS CHANGELOG NEWS README TODO WARNINGS
+
+       insinto /etc
+       doins smartd.conf
+
+       exeinto /etc/init.d; newexe ${FILESDIR}/smartd.rc smartd
+       insinto /etc/conf.d; newins ${FILESDIR}/smartd.confd smartd
+}