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

Contents of /net-misc/bridge-utils/bridge-utils-1.0.6-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Mon Apr 28 18:07:56 2008 UTC (11 years, 8 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
remove USE=sysfs from bridge-utils-1.2 since it's unused (bug #219600) and remove old version
(Portage version: 2.1.5_rc6)

1 cryos 1.3 # Copyright 1999-2006 Gentoo Foundation
2 robbat2 1.1 # Distributed under the terms of the GNU General Public License v2
3 cardoe 1.11 # $Header: /var/cvsroot/gentoo-x86/net-misc/bridge-utils/bridge-utils-1.0.6-r3.ebuild,v 1.10 2008/03/30 15:24:02 vapier Exp $
4 robbat2 1.1
5     # I think you want CONFIG_BRIDGE in your kernel to use this ;)
6    
7 robbat2 1.7 inherit eutils autotools
8 robbat2 1.1
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 vapier 1.10 LICENSE="GPL-2"
14     SLOT="0"
15     KEYWORDS="amd64 ~hppa ia64 ppc x86"
16 robbat2 1.1 IUSE="sysfs"
17    
18 vapier 1.10 RDEPEND="sysfs? ( >=sys-fs/sysfsutils-1.0 )"
19 robbat2 1.1 DEPEND="${RDEPEND}
20 vapier 1.10 virtual/os-headers
21     >=sys-devel/autoconf-2.59"
22 robbat2 1.1
23     src_unpack() {
24     unpack ${A}
25     EPATCH_OPTS="-p0 -d ${S}" epatch ${FILESDIR}/${P}-dont-error-on-no-ports.patch
26     EPATCH_OPTS="-p1 -d ${S}" epatch ${FILESDIR}/${P}-allow-without-sysfs.patch
27 robbat2 1.7 cd ${S} && WANT_AUTOCONF=2.5 eautoconf || die "Failed to run autoconf"
28 robbat2 1.1 }
29    
30     src_compile() {
31     # use santitized headers and not headers from /usr/src
32     econf \
33     --prefix=/ \
34 kanaka 1.9 --libdir=/usr/$(get_libdir) \
35 robbat2 1.1 --includedir=/usr/include \
36     --with-linux-headers=/usr/include \
37     `use_with sysfs` \
38     || die "econf failed"
39     emake || die "make failed"
40     }
41    
42     src_install () {
43 robbat2 1.2 emake install DESTDIR="${D}" || die "make install failed"
44 robbat2 1.1 #einstall prefix=${D} libdir=${D}/usr/lib includedir=${D}/usr/include
45     dodoc AUTHORS ChangeLog README THANKS TODO
46     dodoc doc/{FAQ,FIREWALL,HOWTO,PROJECTS,RPM-GPG-KEY,SMPNOTES,WISHLIST}
47     }
48    
49     pkg_postinst () {
50     ewarn "This package no longer provides a seperate init script."
51     ewarn "Please utilize the new bridge support in baselayout."
52     }

  ViewVC Help
Powered by ViewVC 1.1.20