[arch-commits] Commit in netctl/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sun Apr 26 12:03:51 UTC 2015


    Date: Sunday, April 26, 2015 @ 14:03:50
  Author: foutrelis
Revision: 238046

archrelease: copy trunk to testing-any

Added:
  netctl/repos/testing-any/
  netctl/repos/testing-any/0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch
    (from rev 238045, netctl/trunk/0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch)
  netctl/repos/testing-any/PKGBUILD
    (from rev 238045, netctl/trunk/PKGBUILD)

-----------------------------------------------------------------+
 0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch |   29 ++++++
 PKGBUILD                                                        |   46 ++++++++++
 2 files changed, 75 insertions(+)

Copied: netctl/repos/testing-any/0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch (from rev 238045, netctl/trunk/0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch)
===================================================================
--- testing-any/0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch	                        (rev 0)
+++ testing-any/0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch	2015-04-26 12:03:50 UTC (rev 238046)
@@ -0,0 +1,29 @@
+From f87ee53ca82e270e6d3cbea8e5672b068e450d79 Mon Sep 17 00:00:00 2001
+From: Evangelos Foutras <evangelos at foutrelis.com>
+Date: Sun, 26 Apr 2015 10:54:34 +0300
+Subject: [PATCH] Redirect wpa_supplicant output in wpa_start() (closes #112)
+
+wpa_supplicant>=2.4 sets stdout to be line-buffered. This breaks
+wpa_supplicant_scan() since the startup message from wpa_supplicant
+("Successfully initialized wpa_supplicant") gets printed before the
+essids filename.
+---
+ src/lib/wpa | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/lib/wpa b/src/lib/wpa
+index e8ce8b1..b5fda8a 100644
+--- a/src/lib/wpa
++++ b/src/lib/wpa
+@@ -80,7 +80,7 @@ wpa_start() {
+     fi
+ 
+     do_debug wpa_supplicant -B -P "$pidfile" -i "$interface" -D "$driver" \
+-                            "$configuration" $WPAOptions
++                            "$configuration" $WPAOptions > /dev/null
+ 
+     # Wait up to one second for the pid file to appear
+     if ! timeout_wait 1 '[[ -f $pidfile ]]'; then
+-- 
+2.3.6
+

Copied: netctl/repos/testing-any/PKGBUILD (from rev 238045, netctl/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2015-04-26 12:03:50 UTC (rev 238046)
@@ -0,0 +1,46 @@
+# Maintainer: Jouke Witteveen <j.witteveen at gmail.com>
+
+pkgname=netctl
+pkgver=1.10
+pkgrel=2
+pkgdesc='Profile based systemd network management'
+url='http://projects.archlinux.org/netctl.git/'
+license=('GPL')
+groups=('base')
+depends=('coreutils' 'iproute2' 'openresolv' 'systemd')
+# The source tarball includes pre-built (using asciidoc) documentation.
+makedepends=('pkg-config')
+optdepends=('dialog: for the menu based wifi assistant'
+            'dhclient: for DHCP support (or dhcpcd)'
+            'dhcpcd: for DHCP support (or dhclient)'
+            'wpa_supplicant: for wireless networking support'
+            'ifplugd: for automatic wired connections through netctl-ifplugd'
+            'wpa_actiond: for automatic wireless connections through netctl-auto'
+            'ppp: for PPP connections'
+            'openvswitch: for Open vSwitch connections'
+           )
+source=(https://sources.archlinux.org/other/packages/netctl/netctl-${pkgver}.tar.xz{,.sig}
+        0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch)
+arch=('any')
+md5sums=('15e9b126fd15efe4fc814fa18623d76e'
+         'SKIP'
+         '9ed06138ec001be186ef07a1725a4f34')
+validpgpkeys=(CFA6AF15E5C74149FC1D8C086D1655C14CE1C13E)
+
+prepare() {
+  cd "$srcdir/netctl-${pkgver}"
+
+  # Fix wifi-menu to work with wpa_supplicant 2.4
+  # https://github.com/joukewitteveen/netctl/issues/112
+  patch -Np1 -i ../0001-Redirect-wpa_supplicant-output-in-wpa_start-closes-1.patch
+}
+
+package() {
+  cd "$srcdir/netctl-${pkgver}"
+  make DESTDIR="$pkgdir" install
+
+  # Shell Completion
+  install -D -m644 contrib/bash-completion "$pkgdir/usr/share/bash-completion/completions/netctl"
+  install -D -m644 contrib/zsh-completion "$pkgdir/usr/share/zsh/site-functions/_netctl"
+}
+



More information about the arch-commits mailing list