net-mail/mailman: Bump

(Portage version: 2.2.0_alpha6/svn/Linux x86_64, RepoMan options: --force)

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2766 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-12-03 20:09:54 +00:00
parent c3bbeb56fe
commit 7ee04260ef
7 changed files with 265 additions and 3 deletions

View File

@ -1,7 +1,15 @@
# ChangeLog for net-mail/mailman
# Copyright 2002-2010 Gentoo Foundation; Distributed under the GPL v2
# Copyright 1999-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 $
*mailman-2.1.14 (03 Dec 2010)
03 Dec 2010; Mario Fetka <mario.fetka@gmail.com>
+files/mailman-2.1.12-add-destdir.patch, mailman-2.1.13-r1.ebuild,
+files/mailman-2.1.13-ldflags.patch, +mailman-2.1.14.ebuild,
+files/mailman-2.1.14_rc1-directory-check.patch:
Bump
18 Feb 2010; Mario Fetka <mario.fetka@gmail.com> mailman-2.1.11.ebuild,
mailman-2.1.12.ebuild, mailman-2.1.12-r1.ebuild, mailman-2.1.13-r1.ebuild:
add arm keyword

View File

@ -2,7 +2,10 @@ 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-add-destdir.patch 379 RMD160 f5cec806246df499d90174c907dce2562cd5c607 SHA1 919e3d7fab0e4d4fe176ce1f92bc9651c8d3cf91 SHA256 10a22b784eecfc86c78380be6c389b90bbcec3e4c31a04b70f6a09e96ef4afd8
AUX mailman-2.1.12-directory-check.patch 1485 RMD160 1b2a12f332ca2c70d2cca4310d6f6d1ed37085aa SHA1 56abf3e8643a7140450a338b133b5f6e2e62d4a4 SHA256 4986cc5e7d37cec02b4f29dbf4838e81799fabdfb89bbc7f8e54c9210ae1de6d
AUX mailman-2.1.13-ldflags.patch 1022 RMD160 24cb935e95056a55ce77de1c00c083d88dbf2a52 SHA1 ea60f2a9b567c7832525ad150f6a2399d8feb1e1 SHA256 75b9fe8ef757541776532f76b1262c1616d440178ad39c432fe2d529eecf5645
AUX mailman-2.1.14_rc1-directory-check.patch 786 RMD160 4dcf690c6a5f26feff25376a5adfc261d887d2c2 SHA1 6049bf7e1b21a72861683d9251111209564f9a55 SHA256 13c5988eeaf1fad7c7f4db2c817bb234dce022636e0ebe1a7de9d0ef8400d91c
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
@ -13,6 +16,7 @@ AUX mailman.rc 597 RMD160 be0a574298a1d8d547a4ca76f864dd5fee9b897d SHA1 f464f5ba
AUX mhonarc-2.6.16-list-output-order.patch 1430 RMD160 b8c28140e30fc78e69942d0a49d9bc1cd19e6eef SHA1 866a17bfde975a905cda2787417f6f8db651cf80 SHA256 91b1661bc495fef894832c739dec533231e0fe0376fc20e94d4d9aade7cd486f
DIST MHonArc-2.6.16.tar.bz2 1562490 RMD160 31d6659fabdb00b4d4594eda9f5985bd5f3f33b8 SHA1 8b803a610805fe736036c3dcd2596e2e416a886b SHA256 7e6f113bd307d818005cc1c55004df94ce338b6ca64043ae3f89d86ce8d56df1
DIST antispam-2.1.12-0.1.patch.gz 3122 RMD160 f9ea024ea9c60b3de7fc5937d3c1369e1ec0bdf0 SHA1 da3803ef5a103bdf5cb9744f8febebe2de6dac9d SHA256 ee42e2831a479781f56c25e38f9d3b8de361ef180c3af26ee2031dea0e5c1a39
DIST antispam-2.1.14-0.1.patch.gz 3644 RMD160 22bc7eeae1c0e00d5854b91d40b2a315d8912438 SHA1 f9a27dd9b2ca9bfee85ea08be12aa7ba5310b740 SHA256 eaf7e8bf7b0a0d6bf5b8b8f747d84152c06af9d9b07accab9f3139b28bc6c94b
DIST dailymbox-2.1.12-0.1.patch.gz 7781 RMD160 81f63255eb294a7263d363206f90004ff1aa6d24 SHA1 3f46e349161879198a89e51fbd4dea80046d810d SHA256 470b53212f61df1777236b557e839f3eff62fbe46289b785911c1b02138349c0
DIST exitstatus-2.1.11-0.1.patch.gz 5270 RMD160 afbc435ce38764db7e1fbd070345b19296bb7c26 SHA1 9be1dc7aaf1c344737cf28cb7e4d773b3c205e11 SHA256 7312812155d3fdee4f1921ff442b48222ea992320cca1a7b957e0c6a6b9fa468
DIST exitstatus-2.1.12-0.1.patch.gz 5273 RMD160 d7402bba9130556969df583647f1d046e0da46ef SHA1 6fd5594c092e3e49a392c1a498d8f1bb75dad8ca SHA256 d039862a45996c3e1a054434b624a7d46a8806230e8d6caf253724ea817d650f
@ -20,17 +24,21 @@ DIST htdig-2.1.11-0.1.patch.gz 61311 RMD160 07c20e91a94e5fbfc76c8f8747ee9b1ffe64
DIST htdig-2.1.12-0.1.patch.gz 61296 RMD160 13e5a0e7b3d44bb7dd1cff19e8fcd60bf3d98199 SHA1 03ac9fe56e36ac651b1418b3d37ba8e642ff01f3 SHA256 4675fafe1ba978ec8ebfeb9306363d3ee0468bdbb32f204267ab54e0f15057d4
DIST indexing-2.1.11-0.1.patch.gz 8203 RMD160 74ea4379f70e9a0dad2b7ffe61648c7f8c5f9c3c SHA1 55e9b1e8c6ff96ee6b5e0c0039fc4329ba3ee573 SHA256 bb940388dfbc19a52bdd62569d6212d09b2a3ceb6cb5a1fe43b5f1551da10433
DIST indexing-2.1.12-0.1.patch.gz 8178 RMD160 2e683878ad2ea61e0fd5e3e088da0977c0c304f7 SHA1 9a870adf0c5d3c7920f9c21cd0bf2dc11ce7b882 SHA256 c9bb8398695d79bbaa1079063d8327f4b7208a1f3cde7766d2f39390da1d820e
DIST indexing-2.1.14-0.1.patch.gz 8718 RMD160 0d8d504e2239d6ff81ec4874884ce910635b5318 SHA1 45da60c19002d8482b61e6e5605afed0bc24b50c SHA256 2c7a445d0b3643ba36a8b6910e736bfaabd01ca32d21e05675763c68fd96d8f2
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 mailman-2.1.14.tgz 8201150 RMD160 a36d403b9c00e5354b204b62b5f0e96ab0779186 SHA1 c92de1a5ee2d8b0c83d29836b35bd422116c96f4 SHA256 1d6be802b718639126c4069eb7f9cd3a347765e1cb199cc3bb14d71572d09523
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
DIST modinc-2.1.12-0.1.patch.gz 1168 RMD160 77dcfb97bc93d35f7bfd5365d688ff74ccd60bdb SHA1 5e4cb1dc6990adb09894a104c7117bc92dd34241 SHA256 7e124e0bf35f66b37e43f01439867dc8acb1bcd75bb19316eaa6a314d8062ff1
DIST modinc-2.1.14-0.1.patch.gz 1466 RMD160 0457e8e244f90e3807caa616b4f489a9883d59bf SHA1 77fae8889ef6e26423ed827d78b9def00b806b87 SHA256 a6aa1469a10c98e65c9aae53a153be3bf6ffbb5b5f7b2af8373dcf663f5a442c
DIST response-2.1.12-0.1.patch.gz 10518 RMD160 b6965ba7fc0ed4125d44e0900446324c20099571 SHA1 2db575da30550eed44c8777ae4cc6aa8f047c2ce SHA256 645fe1d12d0d6e03a46f2d210011b4ffe3f184b5d4499ac879a734b63f13b5ef
EBUILD mailman-2.1.11.ebuild 5958 RMD160 c849d3b350cd627a8fd0fade75b5cc9e232c9f1e SHA1 06816919ba9d1c57991de3caa0b701097e6100d4 SHA256 4549243e5096c4678c46a83390b5f3f429f86063c7a6e1b8cc4fac2996509e8f
EBUILD mailman-2.1.12-r1.ebuild 7950 RMD160 e0fe4b30c7643aaee0d327e0b78aeab413525d9f SHA1 841012539a173a7a4ab4e0d2fe97c5019fa81b08 SHA256 8d9a8da82c48eeab65a43f813b95c84a4539d8136d861c2e780ad1983f8f2489
EBUILD mailman-2.1.12.ebuild 7349 RMD160 4dd6bbabcfb5914474ca9f0d3fb760783af1c9b2 SHA1 3967838921087de79f9ef8bed98430ca66645b1a SHA256 6df8f8b9040a2871ec01b30b1dddad3b4b21728ab9b700942e7fd098dbac5760
EBUILD mailman-2.1.13-r1.ebuild 7946 RMD160 7296d6493986f7508f65f28a5f261a7a2d61d26c SHA1 a1eae336f17b740a35e7fed17d45c067aaca975f SHA256 8c9e8f5042f6f44625bbf6fd057dc20030be72481072c2002c6cb5923fda052d
MISC ChangeLog 16300 RMD160 dbec87686774188d97e0e7cbfcbd06d83f4311c1 SHA1 658ac319bbf59d22b83de924dde2e0fe1206a699 SHA256 ead6405413af5ad58718ada70d73586f208053716f7281a9a3eb960b597c3ab7
EBUILD mailman-2.1.13-r1.ebuild 8018 RMD160 8102aabdc3a130a2b241d94f51e2101881c548ad SHA1 fe8b0ba339d4c317795e824f4745388873118841 SHA256 1db698d49dc554ae97b6d2fc65e6348e0f46d0d819371c93eb0954d6e32d51e0
EBUILD mailman-2.1.14.ebuild 7585 RMD160 3d5c340e9dbf1825f22492870abed0980944ae1a SHA1 558546cfec72546306403e57455990e6daaa3a81 SHA256 a58e1f473c5d677c20e1a5d37f8c6cdbe355e84c01832550c153651d67787f95
MISC ChangeLog 16573 RMD160 d877684000019612285d8be2fa3a6453ecbfef73 SHA1 04fa848e9bd236dd9547a7c5c24931c86dc6076d SHA256 29cf721333de28a68f5b18b4c99864ac9af5b475b366c69fb967cb4507542125
MISC metadata.xml 218 RMD160 30759d93f0209fdd74f29393ae54999fe6b2bdff SHA1 486b307ff1dae10aef7d18472460a21bc2decdfb SHA256 09421ca1b9299683d07f68ddbbd3ed97251dac613121b420841a3251da7fcb89

