[arch-commits] Commit in netcfg/trunk (PKGBUILD git-fixes.patch)
Florian Pritz
bluewind at archlinux.org
Tue Jul 3 14:24:00 UTC 2012
Date: Tuesday, July 3, 2012 @ 10:24:00
Author: bluewind
Revision: 162902
upgpkg: netcfg 2.8.5-2
add bugfix from git
Added:
netcfg/trunk/git-fixes.patch
Modified:
netcfg/trunk/PKGBUILD
-----------------+
PKGBUILD | 7 ++++---
git-fixes.patch | 24 ++++++++++++++++++++++++
2 files changed, 28 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-07-03 11:58:44 UTC (rev 162901)
+++ PKGBUILD 2012-07-03 14:24:00 UTC (rev 162902)
@@ -2,7 +2,7 @@
pkgname=netcfg
pkgver=2.8.5
-pkgrel=1
+pkgrel=2
pkgdesc="Network configuration and profile scripts"
url="http://archlinux.org/netcfg/"
license=("BSD")
@@ -17,14 +17,15 @@
'ifenslave: for bond connections'
'bridge-utils: for bridge connections'
)
-source=(ftp://ftp.archlinux.org/other/netcfg/netcfg-${pkgver}.tar.xz)
+source=(ftp://ftp.archlinux.org/other/netcfg/netcfg-${pkgver}.tar.xz git-fixes.patch)
arch=(any)
-md5sums=('61019de518f430f421a6353ddb652549')
+md5sums=('61019de518f430f421a6353ddb652549' 'c511a6844769bac9e418644b51315cd2')
package() {
cd "$srcdir/netcfg-${pkgver}"
make DESTDIR="$pkgdir" install
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/netcfg/LICENSE"
+ patch -p1 -i "$srcdir/git-fixes.patch"
# Shell Completion
install -D -m644 contrib/bash-completion "$pkgdir/usr/share/bash-completion/completions/netcfg"
Added: git-fixes.patch
===================================================================
--- git-fixes.patch (rev 0)
+++ git-fixes.patch 2012-07-03 14:24:00 UTC (rev 162902)
@@ -0,0 +1,24 @@
+commit 9eb995ef8a34d552077b2af02787574a6534b1e2
+Author: Tasos Latsas <tlatsas2000 at gmail.com>
+Date: Sat Jun 30 11:07:45 2012 +0300
+
+ wifi-menu: fix name of wireless key variable
+
+ Dialog returns the wireless key in variable $key. Uppercase
+ 'KEY' is used later to create the profile.
+
+ Signed-off-by: Tasos Latsas <tlatsas2000 at gmail.com>
+
+diff --git a/scripts/wifi-menu b/scripts/wifi-menu
+index e182f25..ba8eb47 100755
+--- a/scripts/wifi-menu
++++ b/scripts/wifi-menu
+@@ -115,7 +115,7 @@ create_profile()
+ [[ "$OBSCURE" ]] && box="--insecure --passwordbox" || box="--inputbox"
+ msg="Enter $security security key for\n'$1'"
+ key=$(dialog $box "$msg" 10 40 --stdout) || return $?
+- [[ "${#KEY}" -ge 8 && "${#KEY}" -le 63 ]] || return 4
++ [[ "${#key}" -ge 8 && "${#key}" -le 63 ]] || return 4
+ if [[ "$OBSCURE" ]]; then
+ key=$(wpa_passphrase "$1" "$key" | grep -m 1 "^[[:space:]]*psk=")
+ key="KEY=${key#*psk=}"
More information about the arch-commits
mailing list