From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7C0761382C5 for ; Mon, 9 Apr 2018 01:23:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91B46E0CC6; Mon, 9 Apr 2018 01:23:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6CFE4E0CC6 for ; Mon, 9 Apr 2018 01:23:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 004CD335C30 for ; Mon, 9 Apr 2018 01:23:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5EA75280 for ; Mon, 9 Apr 2018 01:23:46 +0000 (UTC) From: "Andrey Utkin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Utkin" Message-ID: <1523236761.492fc8d469625b2f93f6651eef4e65d82a208ecd.andrey_utkin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/hostapd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/hostapd/hostapd-2.6-r2.ebuild X-VCS-Directories: net-wireless/hostapd/ X-VCS-Committer: andrey_utkin X-VCS-Committer-Name: Andrey Utkin X-VCS-Revision: 492fc8d469625b2f93f6651eef4e65d82a208ecd X-VCS-Branch: master Date: Mon, 9 Apr 2018 01:23:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f3d65a42-6bcf-4bfe-8055-f8319e3cff73 X-Archives-Hash: f308833b761b2fafd554e6cc21de1fe2 commit: 492fc8d469625b2f93f6651eef4e65d82a208ecd Author: Andrey Utkin gentoo org> AuthorDate: Sun Apr 8 14:00:03 2018 +0000 Commit: Andrey Utkin gentoo org> CommitDate: Mon Apr 9 01:19:21 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=492fc8d4 net-wireless/hostapd: add savedconfig support Bug: https://bugs.gentoo.org/473124 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-wireless/hostapd/hostapd-2.6-r2.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net-wireless/hostapd/hostapd-2.6-r2.ebuild b/net-wireless/hostapd/hostapd-2.6-r2.ebuild index 64d34bf0f89..250e07cfbe7 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() {