View | Details | Raw Unified
Collapse All | Expand All

(-) monit-4.8.1.ebuild (-8 / +14 lines)
 Lines 1-6    Link Here 
# Copyright 1999-2006 Gentoo Foundation
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-4.8.1.ebuild,v 1.1 2006/06/10 13:39:56 matsuu Exp $
# $Header: $
DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system."
DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system."
HOMEPAGE="http://www.tildeslash.com/monit/"
HOMEPAGE="http://www.tildeslash.com/monit/"
 Lines 17-38    Link Here 
	sys-devel/flex
	sys-devel/flex
	sys-devel/bison"
	sys-devel/bison"
src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in"
}
src_compile() {
src_compile() {
	econf `use_with ssl` || die
	econf $(use_with ssl) || die "econf failed"
	emake || die
	emake || die "emake failed"
}
}
src_install() {
src_install() {
	make DESTDIR="${D}" install || die
	make DESTDIR="${D}" install || die "make install failed"
	dodoc CHANGES.txt CONTRIBUTORS FAQ.txt README* STATUS UPGRADE.txt
	dodoc CHANGES.txt CONTRIBUTORS FAQ.txt README* STATUS UPGRADE.txt
	dohtml -r doc/*
	dohtml -r doc/*
	insinto /etc; insopts -m700; doins monitrc || die
	insinto /etc; insopts -m700; doins monitrc || die "doins monitrc failed"
	newinitd "${FILESDIR}"/monit.initd-${PV} monit || die
	newinitd "${FILESDIR}"/monit.initd-${PV} monit || die "newinitd failed"
}
}
pkg_postinst() {
pkg_postinst() {
	einfo "Sample configurations are available at"
	elog "Sample configurations are available at"
	einfo "http://www.tildeslash.com/monit/doc/examples.php"
	elog "http://www.tildeslash.com/monit/doc/examples.php"
}
}