15c8f1c11e
Changes:
- New $disarmedfrom$ variable for control/customheaders. Expands to
the original From: header value with '<', '>', '@' replaced by
'(', ')', '=' for safe use in display names ("me@here.com" ->
"me=here.com"). Complements $posteraddr$ (raw email address).
- mlmmj-sub: batch subscribe via stdin with -a -. Reads one address
per line, skips empty lines and '#' comments.
- MIME type detection and rejection in mlmmj-receive. Prevent
multipart/alternative or multipart/mixed messages from being posted
to the list (control/mimedeny).
- Fix: fdopendir UB by using dirfd() instead of raw fd
- Various code simplifications (send_digest, bouncemail, do_access, initsmtp)
- Many new unit tests and test fixes
- README: document DKIM/From munging with $posteraddr$ and $disarmedfrom$
- README.sendmail.md: update documentation
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
PORTNAME= mlmmj
|
|
PORTVERSION= 2.1.0
|
|
CATEGORIES= mail
|
|
MASTER_SITES= https://codeberg.org/mlmmj/mlmmj/releases/download/RELEASE_${PORTVERSION:C/\./_/g}/
|
|
|
|
MAINTAINER= bapt@FreeBSD.org
|
|
COMMENT= Simple and slim mailing list manager
|
|
WWW= http://mlmmj.org/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= cpe iconv shebangfix tar:xz pkgconfig
|
|
SHEBANG_FILES= contrib/web/perl-user/mlmmj.cgi
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-receive-strip --mandir=${PREFIX}/share/man
|
|
|
|
CPPFLAGS+= -I${ICONV_INCLUDE_PATH}
|
|
LDFLAGS+= ${ICONV_LIB_PATH}
|
|
|
|
OPTIONS_DEFINE= DOCS PERL PHP
|
|
OPTIONS_SUB= yes
|
|
|
|
PERL_RUN_DEPENDS= p5-URI>0:net/p5-URI \
|
|
p5-CGI-FastTemplate>0:www/p5-CGI-FastTemplate \
|
|
p5-HTML-Parser>0:www/p5-HTML-Parser
|
|
PHP_USES= php:web
|
|
|
|
TEST_DEPENDS= atf-sh:devel/atf
|
|
TEST_TARGET= check
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} \
|
|
ChangeLog FAQ README* TODO TUNABLES.md UPGRADE \
|
|
${STAGEDIR}${DOCSDIR})
|
|
|
|
post-install-PERL-on:
|
|
@(cd ${WRKSRC}/contrib/web && ${COPYTREE_SHARE} "perl-*" \
|
|
${STAGEDIR}${WWWDIR})
|
|
@${CHMOD} ${BINMODE} ${STAGEDIR}${WWWDIR}/perl-user/mlmmj.cgi
|
|
|
|
post-install-PHP-on:
|
|
@(cd ${WRKSRC}/contrib/web && ${COPYTREE_SHARE} "php-*" \
|
|
${STAGEDIR}${WWWDIR})
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITH_TESTING)
|
|
CONFIGURE_ARGS+= --enable-tests
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-tests
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|