summaryrefslogtreecommitdiffstats
path: root/wicd/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /wicd/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'wicd/Pkgfile')
-rw-r--r--wicd/Pkgfile41
1 files changed, 41 insertions, 0 deletions
diff --git a/wicd/Pkgfile b/wicd/Pkgfile
new file mode 100644
index 000000000..187da6065
--- /dev/null
+++ b/wicd/Pkgfile
@@ -0,0 +1,41 @@
+# Description: Interface graphique pour gérer le wifi
+# URL: http://wicd.sourceforge.net/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: urwid, pygtk, wpa_supplicant, ethtool, dbus-python, wireless_tools, dhcpcd
+# Run on: urwid,pygtk,wpa_supplicant,ethtool,dbus-python,wireless_tools,dhcpcd
+
+name=wicd
+version=1.7.0
+release=8
+source=(http://downloads.sourceforge.net/$name/wicd-$version.tar.gz \
+ http://nutyx.meticul.eu/files/patchs/$name/{wicd_in_usr.patch,wicd-locale.patch,wicd.desktop}
+ wicd-1.7.0-python-2.7.patch
+ wicd-1.7.0-script-execution.patch)
+
+build() {
+ cd $name-$version
+ patch -p0 < ../wicd-1.7.0-script-execution.patch
+ patch -p1 -i ../wicd-1.7.0-python-2.7.patch
+ find . -type f -exec sed -i 's@#!/usr.*python@#!/usr/bin/python2@' {} \;
+ export PYTHON=python2
+
+ python2 setup.py configure --no-install-init \
+ --resume=/usr/share/wicd/scripts/ \
+ --suspend=/usr/share/wicd/scripts --verbose \
+ --python=/usr/bin/python2
+ python2 setup.py install --root=$PKG
+
+ # Add custom rc.d script
+ install -Dm644 ../wicd.desktop $PKG/usr/share/applications/wicd.desktop
+
+ cd build/lib/wicd
+ for i in *.py; do
+ install -D -m755 $i $PKG/usr/lib/wicd/$i
+ done
+ rm -rf $PKG/usr/share/autostart
+ chmod 755 $PKG/usr/share/wicd/daemon/wicd-daemon.py
+ chown -R 0:0 $PKG/
+ rm $PKG/var/log/wicd/.empty_on_purpose
+}
+