2009-10-09 08:41:19 +00:00
|
|
|
# Template file for 'wpa_supplicant'
|
|
|
|
pkgname=wpa_supplicant
|
2010-11-21 11:49:04 +00:00
|
|
|
version=0.7.3
|
2012-01-30 12:09:49 +00:00
|
|
|
revision=7
|
2012-02-08 16:33:03 +00:00
|
|
|
build_wrksrc=$pkgname
|
2009-10-09 08:41:19 +00:00
|
|
|
distfiles="http://hostap.epitest.fi/releases/$pkgname-$version.tar.gz"
|
|
|
|
short_desc="WPA/WPA2/IEEE 802.1X Supplicant"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-11-21 11:49:04 +00:00
|
|
|
checksum=d0cd50caa85346ccc376dcda5ed3c258eef19a93b3cade39d25760118ad59443
|
2009-10-09 08:41:19 +00:00
|
|
|
long_desc="
|
|
|
|
$pkgname is a WPA Supplicant for Linux, BSD, Mac OS X, and Windows with
|
|
|
|
support for WPA and WPA2 (IEEE 802.11i / RSN). It is suitable for both
|
|
|
|
desktop/laptop computers and embedded systems. Supplicant is the IEEE
|
|
|
|
802.1X/WPA component that is used in the client stations. It implements
|
|
|
|
key negotiation with a WPA Authenticator and it controls the roaming and
|
|
|
|
IEEE 802.11 authentication/association of the wlan driver.
|
|
|
|
|
|
|
|
$pkgname is designed to be a daemon program that runs in the background
|
|
|
|
and acts as the backend component controlling the wireless connection.
|
|
|
|
$pkgname supports separate frontend programs and a text-based frontend
|
|
|
|
(wpa_cli) and a GUI (wpa_gui) are included with $pkgname."
|
|
|
|
|
|
|
|
conf_files="/etc/${pkgname}.conf"
|
2011-11-10 11:05:02 +00:00
|
|
|
systemd_services="${pkgname}.service on"
|
2009-10-09 08:41:19 +00:00
|
|
|
|
2010-01-10 02:59:15 +00:00
|
|
|
Add_dependency build libnl-devel
|
|
|
|
Add_dependency build openssl-devel
|
|
|
|
Add_dependency build dbus-devel
|
|
|
|
Add_dependency build readline-devel
|
2009-10-09 08:41:19 +00:00
|
|
|
|
2012-01-30 11:40:26 +00:00
|
|
|
do_build() {
|
2012-02-09 08:06:12 +00:00
|
|
|
sed -i 's|/usr/local|$(PREFIX)|g' Makefile
|
|
|
|
cp -f ${FILESDIR}/config .config
|
2011-03-11 14:57:54 +00:00
|
|
|
make ${makejobs}
|
2009-10-09 08:41:19 +00:00
|
|
|
}
|
|
|
|
|
2012-01-30 11:40:26 +00:00
|
|
|
do_install() {
|
2011-03-11 14:57:54 +00:00
|
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
2010-11-21 11:49:04 +00:00
|
|
|
|
2011-10-11 02:13:37 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.service 644 lib/systemd/system
|
2012-01-30 11:40:26 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}@.service 644 lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.tmpfiles.d \
|
|
|
|
644 usr/lib/tmpfiles.d ${pkgname}.conf
|
2012-01-30 12:09:49 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.conf 644 etc
|
2012-01-30 11:40:26 +00:00
|
|
|
|
2012-01-30 12:09:49 +00:00
|
|
|
vinstall wpa_supplicant.conf 644 usr/share/examples/${pkgname}
|
2009-10-09 08:41:19 +00:00
|
|
|
for d in 5 8; do
|
|
|
|
install -d ${DESTDIR}/usr/share/man/man${d}
|
|
|
|
done
|
|
|
|
install -m644 doc/docbook/${pkgname}.conf.5 \
|
|
|
|
${DESTDIR}/usr/share/man/man5
|
|
|
|
install -m644 doc/docbook/wpa_*.8 ${DESTDIR}/usr/share/man/man8
|
|
|
|
install -d ${DESTDIR}/usr/share/dbus-1/system-services
|
2010-11-21 11:49:04 +00:00
|
|
|
sed -i -e "s|/sbin|/usr/sbin|" dbus/*.service
|
|
|
|
install -m644 dbus/*.service \
|
|
|
|
${DESTDIR}/usr/share/dbus-1/system-services/
|
2012-01-30 11:40:26 +00:00
|
|
|
vinstall dbus/dbus-${pkgname}.conf 644 \
|
|
|
|
etc/dbus-1/system.d ${pkgname}.conf
|
2009-10-09 08:41:19 +00:00
|
|
|
}
|