View File

@ -0,0 +1,11 @@
--- mailman-2.1.12/misc/Makefile.in.1 2009-08-01 11:47:54.000000000 +0200
+++ mailman-2.1.12/misc/Makefile.in 2009-08-01 11:48:02.000000000 +0200
@@ -93,7 +93,7 @@
install-packages:
if [ -z "$(EMAILPKG)" -a -d $(PYTHONLIBDIR)/email ] ; \
then \
- rm -rf $(PYTHONLIBDIR)/email* ; \
+ rm -rf $(DESTDIR)/$(PYTHONLIBDIR)/email* ; \
fi
for p in $(PACKAGES); \
do \

View File

@ -0,0 +1,26 @@
--- src/Makefile.in~ 2009-02-23 22:23:35.000000000 +0100
+++ src/Makefile.in 2010-08-08 02:03:16.000000000 +0200
@@ -46,6 +46,7 @@
CGIDIR= $(exec_prefix)/cgi-bin
CGIEXT= @CGIEXT@
MAILDIR= $(exec_prefix)/mail
+LDFLAGS= @LDFLAGS@
SHELL= /bin/sh
@@ -91,13 +92,13 @@
all: $(PROGRAMS)
mailman: $(srcdir)/mail-wrapper.c $(COMMONOBJS)
- $(CC) -I. $(MAIL_FLAGS) $(CFLAGS) $(COMMONOBJS) -o $@ $(srcdir)/mail-wrapper.c
+ $(CC) $(LDFLAGS) -I. $(MAIL_FLAGS) $(CFLAGS) $(COMMONOBJS) -o $@ $(srcdir)/mail-wrapper.c
#addaliases: $(srcdir)/alias-wrapper.c $(COMMONOBJS)
# $(CC) -I. $(ALIAS_FLAGS) $(CFLAGS) -o $@ $(srcdir)/alias-wrapper.c
$(CGI_PROGS): $(srcdir)/cgi-wrapper.c $(COMMONOBJS)
- $(CC) -DSCRIPT="\"$@\"" -I. $(CGI_FLAGS) $(CFLAGS) $(COMMONOBJS) -o $@ $(srcdir)/cgi-wrapper.c
+ $(CC) $(LDFLAGS) -DSCRIPT="\"$@\"" -I. $(CGI_FLAGS) $(CFLAGS) $(COMMONOBJS) -o $@ $(srcdir)/cgi-wrapper.c
common.o: $(srcdir)/common.c $(srcdir)/common.h Makefile
$(CC) -c -I. $(COMMON_FLAGS) $(CFLAGS) $(srcdir)/common.c

