/[gentoo-x86]/net-misc/olsrd/olsrd-0.4.10.ebuild
Gentoo

Contents of /net-misc/olsrd/olsrd-0.4.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Oct 9 16:52:38 2011 UTC (8 years, 2 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.0_alpha64/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/olsrd/olsrd-0.4.10.ebuild,v 1.5 2008/02/17 12:15:28 cedk Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="An implementation of the Optimized Link State Routing protocol"
8 HOMEPAGE="http://www.olsr.org/"
9 SRC_URI="http://www.olsr.org/releases/${PV%.*}/${P}.tar.bz2"
10
11 SLOT="0"
12 LICENSE="BSD"
13 KEYWORDS="x86"
14 IUSE="gtk"
15
16 DEPEND="gtk? ( =x11-libs/gtk+-2* )"
17
18 src_unpack() {
19 unpack ${A}
20 cd "${S}"
21
22 epatch "${FILESDIR}/${P}-makefile.patch"
23 epatch "${FILESDIR}/${P}-memleak_in_olsr_remove_scheduler_event.patch"
24 }
25
26 src_compile() {
27 emake OS=linux CC=$(tc-getCC) build_all || die "emake failed"
28
29 if use gtk ; then
30 cd "${S}/gui/linux-gtk"
31 einfo "Building GUI ..."
32 emake CC=$(tc-getCC) || die "emake failed"
33 fi
34 }
35
36 src_install() {
37 emake DESTDIR="${D}" install_all || die "emake install_all failed"
38
39 if use gtk; then
40 cd "${S}/gui/linux-gtk"
41 emake DESTDIR="${D}" install || die "emake install failed"
42 fi
43
44 doinitd "${FILESDIR}/olsrd"
45
46 cd "${S}"
47 dodoc CHANGELOG features.txt README README-Olsr-Switch.html \
48 README-FreeBSD-libnet README-Link-Quality-Fish-Eye.txt \
49 README-Link-Quality.html files/olsrd.conf.default.rfc \
50 files/olsrd.conf.default.lq lib/dyn_gw/README_DYN_GW \
51 lib/dot_draw/README_DOT_DRAW lib/httpinfo/README_HTTPINFO \
52 lib/powerinfo/README_POWER
53 newdoc lib/nameservice/README README-NAMESERVICE
54 newdoc lib/secure/SOLSR-README README-SECURE
55 }

  ViewVC Help
Powered by ViewVC 1.1.20