Hanno Böck commited on 2007-05-01 20:20:40
Zeige 5 geänderte Dateien mit 106 Einfügungen und 0 Löschungen.
... | ... |
@@ -0,0 +1,15 @@ |
1 |
+AUX smartd.confd 107 RMD160 e43d345af53217e6c944a3ce5cd03a98895b7c32 SHA1 3d19bde080fabaf2702087c82bdbd3c43cc1c6a6 SHA256 714cc1b253e1f59b884be89693757fec91ca878c62f37451a49ef6bb72263e85 |
|
2 |
+MD5 371cdb7cc9dc924b6d12224d66b193c6 files/smartd.confd 107 |
|
3 |
+RMD160 e43d345af53217e6c944a3ce5cd03a98895b7c32 files/smartd.confd 107 |
|
4 |
+SHA256 714cc1b253e1f59b884be89693757fec91ca878c62f37451a49ef6bb72263e85 files/smartd.confd 107 |
|
5 |
+AUX smartd.rc 911 RMD160 9b37b36efb0a810275939693dc3543aa758e4d77 SHA1 d11eb791b23042ac163d84306fd4b834ee976e57 SHA256 88e14e797d765e6b082460c494d11dd6e362666448ddd2524f8ac4d4033ec635 |
|
6 |
+MD5 30df6006f480460030dd002e115f7091 files/smartd.rc 911 |
|
7 |
+RMD160 9b37b36efb0a810275939693dc3543aa758e4d77 files/smartd.rc 911 |
|
8 |
+SHA256 88e14e797d765e6b082460c494d11dd6e362666448ddd2524f8ac4d4033ec635 files/smartd.rc 911 |
|
9 |
+EBUILD smartmontools-9999.ebuild 1298 RMD160 30df72ef5289a7800badee415942f503505f52e8 SHA1 123d4166c66d33c8758cf9a9fc0527d3917406ee SHA256 e2ba6cdc66a7bad34a4abd4e73c8ab19152ceecd61be6c3bc77a66b26c1376cf |
|
10 |
+MD5 2ec461771e346fb6ecafeb6c28cc644c smartmontools-9999.ebuild 1298 |
|
11 |
+RMD160 30df72ef5289a7800badee415942f503505f52e8 smartmontools-9999.ebuild 1298 |
|
12 |
+SHA256 e2ba6cdc66a7bad34a4abd4e73c8ab19152ceecd61be6c3bc77a66b26c1376cf smartmontools-9999.ebuild 1298 |
|
13 |
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-smartmontools-9999 0 |
|
14 |
+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-smartmontools-9999 0 |
|
15 |
+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-smartmontools-9999 0 |
... | ... |
@@ -0,0 +1,38 @@ |
1 |
+#!/sbin/runscript |
|
2 |
+# Copyright 1999-2004 Gentoo Foundation |
|
3 |
+# Distributed under the terms of the GNU General Public License v2 |
|
4 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/files/smartd.rc,v 1.6 2006/02/08 10:21:18 uberlord Exp $ |
|
5 |
+ |
|
6 |
+opts="${opts} reload" |
|
7 |
+ |
|
8 |
+checkconfig() { |
|
9 |
+ if [ ! -f "/etc/smartd.conf" ] ; then |
|
10 |
+ eerror "You should setup your /etc/smartd.conf file!" |
|
11 |
+ eerror "See the smartd.conf(5) manpage." |
|
12 |
+ return 1 |
|
13 |
+ fi |
|
14 |
+ return 0 |
|
15 |
+} |
|
16 |
+ |
|
17 |
+start() { |
|
18 |
+ checkconfig || return 1 |
|
19 |
+ |
|
20 |
+ ebegin "Starting S.M.A.R.T. monitoring daemon" |
|
21 |
+ start-stop-daemon --start --exec /usr/sbin/smartd \ |
|
22 |
+ --pidfile /var/run/smartd.pid \ |
|
23 |
+ -- -p /var/run/smartd.pid ${SMARTD_OPTS} |
|
24 |
+ eend $? |
|
25 |
+} |
|
26 |
+ |
|
27 |
+stop() { |
|
28 |
+ ebegin "Stopping S.M.A.R.T. monitoring daemon" |
|
29 |
+ start-stop-daemon --stop --exec /usr/sbin/smartd \ |
|
30 |
+ --pidfile /var/run/smartd.pid |
|
31 |
+ eend $? |
|
32 |
+} |
|
33 |
+ |
|
34 |
+reload() { |
|
35 |
+ ebegin "Reloading configuration" |
|
36 |
+ killall -HUP smartd |
|
37 |
+ eend $? |
|
38 |
+} |
... | ... |
@@ -0,0 +1,49 @@ |
1 |
+# Copyright 1999-2007 Gentoo Foundation |
|
2 |
+# Distributed under the terms of the GNU General Public License v2 |
|
3 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/smartmontools-5.37.ebuild,v 1.1 2007/02/10 19:51:08 vapier Exp $ |
|
4 |
+ |
|
5 |
+inherit flag-o-matic cvs autotools |
|
6 |
+ |
|
7 |
+ECVS_SERVER="smartmontools.cvs.sourceforge.net:/cvsroot/smartmontools" |
|
8 |
+ECVS_MODULE="sm5" |
|
9 |
+S=${WORKDIR}/${ECVS_MODULE} |
|
10 |
+ |
|
11 |
+DESCRIPTION="control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.)" |
|
12 |
+HOMEPAGE="http://smartmontools.sourceforge.net/" |
|
13 |
+SRC_URI="" |
|
14 |
+ |
|
15 |
+LICENSE="GPL-2" |
|
16 |
+SLOT="0" |
|
17 |
+KEYWORDS="" |
|
18 |
+IUSE="static" |
|
19 |
+ |
|
20 |
+RDEPEND="" |
|
21 |
+DEPEND="" |
|
22 |
+ |
|
23 |
+src_compile() { |
|
24 |
+ use static && append-ldflags -static |
|
25 |
+ eautoreconf || die |
|
26 |
+ econf || die |
|
27 |
+ emake || die |
|
28 |
+} |
|
29 |
+ |
|
30 |
+src_install() { |
|
31 |
+ dosbin smart{ctl,d} || die "dosbin" |
|
32 |
+ doman *.[58] |
|
33 |
+ dodoc AUTHORS CHANGELOG NEWS README TODO WARNINGS |
|
34 |
+ newdoc smartd.conf smartd.conf.example |
|
35 |
+ docinto examplescripts |
|
36 |
+ dodoc examplescripts/* |
|
37 |
+ rm -f "${D}"/usr/share/doc/${PF}/examplescripts/Makefile* |
|
38 |
+ |
|
39 |
+ insinto /etc |
|
40 |
+ doins smartd.conf |
|
41 |
+ |
|
42 |
+ newinitd "${FILESDIR}"/smartd.rc smartd |
|
43 |
+ newconfd "${FILESDIR}"/smartd.confd smartd |
|
44 |
+} |
|
45 |
+ |
|
46 |
+pkg_postinst() { |
|
47 |
+ elog "You need the 'mail' command if you configured smartd to send reports" |
|
48 |
+ elog "via email, 'emerge virtual/mailx' to get a mailer" |
|
49 |
+} |
|
0 | 50 |