blob: 237bc0f223b18cb47f0eeca5fc9ce80ca98a2600 (
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
43
44
45
46
47
48
49
|
# Description: Utilitaire permettant la négociation WPA pour les réseaux sans fils
# URL: http://hostap.epitest.fi/wpa_supplicant
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libnl, dbus, openssl
# Run on: libnl,dbus,openssl
name=wpa_supplicant
version=1.0
release=1
source=(http://w1.fi/releases/$name-$version.tar.gz
config
WEP232.patch
hostap_allow-linking-with-libnl-3.2.patch)
build() {
cd $name-$version
patch -p1 < $SRC/WEP232.patch
patch -p1 < $SRC/hostap_allow-linking-with-libnl-3.2.patch
cd $name
perl -pi -e '$_ = "# $_" if /^\s*network\s*=\s*{/ .. /^\s*}/' wpa_supplicant.conf
cp $SRC/config .config
make BINDIR=/usr/sbin
make BINDIR=/usr/sbin eapol_test
mkdir -p $PKG/usr/sbin
mkdir -p $PKG/etc/dbus-1/system.d/
mkdir -p $PKG/usr/share/dbus-1/system-services/
mkdir -p $PKG/usr/lib/systemd/system
cp wpa_supplicant $PKG/usr/sbin
cp wpa_cli $PKG/usr/sbin
cp wpa_passphrase $PKG/usr/sbin
cp wpa_supplicant.conf $PKG/etc
cp eapol_test $PKG/usr/sbin
install -m 0644 dbus/dbus-wpa_supplicant.conf $PKG/etc/dbus-1/system.d/wpa_supplicant.conf
install -m 0644 dbus/fi.epitest.hostap.WPASupplicant.service $PKG/usr/share/dbus-1/system-services
install -m 0644 dbus/fi.w1.wpa_supplicant1.service $PKG/usr/share/dbus-1/system-services
install -m 0644 systemd/*.service $PKG/usr/lib/systemd/system/
mkdir -p $PKG/usr/share/man/man{5,8}
cp doc/docbook/*.8 $PKG/usr/share/man/man8
cp doc/docbook/*.5 $PKG/usr/share/man/man5
}
|