mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add an option to build the milter with SPF support.
Wished by: author Feature safe: yes
This commit is contained in:
parent
efd8042919
commit
f2440db2ac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=257512
1 changed files with 10 additions and 1 deletions
|
@ -24,6 +24,15 @@ MAN8= milter-callback.8
|
||||||
EXTRACT_AFTER_ARGS= | (${MKDIR} ${WRKSRC}; ${TAR} -xf - --no-same-owner \
|
EXTRACT_AFTER_ARGS= | (${MKDIR} ${WRKSRC}; ${TAR} -xf - --no-same-owner \
|
||||||
--no-same-permissions -C ${WRKSRC})
|
--no-same-permissions -C ${WRKSRC})
|
||||||
|
|
||||||
|
OPTIONS= SPF "build with SPF support" off
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if defined(WITH_SPF)
|
||||||
|
MAKE_ENV+= WITH_SPF=yes
|
||||||
|
LIB_DEPENDS+= spf2.3:${PORTSDIR}/mail/libspf2
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
|
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
|
||||||
${WRKSRC}/${PORTNAME}.c
|
${WRKSRC}/${PORTNAME}.c
|
||||||
|
@ -43,4 +52,4 @@ do-install:
|
||||||
post-install:
|
post-install:
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue