diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2017-08-07 21:44:00 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2017-08-07 21:44:00 +0000 |
commit | 871f113e9bfd3abd048a94038076e6f654f39918 (patch) | |
tree | b44ecc5f2c2ba20397232fb6057395d2fcbb7c30 /mail/dovecot/files/patch-src_plugins_fts_decode2text.sh | |
parent | 91438abd7acd32153338b16c1e66cbe948df5e50 (diff) |
Notes
Diffstat (limited to 'mail/dovecot/files/patch-src_plugins_fts_decode2text.sh')
-rw-r--r-- | mail/dovecot/files/patch-src_plugins_fts_decode2text.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/dovecot/files/patch-src_plugins_fts_decode2text.sh b/mail/dovecot/files/patch-src_plugins_fts_decode2text.sh new file mode 100644 index 000000000000..036303ba8079 --- /dev/null +++ b/mail/dovecot/files/patch-src_plugins_fts_decode2text.sh @@ -0,0 +1,18 @@ +/usr gets changed to ${LOCALBASE} in post-patch:, so we +cheat and set xpdf's path to /usr/lib. + +--- src/plugins/fts/decode2text.sh.orig 2015-12-12 16:32:01 UTC ++++ src/plugins/fts/decode2text.sh +@@ -79,7 +79,11 @@ wait_timeout() { + LANG=en_US.UTF-8 + export LANG + if [ $fmt = "pdf" ]; then +- /usr/bin/pdftotext $path - 2>/dev/null& ++ if [ -x /usr/lib/xpdf/pdftotext ]; then ++ /usr/lib/xpdf/pdftotext $path - 2>/dev/null& ++ else ++ /usr/bin/pdftotext $path - 2>/dev/null& ++ fi + wait_timeout 2>/dev/null + elif [ $fmt = "doc" ]; then + (/usr/bin/catdoc $path; true) 2>/dev/null& |