mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
168f57451a
COMMENT typos and surrounding whitespace fixes. A few Makefiles where not included as they contain Latin-1 characters that break the Phabricator workflow. Category M. CR: D306 Approved by: portmgr (bapt)
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# Created by: Sahil Tandon <sahil@tandon.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= postfwd
|
|
PORTVERSION= 1.35
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.${PORTNAME}.org/old/
|
|
PKGNAMEPREFIX= postfix-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Postfix firewall policy daemon
|
|
|
|
LICENSE= BSD
|
|
|
|
RUN_DEPENDS= p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
|
|
p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
|
|
p5-Storable>=0:${PORTSDIR}/devel/p5-Storable \
|
|
p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= request.sample postfwd.plugins.sample
|
|
|
|
PLIST_FILES= bin/${PORTNAME} etc/${PORTNAME}.conf.sample
|
|
SUB_FILES= pkg-message
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
USES= perl5
|
|
USE_PERL5= run
|
|
NO_BUILD= yes
|
|
|
|
MAN8= ${PORTNAME}.8 ${PORTNAME}2.8
|
|
|
|
OPTIONS_DEFINE= EXAMPLES DOCS POSTFWD2
|
|
POSTFWD2_DESC= Install postfwd v2 rather than v1
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
do-install:
|
|
.if ${PORT_OPTIONS:MPOSTFWD2}
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME}2 ${PREFIX}/bin/${PORTNAME}
|
|
.else
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/sbin/${PORTNAME} ${PREFIX}/bin/
|
|
.endif
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.cf.sample ${PREFIX}/etc/${PORTNAME}.conf.sample
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man8/* ${MANPREFIX}/man/man8/
|
|
|
|
post-install:
|
|
.if !empty(PORT_OPTIONS:MDOCS)
|
|
@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
|
|
@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
.if !empty(PORT_OPTIONS:MEXAMPLES)
|
|
@${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/tools/request.sample ${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/plugins/postfwd.plugins.sample ${EXAMPLESDIR}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|