/[gentoo-x86]/net-analyzer/neti/neti-2.0.ebuild
Gentoo

Contents of /net-analyzer/neti/neti-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Sep 23 18:22:01 2009 UTC (5 years ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -3 lines
Remove virtual/libc
(Portage version: 2.2_rc41/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/neti/neti-2.0.ebuild,v 1.4 2007/04/28 12:23:21 tove Exp $
4
5 DESCRIPTION="NETI@Home research project from GATech"
6 HOMEPAGE="http://www.neti.gatech.edu"
7 SRC_URI="mirror://sourceforge/neti/${P}.tar.gz"
8
9 KEYWORDS="~ppc x86"
10 LICENSE="GPL-2"
11 SLOT="0"
12 IUSE="zlib java"
13
14 DEPEND="java? ( || ( >=virtual/jdk-1.2 >=virtual/jre-1.2 ) )
15 net-libs/libpcap"
16 RDEPEND="${DEPEND}"
17
18 RESTRICT="test"
19
20 src_compile() {
21 econf \
22 $(use_with zlib) \
23 || die "econf failed"
24
25 emake NETILogParse neti \
26 || die "emake NETILogParse neti failed"
27
28 if use java;
29 then
30 emake javadir=/usr/share/${PN} classjava.stamp || die "emake classjava.stamp failed"
31 fi
32 }
33
34 src_install() {
35 emake DESTDIR="${D}" install-sbinPROGRAMS \
36 install-sysconfDATA install-man install-info || die "emake install failed"
37
38 if use java;
39 then
40 emake javadir=/usr/share/${PN} \
41 DESTDIR="${D}" install-javaJAVA install-javaDATA || die "emake java install failed"
42 dobin /usr/bin
43 echo cd /usr/share/${PN}\;java -cp /usr/share/${PN} NETIMap > "${D}"/usr/bin/NETIMap
44 fperms ugo+x /usr/bin/NETIMap
45 fi
46
47 dodoc README AUTHORS
48 newinitd "${FILESDIR}"/neti-init2 neti
49 }

  ViewVC Help
Powered by ViewVC 1.1.20