net-mail/mailman: Bump

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1909 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-01-31 08:36:43 +00:00
parent 65e6e3b5b8
commit 054f503342
4 changed files with 239 additions and 2 deletions

View File

@ -1,7 +1,11 @@
# ChangeLog for net-mail/mailman
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
# Copyright 2002-2010 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 $
31 Jan 2010; Mario Fetka <mario.fetka@gmail.com>
+files/mailman-2.1.12-directory-check.patch, +mailman-2.1.13-r1.ebuild:
Bump
18 Apr 2009; Mario Fetka <mario.fetka@gmail.com>
+files/mhonarc-2.6.16-list-output-order.patch, mailman-2.1.12:
add mhonarc patches

View File

@ -2,6 +2,7 @@ AUX 50_mailman.conf 429 RMD160 54104453464b725adc18e5fb66bee265089013f6 SHA1 7b0
AUX 50_mailman.conf-r1 592 RMD160 2f2be797205a63b728fe89a3367bbfb0e1f5d5dc SHA1 12a9d7276eb796c7512ece411a56f4b45f861a7d SHA256 4512a9dd6cba38a080654cbe172941a053fdc8b33afb65748d76716e9d00a029
AUX README.gentoo-r2 5537 RMD160 8d753bb466666bac03ee4da4b7e35456d66dfec3 SHA1 f2702f1dbcab75397795b55883972a047b39463e SHA256 3809aa17e4e9a244cdf7c06af1605c3ce660329b0e279a93c4c3650b8d9ffa42
AUX README.gentoo-r3 6804 RMD160 8885ce718cee4c1ff7fba103b6be314dfbf794c2 SHA1 343a4af9782136775fa3fe20d132d1e70b5468da SHA256 9db15d248be59d98f038718b50d5a02f08f5fc0870bf0f0ebec4c5d008c4e31b
AUX mailman-2.1.12-directory-check.patch 1485 RMD160 1b2a12f332ca2c70d2cca4310d6f6d1ed37085aa SHA1 56abf3e8643a7140450a338b133b5f6e2e62d4a4 SHA256 4986cc5e7d37cec02b4f29dbf4838e81799fabdfb89bbc7f8e54c9210ae1de6d
AUX mailman-2.1.8_rc1-directory-check.patch 1287 RMD160 3bf6d1216a79a32d68340cb0df5db9b5f44a3931 SHA1 ad2b689ce7911b509f999cd849d0402c36ded97c SHA256 2d31eda834429a55edad1fea3c379ecb3e8f05c03fac82f172989caeab85314d
AUX mailman-2.1.9-fix-XSS.patch 11287 RMD160 b4dff793463c976cef7bdfe2cded986a8f7820ab SHA1 d01f299044ddaf8c0c6df53cb7b8ec73f3f183a4 SHA256 cd2ffb0e19dd12205d375f3c83b7d6a3177c0f3389bf15db37bce1e63e459307
AUX mailman-2.1.9-icons.patch 555 RMD160 d0beb080e0dd4c753ce5e075b3c7db424b5474ef SHA1 786edc8b3ed11920aaaa23a8f3c0e4f9ae190a87 SHA256 cd78a7447febcbe1901144a190ef14cf9075b8055cc275e0405fc748f9c855f0
@ -21,6 +22,7 @@ DIST indexing-2.1.11-0.1.patch.gz 8203 RMD160 74ea4379f70e9a0dad2b7ffe61648c7f8c
DIST indexing-2.1.12-0.1.patch.gz 8178 RMD160 2e683878ad2ea61e0fd5e3e088da0977c0c304f7 SHA1 9a870adf0c5d3c7920f9c21cd0bf2dc11ce7b882 SHA256 c9bb8398695d79bbaa1079063d8327f4b7208a1f3cde7766d2f39390da1d820e
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
DIST mailman-2.1.13.tgz 8166504 RMD160 3a62b04ea0f48c3ecbe815eb927d282f765e416c SHA1 923dd78a17cbab576354b53a80443fe05f134398 SHA256 ddab5169c851e49134d8e58fd0d5fd3b920d8ddb5f52582c2ec95076c746a25e
DIST mhonarc-2.1.11-0.2.patch.gz 15544 RMD160 b5cef27e3b4051a891c7ec2650ec3ba9e5d5e5ec SHA1 1d94f9ba1854f0c4035df6eba8aefd65c0ed4898 SHA256 5165d9b91c3cd244f181884733f7e571bd2937bfadb56aefd179c0fffad39583
DIST mhonarc-2.1.12-0.1.patch.gz 15545 RMD160 eefc23c41486882b1a24b7ae410e4a8be4a628d3 SHA1 5b31bce83844d0a4360d89258ed329181f95f81a SHA256 7e95207bcbbf2540afed42343774af0662759f9c7aead816b20d04868215e1d6
DIST modinc-2.1.11-0.1.patch.gz 1166 RMD160 d9c8a37aecb54a2b2a016bb0879eed7a2bc48401 SHA1 2f924d2d9c838891a0bea4bd51212f3910b6678f SHA256 80181af1e0be4cddfc899ed27e92853944a19a0f71792bdca3940b6c609f507e
@ -29,5 +31,6 @@ DIST response-2.1.12-0.1.patch.gz 10518 RMD160 b6965ba7fc0ed4125d44e0900446324c2
EBUILD mailman-2.1.11.ebuild 5953 RMD160 266387bb518f8e72bc0fe02257ef68ffc19eca03 SHA1 b1b924f0125863a12fbd80390ca44e2c835d0ff7 SHA256 fb02ac4a6806158884b17199d95cb27d17cebd420d947e0941714c9d6bde3b26
EBUILD mailman-2.1.12-r1.ebuild 7945 RMD160 54cc2a32bb224645c9a11626ad27987b9cfc6d77 SHA1 83c212aea0a44d4b3b7c329821059a9b0a5ef77b SHA256 0a6b1fedfb553545f534d5ff17fe4d313c006a73397c963fccf26a133191937e
EBUILD mailman-2.1.12.ebuild 7344 RMD160 28a9571b1a82b156e9971b78747f3302ac2b1c01 SHA1 2bed9b33cc0bb5940c20cdf33ffa6220e15948c8 SHA256 d19b23f2dc49db37125e9b2198e677a8e7b7f017d332569297d83acbc8b15963
MISC ChangeLog 15997 RMD160 cff2466068a1a805627470b235291739d1752bdd SHA1 bff8168edecb901f6ef3e00f92655c335009d738 SHA256 0083dfc3205db8364db26fed84803468e1cf1d8e14bde608c1b54c189931666d
EBUILD mailman-2.1.13-r1.ebuild 7941 RMD160 5a8ce002708d0224f3da5cf23a1b7c43fb74a178 SHA1 c8999bf9a6bb8a33fdf651307bdafde1510c7742 SHA256 ad7edf36c985e5b2c8c677c29fdfb9856ec03eb2d7415d9688f2bc6fd937f7e5
MISC ChangeLog 16130 RMD160 1dd8f64411f391c3318a35ce1d1627aebca3993f SHA1 de4fe751faa891781eb982037141b00cd0158be1 SHA256 622771b359168e919b7006d4dc645ab6ee37f0eb4beee10ca5c5731a4717c98d
MISC metadata.xml 218 RMD160 30759d93f0209fdd74f29393ae54999fe6b2bdff SHA1 486b307ff1dae10aef7d18472460a21bc2decdfb SHA256 09421ca1b9299683d07f68ddbbd3ed97251dac613121b420841a3251da7fcb89

