2009-10-09 08:41:19 +00:00
|
|
|
# Template file for 'wpa_supplicant'
|
|
|
|
pkgname=wpa_supplicant
|
2013-01-28 16:01:44 +00:00
|
|
|
version=2.0
|
2012-12-03 11:14:44 +00:00
|
|
|
revision=1
|
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>"
|
2012-02-19 08:45:39 +00:00
|
|
|
license="GPL-2"
|
2012-07-09 09:53:36 +00:00
|
|
|
homepage="http://hostap.epitest.fi"
|
|
|
|
distfiles="$homepage/releases/$pkgname-$version.tar.gz"
|
2013-01-28 16:01:44 +00:00
|
|
|
checksum=2c115609fbb5223d51381084a5c944455a8afcda81d584173ff55ba233379e09
|
2009-10-09 08:41:19 +00:00
|
|
|
|
2012-12-03 11:14:44 +00:00
|
|
|
makedepends="pkg-config libnl3-devel openssl-devel dbus-devel readline-devel"
|
2013-02-16 09:39:59 +00:00
|
|
|
crossmakedepends="libnl3-devel openssl-devel dbus-devel readline-devel"
|
2012-12-03 11:14:44 +00:00
|
|
|
conf_files="/etc/${pkgname}.conf"
|
|
|
|
|
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
|
2013-02-16 09:39:59 +00:00
|
|
|
|
|
|
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
|
|
|
make CC="$XBPS_CROSS_TRIPLET-gcc" LD="$XBPS_CROSS_TRIPLET-ld" \
|
|
|
|
AR="$XBPS_CROSS_TRIPLET-ar" RANLIB="$XBPS_CROSS_TRIPLET-ranlib" \
|
|
|
|
PREFIX=/usr ${makejobs}
|
|
|
|
else
|
|
|
|
make PREFIX=/usr ${makejobs}
|
|
|
|
fi
|
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
|
|
|
|
2012-01-30 11:40:26 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.tmpfiles.d \
|
|
|
|
644 usr/lib/tmpfiles.d ${pkgname}.conf
|
2012-06-26 08:04:03 +00:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.conf 644 etc/$pkgname
|
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
|
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
|
2010-11-21 11:49:04 +00:00
|
|
|
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
|
2012-06-26 08:04:03 +00:00
|
|
|
|
2012-07-09 20:52:56 +00:00
|
|
|
vmkdir usr/lib/systemd/system
|
|
|
|
install -m644 systemd/*.service ${DESTDIR}/usr/lib/systemd/system
|
2009-10-09 08:41:19 +00:00
|
|
|
}
|