diff options
author | Hanno Böck <hanno@gentoo.org> | 2008-07-04 13:33:42 +0000 |
---|---|---|
committer | Hanno Böck <hanno@gentoo.org> | 2008-07-04 13:33:42 +0000 |
commit | c2224d75727f3bc190c5f90119270a01f5475b68 (patch) | |
tree | c7a9e2089c32643e98565caa3a26e697dc3d45ec /net-mail/mailman | |
parent | Add a snips user & group to the system and set permissions appropriately. Ins... (diff) | |
download | gentoo-2-c2224d75727f3bc190c5f90119270a01f5475b68.tar.gz gentoo-2-c2224d75727f3bc190c5f90119270a01f5475b68.tar.bz2 gentoo-2-c2224d75727f3bc190c5f90119270a01f5475b68.zip |
mailman bump to 2.1.11
(Portage version: 2.2_rc1/cvs/Linux 2.6.25.8 i686)
Diffstat (limited to 'net-mail/mailman')
-rw-r--r-- | net-mail/mailman/ChangeLog | 9 | ||||
-rw-r--r-- | net-mail/mailman/files/50_mailman.conf-r1 | 24 | ||||
-rw-r--r-- | net-mail/mailman/files/README.gentoo-r3 (renamed from net-mail/mailman/files/README.gentoo) | 95 | ||||
-rw-r--r-- | net-mail/mailman/files/mailman-2.1.9-icons.patch | 12 | ||||
-rw-r--r-- | net-mail/mailman/mailman-2.1.11.ebuild (renamed from net-mail/mailman/mailman-2.1.9-r2.ebuild) | 33 | ||||
-rw-r--r-- | net-mail/mailman/mailman-2.1.9-r1.ebuild | 135 | ||||
-rw-r--r-- | net-mail/mailman/mailman-2.1.9.ebuild | 129 |
7 files changed, 131 insertions, 306 deletions
diff --git a/net-mail/mailman/ChangeLog b/net-mail/mailman/ChangeLog index f77674a24b74..96551c7ceeb2 100644 --- a/net-mail/mailman/ChangeLog +++ b/net-mail/mailman/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-mail/mailman # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.110 2008/02/08 13:13:46 hanno Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.111 2008/07/04 13:33:42 hanno Exp $ + +*mailman-2.1.11 (04 Jul 2008) + + 04 Jul 2008; Hanno Boeck <hanno@gentoo.org> + +files/mailman-2.1.9-icons.patch, +files/50_mailman.conf-r1, + +files/README.gentoo-r3, +mailman-2.1.11.ebuild: + Version bump, many changes taken from Jaco Kroon's ebuilds in bug #208789. 08 Feb 2008; Hanno Boeck <hanno@gentoo.org> mailman-2.1.9-r3.ebuild: Stable on amd64. diff --git a/net-mail/mailman/files/50_mailman.conf-r1 b/net-mail/mailman/files/50_mailman.conf-r1 new file mode 100644 index 000000000000..82a23214fce9 --- /dev/null +++ b/net-mail/mailman/files/50_mailman.conf-r1 @@ -0,0 +1,24 @@ +<IfDefine MAILMAN> + ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/" + <Directory "/usr/local/mailman/cgi-bin/"> + AllowOverride None + Options None + Order allow,deny + Allow from all + </Directory> + + Alias /pipermail/ "/usr/local/mailman/archives/public/" + <Directory "/usr/local/mailman/archives/public/"> + AllowOverride None + Options ExecCGI FollowSymLinks + Order allow,deny + Allow from all + </Directory> + + Alias /mailman-icons/ "/usr/local/mailman/icons/" + <Directory "/usr/local/mailman/icons/"> + AllowOverride None + Order allow,deny + Allow from all + </Directory> +</IfDefine> diff --git a/net-mail/mailman/files/README.gentoo b/net-mail/mailman/files/README.gentoo-r3 index 627662561b94..58c2f33db49a 100644 --- a/net-mail/mailman/files/README.gentoo +++ b/net-mail/mailman/files/README.gentoo-r3 @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/files/README.gentoo,v 1.11 2007/11/26 02:17:23 hanno Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/files/README.gentoo-r3,v 1.1 2008/07/04 13:33:42 hanno Exp $ Follow these instructions to finish setting up mailman. This file and the original ebuild were tweaked by me <lamer@gentoo.org> but were graciously @@ -10,9 +10,9 @@ for 2.1.x. Please view the documentation on Mailman at: http://www.list.org/ -I have configured Mailman to install in /usr/local/mailman by default, to change -this you will need to modify the INSTALLDIR variable in the ebuild and the -locations in the mailman.conf file. +This documentation assumes you're using the default gentoo path +(/usr/lib/mailman/), if you've changed it with MAILMAN_PREFIX, adjust them +accordingly. 1) If this is your first time installing mailman, after your "emerge mailman", you need to add -D MAILMAN to /etc/conf.d/apache or /etc/conf.d/apache2 and restart @@ -52,16 +52,16 @@ and main list: (Postfix users: read the notes at the end of this file before you continue) Add this to /etc/mail/aliases (and see point 9 for notes): - mailman: "|/usr/local/mailman/mail/mailman post mailman" - mailman-admin: "|/usr/local/mailman/mail/mailman admin mailman" - mailman-bounces: "|/usr/local/mailman/mail/mailman bounces mailman" - mailman-confirm: "|/usr/local/mailman/mail/mailman confirm mailman" - mailman-join: "|/usr/local/mailman/mail/mailman join mailman" - mailman-leave: "|/usr/local/mailman/mail/mailman leave mailman" - mailman-owner: "|/usr/local/mailman/mail/mailman owner mailman" - mailman-request: "|/usr/local/mailman/mail/mailman request mailman" - mailman-subscribe: "|/usr/local/mailman/mail/mailman subscribe mailman" - mailman-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe mailman" + mailman: "|/usr/lib/mailman/mail/mailman post mailman" + mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman" + mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman" + mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman" + mailman-join: "|/usr/lib/mailman/mail/mailman join mailman" + mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman" + mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman" + mailman-request: "|/usr/lib/mailman/mail/mailman request mailman" + mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman" + mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman" For courier, the aliases have to go to /etc/courier/aliases and you have to skip the quotes. @@ -70,9 +70,6 @@ Run newaliases (only if you use sendmail). newaliases -Copy the web icons: - cp /usr/local/mailman/icons/* /var/www/localhost/icons - 6) Start the mailman daemon: /etc/init.d/mailman start @@ -85,16 +82,16 @@ and add it to default runlevel (optional but recommended): this must be added to /etc/mail/aliases (see smrsh notes below) replace <list-name> with the name of the list: - <list-name>: "|/usr/local/mailman/mail/mailman post <list-name>" - <list-name>-admin: "|/usr/local/mailman/mail/mailman admin <list-name>" - <list-name>-bounces: "|/usr/local/mailman/mail/mailman bounces <list-name>" - <list-name>-confirm: "|/usr/local/mailman/mail/mailman confirm <list-name>" - <list-name>-join: "|/usr/local/mailman/mail/mailman join <list-name>" - <list-name>-leave: "|/usr/local/mailman/mail/mailman leave <list-name>" - <list-name>-owner: "|/usr/local/mailman/mail/mailman owner <list-name>" - <list-name>-request: "|/usr/local/mailman/mail/mailman request <list-name>" - <list-name>-subscribe: "|/usr/local/mailman/mail/mailman subscribe <list-name>" - <list-name>-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe <list-name>" + <list-name>: "|/usr/lib/mailman/mail/mailman post <list-name>" + <list-name>-admin: "|/usr/lib/mailman/mail/mailman admin <list-name>" + <list-name>-bounces: "|/usr/lib/mailman/mail/mailman bounces <list-name>" + <list-name>-confirm: "|/usr/lib/mailman/mail/mailman confirm <list-name>" + <list-name>-join: "|/usr/lib/mailman/mail/mailman join <list-name>" + <list-name>-leave: "|/usr/lib/mailman/mail/mailman leave <list-name>" + <list-name>-owner: "|/usr/lib/mailman/mail/mailman owner <list-name>" + <list-name>-request: "|/usr/lib/mailman/mail/mailman request <list-name>" + <list-name>-subscribe: "|/usr/lib/mailman/mail/mailman subscribe <list-name>" + <list-name>-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe <list-name>" For courier, the aliases have to go to /etc/courier/aliases and you have to skip the quotes. @@ -107,14 +104,14 @@ smrsh notes ----------- (if you use sendmail, you are surely using srmsh) you must note that sendmail won't run any program outside of EBINDIR. I tried to change -EBINDIR using,define(`confEBINDIR', `/usr/local/mailman/mail')dnl in +EBINDIR using,define(`confEBINDIR', `/usr/lib/mailman/mail')dnl in sendmail.mc but it didn't work, so mailman must be placed in EBINDIR, which in Gentoo is /usr/adm/sm.bin, so you must run as root: - ln -s /usr/local/mailman/mail/mailman /usr/adm/sm.bin/mailman + ln -s /usr/lib/mailman/mail/mailman /usr/adm/sm.bin/mailman And the lines in /etc/mail/aliases which refer to -/usr/local/mailman/mail/mailman must be changed to mailman: +/usr/lib/mailman/mail/mailman must be changed to mailman: <list-name>: "|mailman post <list-name>" <list-name>-admin: "|mailman admin <list-name>" @@ -127,11 +124,47 @@ And the lines in /etc/mail/aliases which refer to <list-name>-subscribe: "|mailman subscribe <list-name>" <list-name>-unsubscribe: "|mailman unsubscribe <list-name>" +exim notes +---------- +You can write an exim stanza for the router and transport that looks something +like (Derived from, and in part taken from cpanel): + +mailman_virtual_router: + driver = accept + require_files = /var/lib/mailman/lists/${lc::local_part}/config.pck + local_part_suffix_optional + local_part_suffix = -admin : \ + -bounces : -bounces+* : \ + -confirm : -confirm+* : \ + -join : -leave : \ + -owner : -request : \ + -subscribe : -unsubscribe + transport = mailman_virtual_transport + +mailman_virtual_transport: + driver = pipe + command = /usr/lib/mailman/mail/mailman \ + '${if def:local_part_suffix \ + {${sg{$local_part_suffix}{-(\\w+)(\\+.*)?}{\$1}}} \ + {post}}' \ + ${lc:$local_part} + current_directory = /usr/lib/mailman + home_directory = /usr/lib/mailman + user = mailman + group = mailman + +Note the double colon in the require files. See +http://wiki.exim.org/FAQ/General_Debugging/Q0060 for more information. + +This should be modified if you're using the vhosts USE flag, specifically you +need to modify the location of the config.pck file, to be +${lc::local_part}-${lc::domain} instead of simply ${lc::local_part}, and for the +transport you need to change the last part of the command in the same fashion. Other Helpful things to know... ------------------------------- run "bin/check_perms -f" from the root mailman directory -(/usr/local/mailman) to check and fix permission problems. +(/usr/lib/mailman) to check and fix permission problems. The INSTALL file is located in /usr/share/doc/mailman-$VERSION/ diff --git a/net-mail/mailman/files/mailman-2.1.9-icons.patch b/net-mail/mailman/files/mailman-2.1.9-icons.patch new file mode 100644 index 000000000000..07cd63e58812 --- /dev/null +++ b/net-mail/mailman/files/mailman-2.1.9-icons.patch @@ -0,0 +1,12 @@ +diff -rau mailman-2.1.9-orig/Mailman/Defaults.py.in mailman-2.1.9-mailman-icons/Mailman/Defaults.py.in +--- mailman-2.1.9-orig/Mailman/Defaults.py.in 2006-08-04 14:20:33.000000000 +0200 ++++ mailman-2.1.9/Mailman/Defaults.py.in 2008-02-03 14:27:02.000000000 +0200 +@@ -54,7 +54,7 @@ + # disable Mailman's logo footer altogther, hack + # Mailman/htmlformat.py:MailmanLogo(), which also contains the hardcoded links + # and image names. +-IMAGE_LOGOS = '/icons/' ++IMAGE_LOGOS = '/mailman-icons/' + + # The name of the Mailman favicon + SHORTCUT_ICON = 'mm-icon.png' diff --git a/net-mail/mailman/mailman-2.1.9-r2.ebuild b/net-mail/mailman/mailman-2.1.11.ebuild index e4ec7b939b22..c21584909c3b 100644 --- a/net-mail/mailman/mailman-2.1.9-r2.ebuild +++ b/net-mail/mailman/mailman-2.1.11.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.9-r2.ebuild,v 1.9 2008/01/31 20:29:02 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.11.ebuild,v 1.1 2008/07/04 13:33:42 hanno Exp $ inherit eutils python multilib @@ -21,7 +21,8 @@ DEPEND=">=dev-lang/python-2.3 pkg_setup() { INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"} VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"} - CGIGID=${MAILMAN_CGIGID:-81} + CGIUID=${MAILMAN_CGIUID:-apache} + CGIGID=${MAILMAN_CGIGID:-apache} MAILUSR=${MAILMAN_MAILUSR:-mailman} MAILUID=${MAILMAN_MAILUID:-280} MAILGRP=${MAILMAN_MAILGRP:-mailman} @@ -35,9 +36,10 @@ pkg_setup() { } src_unpack() { - unpack "${A}" + 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() { @@ -58,11 +60,12 @@ src_install () { emake "DESTDIR=${D}" doinstall || die insinto /etc/apache2/modules.d - doins "${FILESDIR}/50_mailman.conf" + 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-r2" README.gentoo || die "newdoc failed" + 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" @@ -95,9 +98,10 @@ src_install () { 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 2750 "${D}/${VAR_PREFIX}/archives/private" + chmod 2770 "${D}/${VAR_PREFIX}/archives/private" chmod 2770 "${D}/${VAR_PREFIX}/qfiles" chmod 2755 "${D}/${INSTALLDIR}"/cgi-bin/* "${D}/${INSTALLDIR}/mail/mailman" @@ -115,7 +119,7 @@ pkg_postinst() { elog elog "An example Mailman configuration file for Apache has been installed into:" - elog " ${APACHE_MODULES_CONFDIR}/50_mailman.conf" + elog " ${APACHE2_MODULES_CONFDIR}/50_mailman.conf" elog elog "To enable, you will need to add \"-D MAILMAN\" to" elog "/etc/conf.d/apache2." @@ -125,7 +129,8 @@ pkg_postinst() { ewarn "mailman with the following variables:" ewarn "MAILMAN_PREFIX (default: /usr/$(get_libdir)/mailman)" ewarn "MAILMAN_VAR_PREFIX (default: /var/lib/mailman)" - ewarn "MAILMAN_CGIGID (default: 81)" + 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)" @@ -135,8 +140,16 @@ pkg_postinst() { 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 "MUST change the homedir of the mailman-user manually:" - ewarn "usermod -d ${INSTALLDIR} mailman" + 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 } diff --git a/net-mail/mailman/mailman-2.1.9-r1.ebuild b/net-mail/mailman/mailman-2.1.9-r1.ebuild deleted file mode 100644 index ddf26d286288..000000000000 --- a/net-mail/mailman/mailman-2.1.9-r1.ebuild +++ /dev/null @@ -1,135 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.9-r1.ebuild,v 1.5 2008/01/31 20:29:02 hollow Exp $ - -inherit eutils depend.apache -IUSE="postfix sendmail qmail courier exim xmail" - -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" - -DEPEND=">=dev-lang/python-2.3 - virtual/mta - virtual/cron - || ( www-servers/apache www-servers/lighttpd )" - -if use postfix; then - MAILGID="280" -elif use sendmail; then - MAILGID=daemon -elif use qmail; then - MAILGID="280" -elif use courier; then - MAILGID=mail -elif use exim; then - MAILGID=mail -elif use xmail; then - MAILGID=xmail -else - MAILGID="280" -fi - -pkg_setup() { - INSTALLDIR=${MAILMAN_PREFIX:-"/usr/lib/mailman"} - VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"} - APACHEGID=${MAILMAN_APACHEGID:-81} - - # Bug #58526: switch to enew{group,user}. - # need to add mailman here for compile process. - # Duplicated at pkg_postinst() for binary install. - enewgroup mailman 280 - enewuser mailman 280 /bin/bash ${INSTALLDIR} mailman -G cron -c mailman - mkdir -p ${INSTALLDIR} - chown mailman:mailman ${INSTALLDIR} - chmod 2775 ${INSTALLDIR} -} - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PN}-2.1.8_rc1-directory-check.patch || die "patch failed." -} - -src_compile() { - econf --without-permcheck \ - --prefix=${INSTALLDIR} \ - --with-mail-gid=${MAILGID} \ - --with-cgi-gid=${APACHEGID} \ - --with-var-prefix=${VAR_PREFIX} \ - || die "configure failed" - - make || die "make failed" -} - -src_install () { - make DESTDIR=${D} doinstall || die - - 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 - - insinto ${APACHE_MODULES_CONFDIR} - doins ${FILESDIR}/50_mailman.conf - - 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 - - exeinto ${INSTALLDIR}/bin - doexe build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \ - contrib/mm-handler* || die - - # Save the old config into the new package as CONFIG_PROTECT - # doesn't work for this package. - for i in ${ROOT}/var/mailman ${ROOT}/home/mailman \ - ${ROOT}/usr/local/mailman ${INSTALLDIR} - do - if [ -f ${i}/Mailman/mm_cfg.py ]; then - cp ${i}/Mailman/mm_cfg.py \ - ${D}/${INSTALLDIR}/Mailman/mm_cfg.py - elog "Your old config has been saved as mm_cfg.py" - elog "A new config has been installed as mm_cfg.dist" - fi - done - - newinitd ${FILESDIR}/mailman.rc mailman - - chown -R mailman:mailman ${D}/${INSTALLDIR} - chmod 2775 ${D}/${INSTALLDIR} -} - -pkg_postinst() { - enewgroup mailman 280 - enewuser mailman 280 -1 ${INSTALLDIR} mailman -G cron -c "mailman" - cd ${INSTALLDIR} - bin/update - elog "Running \`${INSTALLDIR}/bin/check_perms -f\` *" - bin/check_perms -f - elog - elog "Please read /usr/share/doc/${PF}/README.gentoo.gz 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 " ${APACHE_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-Paths have changed with 2.1.9-r1. You can change paths with the" - ewarn "MAILMAN_INSTALLDIR and MAILMAN_VAR_PREFIX variables." - ewarn - ebeep -} diff --git a/net-mail/mailman/mailman-2.1.9.ebuild b/net-mail/mailman/mailman-2.1.9.ebuild deleted file mode 100644 index ea2878ca76aa..000000000000 --- a/net-mail/mailman/mailman-2.1.9.ebuild +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.9.ebuild,v 1.11 2008/01/31 20:29:02 hollow Exp $ - -inherit eutils depend.apache -IUSE="postfix sendmail qmail courier exim xmail" - -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" - -DEPEND=">=dev-lang/python-2.3 - virtual/mta - virtual/cron - || ( www-servers/apache www-servers/lighttpd )" - -INSTALLDIR="/usr/local/mailman" -APACHEGID="81" - -if use postfix; then - MAILGID="280" -elif use sendmail; then - MAILGID=daemon -elif use qmail; then - MAILGID="280" -elif use courier; then - MAILGID=mail -elif use exim; then - MAILGID=mail -elif use xmail; then - MAILGID=xmail -else - MAILGID="280" -fi - -pkg_setup() { - # Bug #58526: switch to enew{group,user}. - # need to add mailman here for compile process. - # Duplicated at pkg_postinst() for binary install. - enewgroup mailman 280 - enewuser mailman 280 /bin/bash ${INSTALLDIR} mailman -G cron -c mailman - mkdir -p ${INSTALLDIR} - chown mailman:mailman ${INSTALLDIR} - chmod 2775 ${INSTALLDIR} -} - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PN}-2.1.8_rc1-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 - - insinto ${APACHE_MODULES_CONFDIR} - doins ${FILESDIR}/50_mailman.conf - - 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 build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \ - contrib/mm-handler* ${ID}/bin - - # Save the old config into the new package as CONFIG_PROTECT - # doesn't work for this package. - for i in ${ROOT}/var/mailman ${ROOT}/home/mailman \ - ${ROOT}/usr/local/mailman ${INSTALLDIR} - do - if [ -f ${i}/Mailman/mm_cfg.py ]; then - cp ${i}/Mailman/mm_cfg.py \ - ${ID}/Mailman/mm_cfg.py - elog "Your old config has been saved as mm_cfg.py" - elog "A new config has been installed as mm_cfg.dist" - fi - done - - newinitd ${FILESDIR}/mailman.rc mailman - - chown -R mailman:mailman ${ID} - chmod 2775 ${ID} -} - -pkg_postinst() { - enewgroup mailman 280 - enewuser mailman 280 -1 ${INSTALLDIR} mailman -G cron -c "mailman" - cd ${INSTALLDIR} - bin/update - elog "Running \`${INSTALLDIR}/bin/check_perms -f\` *" - bin/check_perms -f - elog - elog "Please read /usr/share/doc/${PF}/README.gentoo.gz 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 " ${APACHE_MODULES_CONFDIR}/50_mailman.conf" - elog - elog "To enable, you will need to add \"-D MAILMAN\" to" - elog "/etc/conf.d/apache2." - elog -} |