net-mail/mailman: add python 2.6 exceptions quickfix patch

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@835 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2009-02-26 21:30:48 +00:00
parent b4f4986108
commit 34760feed6
3 changed files with 165 additions and 1 deletions

View File

@ -2,6 +2,9 @@
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.115 2008/11/14 11:07:45 hanno Exp $
26 Feb 2009; Mario Fetka <mario.fetka@gmail.com> +mailman-2.1.12.ebuild:
add python 2.6 exceptions quickfix patch
26 Feb 2009; Mario Fetka <mario.fetka@gmail.com>
+files/mailman-python2.6-exceptions-quickfix.patch, mailman-2.1.11.ebuild:
add python 2.6 exceptions quickfix patch

View File

@ -10,6 +10,8 @@ AUX mailman-python2.6.patch 7094 RMD160 d854b5465331ccde122022d0dfb6174bdc677702
AUX mailman.conf 385 RMD160 bec3c71140385fa88078ffb38be14bfd8ec068c6 SHA1 64e15fce12231bac8e9a5dd831d9c4f134df77a1 SHA256 fdd86c4a72318ade5dfe0f075ce62470979f93d8a4c862993dc32e7bdb422eab
AUX mailman.rc 597 RMD160 be0a574298a1d8d547a4ca76f864dd5fee9b897d SHA1 f464f5ba7310934d300a9af7c614fdf7498f7d2b SHA256 ef4f5482cf68ba44a0fbb83acde29295bd8dcb6512d259d14387dfc29beeb625
DIST mailman-2.1.11.tgz 7992229 RMD160 667297720aae9fef07600eab6fbf3d2cfc205c8b SHA1 068f1927f4d8dd0896b5064bdf6d102798491b72 SHA256 66f2e1d27b6d1f253a8ebbe218cacaab947e6b421f7513fbaea2314b24f06bda
DIST mailman-2.1.12.tgz 8010027 RMD160 94d8d132bb37180bf4c02ccd2a5fb3862ce13b94 SHA1 6d6281f7ce322e271f0259321f4d8931ff46e6ae SHA256 5e9313252cc2eea774c453131e7f3fe3a5873ebce26628c5504cdc318d563ddd
EBUILD mailman-2.1.11.ebuild 5953 RMD160 266387bb518f8e72bc0fe02257ef68ffc19eca03 SHA1 b1b924f0125863a12fbd80390ca44e2c835d0ff7 SHA256 fb02ac4a6806158884b17199d95cb27d17cebd420d947e0941714c9d6bde3b26
MISC ChangeLog 15644 RMD160 2ce640a109be36b014ed66a2c5791669fe5d7d80 SHA1 ff1c99c7c7b34b38b2748237f664a0a9e9c61a37 SHA256 8d26556114d9b610ca7117607d67d428d921df4ff4d187ba7b4053fbf38ce18c
EBUILD mailman-2.1.12.ebuild 5799 RMD160 05747135556703ccd08700b616f3e68357bdc792 SHA1 985367250c4177bdbbe16988bcb53e4d35a8506f SHA256 a9863416e346e22a2296ae49f48af329cb6b22c87529abe900830c48d7c51c7c
MISC ChangeLog 15763 RMD160 67b97d17c3af3efd75409a6d9ba760243bbfab84 SHA1 c2b9c2c2cc20f2ff8c4b31d46282cf8e5ef7939e SHA256 21469e7b6610a3854cda61fbf3ab11a5afe6e1f940bde056e4ba848509ae47fa
MISC metadata.xml 218 RMD160 30759d93f0209fdd74f29393ae54999fe6b2bdff SHA1 486b307ff1dae10aef7d18472460a21bc2decdfb SHA256 09421ca1b9299683d07f68ddbbd3ed97251dac613121b420841a3251da7fcb89

View File

