/[gentoo-x86]/net-misc/bcm570x/bcm570x-7.1.22.ebuild
Gentoo

Contents of /net-misc/bcm570x/bcm570x-7.1.22.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Nov 30 09:55:04 2005 UTC (14 years, 2 months ago) by chriswhite
Changes since 1.1: +3 -2 lines
*** empty log message ***

1 chriswhite 1.1.1.1 # Copyright 1999-2005 Gentoo Foundation
2 steel300 1.1 # Distributed under the terms of the GNU General Public License v2
3 chriswhite 1.1.1.1 # $Header: /var/cvsroot/gentoo-x86/net-misc/bcm570x/bcm570x-7.1.22.ebuild,v 1.4 2005/01/21 18:40:50 genstef Exp $
4 steel300 1.1
5     MY_P=${P/570x/5700}
6     SRC_URI="http://www.broadcom.com/docs/driver_download/570x/${MY_P}.tar.gz"
7     DESCRIPTION="Driver for the Broadcom 570x-based gigabit cards (found on many mainboards)."
8     HOMEPAGE="http://www.broadcom.com/docs/driver-sla.php?driver=570x-Linux"
9     LICENSE="GPL-2"
10    
11     SLOT="0"
12     KEYWORDS="~x86 ~amd64"
13 chriswhite 1.1.1.1 IUSE=""
14 steel300 1.1
15     S=${WORKDIR}/${PN/570x/5700}-${PV}/src
16    
17     RESTRICT="fetch"
18    
19     pkg_nofetch() {
20     einfo "For legal reasons there is an license agreement with interaction"
21     einfo "(the driver is GPL-2) -- so you have to download yourself."
22     einfo "www.broadcom.com -> Download (NIC) drivers -> Linux. place the bmc5700*.tar.gz"
23     einfo "in ${DISTDIR}."
24     }
25    
26     src_compile() {
27     local my_KV="$(uname -r)"
28    
29     cd ${S}
30     make LINUX=/usr/src/linux-${my_KV} || die "compile failed"
31     }
32    
33     src_install() {
34     make PREFIX=${D} install || die
35    
36     doman bcm5700.4.gz
37     dodoc DISTRIB.TXT LICENSE README.TXT RELEASE.TXT
38     }
39    
40     pkg_postinst() {
41     einfo "${P}.tar.gz also contains a kernel-patch to integrate this driver directly."
42     }

  ViewVC Help
Powered by ViewVC 1.1.20