diff options
author | Arcady Genkin <agenkin@gentoo.org> | 2002-05-15 19:32:06 +0000 |
---|---|---|
committer | Arcady Genkin <agenkin@gentoo.org> | 2002-05-15 19:32:06 +0000 |
commit | d04f5df868436bd0c9f663ece6cf2ee14961bf09 (patch) | |
tree | d5d7a2ed4d138cae16189ff70da9be5d69ef7d72 | |
parent | missing patchfile (diff) | |
download | gentoo-2-d04f5df868436bd0c9f663ece6cf2ee14961bf09.tar.gz gentoo-2-d04f5df868436bd0c9f663ece6cf2ee14961bf09.tar.bz2 gentoo-2-d04f5df868436bd0c9f663ece6cf2ee14961bf09.zip |
Initial ebuild. Closes #2471.
-rw-r--r-- | sys-apps/mondo/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/mondo/files/digest-mondo-0.6 | 1 | ||||
-rw-r--r-- | sys-apps/mondo/files/mondo.sh | 28 | ||||
-rw-r--r-- | sys-apps/mondo/mondo-0.6.ebuild | 43 |
4 files changed, 81 insertions, 0 deletions
diff --git a/sys-apps/mondo/ChangeLog b/sys-apps/mondo/ChangeLog new file mode 100644 index 000000000000..b9965da609e3 --- /dev/null +++ b/sys-apps/mondo/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sys-apps/mondo +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mondo/ChangeLog,v 1.1 2002/05/15 19:32:06 agenkin Exp $ + +*mondo-0.6 (15 May 2002) + + 15 May 2002; Arcady Genkin <agenkin@thpoon.com> mondo-0.6.ebuild: + + Initial version, submitted by MvOstheim@web.de (Michael v.Ostheim).
\ No newline at end of file diff --git a/sys-apps/mondo/files/digest-mondo-0.6 b/sys-apps/mondo/files/digest-mondo-0.6 new file mode 100644 index 000000000000..6f0ceacdecec --- /dev/null +++ b/sys-apps/mondo/files/digest-mondo-0.6 @@ -0,0 +1 @@ +MD5 42131792a2977e7a89a7744890860bea mondo-0.6.tar.gz 130425 diff --git a/sys-apps/mondo/files/mondo.sh b/sys-apps/mondo/files/mondo.sh new file mode 100644 index 000000000000..e289a690e7b3 --- /dev/null +++ b/sys-apps/mondo/files/mondo.sh @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Author: Michael v.Ostheim <MvOstheim@web.de> +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mondo/files/mondo.sh,v 1.1 2002/05/15 19:32:06 agenkin Exp $ + +depend() { + need modules +} + +start() { + ebegin "Starting mondo" + + if [ -z "$(cat /proc/sys/dev/sensors/chips)" ] ; then + eend 1 "You need to setup lm_sensors first" + return 1 + fi + + start-stop-daemon --start --quiet --exec /usr/sbin/mondo \ + -- -c /etc/mondo.conf -s /etc/sensors.conf + eend ${?} +} + +stop() { + ebegin "Stopping mondo" + start-stop-daemon --stop --quiet --pidfile /var/run/mondo.pid + eend ${?} +} diff --git a/sys-apps/mondo/mondo-0.6.ebuild b/sys-apps/mondo/mondo-0.6.ebuild new file mode 100644 index 000000000000..ec268a0ade20 --- /dev/null +++ b/sys-apps/mondo/mondo-0.6.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mondo/mondo-0.6.ebuild,v 1.1 2002/05/15 19:32:06 agenkin Exp $ + +DESCRIPTION="A System Health Monitor" +HOMEPAGE="http://mondo-daemon.sourceforge.net/" + +DEPEND=">=sys-apps/lm_sensors-2.6.3" + +SRC_URI="http://telia.dl.sourceforge.net/sourceforge/mondo-daemon/${P}.tar.gz" +S=${WORKDIR}/${P} + + +src_compile() { + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --host=${CHOST} || die + make || die +} + +src_install () { + make prefix=${D}/usr \ + sysconfdir=${D}/etc \ + mandir=${D}/usr/share/man \ + docdir=${D}/usr/share/doc/${PF} \ + install || die + + dodoc AUTHORS COPYING ChangeLog INSTALL README TODO + + exeinto /etc/init.d + newexe ${FILESDIR}/mondo.sh mondo +} + +pkg_postinst() { + einfo + einfo "The mondo system health monitor has been installed." + einfo + einfo "Don't forget to setup lm_sensors before starting mondo." + einfo "Run mondo-setup or edit /etc/mondo.conf manually and run" + einfo "'rc-update add mondo <runlevel>' to add mondo to a runlevel." + einfo +} |