/[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.2 - (hide annotations) (download)
Thu Jun 24 23:36:20 2004 UTC (15 years, 6 months ago) by agriffis
Branch: MAIN
Changes since 1.1: +2 -2 lines
update copyright line: Gentoo Technologies => Gentoo Foundation

1 agriffis 1.2 # Copyright 1999-2004 Gentoo Foundation
2 steel300 1.1 # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/bcm570x/bcm570x-7.1.22.ebuild,v 1.1 2004/04/09 03:33:05 steel300 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    
14     S=${WORKDIR}/${PN/570x/5700}-${PV}/src
15    
16     RESTRICT="fetch"
17    
18     pkg_nofetch() {
19     einfo "For legal reasons there is an license agreement with interaction"
20     einfo "(the driver is GPL-2) -- so you have to download yourself."
21     einfo "www.broadcom.com -> Download (NIC) drivers -> Linux. place the bmc5700*.tar.gz"
22     einfo "in ${DISTDIR}."
23     }
24    
25     src_compile() {
26     local my_KV="$(uname -r)"
27    
28     cd ${S}
29     make LINUX=/usr/src/linux-${my_KV} || die "compile failed"
30     }
31    
32     src_install() {
33     make PREFIX=${D} install || die
34    
35     doman bcm5700.4.gz
36     dodoc DISTRIB.TXT LICENSE README.TXT RELEASE.TXT
37     }
38    
39     pkg_postinst() {
40     einfo "${P}.tar.gz also contains a kernel-patch to integrate this driver directly."
41     }

  ViewVC Help
Powered by ViewVC 1.1.20