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-01-07 21:22:04 +01:00
|
|
|
PORTVERSION= 2.1.7
|
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
|
2003-12-13 00:50:02 +01:00
|
|
|
.if defined(WITH_HTDIG)
|
|
|
|
PKGNAMESUFFIX= -with-htdig
|
|
|
|
.endif
|
2001-12-06 08:45:02 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2003-12-13 00:50:02 +01:00
|
|
|
DIST_SUBDIR= mailman
|
|
|
|
|
|
|
|
.if defined(WITH_HTDIG)
|
2004-01-09 06:31:07 +01:00
|
|
|
# see http://www.openinfo.co.uk/mailman/index.html
|
2003-12-13 00:50:02 +01:00
|
|
|
# Order of application of these patches is critical.
|
2005-12-16 10:19:13 +01:00
|
|
|
PATCHFILES+= indexing-2.1.6-0.1.patch.gz:patch1 \
|
|
|
|
htdig-2.1.6-0.1.patch.gz:patch2
|
2003-12-13 00:50:02 +01:00
|
|
|
PATCH_DIST_STRIP= -p1
|
2005-12-16 10:19:13 +01:00
|
|
|
PATCH_SITES+= http://www.openinfo.co.uk/mm/patches/444879/:patch1 \
|
|
|
|
http://www.openinfo.co.uk/mm/patches/444884/:patch2
|
2003-12-13 00:50:02 +01:00
|
|
|
.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
|
|
|
|
2005-12-16 10:19:13 +01:00
|
|
|
MAINTAINER?= ports@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
|
|
|
|
2003-01-20 14:02:39 +01:00
|
|
|
RUN_DEPENDS= lynx:${PORTSDIR}/www/lynx
|
2003-01-17 13:58:06 +01:00
|
|
|
.if defined(WITH_CHINESE)
|
2003-07-19 19:49:24 +02:00
|
|
|
RUN_DEPENDS+= ${PYTHONPREFIX_SITELIBDIR}/cjkcodecs.pth:${PORTSDIR}/converters/py-cjkcodecs
|
2002-05-09 14:50:27 +02:00
|
|
|
.endif
|
2003-12-13 00:50:02 +01:00
|
|
|
.if defined(WITH_HTDIG)
|
|
|
|
RUN_DEPENDS+= htdig:${PORTSDIR}/textproc/htdig
|
|
|
|
.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
|
|
|
|
2001-01-08 11:04:49 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
USE_PYTHON= yes
|
2003-01-20 14:02:39 +01:00
|
|
|
USE_REINPLACE= 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}
|
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
|
|
|
|
2003-12-13 00:50:02 +01:00
|
|
|
.if defined(WITH_HTDIG)
|
|
|
|
PLIST_SUB+= SUB_HTDIG=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SUB_HTDIG="@comment "
|
|
|
|
.endif
|
|
|
|
|
2002-02-13 10:07:06 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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!
|
|
|
|
# Perform a "make options" to see more information on these variables.
|
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
|
2002-02-13 10:07:06 +01:00
|
|
|
.if ${OSVERSION} >= 450000
|
2003-01-20 14:02:39 +01:00
|
|
|
MAIL_GID?= mailnull
|
2002-02-13 10:07:06 +01:00
|
|
|
.else
|
2003-01-20 14:02:39 +01:00
|
|
|
MAIL_GID?= daemon
|
2002-02-13 10:07:06 +01:00
|
|
|
.endif
|
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}
|
2001-12-06 08:45:02 +01:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
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-20 14:02:39 +01:00
|
|
|
PKGOPTS= ${FILESDIR}/pkg-opts
|
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
|
|
|
|
2002-02-19 14:58:55 +01:00
|
|
|
options:
|
|
|
|
@ ${ECHO_MSG} "===> Build options for ${PKGNAME}:"
|
2002-10-21 17:31:38 +02:00
|
|
|
@ ${CAT} ${PKGOPTS}
|
2002-02-19 14:58:55 +01:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${TEST} -r ${PKGOPTS} && \
|
|
|
|
(${ECHO_MSG} '-------------------------------------------------------------------------'; \
|
2003-02-12 09:10:37 +01:00
|
|
|
${ECHO_MSG} ' = IMPORTANT NOTICE = '; \
|
|
|
|
${ECHO_MSG} 'Getting the values of certain build time variables right is CRUCIAL if '; \
|
|
|
|
${ECHO_MSG} 'you want your Mailman installation to function! Pay specific attention '; \
|
|
|
|
${ECHO_MSG} 'to the value of MAIL_GID if you use an alternative MTA (not Sendmail). '; \
|
|
|
|
${ECHO_MSG} ' '; \
|
2002-02-19 14:58:55 +01:00
|
|
|
${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \
|
|
|
|
${ECHO_MSG} '-------------------------------------------------------------------------')
|
|
|
|
.endif
|
|
|
|
|
2003-01-20 14:02:39 +01:00
|
|
|
post-patch:
|
|
|
|
@ ${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#g' \
|
|
|
|
${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.
|
2002-05-09 14:50:27 +02:00
|
|
|
@ ${SED} \
|
|
|
|
-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}
|
|
|
|
@ ${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:
|
2003-01-17 13:58:06 +01:00
|
|
|
@ ${SED} \
|
|
|
|
-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}
|
2001-12-06 08:45:02 +01:00
|
|
|
@ ${SED} -e 's#%%MAILMANDIR%%#${MAILMANDIR}#g' \
|
2003-02-12 09:10:37 +01:00
|
|
|
-e 's#%%DOCSDIR%%#${DOCSDIR}#g' -e 's#%%LOCALBASE%%#${LOCALBASE}#g' \
|
2004-03-05 15:59:48 +01:00
|
|
|
${MASTERDIR}/pkg-message > ${PKGMESSAGE}
|
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:
|
2003-01-17 13:58:06 +01:00
|
|
|
@ ${SH} ${PKGREQ} INSTALL
|
2002-02-19 14:58:55 +01: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
|
|
|
|
@ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${MAILMANDIR}/${dir}
|
|
|
|
.endfor
|
2002-05-09 14:50:27 +02:00
|
|
|
@ ${CHGRP} -R ${MM_GROUPNAME} ${MAILMANDIR}
|
|
|
|
@ ${MKDIR} ${PREFIX}/${IMGDIR}
|
2003-02-12 09:10:37 +01:00
|
|
|
.for imgfile in ${IMGFILES}
|
2002-05-09 14:50:27 +02:00
|
|
|
@ ${CP} ${MAILMANDIR}/icons/${imgfile} ${PREFIX}/${IMGDIR}
|
2002-02-20 10:09:44 +01:00
|
|
|
.endfor
|
2002-05-09 14:50:27 +02:00
|
|
|
@ uudecode -p ${FILESDIR}/powerlogo.gif.uue > \
|
|
|
|
${PREFIX}/${IMGDIR}/powerlogo.gif
|
2001-01-08 11:04:49 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-02-11 15:24:46 +01:00
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2003-02-12 09:10:37 +01:00
|
|
|
@ ${INSTALL_DATA} ${FILESDIR}/FreeBSD-post-install-notes ${DOCSDIR}
|
|
|
|
.for docfile in ${DOCFILES}
|
2002-02-11 15:24:46 +01:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
2001-01-08 11:04:49 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
2002-02-19 14:58:55 +01:00
|
|
|
@ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2003-01-17 13:58:06 +01:00
|
|
|
@ ${INSTALL_SCRIPT} ${WRKSRC}/misc/mailman \
|
|
|
|
${PREFIX}/etc/rc.d/mailman.sh
|
2001-12-06 08:45:02 +01:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
.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
|
|
|
|
2002-02-13 10:07:06 +01:00
|
|
|
.include <bsd.port.post.mk>
|