net-wireless/hostapd: Allow users to apply patches to src/drivers
authorThomas Deutschmann <whissi@gentoo.org>
Thu, 24 Nov 2016 01:49:49 +0000 (02:49 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Thu, 24 Nov 2016 01:50:39 +0000 (02:50 +0100)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=596306#c5

Package-Manager: portage-2.3.2

net-wireless/hostapd/hostapd-2.6.ebuild

index 019ff131c7a5b3315c98512de639010cd9965b41..121ed83773de4f75fc6a49f3586340c30ae3536b 100644 (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