2009-10-09 08:41:19 +00:00
|
|
|
# Template file for 'wpa_supplicant'
|
|
|
|
pkgname=wpa_supplicant
|
2014-10-12 04:46:35 +00:00
|
|
|
version=2.3
|
2014-11-11 16:13:04 +00:00
|
|
|
revision=3
|
2012-02-08 16:33:03 +00:00
|
|
|
build_wrksrc=$pkgname
|
2009-10-09 08:41:19 +00:00
|
|
|
short_desc="WPA/WPA2/IEEE 802.1X Supplicant"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-06-06 12:02:08 +00:00
|
|
|
license="BSD"
|
2014-10-12 04:46:35 +00:00
|
|
|
homepage="http://w1.fi/wpa_supplicant/"
|
|
|
|
distfiles="http://w1.fi/releases/$pkgname-$version.tar.gz"
|
|
|
|
checksum=eaaa5bf3055270e521b2dff64f2d203ec8040f71958b8588269a82c00c9d7b6a
|
2009-10-09 08:41:19 +00:00
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2014-07-14 10:50:21 +00:00
|
|
|
makedepends="libnl3-devel libressl-devel dbus-devel readline-devel>=6.3"
|
2014-03-24 16:29:47 +00:00
|
|
|
conf_files="/etc/${pkgname}/${pkgname}.conf"
|
2014-08-20 09:45:32 +00:00
|
|
|
build_options="systemd"
|
|
|
|
|
2014-01-15 09:14:00 +00:00
|
|
|
pre_build() {
|
2012-02-09 08:06:12 +00:00
|
|
|
sed -i 's|/usr/local|$(PREFIX)|g' Makefile
|
|
|
|
cp -f ${FILESDIR}/config .config
|
2014-09-28 16:43:20 +00:00
|
|
|
sed -i 's, -u, -uq,' dbus/*.service.in
|
2014-01-15 09:14:00 +00:00
|
|
|
}
|
2013-02-16 09:39:59 +00:00
|
|
|
|
2014-01-15 09:14:00 +00:00
|
|
|
do_build() {
|
2014-02-14 09:50:12 +00:00
|
|
|
export CFLAGS+=" $(pkg-config --cflags libnl-3.0)"
|
2014-03-24 16:29:47 +00:00
|
|
|
make ${make_build_args} V=1 PREFIX=/usr BINDIR=/usr/bin
|
2009-10-09 08:41:19 +00:00
|
|
|
}
|
|
|
|
|
2012-01-30 11:40:26 +00:00
|
|
|
do_install() {
|
2014-03-24 16:29:47 +00:00
|
|
|
make PREFIX=/usr BINDIR=/usr/bin DESTDIR=${DESTDIR} install
|
2010-11-21 11:49:04 +00:00
|
|
|
|
2012-06-26 08:04:03 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.conf 644 etc/$pkgname
|
2014-08-20 09:45:32 +00:00
|
|
|
vsconf wpa_supplicant.conf
|
2012-01-30 11:40:26 +00:00
|
|
|
|
2009-10-09 08:41:19 +00:00
|
|
|
for d in 5 8; do
|
|
|
|
install -d ${DESTDIR}/usr/share/man/man${d}
|
|
|
|
done
|
2012-06-26 08:04:03 +00:00
|
|
|
install -m644 doc/docbook/*.5 ${DESTDIR}/usr/share/man/man5
|
|
|
|
install -m644 doc/docbook/*.8 ${DESTDIR}/usr/share/man/man8
|
2009-10-09 08:41:19 +00:00
|
|
|
install -d ${DESTDIR}/usr/share/dbus-1/system-services
|
2014-08-20 09:45:32 +00:00
|
|
|
install -m644 dbus/*.service ${DESTDIR}/usr/share/dbus-1/system-services/
|
|
|
|
vinstall dbus/dbus-${pkgname}.conf 644 etc/dbus-1/system.d ${pkgname}.conf
|
|
|
|
|
2014-11-11 16:13:04 +00:00
|
|
|
rm ${DESTDIR}/usr/share/man/man8/wpa_gui.8
|
|
|
|
|
2014-08-20 09:45:32 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.tmpfiles.d 644 usr/lib/tmpfiles.d ${pkgname}.conf
|
|
|
|
vmkdir usr/lib/systemd/system
|
|
|
|
install -m644 systemd/*.service ${DESTDIR}/usr/lib/systemd/system
|
|
|
|
# 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
|
|
|
|
# Make wpa_supplicant@.service also work for wext (nl80211 is the default).
|
|
|
|
sed -e 's|-i%I|& -Dnl80211,wext|' -i ${DESTDIR}/usr/lib/systemd/system/wpa_supplicant@.service
|
|
|
|
fi
|
2014-06-06 12:02:08 +00:00
|
|
|
|
2014-09-28 16:43:20 +00:00
|
|
|
vlicense README
|
2009-10-09 08:41:19 +00:00
|
|
|
}
|