summaryrefslogtreecommitdiff
blob: e80405550a58186c266dc4104aee869d4ea8c737 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nomad/nomad-0.3.2.ebuild,v 1.3 2005/05/06 14:47:49 swegener Exp $

DESCRIPTION="Nomad is a network mapping program that uses SNMP to automatically discover a local network"
HOMEPAGE="http://netmon.ncl.ac.uk/"
SRC_URI="ftp://ftp.ncl.ac.uk/pub/local/npac/nomad-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND="=gnome-base/gconf-1*
	>=media-libs/gdk-pixbuf-0.10.1
	=x11-libs/gtk+-1.2*
	>=dev-libs/libxml-1.8.14
	=gnome-base/libglade-0*
	>=gnome-base/gnome-libs-1
	>=net-analyzer/net-snmp-5
	net-analyzer/fping"

src_compile() {
	econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR=${D} install || die
	dodoc AUTHORS COPYING ChangeLog NEWS README
}

pkg_postinst() {
	einfo "Running nomad configuration tool"
	nomad-config-tool > /dev/null
	einfo "In order to run this software as a non-root user you'll"
	einfo "have to:"
	einfo "1) have fping in your \$PATH"
	einfo "2) configure fping as a suid executable by doing the"
	einfo "following command: chmod u+s /usr/sbin/fping"
}