diff options
author | Andrey Utkin <andrey_utkin@gentoo.org> | 2018-04-08 15:00:03 +0100 |
---|---|---|
committer | Andrey Utkin <andrey_utkin@gentoo.org> | 2018-04-09 02:19:21 +0100 |
commit | 492fc8d469625b2f93f6651eef4e65d82a208ecd (patch) | |
tree | 912c1d9443a9e3f234d2b0f0f4ce0f7a0368cd57 /net-wireless/hostapd | |
parent | net-wireless/hostapd: add 2.6-r2 for further enhancements (diff) | |
download | gentoo-492fc8d469625b2f93f6651eef4e65d82a208ecd.tar.gz gentoo-492fc8d469625b2f93f6651eef4e65d82a208ecd.tar.bz2 gentoo-492fc8d469625b2f93f6651eef4e65d82a208ecd.zip |
net-wireless/hostapd: add savedconfig support
Bug: https://bugs.gentoo.org/473124
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-wireless/hostapd')
-rw-r--r-- | net-wireless/hostapd/hostapd-2.6-r2.ebuild | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net-wireless/hostapd/hostapd-2.6-r2.ebuild b/net-wireless/hostapd/hostapd-2.6-r2.ebuild index 64d34bf0f89c..250e07cfbe7b 100644 --- a/net-wireless/hostapd/hostapd-2.6-r2.ebuild +++ b/net-wireless/hostapd/hostapd-2.6-r2.ebuild @@ -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() { |