summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuan Van <langthang@gentoo.org>2004-07-22 00:31:23 +0000
committerTuan Van <langthang@gentoo.org>2004-07-22 00:31:23 +0000
commit60d80e518283fc4db727ec60e455677365ddeb81 (patch)
treec8783806dceb0a565b92fff2c76f45dba96b9430 /net-mail/mailman
parentInitial import of x11-plugins/wmsound-data, version 1.0.0, needed by x11-plug... (diff)
downloadhistorical-60d80e518283fc4db727ec60e455677365ddeb81.tar.gz
historical-60d80e518283fc4db727ec60e455677365ddeb81.tar.bz2
historical-60d80e518283fc4db727ec60e455677365ddeb81.zip
Revision bump to resolve bug #53533, #56250. Thanks to Jim Ramsay <i.am@jimramsay.com> and Brian Harring <ferringb@gentoo.org>.
Diffstat (limited to 'net-mail/mailman')
-rw-r--r--net-mail/mailman/ChangeLog9
-rw-r--r--net-mail/mailman/Manifest5
-rw-r--r--net-mail/mailman/files/digest-mailman-2.1.5-r11
-rw-r--r--net-mail/mailman/files/mailman-2.1.5-directory-check.patch12
-rw-r--r--net-mail/mailman/mailman-2.1.5-r1.ebuild135
5 files changed, 160 insertions, 2 deletions
diff --git a/net-mail/mailman/ChangeLog b/net-mail/mailman/ChangeLog
index e66a6724be7d..21cdfb4e3e2d 100644
--- a/net-mail/mailman/ChangeLog
+++ b/net-mail/mailman/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-mail/mailman
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.39 2004/07/10 15:53:22 kugelfang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.40 2004/07/22 00:31:23 langthang Exp $
+
+*mailman-2.1.5-r1 (21 Jul 2004)
+
+ 21 Jul 2004; Tuan Van <langthang@gentoo.org>
+ +files/mailman-2.1.5-directory-check.patch, +mailman-2.1.5-r1.ebuild:
+ Revision bump to resolve bug #53533, #56250. Thanks to Jim Ramsay
+ <i.am@jimramsay.com> and Brian Harring <ferringb@gentoo.org>.
10 Jul 2004; Danny van Dyk <kugelfang@gentoo.org> mailman-2.1.5.ebuild:
Marked ~amd64.
diff --git a/net-mail/mailman/Manifest b/net-mail/mailman/Manifest
index bfae81f3af9e..aff52451badf 100644
--- a/net-mail/mailman/Manifest
+++ b/net-mail/mailman/Manifest
@@ -1,7 +1,10 @@
+MD5 ac21a8312cc602431911937ec008d236 mailman-2.1.5-r1.ebuild 3898
MD5 2c755e431914dc9ef5acd2b2cdc47f5e mailman-2.1.5.ebuild 3764
-MD5 f754524486c576fcb093f610c551ddb1 ChangeLog 5310
+MD5 856a1fcddd6cb386fc9a67ea17f30f1f ChangeLog 5595
MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
MD5 ea0c850a55a563d90a520ab52809112f files/README.gentoo 4963
+MD5 1c839f4abbbe57c6ffc915fc8dc3018c files/mailman-2.1.5-directory-check.patch 641
MD5 3089c1f0f8d91abdd612997b085959eb files/mailman.conf 385
MD5 136d82be0bd84eff6961446171dbe288 files/digest-mailman-2.1.5 63
+MD5 136d82be0bd84eff6961446171dbe288 files/digest-mailman-2.1.5-r1 63
MD5 ce6d06f51e3da34e92048369e9fe14d2 files/mailman.rc 597
diff --git a/net-mail/mailman/files/digest-mailman-2.1.5-r1 b/net-mail/mailman/files/digest-mailman-2.1.5-r1
new file mode 100644
index 000000000000..1e43ecb04e52
--- /dev/null
+++ b/net-mail/mailman/files/digest-mailman-2.1.5-r1
@@ -0,0 +1 @@
+MD5 f5f56f04747cd4aff67427e7a45631af mailman-2.1.5.tgz 5745912
diff --git a/net-mail/mailman/files/mailman-2.1.5-directory-check.patch b/net-mail/mailman/files/mailman-2.1.5-directory-check.patch
new file mode 100644
index 000000000000..3a3cae800d3e
--- /dev/null
+++ b/net-mail/mailman/files/mailman-2.1.5-directory-check.patch
@@ -0,0 +1,12 @@
+diff -urN mailman-2.1.5-orig/bin/check_perms mailman-2.1.5/bin/check_perms
+--- mailman-2.1.5-orig/bin/check_perms 2003-03-31 14:07:55.000000000 -0600
++++ mailman-2.1.5/bin/check_perms 2004-07-21 17:24:34.810274976 -0500
+@@ -313,6 +313,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 --git a/net-mail/mailman/mailman-2.1.5-r1.ebuild b/net-mail/mailman/mailman-2.1.5-r1.ebuild
new file mode 100644
index 000000000000..11a76128dc9a
--- /dev/null
+++ b/net-mail/mailman/mailman-2.1.5-r1.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.5-r1.ebuild,v 1.1 2004/07/22 00:31:23 langthang Exp $
+
+inherit eutils
+IUSE="apache2"
+
+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="O"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc ~ppc ~amd64"
+
+DEPEND=">=dev-lang/python-2.3
+ virtual/mta
+ net-www/apache"
+
+INSTALLDIR="/usr/local/mailman"
+APACHEGID="81"
+MAILGID="280"
+
+pkg_setup() {
+ if ! grep -q ^mailman: /etc/group ; then
+ groupadd -g 280 mailman || die "problem adding group mailman"
+ fi
+ if ! grep -q ^mailman: /etc/passwd ; then
+ useradd -u 280 -g mailman -G cron -s /bin/bash \
+ -d ${INSTALLDIR} -c "mailman" mailman
+ fi
+ mkdir -p ${INSTALLDIR}
+ chown mailman:mailman ${INSTALLDIR}
+ chmod 2775 ${INSTALLDIR}
+}
+
+src_unpack() {
+ unpack ${A} && cd "${S}"
+ epatch ${FILESDIR}/${P}-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
+
+ chown -R mailman:mailman ${ID}
+ chmod 2775 ${ID}
+
+ if use apache2; then
+ dodir /etc/apache2/conf/modules.d
+ insinto /etc/apache2/conf/modules.d
+ newins ${FILESDIR}/mailman.conf 50_mailman.conf
+ else
+ dodir /etc/apache/conf/addon-modules
+ insinto /etc/apache/conf/addon-modules
+ doins ${FILESDIR}/mailman.conf
+ fi
+
+ 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 contrib/*.py contrib/majordomo2mailman.pl contrib/auto \
+ contrib/mm-handler* ${D}/usr/local/mailman/bin
+
+ # Save the old config into the new package as CONFIG_PROTECT
+ # doesn't work for this package.
+ if [ -f ${ROOT}/var/mailman/Mailman/mm_cfg.py ]; then
+ cp ${ROOT}/var/mailman/Mailman/mm_cfg.py \
+ ${D}/usr/local/mailman/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
+ if [ -f ${ROOT}/home/mailman/Mailman/mm_cfg.py ]; then
+ cp ${ROOT}/home/mailman/Mailman/mm_cfg.py \
+ ${D}/usr/local/mailman/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.py.dist"
+ fi
+ if [ -f ${ROOT}/usr/local/mailman/Mailman/mm_cfg.py ]; then
+ cp ${ROOT}/usr/local/mailman/Mailman/mm_cfg.py \
+ ${D}/usr/local/mailman/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.py.dist"
+ fi
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/mailman.rc mailman
+ }
+
+pkg_postinst() {
+ cd ${INSTALLDIR}
+ bin/update
+ 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 ""
+ if ! use apache2; then
+ einfo "It appears that you aren't running apache2..."
+ einfo "ebuild /var/db/pkg/net-mail/${PN}/${PF}.ebuild config"
+ einfo "to add the mailman hooks to your config"
+ fi
+}
+
+pkg_config() {
+ if ! use apache2; then
+ einfo "Updating apache config"
+ einfo "added: \"Include conf/addon-modules/mailman.conf\""
+ einfo "to ${ROOT}etc/apache/conf/apache.conf"
+ echo "Include conf/addon-modules/mailman.conf" \
+ >> ${ROOT}etc/apache/conf/apache.conf
+ fi
+}