2009-10-09 10:41:19 +02:00
|
|
|
# Template file for 'wpa_supplicant'
|
|
|
|
pkgname=wpa_supplicant
|
2014-02-14 10:50:12 +01:00
|
|
|
version=2.1
|
2014-02-27 14:54:19 +01:00
|
|
|
revision=3
|
2012-02-08 17:33:03 +01:00
|
|
|
build_wrksrc=$pkgname
|
2009-10-09 10:41:19 +02:00
|
|
|
short_desc="WPA/WPA2/IEEE 802.1X Supplicant"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-02-19 09:45:39 +01:00
|
|
|
license="GPL-2"
|
2012-07-09 11:53:36 +02:00
|
|
|
homepage="http://hostap.epitest.fi"
|
|
|
|
distfiles="$homepage/releases/$pkgname-$version.tar.gz"
|
2014-02-14 10:50:12 +01:00
|
|
|
checksum=91632e7e3b49a340ce408e2f978a93546a697383abf2e5a60f146faae9e1b277
|
2009-10-09 10:41:19 +02:00
|
|
|
|
2013-03-24 10:21:58 +01:00
|
|
|
hostmakedepends="pkg-config"
|
2014-02-27 14:54:19 +01:00
|
|
|
makedepends="libnl3-devel openssl-devel dbus-devel readline-devel>=6.3"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/wpa_supplicant.conf"
|
2012-12-03 12:14:44 +01:00
|
|
|
|
2014-01-15 10:14:00 +01:00
|
|
|
pre_build() {
|
2012-02-09 09:06:12 +01:00
|
|
|
sed -i 's|/usr/local|$(PREFIX)|g' Makefile
|
|
|
|
cp -f ${FILESDIR}/config .config
|
2014-01-15 10:14:00 +01:00
|
|
|
}
|
2013-02-16 10:39:59 +01:00
|
|
|
|
2014-01-15 10:14:00 +01:00
|
|
|
do_build() {
|
2014-02-14 10:50:12 +01:00
|
|
|
export CFLAGS+=" $(pkg-config --cflags libnl-3.0)"
|
2013-05-26 10:41:55 +02:00
|
|
|
make ${make_build_args} V=1 PREFIX=/usr
|
2009-10-09 10:41:19 +02:00
|
|
|
}
|
|
|
|
|
2012-01-30 12:40:26 +01:00
|
|
|
do_install() {
|
2011-03-11 15:57:54 +01:00
|
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
2010-11-21 12:49:04 +01:00
|
|
|
|
2012-01-30 12:40:26 +01:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.tmpfiles.d \
|
|
|
|
644 usr/lib/tmpfiles.d ${pkgname}.conf
|
2012-06-26 10:04:03 +02:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.conf 644 etc/$pkgname
|
2012-01-30 12:40:26 +01:00
|
|
|
|
2012-01-30 13:09:49 +01:00
|
|
|
vinstall wpa_supplicant.conf 644 usr/share/examples/${pkgname}
|
2009-10-09 10:41:19 +02:00
|
|
|
for d in 5 8; do
|
|
|
|
install -d ${DESTDIR}/usr/share/man/man${d}
|
|
|
|
done
|
2012-06-26 10:04:03 +02:00
|
|
|
install -m644 doc/docbook/*.5 ${DESTDIR}/usr/share/man/man5
|
|
|
|
install -m644 doc/docbook/*.8 ${DESTDIR}/usr/share/man/man8
|
2009-10-09 10:41:19 +02:00
|
|
|
install -d ${DESTDIR}/usr/share/dbus-1/system-services
|
2010-11-21 12:49:04 +01:00
|
|
|
install -m644 dbus/*.service \
|
|
|
|
${DESTDIR}/usr/share/dbus-1/system-services/
|
2012-01-30 12:40:26 +01:00
|
|
|
vinstall dbus/dbus-${pkgname}.conf 644 \
|
|
|
|
etc/dbus-1/system.d ${pkgname}.conf
|
2012-06-26 10:04:03 +02:00
|
|
|
|
2012-07-09 22:52:56 +02:00
|
|
|
vmkdir usr/lib/systemd/system
|
|
|
|
install -m644 systemd/*.service ${DESTDIR}/usr/lib/systemd/system
|
2013-05-23 10:25:21 +02:00
|
|
|
|
|
|
|
# Fix wpa_supplicant@.service to respect instance name.
|
|
|
|
sed -e 's,wpa_supplicant@wlan0.service,wpa_supplicant@%i.service,' -i \
|
|
|
|
${DESTDIR}/usr/lib/systemd/system/wpa_supplicant@.service
|
2014-01-15 10:14:00 +01:00
|
|
|
|
|
|
|
vmkdir usr/bin
|
|
|
|
mv ${DESTDIR}/usr/sbin/* ${DESTDIR}/usr/bin
|
|
|
|
sed -e 's,/usr/sbin/,/usr/bin,g' -i \
|
|
|
|
${DESTDIR}/usr/lib/systemd/system/*.service
|
2009-10-09 10:41:19 +02:00
|
|
|
}
|