/[gentoo-x86]/net-misc/bridge-utils/bridge-utils-1.5.ebuild
Gentoo

Contents of /net-misc/bridge-utils/bridge-utils-1.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 19 15:05:35 2012 UTC (22 months, 3 weeks ago) by blueness
Branch: MAIN
Changes since 1.1: +3 -3 lines
keyword mips, bug #405835

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/bridge-utils/bridge-utils-1.5.ebuild,v 1.1 2011/06/15 03:01:34 jer Exp $
4
5 EAPI="3"
6
7 inherit autotools eutils linux-info toolchain-funcs
8
9 DESCRIPTION="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
10 HOMEPAGE="http://bridge.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/bridge/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
16 IUSE=""
17
18 DEPEND="virtual/os-headers"
19 RDEPEND=""
20
21 CONFIG_CHECK="~BRIDGE"
22 WARNING_BRIDGE="CONFIG_BRIDGE is required to get bridge devices in the kernel"
23
24 get_headers() {
25 CTARGET=${CTARGET:-${CHOST}}
26 dir=/usr/include
27 tc-is-cross-compiler && dir=/usr/${CTARGET}/usr/include
28 echo "${dir}"
29 }
30
31 src_prepare() {
32 eautoreconf
33 }
34
35 src_configure() {
36 # use santitized headers and not headers from /usr/src
37 econf \
38 --prefix=/ \
39 --libdir=/usr/$(get_libdir) \
40 --includedir=/usr/include \
41 --with-linux-headers="$(get_headers)" \
42 || die "econf failed"
43 }
44
45 src_install () {
46 emake install DESTDIR="${D}" || die "make install failed"
47 dodoc AUTHORS ChangeLog README THANKS TODO
48 dodoc doc/{FAQ,FIREWALL,HOWTO,PROJECTS,RPM-GPG-KEY,SMPNOTES,WISHLIST}
49 }

  ViewVC Help
Powered by ViewVC 1.1.20