summaryrefslogtreecommitdiff
blob: c34a20a6bb57513f1e34d9b7d15c20b2509180b9 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit toolchain-funcs

DESCRIPTION="Arpstar dockapp for alert visualization"
HOMEPAGE="http://arpstar.sourceforge.net"
SRC_URI="mirror://sourceforge/arpstar/${PN}-alpha1.tar.gz"

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

DEPEND="virtual/logger
	x11-libs/libX11
	x11-libs/libXpm
	x11-proto/xextproto"
RDEPEND="${DEPEND}
	net-misc/arpstar"

S="${WORKDIR}/${PN}_wa_alpha1"

src_compile() {
	sed -i \
		-e "/^CXX=/s:c++:$(tc-getCXX):" \
		Makefile

	emake || die "emake failed"
}

src_install() {
	dobin wmarpstar
	dodoc arpstar-syslog-ng.conf
}

pkg_postinst() {
	elog "You have to change your system logger's configuration"
	elog "to make wmarpstar work. Have a look at"
	elog "/usr/share/doc/${PF}/ for a sample configuration for syslog-ng."
}