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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Sep 19 19:34:13 2010 UTC (4 years, 3 months ago) by xmw
Branch: MAIN
Changes since 1.9: +2 -2 lines
Added ~arm keyword
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.4.ebuild,v 1.9 2010/02/12 17:50:14 robbat2 Exp $
4
5 inherit toolchain-funcs eutils autotools linux-info
6
7 DESCRIPTION="Tools for configuring the Linux kernel 802.1d Ethernet Bridge"
8 HOMEPAGE="http://bridge.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/bridge/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~arm hppa ia64 ppc sparc x86 ~ppc64"
14 IUSE=""
15
16 DEPEND="virtual/os-headers"
17 RDEPEND=""
18
19 CONFIG_CHECK="~BRIDGE"
20 WARNING_BRIDGE="CONFIG_BRIDGE is required to get bridge devices in the kernel"
21
22 get_headers() {
23 CTARGET=${CTARGET:-${CHOST}}
24 dir=/usr/include
25 tc-is-cross-compiler && dir=/usr/${CTARGET}/usr/include
26 echo "${dir}"
27 }
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32 eautoreconf
33 }
34
35 src_compile() {
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 emake || die "make failed"
44 }
45
46 src_install () {
47 emake install DESTDIR="${D}" || die "make install failed"
48 dodoc AUTHORS ChangeLog README THANKS TODO
49 dodoc doc/{FAQ,FIREWALL,HOWTO,PROJECTS,RPM-GPG-KEY,SMPNOTES,WISHLIST}
50 }
51
52 pkg_postinst () {
53 ewarn "This package no longer provides a separate init script."
54 ewarn "Please utilize the new bridge support in baselayout."
55 }

  ViewVC Help
Powered by ViewVC 1.1.20