Adding mailman version 1.1.
Mailman is software to help manage email discussion lists, much like Majordomo
and Smartmail. Unlike most similar products, Mailman gives each mailing list a
web page, and allows users to subscribe, unsubscribe, etc. over the web. Even
the list manager can administer his or her list entirely from the web. Mailman
also integrates most things people want to do with mailing lists, including
archiving, mail-to-news gateways, integrated bounce handling, spam prevention,
email-based admin commands, direct SMTP delivery (with fast bulk mailing),
support for virtual domains, and more.
PR: 19400
Submitted by: Nick Hibma <n_hibma@calcaphon.com>
2000-07-17 03:16:02 +02:00
|
|
|
# New ports collection makefile for: mailman
|
|
|
|
# Date created: 10 July 2000
|
|
|
|
# Whom: n_hibma@qubesoft.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mailman
|
2010-10-17 02:40:15 +02:00
|
|
|
DISTVERSION= 2.1.14
|
2012-03-04 07:00:38 +01:00
|
|
|
PORTREVISION= 6
|
|
|
|
CATEGORIES= mail
|
2010-10-17 03:38:20 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU} \
|
|
|
|
SF/${PORTNAME}/Mailman%202.1%20%28stable%29/${PORTVERSION}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-12-06 08:45:02 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2003-12-13 00:50:02 +01:00
|
|
|
DIST_SUBDIR= mailman
|
|
|
|
|
2012-03-04 07:00:38 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
COMMENT= A mailing list manager (MLM) with a user-friendly web front-end
|
Adding mailman version 1.1.
Mailman is software to help manage email discussion lists, much like Majordomo
and Smartmail. Unlike most similar products, Mailman gives each mailing list a
web page, and allows users to subscribe, unsubscribe, etc. over the web. Even
the list manager can administer his or her list entirely from the web. Mailman
also integrates most things people want to do with mailing lists, including
archiving, mail-to-news gateways, integrated bounce handling, spam prevention,
email-based admin commands, direct SMTP delivery (with fast bulk mailing),
support for virtual domains, and more.
PR: 19400
Submitted by: Nick Hibma <n_hibma@calcaphon.com>
2000-07-17 03:16:02 +02:00
|
|
|
|
2012-03-04 07:00:38 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/gnu-COPYING-GPL
|
|
|
|
|
|
|
|
CONFLICTS= ja-mailman-2.1.*
|
Adding mailman version 1.1.
Mailman is software to help manage email discussion lists, much like Majordomo
and Smartmail. Unlike most similar products, Mailman gives each mailing list a
web page, and allows users to subscribe, unsubscribe, etc. over the web. Even
the list manager can administer his or her list entirely from the web. Mailman
also integrates most things people want to do with mailing lists, including
archiving, mail-to-news gateways, integrated bounce handling, spam prevention,
email-based admin commands, direct SMTP delivery (with fast bulk mailing),
support for virtual domains, and more.
PR: 19400
Submitted by: Nick Hibma <n_hibma@calcaphon.com>
2000-07-17 03:16:02 +02:00
|
|
|
|
2011-06-21 18:00:53 +02:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2006-11-06 13:36:43 +01:00
|
|
|
USE_PYTHON= yes
|
2012-03-04 07:00:38 +01:00
|
|
|
USE_RC_SUBR= mailman
|
|
|
|
|
|
|
|
GNU_CONFIGURE_PREFIX= ${MAILMANDIR}
|
2011-06-21 18:00:53 +02:00
|
|
|
CONFIGURE_ARGS+=--with-python=${PYTHON_CMD} \
|
2002-05-09 14:50:27 +02:00
|
|
|
--with-username=${MM_USERNAME} \
|
|
|
|
--with-groupname=${MM_GROUPNAME} \
|
2011-06-21 18:00:53 +02:00
|
|
|
--with-mail-gid=${MAIL_GID} --with-cgi-gid=${CGI_GID} \
|
|
|
|
--with-permcheck=no
|
2012-03-04 07:00:38 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2002-02-13 10:07:06 +01:00
|
|
|
|
2002-02-19 14:58:55 +01:00
|
|
|
# The Mailman port supports a number of variables that may be tweaked at
|
|
|
|
# build time. Getting the values of some of them right is crucial!
|
2002-02-08 15:04:37 +01:00
|
|
|
#
|
2002-05-09 14:50:27 +02:00
|
|
|
MM_USERNAME?= mailman
|
|
|
|
MM_USERID?= 91
|
|
|
|
MM_GROUPNAME?= ${MM_USERNAME}
|
|
|
|
MM_GROUPID?= ${MM_USERID}
|
|
|
|
MM_DIR?= mailman
|
2003-01-20 14:02:39 +01:00
|
|
|
CGI_GID?= www
|
2005-12-16 10:19:13 +01:00
|
|
|
IMGDIR?= www/icons
|
2002-02-20 10:09:44 +01:00
|
|
|
#
|
|
|
|
# End of user-configurable variables.
|
2002-02-08 15:04:37 +01:00
|
|
|
|
2011-06-21 18:00:53 +02:00
|
|
|
USERS= ${MM_USERNAME}
|
|
|
|
GROUPS= ${MM_GROUPNAME}
|
|
|
|
|
2002-05-09 14:50:27 +02:00
|
|
|
MAILMANDIR= ${PREFIX}/${MM_DIR}
|
2012-03-04 07:00:38 +01:00
|
|
|
PLIST_SUB= MMDIR=${MM_DIR} IMGDIR=${IMGDIR}
|
|
|
|
SUB_FILES= pkg-message pkg-install pkg-deinstall
|
|
|
|
SUB_LIST= MAILMANDIR=${MAILMANDIR} USER=${MM_USERNAME} GROUP=${MM_GROUPNAME}
|
2005-06-10 22:44:46 +02:00
|
|
|
|
2003-02-12 09:10:37 +01:00
|
|
|
IMGFILES= PythonPowered.png mailman.jpg mm-icon.png
|
Adding mailman version 1.1.
Mailman is software to help manage email discussion lists, much like Majordomo
and Smartmail. Unlike most similar products, Mailman gives each mailing list a
web page, and allows users to subscribe, unsubscribe, etc. over the web. Even
the list manager can administer his or her list entirely from the web. Mailman
also integrates most things people want to do with mailing lists, including
archiving, mail-to-news gateways, integrated bounce handling, spam prevention,
email-based admin commands, direct SMTP delivery (with fast bulk mailing),
support for virtual domains, and more.
PR: 19400
Submitted by: Nick Hibma <n_hibma@calcaphon.com>
2000-07-17 03:16:02 +02:00
|
|
|
|
2012-03-04 07:00:38 +01:00
|
|
|
PORTDOCS= ACKNOWLEDGMENTS BUGS FAQ INSTALL NEWS README README-I18N.en \
|
|
|
|
README.CONTRIB README.NETSCAPE \
|
|
|
|
README.USERAGENT TODO UPGRADING \
|
|
|
|
mailman-admin.txt \
|
|
|
|
mailman-install.txt \
|
|
|
|
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 \
|
|
|
|
HTDIG "htdig integration patches" off \
|
|
|
|
INTEGRATION "integrating postfix and mailman" off \
|
|
|
|
NAMAZU2 "make private archives searchable with namazu2" off
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
2006-05-05 20:49:11 +02:00
|
|
|
|
|
|
|
.if defined(WITH_SENDMAIL)
|
2007-05-31 14:51:56 +02:00
|
|
|
.if defined(WITH_EXIM3) || defined(WITH_EXIM4) || defined(WITH_POSTFIX) || \
|
|
|
|
defined(WITH_COURIER)
|
2011-06-21 18:00:53 +02:00
|
|
|
IGNORE= can only have one MTA selected to integrate with
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
2006-06-08 17:20:10 +02:00
|
|
|
MAIL_GID?= mailnull
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_EXIM3)
|
2007-05-31 14:51:56 +02:00
|
|
|
.if defined(WITH_SENDMAIL) || defined(WITH_EXIM4) || defined(WITH_POSTFIX) || \
|
|
|
|
defined(WITH_COURIER)
|
2011-06-21 18:00:53 +02:00
|
|
|
IGNORE= can only have one MTA selected to integrate with
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
2006-06-08 17:20:10 +02:00
|
|
|
MAIL_GID?= nobody
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_EXIM4)
|
2007-05-31 14:51:56 +02:00
|
|
|
.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_POSTFIX) || \
|
|
|
|
defined(WITH_COURIER)
|
2011-06-21 18:00:53 +02:00
|
|
|
IGNORE= can only have one MTA selected to integrate with
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
2006-06-08 17:20:10 +02:00
|
|
|
MAIL_GID?= mail
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POSTFIX)
|
2007-05-31 14:51:56 +02:00
|
|
|
.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_EXIM4) || \
|
|
|
|
defined(WITH_COURIER)
|
2011-06-21 18:00:53 +02:00
|
|
|
IGNORE= can only have one MTA selected to integrate with
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
2012-03-04 07:00:38 +01:00
|
|
|
.if defined(WITH_INTEGRATION)
|
|
|
|
MAIL_GID?= mailman
|
|
|
|
.else
|
2011-10-30 19:46:00 +01:00
|
|
|
MAIL_GID?= nobody
|
2012-03-04 07:00:38 +01:00
|
|
|
.endif
|
2007-10-22 23:26:49 +02:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/postfix-verp.diff
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-31 14:51:56 +02:00
|
|
|
.if defined(WITH_COURIER)
|
|
|
|
.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_EXIM4) || \
|
|
|
|
defined(WITH_POSTFIX)
|
2011-06-21 18:00:53 +02:00
|
|
|
IGNORE= can only have one MTA selected to integrate with
|
2007-05-31 14:51:56 +02:00
|
|
|
.endif
|
|
|
|
MAIL_GID?= courier
|
|
|
|
.endif
|
|
|
|
|
2006-05-05 20:49:11 +02:00
|
|
|
.if defined(WITH_HTDIG)
|
2010-10-17 02:40:15 +02:00
|
|
|
BROKEN= the HTDIG option is currently broken
|
2006-05-05 20:49:11 +02:00
|
|
|
PATCH_SITES+= http://www.openinfo.co.uk/mm/patches/444879/:patch1 \
|
|
|
|
http://www.openinfo.co.uk/mm/patches/444884/:patch2
|
2008-09-04 01:22:16 +02:00
|
|
|
PATCHFILES+= indexing-${DISTVERSION}-0.1.patch.gz:patch1 \
|
|
|
|
htdig-${DISTVERSION}-0.1.patch.gz:patch2
|
2006-05-05 20:49:11 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
PKGNAMESUFFIX+= -with-htdig
|
|
|
|
RUN_DEPENDS+= htdig:${PORTSDIR}/textproc/htdig
|
|
|
|
PLIST_SUB+= SUB_HTDIG=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SUB_HTDIG="@comment "
|
2002-02-19 14:58:55 +01:00
|
|
|
.endif
|
|
|
|
|
2011-04-17 15:34:01 +02:00
|
|
|
.if defined(WITH_NAMAZU2)
|
|
|
|
RUN_DEPENDS+= mknmz:${PORTSDIR}/databases/namazu2
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Mailman-Cgi-private.py
|
|
|
|
.endif
|
|
|
|
|
2006-05-09 20:07:54 +02:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
2006-09-08 21:15:59 +02:00
|
|
|
@${ECHO} "You may change the following build options:"
|
2006-05-09 20:07:54 +02:00
|
|
|
@${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} ""
|
|
|
|
|
2003-01-20 14:02:39 +01:00
|
|
|
post-patch:
|
2006-05-05 20:49:11 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#g' \
|
2003-01-20 14:02:39 +01:00
|
|
|
${WRKSRC}/Mailman/Defaults.py.in
|
2011-06-26 09:27:12 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/^0,5,10/#&/' ${WRKSRC}/cron/crontab.in.in
|
2012-03-04 07:00:38 +01:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
@${REINPLACE_CMD} -e 's/messages//' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's/templates//' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POSTFIX) && defined(WITH_INTEGRATION)
|
|
|
|
pre-configure:
|
|
|
|
@${ECHO} "MTA = 'Postfix'" >> ${WRKSRC}/Mailman/mm_cfg.py.dist.in
|
|
|
|
.endif
|
2001-12-06 08:45:02 +01:00
|
|
|
|
Adding mailman version 1.1.
Mailman is software to help manage email discussion lists, much like Majordomo
and Smartmail. Unlike most similar products, Mailman gives each mailing list a
web page, and allows users to subscribe, unsubscribe, etc. over the web. Even
the list manager can administer his or her list entirely from the web. Mailman
also integrates most things people want to do with mailing lists, including
archiving, mail-to-news gateways, integrated bounce handling, spam prevention,
email-based admin commands, direct SMTP delivery (with fast bulk mailing),
support for virtual domains, and more.
PR: 19400
Submitted by: Nick Hibma <n_hibma@calcaphon.com>
2000-07-17 03:16:02 +02:00
|
|
|
post-install:
|
2007-07-30 11:42:28 +02:00
|
|
|
@${RM} -f ${MAILMANDIR}/pythonlib/*.egg-info
|
2002-02-11 15:24:46 +01:00
|
|
|
.for dir in cron scripts
|
2006-05-05 20:49:11 +02:00
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${MAILMANDIR}/${dir}
|
2002-02-11 15:24:46 +01:00
|
|
|
.endfor
|
2006-05-05 20:49:11 +02:00
|
|
|
@${CHGRP} -R ${MM_GROUPNAME} ${MAILMANDIR}
|
|
|
|
@${MKDIR} ${PREFIX}/${IMGDIR}
|
2003-02-12 09:10:37 +01:00
|
|
|
.for imgfile in ${IMGFILES}
|
2006-05-05 20:49:11 +02:00
|
|
|
@${CP} ${MAILMANDIR}/icons/${imgfile} ${PREFIX}/${IMGDIR}
|
2002-02-20 10:09:44 +01:00
|
|
|
.endfor
|
2006-05-05 20:49:11 +02:00
|
|
|
@uudecode -p ${FILESDIR}/powerlogo.gif.uue > \
|
2002-05-09 14:50:27 +02:00
|
|
|
${PREFIX}/${IMGDIR}/powerlogo.gif
|
2001-01-08 11:04:49 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2012-03-26 15:10:01 +02:00
|
|
|
@${CP} -R ${WRKSRC}/doc/* ${WRKSRC}/
|
2006-05-05 20:49:11 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/FreeBSD-post-install-notes ${DOCSDIR}
|
2012-03-04 07:00:38 +01:00
|
|
|
.for docfile in ${PORTDOCS:NFreeBSD-post-install-notes}
|
2006-05-05 20:49:11 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
2001-01-08 11:04:49 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
2006-05-05 20:49:11 +02:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-09-08 21:15:59 +02:00
|
|
|
.if defined(WITH_POSTFIX)
|
2006-09-08 21:56:29 +02:00
|
|
|
@if [ "x`${LOCALBASE}/sbin/postconf -h myhostname`" != "xlocalhost" ]; then \
|
2006-09-08 21:15:59 +02:00
|
|
|
${ECHO_CMD} ""; \
|
|
|
|
${ECHO_CMD} "Your Postfix hostname is non-default."; \
|
2011-03-29 04:38:16 +02:00
|
|
|
${ECHO_CMD} -n "You must add \"SMTPHOST = "; \
|
2006-09-08 21:56:29 +02:00
|
|
|
${ECHO_CMD} -n `${LOCALBASE}/sbin/postconf -h myhostname`; \
|
2006-09-08 21:15:59 +02:00
|
|
|
${ECHO_CMD} "\" to the bottom of mm_cfg.py."; \
|
|
|
|
${ECHO_CMD} ""; \
|
|
|
|
fi
|
|
|
|
.endif
|
Adding mailman version 1.1.
Mailman is software to help manage email discussion lists, much like Majordomo
and Smartmail. Unlike most similar products, Mailman gives each mailing list a
web page, and allows users to subscribe, unsubscribe, etc. over the web. Even
the list manager can administer his or her list entirely from the web. Mailman
also integrates most things people want to do with mailing lists, including
archiving, mail-to-news gateways, integrated bounce handling, spam prevention,
email-based admin commands, direct SMTP delivery (with fast bulk mailing),
support for virtual domains, and more.
PR: 19400
Submitted by: Nick Hibma <n_hibma@calcaphon.com>
2000-07-17 03:16:02 +02:00
|
|
|
|
2012-03-04 07:00:38 +01:00
|
|
|
.include <bsd.port.mk>
|