View File

@ -0,0 +1,32 @@
diff -Naur mailman-2.1.12/bin/check_perms mailman-2.1.12-1/bin/check_perms
--- mailman-2.1.12/bin/check_perms 2009-02-23 22:23:35.000000000 +0100
+++ mailman-2.1.12-1/bin/check_perms 2009-08-01 11:28:56.000000000 +0200
@@ -340,6 +340,8 @@
print _('checking permissions on list data')
# BAW: This needs to be converted to the Site module abstraction
for dir in os.listdir(mm_cfg.LIST_DATA_DIR):
+ if not S_ISDIR(statmode(os.path.join(mm_cfg.LIST_DATA_DIR,dir))):
+ continue
for file in checkfiles:
path = os.path.join(mm_cfg.LIST_DATA_DIR, dir, file)
if STATE.VERBOSE:
diff -Naur mailman-2.1.12/bin/update mailman-2.1.12-1/bin/update
--- mailman-2.1.12/bin/update 2009-02-23 22:23:35.000000000 +0100
+++ mailman-2.1.12-1/bin/update 2009-08-01 11:29:19.000000000 +0200
@@ -34,6 +34,7 @@
"""
import os
+import stat
import sys
import time
import errno
@@ -431,7 +432,7 @@
# Now update for the Mailman 2.1.5 qfile format. For every filebase in
# the qfiles/* directories that has both a .pck and a .db file, pull the
# data out and re-queue them.
- for dirname in os.listdir(mm_cfg.QUEUE_DIR):
+ for dirname in [x for x in os.listdir(mm_cfg.QUEUE_DIR) if stat.S_ISDIR(os.stat(os.path.join(mm_cfg.QUEUE_DIR,x)).st_mode)]:
dirpath = os.path.join(mm_cfg.QUEUE_DIR, dirname)
if dirpath == mm_cfg.BADQUEUE_DIR:
# The files in qfiles/bad can't possibly be pickles

View File

@ -0,0 +1,198 @@
# Copyright 1999-2010 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 perl-app
MH_VER="2.6.16"
MM_VER="2.1.12"
INDEXING_VER="0.1"
HTDIG_VER="0.1"
EXITSTATUS_VER="0.1"
MODINC_VER="0.1"
MHONARC_VER="0.1"
ANTISPAM_VER="0.1"
RESPONSE_VER="0.1"
DAILYMBOX_VER="0.1"
DESCRIPTION="A python-based mailing list server with an extensive web interface"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz
http://www.mhonarc.org/release/MHonArc/tar/MHonArc-${MH_VER}.tar.bz2
http://www.openinfo.co.uk/mm/patches/444879/indexing-${MM_VER}-${INDEXING_VER}.patch.gz
http://www.openinfo.co.uk/mm/patches/444884/htdig-${MM_VER}-${HTDIG_VER}.patch.gz
http://www.openinfo.co.uk/mm/patches/644797/exitstatus-${MM_VER}-${EXITSTATUS_VER}.patch.gz
http://www.openinfo.co.uk/mm/patches/760567/modinc-${MM_VER}-${MODINC_VER}.patch.gz
http://www.openinfo.co.uk/mm/patches/mhonarc/mhonarc-${MM_VER}-${MHONARC_VER}.patch.gz
http://www.openinfo.co.uk/mm/patches/850805/antispam-${MM_VER}-${ANTISPAM_VER}.patch.gz
http://www.openinfo.co.uk/mm/patches/supportlist/response-${MM_VER}-${RESPONSE_VER}.patch.gz
http://www.openinfo.co.uk/mm/patches/dailymbox/dailymbox-${MM_VER}-${DAILYMBOX_VER}.patch.gz"
HOMEPAGE="http://www.list.org/ http://www.openinfo.co.uk/mm/ http://www.mhonarc.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"
RDEPEND="!net-mail/mhonarc"
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.12-directory-check.patch" || die "patch failed."
epatch "${FILESDIR}/${PN}-2.1.9-icons.patch" || die "patch failed."
epatch "${DISTDIR}/indexing-${MM_VER}-${INDEXING_VER}.patch.gz" || die "patch failed."
epatch "${DISTDIR}/htdig-${MM_VER}-${HTDIG_VER}.patch.gz" || die "patch failed."
epatch "${DISTDIR}/exitstatus-${MM_VER}-${EXITSTATUS_VER}.patch.gz" || die "patch failed."
epatch "${DISTDIR}/modinc-${MM_VER}-${MODINC_VER}.patch.gz" || die "patch failed."
epatch "${DISTDIR}/mhonarc-${MM_VER}-${MHONARC_VER}.patch.gz" || die "patch failed."
epatch "${DISTDIR}/antispam-${MM_VER}-${ANTISPAM_VER}.patch.gz" || die "patch failed."
epatch "${DISTDIR}/response-${MM_VER}-${RESPONSE_VER}.patch.gz" || die "patch failed."
epatch "${DISTDIR}/dailymbox-${MM_VER}-${DAILYMBOX_VER}.patch.gz" || die "patch failed."
cd ${WORKDIR}/MHonArc-${MH_VER}
epatch "${FILESDIR}"/mhonarc-${MH_VER}-list-output-order.patch
}
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"
cd ${WORKDIR}/MHonArc-${MH_VER}
perl-app_src_compile
}
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"
cd ${WORKDIR}/MHonArc-${MH_VER}
sed -e "s|-prefix /usr |-docpath '${D}/usr/share/doc/${PF}/mhonarc' -prefix '${D}/${INSTALLDIR}/mhonarc' -libpath '${D}/${SITE_LIB}' |g" -i Makefile
perl-module_src_install
prepalldocs
}
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
}