# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description TOFU protection script (MUA display filter)
long_description You know these misformatted mail or news messages, with \
full quotes, too long signatures, and lots of \
exclamation marks? They get on your nerves day by day? \
That is what this script is for.
homepage http://www.escape.de/~tolot/mutt/
master_sites ${homepage}t-prot/downloads/
checksums rmd160 7947e1306bb49a092185a6f6dda6ec758b85e609 \
sha256 39b7a5f0fefdea87885f3b6ab041e7148c600fb50017c3a283231f6dde5eca2b
depends_run port:p${perl5.major}-getopt-mixed \
port:p${perl5.major}-locale-gettext
reinplace -locale C "s|#!/usr/bin/perl|#!${perl5.bin}|g" ${worksrcpath}/t-prot
reinplace -locale C "s|/usr|${prefix}|g" ${worksrcpath}/t-prot
# install t-prot and its man page:
xinstall -m 755 ${worksrcpath}/t-prot ${destroot}${prefix}/bin
xinstall -m 644 ${worksrcpath}/t-prot.1 ${destroot}${prefix}/share/man/man1
# install additional files:
xinstall -d ${destroot}${prefix}/share/${name}
foreach file [glob ${worksrcpath}/contrib/*] {
xinstall -m 644 $file ${destroot}${prefix}/share/${name}
patchfiles-append patch-t-prot.diff
"To use t-prot with mutt, add this to your ~/.muttrc:
source ${prefix}/share/${name}/muttrc.t-prot
You can switch it off and on with Esc-0 and Esc-1.
If you use muttrc.t-prot you have to make sure the\
following directories exist (they can be empty):