summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2006-11-24 20:08:16 +0000
committerHanno Böck <hanno@gentoo.org>2006-11-24 20:08:16 +0000
commit8d11e0bb6761bf26005cad21b9c5466cc2baed8c (patch)
treec29259fdb7ea17866d62e6d96893fcc2d9167981 /net-mail/mailman
parentCorrect initialization of mschap-v2 response buffer, thanks to Guillaume Knis... (diff)
downloadgentoo-2-8d11e0bb6761bf26005cad21b9c5466cc2baed8c.tar.gz
gentoo-2-8d11e0bb6761bf26005cad21b9c5466cc2baed8c.tar.bz2
gentoo-2-8d11e0bb6761bf26005cad21b9c5466cc2baed8c.zip
mailman bump and fixes
(Portage version: 2.1.2_rc2-r1)
Diffstat (limited to 'net-mail/mailman')
-rw-r--r--net-mail/mailman/ChangeLog8
-rw-r--r--net-mail/mailman/files/README.gentoo30
-rw-r--r--net-mail/mailman/files/digest-mailman-2.1.93
-rw-r--r--net-mail/mailman/mailman-2.1.9.ebuild137
4 files changed, 170 insertions, 8 deletions
diff --git a/net-mail/mailman/ChangeLog b/net-mail/mailman/ChangeLog
index 805b84143bac..3531a815db55 100644
--- a/net-mail/mailman/ChangeLog
+++ b/net-mail/mailman/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-mail/mailman
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.85 2006/09/11 14:24:36 tcort Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.86 2006/11/24 20:08:16 hanno Exp $
+
+*mailman-2.1.9 (24 Nov 2006)
+
+ 24 Nov 2006; Hanno Boeck <hanno@gentoo.org> files/README.gentoo,
+ +mailman-2.1.9.ebuild:
+ Version bump, fix a bump of smaller issues.
11 Sep 2006; Thomas Cort <tcort@gentoo.org> mailman-2.1.9_rc1.ebuild:
Stable on amd64 wrt security Bug #139976.
diff --git a/net-mail/mailman/files/README.gentoo b/net-mail/mailman/files/README.gentoo
index e7b5a5fb00a3..12e21f928f7a 100644
--- a/net-mail/mailman/files/README.gentoo
+++ b/net-mail/mailman/files/README.gentoo
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/files/README.gentoo,v 1.9 2004/07/07 15:57:02 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/files/README.gentoo,v 1.10 2006/11/24 20:08:16 hanno Exp $
Follow these instructions to finish setting up mailman. This file and the
original ebuild were tweaked by me <lamer@gentoo.org> but were graciously
@@ -15,11 +15,8 @@ this you will need to modify the INSTALLDIR variable in the ebuild and the
locations in the mailman.conf file.
1) If this is your first time installing mailman, after your "emerge mailman",
-**and you are using apache 1.x**, you will need to run:
-
-ebuild /var/db/pkg/net-mail/mailman-$VERSION/mailman-$VERSION.ebuild config
-
-This will add an Include in your apache.conf to mailman.conf
+you need to add -D MAILMAN to /etc/conf.d/apache or /etc/conf.d/apache2 and restart
+apache.
2) In your /etc/conf.d/apache (for apache 1.x)
or /etc/conf.d/apache2 (for apache 2.x)
@@ -63,7 +60,10 @@ Add this to /etc/mail/aliases (and see point 9 for notes):
mailman-request: "|/usr/local/mailman/mail/mailman request mailman"
mailman-subscribe: "|/usr/local/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe mailman"
-
+
+For courier, the aliases have to go to /etc/courier/aliases and you have to skip
+the quotes.
+
Run newaliases (only if you use sendmail).
newaliases
@@ -94,6 +94,9 @@ replace <list-name> with the name of the list:
<list-name>-subscribe: "|/usr/local/mailman/mail/mailman subscribe <list-name>"
<list-name>-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe <list-name>"
+For courier, the aliases have to go to /etc/courier/aliases and you have to skip
+the quotes.
+
Run newaliases:
newaliases
@@ -129,3 +132,16 @@ run "bin/check_perms -f" from the root mailman directory
(/usr/local/mailman) to check and fix permission problems.
The INSTALL file is located in /usr/share/doc/mailman-$VERSION/
+
+Postfix notes
+-------------
+If you're using Postfix, don't manually change your /etc/mail/aliases
+file, as described above. Instead, follow these instructions:
+
+http://list.org/mailman-install/node13.html
+
+This will set up Mailman and Postfix to automatically generate the new
+aliases when you create new lists. It will also make sure that Postfix
+uses the correct group ID when it's talking to Mailman, otherwise you
+will get security errors from Mailman.
+
diff --git a/net-mail/mailman/files/digest-mailman-2.1.9 b/net-mail/mailman/files/digest-mailman-2.1.9
new file mode 100644
index 000000000000..27cb65ef538f
--- /dev/null
+++ b/net-mail/mailman/files/digest-mailman-2.1.9
@@ -0,0 +1,3 @@
+MD5 dd51472470f9eafb04f64da372444835 mailman-2.1.9.tgz 7829201
+RMD160 135f94eeecca1f562f98dfe98c1a367bed229372 mailman-2.1.9.tgz 7829201
+SHA256 1b7a2c853c21bfd22205167dc3678c634a3f981721d95d1cd923ca84967cc986 mailman-2.1.9.tgz 7829201
diff --git a/net-mail/mailman/mailman-2.1.9.ebuild b/net-mail/mailman/mailman-2.1.9.ebuild
new file mode 100644
index 000000000000..25d820fd3a8d
--- /dev/null
+++ b/net-mail/mailman/mailman-2.1.9.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.9.ebuild,v 1.1 2006/11/24 20:08:16 hanno Exp $
+
+inherit eutils depend.apache
+IUSE="apache2 postfix sendmail qmail courier exim xmail"
+
+DESCRIPTION="A python-based mailing list server with an extensive web interface"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+HOMEPAGE="http://www.list.org/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND=">=dev-lang/python-2.3
+ virtual/mta
+ || ( net-www/apache www-servers/lighttpd )"
+
+INSTALLDIR="/usr/local/mailman"
+APACHEGID="81"
+
+if use postfix; then
+ MAILGID="280"
+elif use sendmail; then
+ MAILGID=daemon
+elif use qmail; then
+ MAILGID="280"
+elif use courier; then
+ MAILGID=mail
+elif use exim; then
+ MAILGID=mail
+elif use xmail; then
+ MAILGID=xmail
+else
+ MAILGID="280"
+fi
+
+S=${WORKDIR}/${P}
+
+pkg_setup() {
+ # Bug #58526: switch to enew{group,user}.
+ # need to add mailman here for compile process.
+ # Duplicated at pkg_postinst() for binary install.
+ enewgroup mailman 280
+ enewuser mailman 280 /bin/bash ${INSTALLDIR} mailman -G cron -c mailman
+ mkdir -p ${INSTALLDIR}
+ chown mailman:mailman ${INSTALLDIR}
+ chmod 2775 ${INSTALLDIR}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-2.1.8_rc1-directory-check.patch || die "patch failed."
+}
+
+src_compile() {
+ econf \
+ --prefix=${INSTALLDIR} \
+ --with-mail-gid=${MAILGID} \
+ --with-cgi-gid=${APACHEGID} \
+ || die "configure failed"
+
+ make || die "make failed"
+}
+
+src_install () {
+ ID=${D}${INSTALLDIR}
+
+ make prefix=${ID} var_prefix=${ID} doinstall || die
+
+ keepdir ${INSTALLDIR}/logs
+ keepdir ${INSTALLDIR}/locks
+ keepdir ${INSTALLDIR}/spam
+ keepdir ${INSTALLDIR}/archives/public
+ keepdir ${INSTALLDIR}/archives/private
+ keepdir ${INSTALLDIR}/lists
+ keepdir ${INSTALLDIR}/qfiles
+
+ if use apache2; then
+ insinto ${APACHE2_MODULES_CONFDIR}
+ else
+ insinto ${APACHE1_MODULES_CONFDIR}
+ fi
+ doins ${FILESDIR}/50_mailman.conf
+
+ dodoc ${FILESDIR}/README.gentoo
+ dodoc ACK* BUGS FAQ NEWS README* TODO UPGRADING INSTALL
+ dodoc contrib/README.check_perms_grsecurity contrib/mm-handler.readme
+ dodoc contrib/virtusertable contrib/mailman.mc
+
+ cp build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
+ contrib/mm-handler* ${ID}/bin
+
+ # Save the old config into the new package as CONFIG_PROTECT
+ # doesn't work for this package.
+ for i in ${ROOT}/var/mailman ${ROOT}/home/mailman \
+ ${ROOT}/usr/local/mailman ${INSTALLDIR}
+ do
+ if [ -f ${i}/Mailman/mm_cfg.py ]; then
+ cp ${i}/Mailman/mm_cfg.py \
+ ${ID}/Mailman/mm_cfg.py
+ einfo "Your old config has been saved as mm_cfg.py"
+ einfo "A new config has been installed as mm_cfg.dist"
+ fi
+ done
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/mailman.rc mailman
+
+ chown -R mailman:mailman ${ID}
+ chmod 2775 ${ID}
+}
+
+pkg_postinst() {
+ enewgroup mailman 280
+ enewuser mailman 280 -1 ${INSTALLDIR} mailman -G cron -c "mailman"
+ cd ${INSTALLDIR}
+ bin/update
+ einfo "Running \`${INSTALLDIR}/bin/check_perms -f\` *"
+ bin/check_perms -f
+ einfo ""
+ einfo "Please read /usr/share/doc/${PF}/README.gentoo.gz for additional"
+ einfo "Setup information, mailman will NOT run unless you follow"
+ einfo "those instructions!"
+ einfo ""
+
+ einfo "An example Mailman configuration file for Apache has been installed into:"
+ use apache2 && einfo " ${APACHE2_MODULES_CONFDIR}/50_mailman.conf"
+ use apache2 || einfo " ${APACHE1_MODULES_CONFDIR}/50_mailman.conf"
+ einfo ""
+ einfo "To enable, you will need to add \"-D MAILMAN\" to"
+ use apache2 && einfo "/etc/conf.d/apache2."
+ use apache2 || einfo "/etc/conf.d/apache."
+ einfo ""
+}