diff options
author | tota <tota@FreeBSD.org> | 2012-06-12 23:10:39 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2012-06-12 23:10:39 +0800 |
commit | d1796494df0845cc9e92f702db162733ce27fb5c (patch) | |
tree | e4b567ddd0a1e44b73a00405492126c3829e3883 /japanese/mailman | |
parent | e4e4b863f13a03625dd8c33344543b1b2b57bc80 (diff) | |
download | freebsd-ports-gnome-d1796494df0845cc9e92f702db162733ce27fb5c.tar.gz freebsd-ports-gnome-d1796494df0845cc9e92f702db162733ce27fb5c.tar.zst freebsd-ports-gnome-d1796494df0845cc9e92f702db162733ce27fb5c.zip |
- Convert to new options framework
Diffstat (limited to 'japanese/mailman')
-rw-r--r-- | japanese/mailman/Makefile | 59 |
1 files changed, 23 insertions, 36 deletions
diff --git a/japanese/mailman/Makefile b/japanese/mailman/Makefile index 617eb71b76ae..880887112c0e 100644 --- a/japanese/mailman/Makefile +++ b/japanese/mailman/Makefile @@ -69,46 +69,37 @@ PORTDOCS= ACKNOWLEDGMENTS BUGS FAQ INSTALL NEWS NEWS.japan.utf-8 \ mailman-member.txt \ FreeBSD-post-install-notes -OPTIONS= SENDMAIL "for use with sendmail" off \ - EXIM3 "for use with exim3" off \ - EXIM4 "for use with exim4" off \ - POSTFIX "for use with postfix" off \ - COURIER "for use with courier" off \ - INTEGRATION "integrating postfix and mailman" off \ - NAMAZU2 "make private archives searchable with namazu2" off +OPTIONS_DEFINE= INTEGRATION NAMAZU2 + +OPTIONS_SINGLE= MTA +OPTIONS_SINGLE_MTA= SENDMAIL EXIM3 EXIM4 POSTFIX COURIER + +INTEGRATION_DESC= integrating postfix and mailman +NAMAZU2_DESC= make private archives searchable with namazu2 +SENDMAIL_DESC= for use with sendmail +EXIM3_DESC= for use with exim3 +EXIM4_DESC= for use with exim4 +POSTFIX_DESC= for use with postfix +COURIER_DESC= for use with courier + +OPTIONS_DEFAULT= SENDMAIL .include <bsd.port.options.mk> -.if defined(WITH_SENDMAIL) -.if defined(WITH_EXIM3) || defined(WITH_EXIM4) || defined(WITH_POSTFIX) || \ -defined(WITH_COURIER) -IGNORE= can only have one MTA selected to integrate with -.endif +.if ${PORT_OPTIONS:MSENDMAIL} MAIL_GID?= mailnull .endif -.if defined(WITH_EXIM3) -.if defined(WITH_SENDMAIL) || defined(WITH_EXIM4) || defined(WITH_POSTFIX) || \ -defined(WITH_COURIER) -IGNORE= can only have one MTA selected to integrate with -.endif +.if ${PORT_OPTIONS:MEXIM3} MAIL_GID?= nobody .endif -.if defined(WITH_EXIM4) -.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_POSTFIX) || \ -defined(WITH_COURIER) -IGNORE= can only have one MTA selected to integrate with -.endif +.if ${PORT_OPTIONS:MEXIM4} MAIL_GID?= mail .endif -.if defined(WITH_POSTFIX) -.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_EXIM4) || \ -defined(WITH_COURIER) -IGNORE= can only have one MTA selected to integrate with -.endif -.if defined(WITH_INTEGRATION) +.if ${PORT_OPTIONS:MPOSTFIX} +.if ${PORT_OPTIONS:MINTEGRATION} MAIL_GID?= mailman .else MAIL_GID?= nobody @@ -116,15 +107,11 @@ MAIL_GID?= nobody EXTRA_PATCHES+= ${FILESDIR}/postfix-verp.diff .endif -.if defined(WITH_COURIER) -.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_EXIM4) || \ -defined(WITH_POSTFIX) -IGNORE= can only have one MTA selected to integrate with -.endif +.if ${PORT_OPTIONS:MCOURIER} MAIL_GID?= courier .endif -.if defined(WITH_NAMAZU2) +.if ${PORT_OPTIONS:MNAMAZU2} RUN_DEPENDS+= mknmz:${PORTSDIR}/japanese/namazu2 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Mailman-Cgi-private.py .endif @@ -149,7 +136,7 @@ post-patch: pre-configure: @${ECHO} "DEFAULT_SERVER_LANGUAGE = 'ja'" >> ${WRKSRC}/Mailman/mm_cfg.py.dist.in @${ECHO} "GLOBAL_PIPELINE.insert(1, 'iso2022jpfix')" >> ${WRKSRC}/Mailman/mm_cfg.py.dist.in -.if defined(WITH_POSTFIX) && defined(WITH_INTEGRATION) +.if ${PORT_OPTIONS:MPOSTFIX} && ${PORT_OPTIONS:MINTEGRATION} @${ECHO} "MTA = 'Postfix'" >> ${WRKSRC}/Mailman/mm_cfg.py.dist.in .endif @@ -175,7 +162,7 @@ post-install: .endif @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} -.if defined(WITH_POSTFIX) +.if ${PORT_OPTIONS:MPOSTFIX} @if [ "x`${LOCALBASE}/sbin/postconf -h myhostname`" != "xlocalhost" ]; then \ ${ECHO_CMD} ""; \ ${ECHO_CMD} "Your Postfix hostname is non-default."; \ |