diff options
author | 2002-03-03 16:35:40 +0000 | |
---|---|---|
committer | 2002-03-03 16:35:40 +0000 | |
commit | 99532f123a7f52003b34c505ac04a5a18955ea73 (patch) | |
tree | 2361168e498abeafdd2c5aaf48634a8e58086daf /app-admin/watchdog/watchdog-5.2.ebuild | |
parent | foo (diff) | |
download | historical-99532f123a7f52003b34c505ac04a5a18955ea73.tar.gz historical-99532f123a7f52003b34c505ac04a5a18955ea73.tar.bz2 historical-99532f123a7f52003b34c505ac04a5a18955ea73.zip |
The ebuild submitted by Leknor@Leknor.com (William A. McArthur, Jr.),
slightly changed.
Closes bug 691.
Diffstat (limited to 'app-admin/watchdog/watchdog-5.2.ebuild')
-rw-r--r-- | app-admin/watchdog/watchdog-5.2.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app-admin/watchdog/watchdog-5.2.ebuild b/app-admin/watchdog/watchdog-5.2.ebuild new file mode 100644 index 000000000000..76cd8b869fda --- /dev/null +++ b/app-admin/watchdog/watchdog-5.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: William A. McArthur <Leknor@Leknor.com> +# $Header: /var/cvsroot/gentoo-x86/app-admin/watchdog/watchdog-5.2.ebuild,v 1.1 2002/03/03 16:35:40 agenkin Exp $ + +DESCRIPTION="A software watchdog." +HOMEPAGE="http://www.ibiblio.org/pub/Linux/system/daemons/watchdog/" +SRC_URI="http://www.ibiblio.org/pub/Linux/system/daemons/watchdog/${P}.tar.gz" +S="${WORKDIR}/${P}" + +src_compile() { + # Two configure switches have been added to use /etc/watchdog + ./configure \ + --host=${CHOST} \ + --prefix=/usr \ + --sysconfdir=/etc/watchdog \ + --with-configfile=/etc/watchdog/watchdog.conf \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + emake || die +} + +src_install () { + dodir /etc/watchdog + make DESTDIR="${D}" install || die + + exeinto /etc/init.d + doexe "${FILESDIR}/${PVR}/watchdog" +} + +pkg_postinst () { + einfo + einfo "To enable the start-up script run \"rc-update add watchdog boot\"." + einfo + if [ ! -e /dev/watchdog ] + then + ewarn + ewarn "No /dev/watchdog found! Make sure your kernel has watchdog support" + ewarn "compiled in or the kernel module is loaded. The watchdog service" + ewarn "will not start at boot until your kernel is configured properly." + ewarn + fi +} |