commit:     89eee4970acdaabac4ec5c7d62ea242b46b9fc4f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 11 03:03:58 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 11 03:08:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89eee497

net-mail/mlmmj: fix hardcoded paths

Closes: https://bugs.gentoo.org/259962
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-mail/mlmmj/{mlmmj-1.3.0.ebuild => mlmmj-1.3.0-r1.ebuild} | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/net-mail/mlmmj/mlmmj-1.3.0.ebuild 
b/net-mail/mlmmj/mlmmj-1.3.0-r1.ebuild
similarity index 86%
rename from net-mail/mlmmj/mlmmj-1.3.0.ebuild
rename to net-mail/mlmmj/mlmmj-1.3.0-r1.ebuild
index 94c0519b7e9..45fa2b38bdc 100644
--- a/net-mail/mlmmj/mlmmj-1.3.0.ebuild
+++ b/net-mail/mlmmj/mlmmj-1.3.0-r1.ebuild
@@ -21,6 +21,15 @@ PATCHES=(
        "${FILESDIR}"/mlmmj-1.3.0-gcc-10.patch
 )
 
+src_prepare() {
+       default
+
+       # bug #259962
+       for file in $(find . -iname "*.cgi") ; do
+               sed -i -e "s:/usr/local/bin/:${EPREFIX}/usr/bin/:" "${file}" || 
die
+       done
+}
+
 src_configure() {
        econf --enable-receive-strip
 }

Reply via email to