mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
net-wireless/hostapd: add savedconfig support
Bug: https://bugs.gentoo.org/473124 Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit toolchain-funcs eutils systemd
|
||||
inherit toolchain-funcs eutils systemd savedconfig
|
||||
|
||||
DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
|
||||
HOMEPAGE="http://hostap.epitest.fi"
|
||||
@@ -49,6 +49,12 @@ src_prepare() {
|
||||
src_configure() {
|
||||
local CONFIG="${S}/.config"
|
||||
|
||||
restore_config "${CONFIG}"
|
||||
if [[ -f "${CONFIG}" ]]; then
|
||||
default_src_configure
|
||||
return 0
|
||||
fi
|
||||
|
||||
# toolchain setup
|
||||
echo "CC = $(tc-getCC)" > ${CONFIG}
|
||||
|
||||
@@ -194,6 +200,8 @@ src_install() {
|
||||
exeinto /etc/log.d/scripts/services/
|
||||
doexe logwatch/${PN}
|
||||
fi
|
||||
|
||||
save_config .config
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
Reference in New Issue
Block a user