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
|
2006-04-16 03:51:57 +02:00
|
|
|
PORTVERSION= 2.1.8
|
2006-06-08 17:20:10 +02:00
|
|
|
PORTREVISION= 3
|
2004-03-05 15:59:48 +01:00
|
|
|
CATEGORIES?= mail
|
2006-01-07 21:22:04 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
http://www.list.org/
|
2000-11-19 16:06:10 +01:00
|
|
|
MASTER_SITE_SUBDIR= mailman
|
2001-12-06 08:45:02 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2003-12-13 00:50:02 +01:00
|
|
|
DIST_SUBDIR= mailman
|
|
|
|
|
2006-04-26 18:53:00 +02:00
|
|
|
MAINTAINER?= jmelo@FreeBSD.org
|
2004-03-05 15:59:48 +01:00
|
|
|
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
|
|
|
|
2006-05-05 20:49:11 +02:00
|
|
|
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 \
|
|
|
|
CHINESE "support for Chinese mailing lists" off \
|
|
|
|
HTDIG "htdig integration patches" off
|
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
|
|
|
|
2001-01-08 11:04:49 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_PYTHON= yes
|
2002-02-20 10:09:44 +01:00
|
|
|
CONFIGURE_ARGS= --prefix=${MAILMANDIR} --with-python=${PYTHON_CMD} \
|
2002-05-09 14:50:27 +02:00
|
|
|
--with-username=${MM_USERNAME} \
|
|
|
|
--with-groupname=${MM_GROUPNAME} \
|
2002-02-20 10:09:44 +01:00
|
|
|
--with-mail-gid=${MAIL_GID} --with-cgi-gid=${CGI_GID}
|
2006-05-05 20:49:11 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST+= MAILMANDIR=${MAILMANDIR}
|
|
|
|
USE_RC_SUBR= mailman
|
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
|
|
|
|
2002-05-09 14:50:27 +02:00
|
|
|
MAILMANDIR= ${PREFIX}/${MM_DIR}
|
2002-02-08 15:04:37 +01:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
2002-02-11 15:24:46 +01:00
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
2003-01-17 13:58:06 +01:00
|
|
|
PLIST_SUB+= MMDIR=${MM_DIR} IMGDIR=${IMGDIR}
|
2003-02-12 09:10:37 +01:00
|
|
|
DOCFILES= ACKNOWLEDGMENTS BUGS FAQ INSTALL NEWS README README-I18N.en \
|
2005-06-04 02:56:01 +02:00
|
|
|
README.CONTRIB README.NETSCAPE \
|
2005-06-10 22:44:46 +02:00
|
|
|
README.USERAGENT TODO UPGRADING \
|
|
|
|
admin/www/mailman-admin.txt \
|
|
|
|
admin/www/mailman-install.txt \
|
|
|
|
admin/www/mailman-member.txt
|
|
|
|
|
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
|
|
|
|
2006-05-05 20:49:11 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_SENDMAIL)
|
|
|
|
.if defined(WITH_EXIM3) || defined(WITH_EXIM4) || defined(WITH_POSTFIX)
|
|
|
|
BROKEN= choose only one MTA integration
|
|
|
|
.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)
|
|
|
|
.if defined(WITH_SENDMAIL) || defined(WITH_EXIM4) || defined(WITH_POSTFIX)
|
|
|
|
BROKEN= choose only one MTA integration
|
|
|
|
.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)
|
|
|
|
.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_POSTFIX)
|
|
|
|
BROKEN= choose only one MTA integration
|
|
|
|
.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)
|
|
|
|
.if defined(WITH_SENDMAIL) || defined(WITH_EXIM3) || defined(WITH_EXIM4)
|
|
|
|
BROKEN= choose only one MTA integration
|
|
|
|
.endif
|
2006-06-08 17:20:10 +02:00
|
|
|
MAIL_GID?= nobody
|
2006-05-05 20:49:11 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CHINESE)
|
|
|
|
RUN_DEPENDS+= ${PYTHONPREFIX_SITELIBDIR}/cjkcodecs.pth:${PORTSDIR}/converters/py-cjkcodecs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_HTDIG)
|
|
|
|
PATCH_SITES+= http://www.openinfo.co.uk/mm/patches/444879/:patch1 \
|
|
|
|
http://www.openinfo.co.uk/mm/patches/444884/:patch2
|
|
|
|
PATCHFILES+= indexing-2.1.6-0.1.patch.gz:patch1 \
|
|
|
|
htdig-2.1.6-0.1.patch.gz:patch2
|
|
|
|
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
|
|
|
|
|
2006-05-09 20:07:54 +02:00
|
|
|
pre-fetch:
|
|
|
|
@${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} ""
|
|
|
|
|
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
|
|
|
|
|
2004-03-05 15:59:48 +01:00
|
|
|
pre-configure::
|
2002-10-21 17:31:38 +02:00
|
|
|
# Mailman's configure script needs the "mailman" user/group to exist, so
|
|
|
|
# $PKGINSTALL has to be patched before the do-configure target executes.
|
2006-05-05 20:49:11 +02:00
|
|
|
@${SED} \
|
2002-05-09 14:50:27 +02:00
|
|
|
-e 's#%%USER%%#${MM_USERNAME}#g' -e 's#%%UID%%#${MM_USERID}#g' \
|
|
|
|
-e 's#%%GROUP%%#${MM_GROUPNAME}#g' -e 's#%%GID%%#${MM_GROUPID}#g' \
|
2004-03-05 15:59:48 +01:00
|
|
|
-e 's#%%MAILMANDIR%%#${MAILMANDIR}#g' ${MASTERDIR}/pkg-install > \
|
2002-02-08 15:04:37 +01:00
|
|
|
${PKGINSTALL}
|
2006-05-05 20:49:11 +02:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
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
|
|
|
|
2001-12-06 08:45:02 +01:00
|
|
|
post-configure:
|
2006-05-05 20:49:11 +02:00
|
|
|
@${SED} \
|
2003-01-17 13:58:06 +01:00
|
|
|
-e 's#%%USER%%#${MM_USERNAME}#g' -e 's#%%GROUP%%#${MM_GROUPNAME}#g' \
|
|
|
|
-e 's#%%PREFIX%%#${PREFIX}#g' -e 's#%%MAILMANDIR%%#${MAILMANDIR}#g' \
|
2004-03-05 15:59:48 +01:00
|
|
|
${MASTERDIR}/pkg-deinstall > ${PKGDEINSTALL}
|
2005-02-10 23:25:02 +01:00
|
|
|
# port system auditors complain if dir is created prior to install
|
|
|
|
# but configure demands it be there. we delete it now if empty,
|
|
|
|
# so it will be re-created. For existing installs, this is ignored
|
2005-12-16 10:19:13 +01:00
|
|
|
@- ${RMDIR} ${MAILMANDIR} 2> /dev/null
|
2001-12-06 08:45:02 +01:00
|
|
|
|
2002-02-19 14:58:55 +01:00
|
|
|
pre-install:
|
2006-05-05 20:49:11 +02:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
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:
|
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)
|
2006-05-05 20:49:11 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/FreeBSD-post-install-notes ${DOCSDIR}
|
2003-02-12 09:10:37 +01:00
|
|
|
.for docfile in ${DOCFILES}
|
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}
|
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
|
|
|
|
2002-02-13 10:07:06 +01:00
|
|
|
.include <bsd.port.post.mk>
|