View File

@ -0,0 +1,19 @@
--- mailman-2.1.14rc1/bin/update 2010-09-09 18:51:09.000000000 +0200
+++ mailman-2.1.14rc1-1/bin/update 2010-09-14 01:02:09.000000000 +0200
@@ -35,6 +35,7 @@
"""
import os
+import stat
import sys
import time
import errno
@@ -428,7 +429,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

@ -61,6 +61,7 @@ src_unpack() {
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 "${FILESDIR}/${PN}-2.1.13-ldflags.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."

View File

@ -0,0 +1,189 @@
# 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.14.ebuild,v 1.5 2010/10/15 12:49:32 ranger Exp $
inherit eutils python multilib
MM_VER="2.1.12"
INDEXING_VER="0.1"
HTDIG_VER="0.1"
EXITSTATUS_VER="0.1"
MODINC_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.openinfo.co.uk/mm/patches/444879/indexing-${PV}-${INDEXING_VER}.patch.gz
http://ftp.disconnected-by-peer.at/pub/indexing-${PV}-${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-${PV}-${MODINC_VER}.patch.gz
http://ftp.disconnected-by-peer.at/pub/modinc-${PV}-${MODINC_VER}.patch.gz
http://www.openinfo.co.uk/mm/patches/850805/antispam-${PV}-${ANTISPAM_VER}.patch.gz
http://ftp.disconnected-by-peer.at/pub/antispam-${PV}-${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/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ~arm ppc sparc x86"
IUSE=""
DEPEND=">=dev-lang/python-2.3
virtual/mta
virtual/cron
virtual/httpd-cgi"
RDEPEND="${DEPEND}"
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.14_rc1-directory-check.patch" || die "patch failed."
epatch "${FILESDIR}/${PN}-2.1.9-icons.patch" || die "patch failed."
epatch "${FILESDIR}/${PN}-2.1.13-ldflags.patch" || die "patch failed."
epatch "${DISTDIR}/indexing-${PV}-${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-${PV}-${MODINC_VER}.patch.gz" || die "patch failed."
epatch "${DISTDIR}/antispam-${PV}-${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."
}
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 \
${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 \
${INSTALLDIR}/Mailman/*/
}