/[gentoo-x86]/net-misc/batmand/batmand-0.3.1.ebuild
Gentoo

Contents of /net-misc/batmand/batmand-0.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Dec 4 13:58:49 2011 UTC (7 years, 9 months ago) by cedk
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Switch to EAPI=2 for bug #368411 and remove old

(Portage version: 2.1.10.11/cvs/Linux i686)

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-misc/batmand/batmand-0.3.1.ebuild,v 1.1 2009/02/04 18:14:35 cedk Exp $
4
5 inherit eutils toolchain-funcs
6
7 MY_P=${P/batmand/batman}
8 DESCRIPTION="Better approach to mobile Ad-Hoc networking"
9 HOMEPAGE="http://open-mesh.net/"
10 SRC_URI="http://downloads.open-mesh.net/batman/stable/sources/batman/${MY_P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE=""
16
17 DEPEND=""
18 RDEPEND=""
19
20 S=${WORKDIR}/${MY_P}
21
22 src_unpack() {
23 unpack ${A}
24 cd "${S}"
25
26 sed -i \
27 -e "s/-j \$(NUM_CPUS)//" \
28 Makefile || die "sed failed"
29 }
30
31 src_compile() {
32 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
33 }
34
35 src_install() {
36 dosbin batmand
37
38 newinitd "${FILESDIR}"/batmand-init.d batmand
39 newconfd "${FILESDIR}"/batmand-conf.d batmand
40
41 doman man/*.8 || die
42
43 dodoc CHANGELOG README THANKS || die
44 }

  ViewVC Help
Powered by ViewVC 1.1.20