freebsd-ports/mail/fastforward/Makefile
Mathieu Arnold e1bfdfbe56 Add DOCS options to ports that should have one.
Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:14:50 +00:00

35 lines
927 B
Makefile

# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$
PORTNAME= fastforward
PORTVERSION= 0.51
CATEGORIES= mail
MASTER_SITES= http://cr.yp.to/software/
MAINTAINER= ports@FreeBSD.org
COMMENT= Fastforward handles qmail forwarding according to a cdb database
USES= gmake groff
ALL_TARGET= default
FILES= fastforward printforward setforward newaliases printmaillist setmaillist newinclude
PORTDOCS= ALIASES
PLIST_FILES= ${FILES:S,^,bin/,} ${FILES:S,^,man/man1/,:S,$,.1.gz,} ${FILES:S,^,man/cat1/,:S,$,.0.gz,}
OPTIONS_DEFINE= DOCS
do-install:
.for binfile in ${FILES}
${INSTALL_PROGRAM} ${WRKSRC}/${binfile} ${STAGEDIR}${PREFIX}/bin/${binfile}
${INSTALL_MAN} ${WRKSRC}/${binfile}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/${binfile}.0 ${STAGEDIR}${MAN1PREFIX}/man/cat1
.endfor
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ALIASES ${STAGEDIR}${DOCSDIR}/ALIASES
.include <bsd.port.mk>