summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Berman <tberman@gentoo.org>2003-04-30 01:02:43 +0000
committerTodd Berman <tberman@gentoo.org>2003-04-30 01:02:43 +0000
commit0444fbf146e870004c1f5a1819bb620806bce075 (patch)
tree55562d8a09126e810bababfa5092a4828e7ea8a5 /net-mail/mailman
parentChanged mailman's gid to daemon to fix bug #19257. (diff)
downloadgentoo-2-0444fbf146e870004c1f5a1819bb620806bce075.tar.gz
gentoo-2-0444fbf146e870004c1f5a1819bb620806bce075.tar.bz2
gentoo-2-0444fbf146e870004c1f5a1819bb620806bce075.zip
Changed mailman's gid to daemon to fix bug #19257.
Diffstat (limited to 'net-mail/mailman')
-rw-r--r--net-mail/mailman/ChangeLog7
-rw-r--r--net-mail/mailman/Manifest4
-rw-r--r--net-mail/mailman/files/digest-mailman-2.1.1-r21
-rw-r--r--net-mail/mailman/mailman-2.1.1-r2.ebuild92
4 files changed, 101 insertions, 3 deletions
diff --git a/net-mail/mailman/ChangeLog b/net-mail/mailman/ChangeLog
index d980528b8bab..1a90be7fd248 100644
--- a/net-mail/mailman/ChangeLog
+++ b/net-mail/mailman/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-mail/mailman
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.10 2003/04/18 22:44:25 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.11 2003/04/30 01:02:38 tberman Exp $
+
+*mailman-2.1.1-r2 (29 Apr 2003)
+
+ 29 Apr 2003; Todd Berman <tberman@gentoo.org> mailman-2.1.1-r2.ebuild:
+ Changed mailman's gid to daemon to fix bug #19257.
*mailman-2.1.1-r1 (18 Apr 2003)
diff --git a/net-mail/mailman/Manifest b/net-mail/mailman/Manifest
index f5614577cf1b..d4788d0bafd9 100644
--- a/net-mail/mailman/Manifest
+++ b/net-mail/mailman/Manifest
@@ -1,9 +1,9 @@
-MD5 77cbea256591042d76bef2d6d3baaa41 ChangeLog 1159
MD5 ea28f9c1907e2ce2ded3f9322ff2e38d mailman-2.0.12.ebuild 2083
MD5 ce6937efe1b9b2c81907050e31e34378 mailman-2.1.1-r1.ebuild 2712
MD5 56d0300c139c8e9d0db16c662ca92f59 mailman-2.1.1.ebuild 2482
MD5 a7700a2cb6070e1977b8f9ef790c67ad mailman-2.1.ebuild 2489
-MD5 db73eac636c53a061df084713553d604 mailman-2.1.1-r2.ebuild 2713
+MD5 ddc361a8f2c9e4ae26324c5846665cef mailman-2.1.1-r2.ebuild 2713
+MD5 f0cd3c9316f52a6003aafdc42ab9f116 ChangeLog 1319
MD5 ff41a2443653c601e2f80dcb5a87b004 files/README.gentoo 1368
MD5 55be2eab933580039c9feb4796c3bcf9 files/digest-mailman-2.0.12 63
MD5 2172743b0a9160821702fe304a875392 files/digest-mailman-2.1 61
diff --git a/net-mail/mailman/files/digest-mailman-2.1.1-r2 b/net-mail/mailman/files/digest-mailman-2.1.1-r2
new file mode 100644
index 000000000000..16cd1f01a87b
--- /dev/null
+++ b/net-mail/mailman/files/digest-mailman-2.1.1-r2
@@ -0,0 +1 @@
+MD5 7f7cdc52a40a17a2c7ee91c5f4dd675d mailman-2.1.1.tgz 5473754
diff --git a/net-mail/mailman/mailman-2.1.1-r2.ebuild b/net-mail/mailman/mailman-2.1.1-r2.ebuild
new file mode 100644
index 000000000000..9047e26055e4
--- /dev/null
+++ b/net-mail/mailman/mailman-2.1.1-r2.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.1-r2.ebuild,v 1.1 2003/04/30 01:02:38 tberman Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="GNU Mailman, the mailing list server with webinterface"
+SRC_URI="mirror://gnu/${PN}/${P}.tgz"
+HOMEPAGE="http://www.list.org/"
+
+SLOT="O"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc "
+
+DEPEND=">=dev-lang/python-1.5.2
+ virtual/mta
+ net-www/apache"
+
+INSTALLDIR="/var/mailman"
+APACHEGID="81"
+MAILGID="daemon"
+
+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_compile() {
+ cd ${S}
+ ./configure \
+ --prefix=${INSTALLDIR} \
+ --with-mail-gid=${MAILGID} \
+ --with-cgi-gid=${APACHEGID}
+ make || die
+}
+
+src_install () {
+ ID=${D}${INSTALLDIR}
+ cd ${S}
+ mkdir -p ${ID}
+ chown -R mailman.mailman ${ID}
+ chmod 2775 ${ID}
+ make prefix=${ID} var_prefix=${ID} doinstall || die
+ insinto /etc/apache/conf/addon-modules
+ doins ${FILESDIR}/mailman.conf
+
+ dodoc ${FILESDIR}/README.gentoo
+ dodoc ACK* BUGS FAQ NEWS README* TODO UPGRADING
+ 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}/var/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
+ rm ${D}/var/mailman/Mailman/mm_cfg.py
+ cp ${ROOT}/var/mailman/Mailman/mm_cfg.py \
+ ${D}/var/mailman/Mailman/mm_cfg.py
+ einfo "Your old config has been saved."
+ 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!"
+}
+
+pkg_config() {
+ 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
+}