2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="wpa_supplicant"
|
2022-04-17 14:27:49 +00:00
|
|
|
PKG_VERSION="2.10"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
PKG_SITE="https://w1.fi/wpa_supplicant/"
|
2022-04-17 14:27:49 +00:00
|
|
|
PKG_URL="https://w1.fi/releases/${PKG_NAME}-${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain dbus libnl openssl"
|
|
|
|
PKG_LONGDESC="A free software implementation of an IEEE 802.11i supplicant."
|
|
|
|
PKG_TOOLCHAIN="make"
|
|
|
|
PKG_BUILD_FLAGS="+lto-parallel"
|
|
|
|
|
|
|
|
PKG_MAKE_OPTS_TARGET="-C wpa_supplicant V=1 LIBDIR=/usr/lib BINDIR=/usr/bin"
|
|
|
|
PKG_MAKEINSTALL_OPTS_TARGET="-C wpa_supplicant V=1 LIBDIR=/usr/lib BINDIR=/usr/bin"
|
|
|
|
|
|
|
|
configure_target() {
|
2022-04-17 14:27:49 +00:00
|
|
|
LDFLAGS="${LDFLAGS} -lpthread -lm"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-17 14:27:49 +00:00
|
|
|
cp ${PKG_DIR}/config/makefile.config wpa_supplicant/.config
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2022-04-17 14:27:49 +00:00
|
|
|
rm -r ${INSTALL}/usr/bin/wpa_cli
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-17 14:27:49 +00:00
|
|
|
mkdir -p ${INSTALL}/etc/dbus-1/system.d
|
|
|
|
cp wpa_supplicant/dbus/dbus-wpa_supplicant.conf ${INSTALL}/etc/dbus-1/system.d
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-17 14:27:49 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/systemd/system
|
|
|
|
cp wpa_supplicant/systemd/wpa_supplicant.service ${INSTALL}/usr/lib/systemd/system
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2022-04-17 14:27:49 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/share/dbus-1/system-services
|
|
|
|
cp wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service ${INSTALL}/usr/share/dbus-1/system-services
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|