net-wireless/hostapd: Allow users to apply patches to src/drivers

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=596306#c5

Package-Manager: portage-2.3.2
This commit is contained in:
Thomas Deutschmann
2016-11-24 02:49:49 +01:00
parent 65616b7d1d
commit 0e0eafba82

View File

@@ -30,7 +30,11 @@ RDEPEND="${DEPEND}"
S="${S}/${PN}"
src_prepare() {
# Allow users to apply patches to src/drivers for example,
# i.e. anything outside ${S}/${PN}
pushd ../ >/dev/null || die
default
popd >/dev/null || die
sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
"${S}/hostapd.conf" || die