[arch-commits] Commit in wicd/repos/extra-any (11 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Fri Dec 5 20:18:57 UTC 2014


    Date: Friday, December 5, 2014 @ 21:18:56
  Author: bpiotrowski
Revision: 227308

archrelease: copy trunk to extra-any

Added:
  wicd/repos/extra-any/PKGBUILD
    (from rev 227307, wicd/trunk/PKGBUILD)
  wicd/repos/extra-any/dbus_string_fix.patch
    (from rev 227307, wicd/trunk/dbus_string_fix.patch)
  wicd/repos/extra-any/wicd-1.7.2.4-urwid-1.3.0.patch
    (from rev 227307, wicd/trunk/wicd-1.7.2.4-urwid-1.3.0.patch)
  wicd/repos/extra-any/wicd-gtk.install
    (from rev 227307, wicd/trunk/wicd-gtk.install)
  wicd/repos/extra-any/wicd.desktop
    (from rev 227307, wicd/trunk/wicd.desktop)
  wicd/repos/extra-any/wicd.install
    (from rev 227307, wicd/trunk/wicd.install)
Deleted:
  wicd/repos/extra-any/PKGBUILD
  wicd/repos/extra-any/dbus_string_fix.patch
  wicd/repos/extra-any/wicd-gtk.install
  wicd/repos/extra-any/wicd.desktop
  wicd/repos/extra-any/wicd.install

--------------------------------+
 PKGBUILD                       |  233 +++++++++++++++++++--------------------
 dbus_string_fix.patch          |   32 ++---
 wicd-1.7.2.4-urwid-1.3.0.patch |   17 ++
 wicd-gtk.install               |   22 +--
 wicd.desktop                   |   22 +--
 wicd.install                   |   38 +++---
 6 files changed, 193 insertions(+), 171 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-12-05 20:18:36 UTC (rev 227307)
+++ PKGBUILD	2014-12-05 20:18:56 UTC (rev 227308)
@@ -1,114 +0,0 @@
-# $Id$
-# Maintainer: Daniel Isenmann <daniel at archlinux.org>
-# Contributor: Rashif "Don Ray" Rahman <rayrashif at gmail.com>
-
-pkgbase=wicd
-pkgname=('wicd' 'wicd-gtk')
-pkgver=1.7.2.4
-pkgrel=9
-arch=(any)
-url="http://wicd.sourceforge.net/"
-license=('GPL2')
-conflicts=('wicd-svn')
-install=wicd.install
-source=(http://launchpad.net/wicd/1.7/$pkgver/+download/wicd-$pkgver.tar.gz
-        wicd.desktop
-        dbus_string_fix.patch
-	http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/diff/831
-	http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/diff/835)
-md5sums=('c2435ddfdef0b9898852d72a85a45f0f'
-         '326df163a5732d38741371baa4fce9e5'
-         '744b3c12fe901ed435351e884dc8cb1d'
-         '0d2355bc2eb7234a537f42f1773edfe0'
-         '1630d7fe8f09911302d33b26286ff9b8')
-makedepends=('python2' 'python2-babel' 'python2-setuptools' 'gettext' 'dbus-glib' 'dhcpcd' 
-             'ethtool' 'inetutils' 'net-tools' 'pygtk' 'python2-dbus' 'python2-gobject2' 
-             'python2-urwid' 'rfkill' 'shared-mime-info' 'wireless_tools' 'wpa_supplicant'
-             'hicolor-icon-theme')
-options=('emptydirs')
-
-prepare() {
-  cd $pkgbase-$pkgver
-
-  find . -type f -exec sed -i 's@#!/usr.*python@#!/usr/bin/python2@' {} \;
-  export PYTHON=python2
-  
-  sed -i 's|/usr/sbin/|/usr/bin/|' other/wicd.service
-
-  patch -p0 < "$srcdir/dbus_string_fix.patch"
-  
-  # Fix problem with new urwid FS#33378 LP#1075399
-  patch -Np0 -i "$srcdir/831"
-  patch -Np0 -i "$srcdir/835"
-}
-
-build() {
-  cd $pkgbase-$pkgver
-
-  python2 setup.py configure --no-install-init \
-	                     --resume=/usr/share/wicd/scripts/ \
-                             --suspend=/usr/share/wicd/scripts/ \
-                             --verbose \
-                             --python=/usr/bin/python2 \
-			     --lib=/usr/lib \
-			     --sbin=/usr/bin \
-			     --systemd=/usr/lib/systemd/system
-  
-  #HACK for https://bugs.launchpad.net/wicd/+bug/928589
-  mkdir -p translations/ast/LC_MESSAGES
-  msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
-}
-
-package_wicd() {
-  pkgdesc="Wired and wireless network manager for Linux"
-  depends=('python2' 'python2-dbus' 'dhcpcd' 'wpa_supplicant' 'wireless_tools'
-           'inetutils' 'net-tools' 'ethtool' 'shared-mime-info' 'python2-urwid' 'python2-gobject2' 'dbus-glib' 'rfkill')
-  optdepends=('wicd-gtk: needed if you want the GTK interface')
-  backup=('etc/wicd/encryption/templates/active')
-  install=wicd.install  
-
-  cd $pkgbase-$pkgver
-  python2 setup.py install --optimize=1 --root="$pkgdir"
-
-  cd build/lib/wicd
-  for i in *.py; do
-    install -Dm 755 $i "$pkgdir/usr/lib/wicd/$i"
-  done
-  
-  rm -rf "$pkgdir"/usr/share/autostart
-
-  #deleting the GTK stuff
-  rm -rf "$pkgdir"/etc/xdg
-  rm -f "$pkgdir"/usr/bin/{wicd-client,wicd-gtk}
-  rm -rf "$pkgdir"/usr/share/{applications,icons,pixmaps}
-  rm -rf "$pkgdir"/usr/share/wicd/gtk  
-}
-
-package_wicd-gtk() {
-  pkgdesc="Wired and wireless network manager for Linux - GTK client"
-  depends=('wicd' 'pygtk' 'hicolor-icon-theme')
-  optdepends=('gksu: needed to access some preferences in gtk interface'
-              'notification-daemon: needed if you want notifications'
-              'python2-notify:	needed if you want notifications')
-  install=wicd-gtk.install 
-
-  cd $pkgbase-$pkgver
-  python2 setup.py install --optimize=1 --root="$pkgdir"
-
-  install -Dm644 "$srcdir/wicd.desktop" "$pkgdir/usr/share/applications/wicd.desktop"
-
-  cd build/lib/wicd
-  for i in *.py; do
-    install -Dm 755 $i "$pkgdir"/usr/lib/wicd/$i
-  done
-  
-  #deleting the core dirs which exists in wicd
-  rm -rf "$pkgdir"/etc/{wicd,dbus-1,rc.d,logrotate.d}
-  rm -rf "$pkgdir"/usr/lib
-  rm -rf "$pkgdir"/usr/share/{man,doc,locale,wicd/curses,wicd/daemon,wicd/backends,wicd/scripts,wicd/cli}
-  rm -rf "$pkgdir"/var
-  rm -f "$pkgdir"/usr/bin/{wicd,wicd-curses,wicd-cli}
-
-  rm -rf "$pkgdir"/usr/share/autostart
-  rm -rf "$pkgdir"/usr/share/dbus-1
-}

Copied: wicd/repos/extra-any/PKGBUILD (from rev 227307, wicd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-12-05 20:18:56 UTC (rev 227308)
@@ -0,0 +1,119 @@
+# $Id$
+# Maintainer: Daniel Isenmann <daniel at archlinux.org>
+# Contributor: Rashif "Don Ray" Rahman <rayrashif at gmail.com>
+
+pkgbase=wicd
+pkgname=('wicd' 'wicd-gtk')
+pkgver=1.7.2.4
+pkgrel=10
+arch=(any)
+url="http://wicd.sourceforge.net/"
+license=('GPL2')
+conflicts=('wicd-svn')
+install=wicd.install
+source=(http://launchpad.net/wicd/1.7/$pkgver/+download/wicd-$pkgver.tar.gz
+        wicd.desktop
+        dbus_string_fix.patch
+	http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/diff/831
+	http://bazaar.launchpad.net/~wicd-devel/wicd/experimental/diff/835
+        wicd-1.7.2.4-urwid-1.3.0.patch)
+md5sums=('c2435ddfdef0b9898852d72a85a45f0f'
+         '326df163a5732d38741371baa4fce9e5'
+         '744b3c12fe901ed435351e884dc8cb1d'
+         '0d2355bc2eb7234a537f42f1773edfe0'
+         '1630d7fe8f09911302d33b26286ff9b8'
+         '797a1663714da24e446c50698bba25b5')
+makedepends=('python2' 'python2-babel' 'python2-setuptools' 'gettext' 'dbus-glib' 'dhcpcd' 
+             'ethtool' 'inetutils' 'net-tools' 'pygtk' 'python2-dbus' 'python2-gobject2' 
+             'python2-urwid' 'rfkill' 'shared-mime-info' 'wireless_tools' 'wpa_supplicant'
+             'hicolor-icon-theme')
+options=('emptydirs')
+
+prepare() {
+  cd $pkgbase-$pkgver
+
+  find . -type f -exec sed -i 's@#!/usr.*python@#!/usr/bin/python2@' {} \;
+  sed -i 's/pybabel/pybabel2/g' setup.py 
+  export PYTHON=python2
+  
+  sed -i 's|/usr/sbin/|/usr/bin/|' other/wicd.service
+
+  patch -p0 < "$srcdir/dbus_string_fix.patch"
+  
+  # Fix problem with new urwid FS#33378 LP#1075399
+  patch -Np0 -i "$srcdir/831"
+  patch -Np0 -i "$srcdir/835"
+  patch -p1  -i "$srcdir/wicd-1.7.2.4-urwid-1.3.0.patch"
+}
+
+build() {
+  cd $pkgbase-$pkgver
+
+  python2 setup.py configure --no-install-init \
+	                     --resume=/usr/share/wicd/scripts/ \
+                             --suspend=/usr/share/wicd/scripts/ \
+                             --verbose \
+                             --python=/usr/bin/python2 \
+			     --lib=/usr/lib \
+			     --sbin=/usr/bin \
+			     --systemd=/usr/lib/systemd/system
+  python2 setup.py compile_translations
+  
+  #HACK for https://bugs.launchpad.net/wicd/+bug/928589
+  mkdir -p translations/ast/LC_MESSAGES
+  msgfmt po/ast.po -o translations/ast/LC_MESSAGES/wicd.mo
+}
+
+package_wicd() {
+  pkgdesc="Wired and wireless network manager for Linux"
+  depends=('python2' 'python2-dbus' 'dhcpcd' 'wpa_supplicant' 'wireless_tools'
+           'inetutils' 'net-tools' 'ethtool' 'shared-mime-info' 'python2-urwid' 'python2-gobject2' 'dbus-glib' 'rfkill')
+  optdepends=('wicd-gtk: needed if you want the GTK interface')
+  backup=('etc/wicd/encryption/templates/active')
+  install=wicd.install  
+
+  cd $pkgbase-$pkgver
+  python2 setup.py install --optimize=1 --root="$pkgdir"
+
+  cd build/lib/wicd
+  for i in *.py; do
+    install -Dm 755 $i "$pkgdir/usr/lib/wicd/$i"
+  done
+  
+  rm -rf "$pkgdir"/usr/share/autostart
+
+  #deleting the GTK stuff
+  rm -rf "$pkgdir"/etc/xdg
+  rm -f "$pkgdir"/usr/bin/{wicd-client,wicd-gtk}
+  rm -rf "$pkgdir"/usr/share/{applications,icons,pixmaps}
+  rm -rf "$pkgdir"/usr/share/wicd/gtk  
+}
+
+package_wicd-gtk() {
+  pkgdesc="Wired and wireless network manager for Linux - GTK client"
+  depends=('wicd' 'pygtk' 'hicolor-icon-theme')
+  optdepends=('gksu: needed to access some preferences in gtk interface'
+              'notification-daemon: needed if you want notifications'
+              'python2-notify:	needed if you want notifications')
+  install=wicd-gtk.install 
+
+  cd $pkgbase-$pkgver
+  python2 setup.py install --optimize=1 --root="$pkgdir"
+
+  install -Dm644 "$srcdir/wicd.desktop" "$pkgdir/usr/share/applications/wicd.desktop"
+
+  cd build/lib/wicd
+  for i in *.py; do
+    install -Dm 755 $i "$pkgdir"/usr/lib/wicd/$i
+  done
+  
+  #deleting the core dirs which exists in wicd
+  rm -rf "$pkgdir"/etc/{wicd,dbus-1,rc.d,logrotate.d}
+  rm -rf "$pkgdir"/usr/lib
+  rm -rf "$pkgdir"/usr/share/{man,doc,locale,wicd/curses,wicd/daemon,wicd/backends,wicd/scripts,wicd/cli}
+  rm -rf "$pkgdir"/var
+  rm -f "$pkgdir"/usr/bin/{wicd,wicd-curses,wicd-cli}
+
+  rm -rf "$pkgdir"/usr/share/autostart
+  rm -rf "$pkgdir"/usr/share/dbus-1
+}

Deleted: dbus_string_fix.patch
===================================================================
--- dbus_string_fix.patch	2014-12-05 20:18:36 UTC (rev 227307)
+++ dbus_string_fix.patch	2014-12-05 20:18:56 UTC (rev 227308)
@@ -1,16 +0,0 @@
-=== modified file 'wicd/misc.py'
---- wicd/misc.py	2012-04-30 19:20:47 +0000
-+++ wicd/misc.py	2012-05-03 16:01:49 +0000
-@@ -430,7 +430,10 @@
-     """ Sanitize property names to be used in config-files. """
-     allowed = string.ascii_letters + '_' + string.digits
-     table = string.maketrans(allowed, ' ' * len(allowed))
--    return s.translate(None, table)
-+
-+    # s is a dbus.String -- since we don't allow unicode property keys,
-+    # make it simple.
-+    return str(s).translate(None, table)
- 
- def sanitize_escaped(s):
-     """ Sanitize double-escaped unicode strings. """
-

Copied: wicd/repos/extra-any/dbus_string_fix.patch (from rev 227307, wicd/trunk/dbus_string_fix.patch)
===================================================================
--- dbus_string_fix.patch	                        (rev 0)
+++ dbus_string_fix.patch	2014-12-05 20:18:56 UTC (rev 227308)
@@ -0,0 +1,16 @@
+=== modified file 'wicd/misc.py'
+--- wicd/misc.py	2012-04-30 19:20:47 +0000
++++ wicd/misc.py	2012-05-03 16:01:49 +0000
+@@ -430,7 +430,10 @@
+     """ Sanitize property names to be used in config-files. """
+     allowed = string.ascii_letters + '_' + string.digits
+     table = string.maketrans(allowed, ' ' * len(allowed))
+-    return s.translate(None, table)
++
++    # s is a dbus.String -- since we don't allow unicode property keys,
++    # make it simple.
++    return str(s).translate(None, table)
+ 
+ def sanitize_escaped(s):
+     """ Sanitize double-escaped unicode strings. """
+

Copied: wicd/repos/extra-any/wicd-1.7.2.4-urwid-1.3.0.patch (from rev 227307, wicd/trunk/wicd-1.7.2.4-urwid-1.3.0.patch)
===================================================================
--- wicd-1.7.2.4-urwid-1.3.0.patch	                        (rev 0)
+++ wicd-1.7.2.4-urwid-1.3.0.patch	2014-12-05 20:18:56 UTC (rev 227308)
@@ -0,0 +1,17 @@
+diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py
+index 641aa52..603609b 100755
+--- a/curses/wicd-curses.py
++++ b/curses/wicd-curses.py
+@@ -927,9 +927,10 @@ class appGUI():
+         if not ui._started:
+             return False
+ 
+-        input_data = ui.get_input_nonblocking()
++        ui.set_input_timeouts(max_wait=0)
++        input_data = ui.get_input()
+         # Resolve any "alarms" in the waiting
+-        self.handle_keys(input_data[1])
++        self.handle_keys(input_data)
+ 
+         # Update the screen
+         canvas = self.frame.render( (self.size),True )

Deleted: wicd-gtk.install
===================================================================
--- wicd-gtk.install	2014-12-05 20:18:36 UTC (rev 227307)
+++ wicd-gtk.install	2014-12-05 20:18:56 UTC (rev 227308)
@@ -1,11 +0,0 @@
-post_install() {
-  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
-  post_install
-}
-
-post_remove() {
-  post_install
-}

Copied: wicd/repos/extra-any/wicd-gtk.install (from rev 227307, wicd/trunk/wicd-gtk.install)
===================================================================
--- wicd-gtk.install	                        (rev 0)
+++ wicd-gtk.install	2014-12-05 20:18:56 UTC (rev 227308)
@@ -0,0 +1,11 @@
+post_install() {
+  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}

Deleted: wicd.desktop
===================================================================
--- wicd.desktop	2014-12-05 20:18:36 UTC (rev 227307)
+++ wicd.desktop	2014-12-05 20:18:56 UTC (rev 227308)
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Categories=Network;
-Encoding=UTF-8
-Exec=/usr/bin/wicd-client
-GenericName=Network Manager
-Icon=wicd-gtk
-Comment=Manage Wired/Wireless Networks
-Name=Wicd
-Terminal=false
-Type=Application
-Version=1.0

Copied: wicd/repos/extra-any/wicd.desktop (from rev 227307, wicd/trunk/wicd.desktop)
===================================================================
--- wicd.desktop	                        (rev 0)
+++ wicd.desktop	2014-12-05 20:18:56 UTC (rev 227308)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Categories=Network;
+Encoding=UTF-8
+Exec=/usr/bin/wicd-client
+GenericName=Network Manager
+Icon=wicd-gtk
+Comment=Manage Wired/Wireless Networks
+Name=Wicd
+Terminal=false
+Type=Application
+Version=1.0

Deleted: wicd.install
===================================================================
--- wicd.install	2014-12-05 20:18:36 UTC (rev 227307)
+++ wicd.install	2014-12-05 20:18:56 UTC (rev 227308)
@@ -1,19 +0,0 @@
-PKGNAME=wicd
-
-pre_remove () {
-    for pyo in $(pacman -Qql $PKGNAME  | grep \.py$ | sed 's|.py$|.pyo|g'); do
-        if [ -f "$pyo" ]; then
-            rm "$pyo"
-        fi
-    done
-}
-
-post_install() {
-  echo
-  echo "==> You need to restart the dbus service after "
-  echo "==> upgrading wicd."
-  echo "==> Disable networkmanager,dhcdbd or other networking " 
-  echo "==> utility and add 'wicd' to your systemd configuration."
-  echo
-  echo "==> To run: wicd-cli or wicd-curses"    
-}

Copied: wicd/repos/extra-any/wicd.install (from rev 227307, wicd/trunk/wicd.install)
===================================================================
--- wicd.install	                        (rev 0)
+++ wicd.install	2014-12-05 20:18:56 UTC (rev 227308)
@@ -0,0 +1,19 @@
+PKGNAME=wicd
+
+pre_remove () {
+    for pyo in $(pacman -Qql $PKGNAME  | grep \.py$ | sed 's|.py$|.pyo|g'); do
+        if [ -f "$pyo" ]; then
+            rm "$pyo"
+        fi
+    done
+}
+
+post_install() {
+  echo
+  echo "==> You need to restart the dbus service after "
+  echo "==> upgrading wicd."
+  echo "==> Disable networkmanager,dhcdbd or other networking " 
+  echo "==> utility and add 'wicd' to your systemd configuration."
+  echo
+  echo "==> To run: wicd-cli or wicd-curses"    
+}



More information about the arch-commits mailing list