blob: cfd1539f31b69f6649cdfc1b0ad89e8d5bbfeac2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# 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: pygtk, wpa_supplicant, ethtool, dhcpcd, dbus-python, wireless_tools
name=wicd
version=1.6.2.2
release=1
source=(http://downloads.sourceforge.net/$name/wicd-$version.tar.gz \
wicd wicd_in_usr.patch wicd-locale.patch wicd.desktop )
build() {
cd $name-$version
python setup.py configure --no-install-init \
--resume=/usr/share/wicd/scripts/ \
--suspend=/usr/share/wicd/scripts --verbose
python 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
chmod 755 $PKG/usr/lib/wicd/wicd-daemon.py
rm -rf $PKG/usr/share/autostart
#Install the daemon service
mkdir -v -p $PKG/etc/rc.d/init.d
mkdir -v -p $PKG/etc/rc.d/rc{0,1,3,4,5,6}.d
install -D -m 755 $SRC/wicd $PKG/etc/rc.d/init.d/wicd
ln -svf ../init.d/wicd $PKG/etc/rc.d/rc3.d/S20wicd
ln -svf ../init.d/wicd $PKG/etc/rc.d/rc5.d/S20wicd
ln -svf ../init.d/wicd $PKG/etc/rc.d/rc4.d/S20wicd
ln -svf ../init.d/wicd $PKG/etc/rc.d/rc0.d/K80wicd
ln -svf ../init.d/wicd $PKG/etc/rc.d/rc1.d/K80wicd
ln -svf ../init.d/wicd $PKG/etc/rc.d/rc6.d/K80wicd
chown -R 0:0 $PKG/
}
|