Gentoo Archives: gentoo-commits

From: "Saleem Abdulrasool (compnerd)" <compnerd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/iwlwifi: ChangeLog iwlwifi-1.1.21-r1.ebuild
Date: Mon, 19 Nov 2007 04:07:26
Message-Id: E1Itxup-0000w9-Tf@stork.gentoo.org
1 compnerd 07/11/19 04:07:19
2
3 Modified: ChangeLog
4 Added: iwlwifi-1.1.21-r1.ebuild
5 Log:
6 add patch for CVE-2007-5938
7 (Portage version: 2.1.3.16)
8
9 Revision Changes Path
10 1.10 net-wireless/iwlwifi/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/iwlwifi/ChangeLog?rev=1.10&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/iwlwifi/ChangeLog?rev=1.10&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/iwlwifi/ChangeLog?r1=1.9&r2=1.10
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-wireless/iwlwifi/ChangeLog,v
19 retrieving revision 1.9
20 retrieving revision 1.10
21 diff -u -r1.9 -r1.10
22 --- ChangeLog 2 Nov 2007 05:16:57 -0000 1.9
23 +++ ChangeLog 19 Nov 2007 04:07:19 -0000 1.10
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-wireless/iwlwifi
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/iwlwifi/ChangeLog,v 1.9 2007/11/02 05:16:57 compnerd Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/iwlwifi/ChangeLog,v 1.10 2007/11/19 04:07:19 compnerd Exp $
29 +
30 +*iwlwifi-1.1.21-r1 (19 Nov 2007)
31 +
32 + 19 Nov 2007; Saleem Abdulrasool <compnerd@g.o>
33 + +files/CVE-2007-5938.patch, +iwlwifi-1.1.21-r1.ebuild:
34 + Add patch for CVE-2007-5938, patch by myself.
35
36 *iwlwifi-1.1.21 (02 Nov 2007)
37
38
39
40
41 1.1 net-wireless/iwlwifi/iwlwifi-1.1.21-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/iwlwifi/iwlwifi-1.1.21-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/iwlwifi/iwlwifi-1.1.21-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: iwlwifi-1.1.21-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-wireless/iwlwifi/iwlwifi-1.1.21-r1.ebuild,v 1.1 2007/11/19 04:07:19 compnerd Exp $
51
52 inherit eutils linux-mod
53
54 DESCRIPTION="Intel (R) PRO/Wireless 3945ABG Network Drivers"
55 HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
56 SRC_URI="http://intellinuxwireless.org/${PN}/downloads/${P//_p/-}.tgz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~amd64 ~x86"
61 IUSE="ipw3945 ipw4965"
62
63 DEPEND=">=virtual/linux-sources-2.6.22"
64 RDEPEND="ipw3945? ( =net-wireless/iwl3945-ucode-2.14.1.5 )
65 ipw4965? ( =net-wireless/iwl4965-ucode-4.44.1.18 )
66 !ipw3945? ( !ipw4965? ( =net-wireless/iwl3945-ucode-2.14.1.5 =net-wireless/iwl4965-ucode-4.44.1.18 ) )"
67
68 pkg_setup() {
69 if kernel_is lt 2 6 22 ; then
70 eerror "iwlwifi requires a kernel >=2.6.22."
71 eerror "Please set your /usr/src/linux symlink accordingly."
72 die "invalid /usr/src/linux symlink"
73 else
74 CONFIG_CHECK="MAC80211"
75 fi
76
77 BUILD_PARAMS="KSRC=${KV_DIR} M=${S}"
78
79 linux-mod_pkg_setup
80
81 if use ipw3945 ; then
82 MODULE_NAMES="iwl3945(net/wireless:${S}/compatible)"
83
84 if ! use ipw4965 ; then
85 BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IWL4965=n"
86 fi
87
88 fi
89
90 if use ipw4965 ; then
91 MODULE_NAMES="${MODULE_NAMES} iwl4965(net/wireless:${S}/compatible)"
92
93 if ! use ipw3945 ; then
94 BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IWL3945=n"
95 fi
96 fi
97
98 if ! use ipw3945 && ! use ipw4965 ; then
99 einfo "Wireless card not selected, building all modules"
100
101 MODULE_NAMES="iwl3945(net/wireless:${S}/compatible) iwl4965(net/wireless:${S}/compatible)"
102 BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IWL3945=m CONFIG_IWL4965=m"
103 fi
104 }
105
106 src_unpack() {
107 unpack ${A}
108 cd "${S}"
109
110 epatch "${FILESDIR}/CVE-2007-5938.patch"
111 }
112
113 src_compile() {
114 if [[ ${ARCH} == "amd64" ]] ; then
115 ARCH="x86_64"
116 else
117 ARCH="i386"
118 fi
119
120 make # generate the compatible sources (failure is expected)
121 make || die "compile failed"
122 }
123
124
125
126 --
127 gentoo-commits@g.o mailing list