1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support staging

- Use shebangfix
- Define EXAMPLES option
- Define DOCS option
- Use WWW: with a single space
This commit is contained in:
Emanuel Haupt 2014-03-17 14:11:10 +00:00
parent cdf4edc50e
commit c1b81c8bcc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348475
3 changed files with 15 additions and 33 deletions

View File

@ -11,25 +11,24 @@ MAINTAINER= torres.g.alex@gmail.com
COMMENT= TOFU Protection - Display Filter for RFC822 messages
RUN_DEPENDS= p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext
USES= perl5
USES= perl5 shebangfix
NO_BUILD= yes
MAN1= t-prot.1
DOCS= ChangeLog README TODO
PORTDOCS= ChangeLog README TODO
PORTEXAMPLES= *
PLIST_FILES= man/man1/t-prot.1.gz bin/t-prot
SHEBANG_FILES= t-prot
OPTIONS_DEFINE= EXAMPLES DOCS
NO_STAGE= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/t-prot ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/t-prot.1 ${MAN1PREFIX}/man/man1
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/* ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
${INSTALL_SCRIPT} ${WRKSRC}/t-prot ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/t-prot.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/* ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -11,4 +11,4 @@ support for Mutt), but it can also be used in MTA/MDA - e.g. for immediately
bouncing "improper" messages.
Author: Jochen Striepe <t-prot@tolot.escape.de>
WWW: http://www.escape.de/~tolot/mutt/
WWW: http://www.escape.de/~tolot/mutt/

View File

@ -1,17 +0,0 @@
bin/t-prot
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README.examples
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README.patches
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/filter_innd.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mailcap.t-prot
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/muttrc.t-prot
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/muttrc.t-prot.m1512
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/nailrc.t-prot
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/t-prot-r1.238-gpg126.diff
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/t-prot-r1.311-mutt1512.diff
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/t-prot.sl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/t-prot.sl-slang2.diff
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%