Files
sthen cd37e7364c update to procmail-3.24 which rolls in fixes we had in patches, plus others.
there has not been any major change to invalidate the recommendations to
avoid it (https://anarc.at/blog/2022-03-02-procmail-considered-harmful/ and
others) but there still seems to be no good alternative to formail
(maildrop's reformail isn't a direct replacement) and better to have those
fixes which do exist than leave it at the old version.
2022-05-09 12:56:47 +00:00

37 lines
796 B
Makefile

COMMENT= filtering local mail delivery agent
GH_ACCOUNT= BuGlessRB
GH_PROJECT= procmail
GH_TAGNAME= v3.24
CATEGORIES= mail
# GPLv2+
PERMIT_PACKAGE= Yes
WANTLIB= c m
FLAVORS= lmtp
FLAVOR?=
.if ${FLAVOR:Mlmtp}
CFLAGS+= -DLMTP
.endif
RUN_DEPENDS= sysutils/lockfile
MAKE_FLAGS= BASENAME="${PREFIX}" CC="${CC}" CFLAGS0="${CFLAGS}" LOCKINGTEST="110"
NO_TEST= Yes
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/procmail
cd ${WRKBUILD}/new && \
${INSTALL_PROGRAM} formail procmail ${PREFIX}/bin && \
${INSTALL_SCRIPT} mailstat ${PREFIX}/bin && \
${INSTALL_MAN} formail.1 procmail.1 ${PREFIX}/man/man1 && \
${INSTALL_MAN} procmailex.5 procmailrc.5 procmailsc.5 ${PREFIX}/man/man5
${INSTALL_DATA} ${WRKSRC}/examples/* \
${PREFIX}/share/examples/procmail
.include <bsd.port.mk>