2013-08-03 10:45:51 +02:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
Add port mail/textmail:
Textmail filters a mail message or mbox, replacing MS Word, MS Excel,
HTML, RTF, and PDF attachments with the plain text contained therein.
By default, the following attachments are also deleted: image, audio,
video, and MS Windows executables. MS winmail.dat attachments are
replaced by any attachments contained therein, which are then replaced
by text or deleted in the same fashion. Any of these actions can be
suppressed with the command line options. Mail headers can also be
selectively deleted.
WWW: http://raf.org/textmail/
Author: raf <raf@raf.org>
2007-08-07 22:17:55 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= textmail
|
|
|
|
PORTVERSION= 20070803
|
2020-07-06 08:17:18 +02:00
|
|
|
PORTREVISION= 16
|
2007-08-08 09:15:24 +02:00
|
|
|
CATEGORIES= mail
|
2015-03-30 23:40:17 +02:00
|
|
|
MASTER_SITES= http://raf.org/textmail/
|
Add port mail/textmail:
Textmail filters a mail message or mbox, replacing MS Word, MS Excel,
HTML, RTF, and PDF attachments with the plain text contained therein.
By default, the following attachments are also deleted: image, audio,
video, and MS Windows executables. MS winmail.dat attachments are
replaced by any attachments contained therein, which are then replaced
by text or deleted in the same fashion. Any of these actions can be
suppressed with the command line options. Mail headers can also be
selectively deleted.
WWW: http://raf.org/textmail/
Author: raf <raf@raf.org>
2007-08-07 22:17:55 +02:00
|
|
|
|
2008-09-07 02:19:05 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
Add port mail/textmail:
Textmail filters a mail message or mbox, replacing MS Word, MS Excel,
HTML, RTF, and PDF attachments with the plain text contained therein.
By default, the following attachments are also deleted: image, audio,
video, and MS Windows executables. MS winmail.dat attachments are
replaced by any attachments contained therein, which are then replaced
by text or deleted in the same fashion. Any of these actions can be
suppressed with the command line options. Mail headers can also be
selectively deleted.
WWW: http://raf.org/textmail/
Author: raf <raf@raf.org>
2007-08-07 22:17:55 +02:00
|
|
|
COMMENT= Converts e-mail attachments to plain-text
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS= antiword:textproc/antiword \
|
|
|
|
catdoc:textproc/catdoc \
|
|
|
|
xls2csv:textproc/catdoc \
|
|
|
|
lynx:www/lynx \
|
|
|
|
pdftotext:graphics/poppler-utils
|
2012-05-23 22:53:45 +02:00
|
|
|
|
2014-06-06 20:54:40 +02:00
|
|
|
USES= perl5 shebangfix
|
|
|
|
SHEBANG_FILES= ${PORTNAME}
|
|
|
|
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
|
Add port mail/textmail:
Textmail filters a mail message or mbox, replacing MS Word, MS Excel,
HTML, RTF, and PDF attachments with the plain text contained therein.
By default, the following attachments are also deleted: image, audio,
video, and MS Windows executables. MS winmail.dat attachments are
replaced by any attachments contained therein, which are then replaced
by text or deleted in the same fashion. Any of these actions can be
suppressed with the command line options. Mail headers can also be
selectively deleted.
WWW: http://raf.org/textmail/
Author: raf <raf@raf.org>
2007-08-07 22:17:55 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2012-05-25 05:29:37 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '3s|^|\${.newline}$$ENV{'PATH'} = "${LOCALBASE}/libexec/xpdf:$$ENV{'PATH'}";\${.newline}|' ${WRKSRC}/${PORTNAME}
|
|
|
|
|
Add port mail/textmail:
Textmail filters a mail message or mbox, replacing MS Word, MS Excel,
HTML, RTF, and PDF attachments with the plain text contained therein.
By default, the following attachments are also deleted: image, audio,
video, and MS Windows executables. MS winmail.dat attachments are
replaced by any attachments contained therein, which are then replaced
by text or deleted in the same fashion. Any of these actions can be
suppressed with the command line options. Mail headers can also be
selectively deleted.
WWW: http://raf.org/textmail/
Author: raf <raf@raf.org>
2007-08-07 22:17:55 +02:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC}/&&pod2man ${PORTNAME}>${PORTNAME}.1
|
|
|
|
|
|
|
|
do-install:
|
2014-06-06 20:54:40 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
Add port mail/textmail:
Textmail filters a mail message or mbox, replacing MS Word, MS Excel,
HTML, RTF, and PDF attachments with the plain text contained therein.
By default, the following attachments are also deleted: image, audio,
video, and MS Windows executables. MS winmail.dat attachments are
replaced by any attachments contained therein, which are then replaced
by text or deleted in the same fashion. Any of these actions can be
suppressed with the command line options. Mail headers can also be
selectively deleted.
WWW: http://raf.org/textmail/
Author: raf <raf@raf.org>
2007-08-07 22:17:55 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|