diff options
Diffstat (limited to 'japanese/mailman/Makefile')
-rw-r--r-- | japanese/mailman/Makefile | 98 |
1 files changed, 54 insertions, 44 deletions
diff --git a/japanese/mailman/Makefile b/japanese/mailman/Makefile index 55e3d5958555..e6c0cb86eb62 100644 --- a/japanese/mailman/Makefile +++ b/japanese/mailman/Makefile @@ -3,6 +3,7 @@ PORTNAME= mailman PORTVERSION= 2.1.14.j7 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= japanese mail MASTER_SITES= http://www.python.jp/doc/contrib/mailman/_static/ \ @@ -24,7 +25,7 @@ PORTSCOUT= limit:.*\.j\d+$$ USE_AUTOTOOLS= autoconf USES= gettext -USE_PYTHON= yes +USE_PYTHON= 2 USE_RC_SUBR= mailman GNU_CONFIGURE_PREFIX= ${MAILMANDIR} @@ -66,42 +67,34 @@ PORTDOCS= ACKNOWLEDGMENTS BUGS FAQ INSTALL NEWS NEWS.japan.utf-8 \ mailman-member.txt \ FreeBSD-post-install-notes -OPTIONS_DEFINE= INTEGRATION NAMAZU2 +OPTIONS_DEFINE= DOCS NAMAZU2 -OPTIONS_SINGLE= MTA -OPTIONS_SINGLE_MTA= SENDMAIL EXIM3 EXIM4 POSTFIX COURIER +OPTIONS_SINGLE= MTA +OPTIONS_SINGLE_MTA= SENDMAIL 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 +NAMAZU2_DESC= Make private archives searchable with namazu2 +MTA_DESC= Integrate with which MTA? +SENDMAIL_DESC= for use with sendmail +EXIM4_DESC= for use with exim4 +POSTFIX_DESC= for use with postfix +COURIER_DESC= for use with courier OPTIONS_DEFAULT= SENDMAIL -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MSENDMAIL} MAIL_GID?= mailnull .endif -.if ${PORT_OPTIONS:MEXIM3} -MAIL_GID?= nobody -.endif - .if ${PORT_OPTIONS:MEXIM4} MAIL_GID?= mail .endif .if ${PORT_OPTIONS:MPOSTFIX} -.if ${PORT_OPTIONS:MINTEGRATION} +RUN_DEPENDS+= ${LOCALBASE}/sbin/postconf:${PORTSDIR}/mail/postfix +BUILD_DEPENDS+= ${LOCALBASE}/sbin/postconf:${PORTSDIR}/mail/postfix MAIL_GID?= mailman -.else -MAIL_GID?= nobody -.endif EXTRA_PATCHES+= ${FILESDIR}/postfix-verp.diff .endif @@ -114,16 +107,22 @@ RUN_DEPENDS+= mknmz:${PORTSDIR}/japanese/namazu2 EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Mailman-Cgi-private.py .endif -pre-fetch: +pre-everything:: @${ECHO} "" @${ECHO} "You may change the following build options:" - @${ECHO} "MM_USERNAME=mailman The username of the Mailman user." - @${ECHO} "MM_USERID=91 The user ID of the Mailman user." - @${ECHO} "MM_GROUPNAME=mailman The group to which the Mailman user will belong." - @${ECHO} "MM_GROUPID=MM_USERID The group ID for the Mailman user." - @${ECHO} "MM_DIR=mailman Mailman will be installed in ${PREFIX}/${MM_DIR}." - @${ECHO} "CGI_GID=www The group name or id under which your web server executes CGI scripts." - @${ECHO} "IMGDIR=www/icons Icon images will be installed in ${PREFIX}/${IMGDIR}." + @${ECHO} "" + @${ECHO} "Option Default Value Description" + @${ECHO} "------------- --------------- ------------------------------------------------" + @${ECHO} "MM_USERNAME mailman The username of the Mailman user." + @${ECHO} "MM_USERID 91 The user ID of the Mailman user." + @${ECHO} "MM_GROUPNAME mailman The group to which the Mailman user will belong." + @${ECHO} "MM_GROUPID \$$MM_USERID The group ID for the Mailman user." + @${ECHO} "MM_DIR mailman Mailman will be installed in" + @${ECHO} " ${PREFIX}/${MM_DIR}." + @${ECHO} "CGI_GID www The group name or id under which your web" + @${ECHO} " server executes CGI scripts." + @${ECHO} "IMGDIR www/icons Icon images will be installed in" + @${ECHO} " ${PREFIX}/${IMGDIR}." @${ECHO} "" post-patch: @@ -134,32 +133,43 @@ 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 ${PORT_OPTIONS:MPOSTFIX} && ${PORT_OPTIONS:MINTEGRATION} +.if ${PORT_OPTIONS:MPOSTFIX} @${ECHO} "MTA = 'Postfix'" >> ${WRKSRC}/Mailman/mm_cfg.py.dist.in .endif post-install: - @${RM} -f ${MAILMANDIR}/pythonlib/*.egg-info -.for dir in cron scripts - @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${MAILMANDIR}/${dir} +.for i in admin admindb confirm create edithtml listinfo options private \ + rmlist roster subscribe + ${STRIP_CMD} ${STAGEDIR}${MAILMANDIR}/cgi-bin/${i} +.endfor + ${STRIP_CMD} ${STAGEDIR}${MAILMANDIR}/mail/mailman + ${STRIP_CMD} ${STAGEDIR}${MAILMANDIR}/pythonlib/pykf.so +# Compile additional Python scripts: +.for dir in Mailman bin pythonlib + (cd ${STAGEDIR}${MAILMANDIR} \ + && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ + -f -d ${MAILMANDIR}/${dir} ${dir}) .endfor - @${CHGRP} -R ${MM_GROUPNAME} ${MAILMANDIR} - @${MKDIR} ${PREFIX}/${IMGDIR} + @${RM} -f ${STAGEDIR}${MAILMANDIR}/pythonlib/*.egg-info + # mm_cfg.py is handled by pkg-plist: + @${RM} -f ${STAGEDIR}${MAILMANDIR}/Mailman/mm_cfg.py + @${RM} -f ${STAGEDIR}${MAILMANDIR}/Mailman/mm_cfg.pyc + @${MKDIR} ${STAGEDIR}${PREFIX}/${IMGDIR} .for imgfile in ${IMGFILES} - @${CP} ${MAILMANDIR}/icons/${imgfile} ${PREFIX}/${IMGDIR} + ${CP} ${STAGEDIR}${MAILMANDIR}/icons/${imgfile} ${STAGEDIR}${PREFIX}/${IMGDIR} .endfor - @uudecode -p ${FILESDIR}/powerlogo.gif.uue > \ - ${PREFIX}/${IMGDIR}/powerlogo.gif -.if !defined(NOPORTDOCS) - @${CP} -R ${WRKSRC}/doc/* ${WRKSRC}/ - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${FILESDIR}/FreeBSD-post-install-notes ${DOCSDIR} + uudecode -p ${FILESDIR}/powerlogo.gif.uue > \ + ${STAGEDIR}${PREFIX}/${IMGDIR}/powerlogo.gif +.if ${PORT_OPTIONS:MDOCS} + ${CP} -R ${WRKSRC}/doc/* ${WRKSRC}/ + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${FILESDIR}/FreeBSD-post-install-notes ${STAGEDIR}${DOCSDIR} .for docfile in ${PORTDOCS:NFreeBSD-post-install-notes} - @${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR} .endfor .endif - @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL - @${CAT} ${PKGMESSAGE} + @${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + ${ECHO} "This marker file ensures that Python's upgrade-site-packages handles ${PKGNAME}." >${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/mailman-info.txt .if ${PORT_OPTIONS:MPOSTFIX} @if [ "x`${LOCALBASE}/sbin/postconf -h myhostname`" != "xlocalhost" ]; then \ ${ECHO_CMD} ""; \ |