blob: 67604d4d819fdf1282f25869bcb0aa17e7800613 (
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
45
46
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmnetmon/wmnetmon-0.2_p5.ebuild,v 1.3 2008/01/20 15:20:09 nixnut Exp $
EAPI=1
inherit toolchain-funcs
DESCRIPTION="monitors up to 40 hosts/services and can execute a command if there are problems with them"
HOMEPAGE="http://freshmeat.net/projects/wmnetmon/?topic_id=876"
SRC_URI="http://www.linuks.mine.nu/dockapps/${P/_/}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc ~sparc ~x86"
IUSE="+suid"
RDEPEND="x11-libs/libX11
x11-libs/libXext
x11-libs/libXpm"
DEPEND="${RDEPEND}
x11-proto/xextproto"
S=${WORKDIR}/${P/_/}
src_compile() {
tc-export CC
econf
emake || die "emake failed."
}
src_install() {
if use suid; then
dobin ${PN}
fperms 4755 /usr/bin/${PN}
else
dosbin ${PN}
fi
dodoc Changes README ${PN}rc
}
pkg_postinst() {
elog "Extract ${PN}rc from /usr/share/doc/${PF} to your home directory."
use suid || elog "Warning, ${PN} needs to be executed as root."
}
|