2007-04-25 10:56:54 +00:00
|
|
|
DESCRIPTION = "A Client for Wi-Fi Protected Access (WPA)."
|
|
|
|
SECTION = "network"
|
|
|
|
LICENSE = "GPL"
|
|
|
|
HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
|
2007-09-25 15:14:17 +00:00
|
|
|
DEPENDS = "gnutls dbus"
|
2007-04-25 10:56:54 +00:00
|
|
|
|
|
|
|
SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
|
2007-09-28 14:50:50 +00:00
|
|
|
file://wpa_supplicant-0.5.7-always-scan.patch;patch=1 \
|
|
|
|
file://wpa_supplicant-fix-deprecated-dbus-function.patch;patch=1;pnum=0 \
|
2007-04-25 10:56:54 +00:00
|
|
|
file://defconfig-gnutls \
|
|
|
|
file://defaults-sane \
|
|
|
|
file://wpa-supplicant.sh \
|
|
|
|
file://wpa_supplicant.conf \
|
2008-10-31 12:53:23 +00:00
|
|
|
file://wpa_supplicant.conf-sane \
|
|
|
|
file://99_wpa_supplicant"
|
2007-04-25 10:56:54 +00:00
|
|
|
|
|
|
|
S = "${WORKDIR}/wpa_supplicant-${PV}"
|
|
|
|
|
|
|
|
PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
|
|
|
|
FILES_wpa-supplicant-passphrase = "/usr/sbin/wpa_passphrase"
|
|
|
|
FILES_wpa-supplicant-cli = "/usr/sbin/wpa_cli"
|
|
|
|
|
|
|
|
RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
|
|
|
|
|
|
|
|
do_configure () {
|
|
|
|
install -m 0755 ${WORKDIR}/defconfig-gnutls .config
|
|
|
|
}
|
|
|
|
|
|
|
|
do_compile () {
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install () {
|
|
|
|
install -d ${D}${sbindir}
|
|
|
|
install -m 755 wpa_supplicant ${D}${sbindir}
|
|
|
|
install -m 755 wpa_passphrase ${D}${sbindir}
|
|
|
|
install -m 755 wpa_cli ${D}${sbindir}
|
|
|
|
|
|
|
|
install -d ${D}${docdir}/wpa_supplicant
|
|
|
|
install -m 644 README ${WORKDIR}/wpa_supplicant.conf ${D}${docdir}/wpa_supplicant
|
|
|
|
|
|
|
|
install -d ${D}${sysconfdir}/default
|
|
|
|
install -m 600 ${WORKDIR}/defaults-sane ${D}${sysconfdir}/default/wpa
|
|
|
|
install -m 600 ${WORKDIR}/wpa_supplicant.conf-sane ${D}${sysconfdir}/wpa_supplicant.conf
|
|
|
|
|
|
|
|
install -d ${D}${sysconfdir}/network/if-pre-up.d/
|
|
|
|
install -d ${D}${sysconfdir}/network/if-post-down.d/
|
|
|
|
install -d ${D}${sysconfdir}/network/if-down.d/
|
|
|
|
install -m 644 ${WORKDIR}/wpa_supplicant.conf ${D}${sysconfdir}
|
|
|
|
install -m 755 ${WORKDIR}/wpa-supplicant.sh ${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant
|
|
|
|
cd ${D}${sysconfdir}/network/ && \
|
|
|
|
ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
|
2007-09-25 15:14:17 +00:00
|
|
|
|
|
|
|
install -d ${D}/${sysconfdir}/dbus-1/system.d
|
|
|
|
install -m 644 ${S}/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
|
2008-10-31 12:53:23 +00:00
|
|
|
|
|
|
|
install -d ${D}/etc/default/volatiles
|
|
|
|
install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
|
2007-04-25 10:56:54 +00:00
|
|
|
}
|
2007-09-26 08:44:38 +00:00
|
|
|
|
|
|
|
pkg_postinst_wpa-supplicant () {
|
|
|
|
# can't do this offline
|
|
|
|
if [ "x$D" != "x" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2010-06-03 19:23:17 +00:00
|
|
|
/etc/init.d/populate-volatile.sh update
|
|
|
|
|
2007-09-26 08:44:38 +00:00
|
|
|
DBUSPID=`pidof dbus-daemon`
|
|
|
|
|
|
|
|
if [ "x$DBUSPID" != "x" ]; then
|
|
|
|
/etc/init.d/dbus-1 reload
|
|
|
|
fi
|
2008-01-30 21:24:47 +00:00
|
|
|
}
|