Fix bugs 351337 (ad-hoc-net), 306423 (wpa-hex-template)
authorThomas Kahle <tomka@gentoo.org>
Tue, 13 Sep 2011 19:25:14 +0000 (19:25 +0000)
committerThomas Kahle <tomka@gentoo.org>
Tue, 13 Sep 2011 19:25:14 +0000 (19:25 +0000)
Package-Manager: portage-2.1.10.15/cvs/Linux i686

net-misc/wicd/ChangeLog
net-misc/wicd/files/add-wpa-psk-hex-template.patch [new file with mode: 0644]
net-misc/wicd/files/fix-ad-hoc-networking.patch [new file with mode: 0644]
net-misc/wicd/wicd-1.7.1_beta2-r6.ebuild [moved from net-misc/wicd/wicd-1.7.1_beta2-r5.ebuild with 93% similarity]

index daa489219347e0c56c30b23f05ddc6472dade92c..9c1c734cbbf9e1d65f252f2440511f565a8cd5bf 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for net-misc/wicd
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.93 2011/09/09 11:18:41 tomka Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/ChangeLog,v 1.94 2011/09/13 19:25:14 tomka Exp $
+
+*wicd-1.7.1_beta2-r6 (13 Sep 2011)
+
+  13 Sep 2011; Thomas Kahle <tomka@gentoo.org> -wicd-1.7.1_beta2-r5.ebuild,
+  +wicd-1.7.1_beta2-r6.ebuild, +files/add-wpa-psk-hex-template.patch,
+  +files/fix-ad-hoc-networking.patch:
+  Fix bugs 351337 (ad-hoc-net), 306423 (wpa-hex-template)
 
 *wicd-1.7.1_beta2-r5 (09 Sep 2011)
 
diff --git a/net-misc/wicd/files/add-wpa-psk-hex-template.patch b/net-misc/wicd/files/add-wpa-psk-hex-template.patch
new file mode 100644 (file)
index 0000000..21daaf3
--- /dev/null
@@ -0,0 +1,29 @@
+diff -U 3 -dHrN wicd-1.7.1b2/encryption/templates/active wicd-1.7.1b2.new/encryption/templates/active
+--- wicd-1.7.1b2/encryption/templates/active   2010-10-29 16:36:55.000000000 +0100
++++ wicd-1.7.1b2.new/encryption/templates/active       2011-09-13 19:58:54.000000000 +0100
+@@ -1,5 +1,6 @@
+ wpa
+ wpa-psk
++wpa-psk-hex
+ wep-hex
+ wep-passphrase
+ wep-shared
+diff -U 3 -dHrN wicd-1.7.1b2/encryption/templates/wpa-psk-hex wicd-1.7.1b2.new/encryption/templates/wpa-psk-hex
+--- wicd-1.7.1b2/encryption/templates/wpa-psk-hex      1970-01-01 01:00:00.000000000 +0100
++++ wicd-1.7.1b2.new/encryption/templates/wpa-psk-hex  2011-09-13 19:59:11.000000000 +0100
+@@ -0,0 +1,15 @@
++name = WPA 1/2 (Preshared Hex Key)
++author = Thomas Kahle
++version = 1
++require apsk *Preshared_Key
++-----
++ctrl_interface=/var/run/wpa_supplicant
++network={
++       ssid="$_ESSID"
++       scan_ssid=$_SCAN
++       proto=WPA RSN
++       key_mgmt=WPA-PSK
++       pairwise=CCMP TKIP
++       group=CCMP TKIP
++       psk=$_APSK
++}
diff --git a/net-misc/wicd/files/fix-ad-hoc-networking.patch b/net-misc/wicd/files/fix-ad-hoc-networking.patch
new file mode 100644 (file)
index 0000000..344e51a
--- /dev/null
@@ -0,0 +1,11 @@
+--- wicd-1.7.0/wicd/wnettools.py       2010-01-15 12:49:11.000000000 +0800
++++ wicd-1.7.0.patched/wicd/wnettools.py       2010-12-12 03:50:31.000000000 +0800
+@@ -59,7 +59,7 @@ wpa2_pattern = re.compile('(WPA2)', _re_
+ 
+ #iwconfig-only regular expressions.
+ ip_pattern = re.compile(r'inet [Aa]d?dr[^.]*:([^.]*\.[^.]*\.[^.]*\.[0-9]*)', re.S)
+-bssid_pattern = re.compile('.*Access Point: (([0-9A-Z]{2}:){5}[0-9A-Z]{2})', _re_mode)
++bssid_pattern = re.compile('.*[(Access Point)|(Cell)]: (([0-9A-Z]{2}:){5}[0-9A-Z]{2})', _re_mode)
+ bitrate_pattern = re.compile('.*Bit Rate[=:](.*?/s)', _re_mode)
+ opmode_pattern = re.compile('.*Mode:(.*?) ', _re_mode)
+ authmethods_pattern = re.compile('.*Authentication capabilities :\n(.*?)Current', _re_mode)
similarity index 93%
rename from net-misc/wicd/wicd-1.7.1_beta2-r5.ebuild
rename to net-misc/wicd/wicd-1.7.1_beta2-r6.ebuild
index f99ffbe176b254eb63bc84487b32f98c36835d98..6e639d27a43288fd86c170c05897e20384c4764a 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.1_beta2-r5.ebuild,v 1.1 2011/09/09 11:18:41 tomka Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/wicd/wicd-1.7.1_beta2-r6.ebuild,v 1.1 2011/09/13 19:25:14 tomka Exp $
 
 EAPI=3
 
@@ -63,6 +63,10 @@ DOCS="CHANGES NEWS AUTHORS README"
 src_prepare() {
        epatch "${FILESDIR}"/${P}-init.patch
        epatch "${FILESDIR}"/${PN}-init-sve-start.patch
+       # Fix ad-hoc networking (bug 351337)
+       epatch "${FILESDIR}"/fix-ad-hoc-networking.patch
+       # Add a template for hex psk's and wpa (Bug 306423)
+       epatch "${FILESDIR}"/add-wpa-psk-hex-template.patch
        # get rid of opts variable to fix bug 381885
        sed -i "/opts/d" "in/init=gentoo=wicd.in"
        # Need to ensure that generated scripts use Python 2 at run time.