@ -0,0 +1,159 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.11.ebuild,v 1.4 2008/08/15 15:26:26 nixnut Exp $
inherit eutils python multilib
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"
IUSE=""
DEPEND=">=dev-lang/python-2.3
virtual/mta
virtual/cron
virtual/httpd-cgi"
pkg_setup() {
INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"}
VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"}
CGIUID=${MAILMAN_CGIUID:-apache}
CGIGID=${MAILMAN_CGIGID:-apache}
MAILUSR=${MAILMAN_MAILUSR:-mailman}
MAILUID=${MAILMAN_MAILUID:-280}
MAILGRP=${MAILMAN_MAILGRP:-mailman}
MAILGID=${MAILMAN_MAILGID:-280}
# Bug #58526: switch to enew{group,user}.
# need to add mailman here for compile process.
# Duplicated at pkg_postinst() for binary install.
enewgroup ${MAILGRP} ${MAILGID}
enewuser ${MAILUSR} ${MAILUID} /bin/bash ${INSTALLDIR} mailman -G cron -c "mailman"
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-2.1.8_rc1-directory-check.patch" || die "patch failed."
epatch "${FILESDIR}/${PN}-2.1.9-icons.patch" || die "patch failed."
}
src_compile() {
econf --without-permcheck \
--prefix="${INSTALLDIR}" \
--with-mail-gid=${MAILGID} \
--with-cgi-gid=${CGIGID} \
--with-cgi-ext="${MAILMAN_CGIEXT}" \
--with-var-prefix="${VAR_PREFIX}" \
--with-username=${MAILUSR} \
--with-groupname=${MAILGRP} \
|| die "configure failed"
emake || die "make failed"
}
src_install () {
emake "DESTDIR=${D}" doinstall || die
insinto /etc/apache2/modules.d
newins "${FILESDIR}/50_mailman.conf-r1" 50_mailman.conf
dosed "s:/usr/local/mailman/cgi-bin:${INSTALLDIR}/cgi-bin:g" /etc/apache2/modules.d/50_mailman.conf
dosed "s:/usr/local/mailman/icons:${INSTALLDIR}/icons:g" /etc/apache2/modules.d/50_mailman.conf
dosed "s:/usr/local/mailman/archives:${VAR_PREFIX}/archives:g" /etc/apache2/modules.d/50_mailman.conf
newdoc "${FILESDIR}/README.gentoo-r3" README.gentoo || die "newdoc failed"
dodoc ACK* BUGS FAQ NEWS README* TODO UPGRADING INSTALL contrib/mailman.mc \
contrib/README.check_perms_grsecurity contrib/virtusertable || die "dodoc failed"
exeinto ${INSTALLDIR}/bin
doexe build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
contrib/mm-handler* || die
dodir /etc/mailman
mv "${D}/${INSTALLDIR}/Mailman/mm_cfg.py" "${D}/etc/mailman"
dosym /etc/mailman/mm_cfg.py ${INSTALLDIR}/Mailman/mm_cfg.py
# Save the old config for updates from pre-2.1.9-r2
# To be removed some distant day
for i in /var/mailman /home/mailman /usr/local/mailman ${INSTALLDIR}
do
if [ -f ${i}/Mailman/mm_cfg.py ] && ! [ -L ${i}/Mailman/mm_cfg.py ]; then
cp ${i}/Mailman/mm_cfg.py "${D}/etc/mailman/mm_cfg.py"
fi
done
newinitd "${FILESDIR}/mailman.rc" mailman
keepdir ${VAR_PREFIX}/logs
keepdir ${VAR_PREFIX}/locks
keepdir ${VAR_PREFIX}/spam
keepdir ${VAR_PREFIX}/archives/public
keepdir ${VAR_PREFIX}/archives/private
keepdir ${VAR_PREFIX}/lists
keepdir ${VAR_PREFIX}/qfiles
chown -R ${MAILUSR}:${MAILGRP} "${D}/${VAR_PREFIX}" "${D}/${INSTALLDIR}" "${D}"/etc/mailman/*
chown ${CGIUID}:${MAILGRP} "${D}/${VAR_PREFIX}/archives/private"
chmod 2775 "${D}/${INSTALLDIR}" "${D}/${INSTALLDIR}"/templates/* \
"${D}/${INSTALLDIR}"/messages/* "${D}/${VAR_PREFIX}" "${D}/${VAR_PREFIX}"/{logs,lists,spam,locks,archives/public}
chmod 2770 "${D}/${VAR_PREFIX}/archives/private"
chmod 2770 "${D}/${VAR_PREFIX}/qfiles"
chmod 2755 "${D}/${INSTALLDIR}"/cgi-bin/* "${D}/${INSTALLDIR}/mail/mailman"
}
pkg_postinst() {
python_mod_optimize ${INSTALLDIR}/bin/ ${INSTALLDIR}/Mailman
enewgroup ${MAILGRP} ${MAILGID}
enewuser ${MAILUSR} ${MAILUID} -1 ${INSTALLDIR} mailman -G cron -c "mailman"
elog
elog "Please read /usr/share/doc/${PF}/README.gentoo.bz2 for additional"
elog "Setup information, mailman will NOT run unless you follow"
elog "those instructions!"
elog
elog "An example Mailman configuration file for Apache has been installed into:"
elog " ${APACHE2_MODULES_CONFDIR}/50_mailman.conf"
elog
elog "To enable, you will need to add \"-D MAILMAN\" to"
elog "/etc/conf.d/apache2."
elog
ewarn "Default-Configuration has changed deeply in 2.1.9-r2. You can configure"
ewarn "mailman with the following variables:"
ewarn "MAILMAN_PREFIX (default: /usr/$(get_libdir)/mailman)"
ewarn "MAILMAN_VAR_PREFIX (default: /var/lib/mailman)"
ewarn "MAILMAN_CGIUID (default: apache)"
ewarn "MAILMAN_CGIGID (default: apache)"
ewarn "MAILMAN_CGIEXT (default: empty)"
ewarn "MAILMAN_MAILUSR (default: mailman)"
ewarn "MAILMAN_MAILUID (default: 280)"
ewarn "MAILMAN_MAILGRP (default: mailman)"
ewarn "MAILMAN_MAILGID (default: 280)"
ewarn
ewarn "Config file is now symlinked in /etc/mailman, so etc-update works."
ewarn
ewarn "If you're upgrading from below 2.1.9-r2 or changed MAILMAN_PREFIX, you"
ewarn "NEED to make a few manual updates to your system:"
ewarn
ewarn "1. Update your mailman users's home directory: usermod -d ${INSTALLDIR} mailman"
ewarn "2. Re-import the crontab: su - mailman -c 'crontab cron/crontab.in'"
ewarn "3. Copy your old mm_cfg.py file to /etc/mailman/mm_cfg.py"
ewarn
ewarn "Additionally if you've modified MAILMAN_VAR_PREFIX (or upgraded from"
ewarn "a pre 2.1.9-r2 installation), you should move your old lists/ and"
ewarn "archives/ directory to the new location, ensuring that the"
ewarn "permissions is correct. See bug #208789 for a discussion."
ebeep
}
pkg_postrm() {
INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"}
python_mod_cleanup ${INSTALLDIR}/bin ${INSTALLDIR}/Mailman
}