blob: e5b0120dead9a125b9e37365117d96ede5586748 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: William McArthur <sandymac@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-admin/watchdog/watchdog-5.2.ebuild,v 1.3 2002/07/06 18:49:03 drobbins 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}"
LICENSE="GPL-2"
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
}
|