1 |
hanno 09/08/01 09:57:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mailman-2.1.12.ebuild |
5 |
Log: |
6 |
mailman bump |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.116 net-mail/mailman/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?rev=1.116&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?rev=1.116&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?r1=1.115&r2=1.116 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v |
19 |
retrieving revision 1.115 |
20 |
retrieving revision 1.116 |
21 |
diff -u -r1.115 -r1.116 |
22 |
--- ChangeLog 14 Nov 2008 11:07:45 -0000 1.115 |
23 |
+++ ChangeLog 1 Aug 2009 09:57:05 -0000 1.116 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for net-mail/mailman |
26 |
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.115 2008/11/14 11:07:45 hanno Exp $ |
28 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.116 2009/08/01 09:57:05 hanno Exp $ |
30 |
+ |
31 |
+*mailman-2.1.12 (01 Aug 2009) |
32 |
+ |
33 |
+ 01 Aug 2009; Hanno Boeck <hanno@g.o> +mailman-2.1.12.ebuild, |
34 |
+ +files/mailman-2.1.12-add-destdir.patch, |
35 |
+ +files/mailman-2.1.12-directory-check.patch: |
36 |
+ Version bump. |
37 |
|
38 |
14 Nov 2008; Hanno Boeck <hanno@g.o> files/README.gentoo-r3: |
39 |
Typos in exim doc, thanks to Martin DiViaio in #244545. |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-mail/mailman/mailman-2.1.12.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/mailman-2.1.12.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/mailman-2.1.12.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: mailman-2.1.12.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.12.ebuild,v 1.1 2009/08/01 09:57:05 hanno Exp $ |
53 |
|
54 |
inherit eutils python multilib |
55 |
|
56 |
DESCRIPTION="A python-based mailing list server with an extensive web interface" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" |
58 |
HOMEPAGE="http://www.list.org/" |
59 |
|
60 |
SLOT="0" |
61 |
LICENSE="GPL-2" |
62 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
63 |
IUSE="" |
64 |
|
65 |
DEPEND=">=dev-lang/python-2.3 |
66 |
virtual/mta |
67 |
virtual/cron |
68 |
virtual/httpd-cgi" |
69 |
RDEPEND="${DEPEND}" |
70 |
|
71 |
pkg_setup() { |
72 |
INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"} |
73 |
VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"} |
74 |
CGIUID=${MAILMAN_CGIUID:-apache} |
75 |
CGIGID=${MAILMAN_CGIGID:-apache} |
76 |
MAILUSR=${MAILMAN_MAILUSR:-mailman} |
77 |
MAILUID=${MAILMAN_MAILUID:-280} |
78 |
MAILGRP=${MAILMAN_MAILGRP:-mailman} |
79 |
MAILGID=${MAILMAN_MAILGID:-280} |
80 |
|
81 |
# Bug #58526: switch to enew{group,user}. |
82 |
# need to add mailman here for compile process. |
83 |
# Duplicated at pkg_postinst() for binary install. |
84 |
enewgroup ${MAILGRP} ${MAILGID} |
85 |
enewuser ${MAILUSR} ${MAILUID} /bin/bash ${INSTALLDIR} mailman -G cron -c "mailman" |
86 |
} |
87 |
|
88 |
src_unpack() { |
89 |
unpack ${A} |
90 |
cd "${S}" |
91 |
epatch "${FILESDIR}/${PN}-2.1.12-directory-check.patch" || die "patch failed." |
92 |
epatch "${FILESDIR}/${PN}-2.1.12-add-destdir.patch" || die "patch failed." |
93 |
epatch "${FILESDIR}/${PN}-2.1.9-icons.patch" || die "patch failed." |
94 |
} |
95 |
|
96 |
src_compile() { |
97 |
econf --without-permcheck \ |
98 |
--prefix="${INSTALLDIR}" \ |
99 |
--with-mail-gid=${MAILGID} \ |
100 |
--with-cgi-gid=${CGIGID} \ |
101 |
--with-cgi-ext="${MAILMAN_CGIEXT}" \ |
102 |
--with-var-prefix="${VAR_PREFIX}" \ |
103 |
--with-username=${MAILUSR} \ |
104 |
--with-groupname=${MAILGRP} \ |
105 |
|| die "configure failed" |
106 |
|
107 |
emake || die "make failed" |
108 |
} |
109 |
|
110 |
src_install () { |
111 |
emake "DESTDIR=${D}" doinstall || die |
112 |
|
113 |
insinto /etc/apache2/modules.d |
114 |
newins "${FILESDIR}/50_mailman.conf-r1" 50_mailman.conf |
115 |
dosed "s:/usr/local/mailman/cgi-bin:${INSTALLDIR}/cgi-bin:g" /etc/apache2/modules.d/50_mailman.conf |
116 |
dosed "s:/usr/local/mailman/icons:${INSTALLDIR}/icons:g" /etc/apache2/modules.d/50_mailman.conf |
117 |
dosed "s:/usr/local/mailman/archives:${VAR_PREFIX}/archives:g" /etc/apache2/modules.d/50_mailman.conf |
118 |
|
119 |
newdoc "${FILESDIR}/README.gentoo-r3" README.gentoo || die "newdoc failed" |
120 |
|
121 |
dodoc ACK* BUGS FAQ NEWS README* TODO UPGRADING INSTALL contrib/mailman.mc \ |
122 |
contrib/README.check_perms_grsecurity contrib/virtusertable || die "dodoc failed" |
123 |
|
124 |
exeinto ${INSTALLDIR}/bin |
125 |
doexe build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \ |
126 |
contrib/mm-handler* || die |
127 |
|
128 |
dodir /etc/mailman |
129 |
mv "${D}/${INSTALLDIR}/Mailman/mm_cfg.py" "${D}/etc/mailman" |
130 |
dosym /etc/mailman/mm_cfg.py ${INSTALLDIR}/Mailman/mm_cfg.py |
131 |
|
132 |
# Save the old config for updates from pre-2.1.9-r2 |
133 |
# To be removed some distant day |
134 |
for i in /var/mailman /home/mailman /usr/local/mailman ${INSTALLDIR} |
135 |
do |
136 |
if [ -f ${i}/Mailman/mm_cfg.py ] && ! [ -L ${i}/Mailman/mm_cfg.py ]; then |
137 |
cp ${i}/Mailman/mm_cfg.py "${D}/etc/mailman/mm_cfg.py" |
138 |
fi |
139 |
done |
140 |
|
141 |
newinitd "${FILESDIR}/mailman.rc" mailman |
142 |
|
143 |
keepdir ${VAR_PREFIX}/logs |
144 |
keepdir ${VAR_PREFIX}/locks |
145 |
keepdir ${VAR_PREFIX}/spam |
146 |
keepdir ${VAR_PREFIX}/archives/public |
147 |
keepdir ${VAR_PREFIX}/archives/private |
148 |
keepdir ${VAR_PREFIX}/lists |
149 |
keepdir ${VAR_PREFIX}/qfiles |
150 |
|
151 |
chown -R ${MAILUSR}:${MAILGRP} "${D}/${VAR_PREFIX}" "${D}/${INSTALLDIR}" "${D}"/etc/mailman/* |
152 |
chown ${CGIUID}:${MAILGRP} "${D}/${VAR_PREFIX}/archives/private" |
153 |
chmod 2775 "${D}/${INSTALLDIR}" "${D}/${INSTALLDIR}"/templates/* \ |
154 |
"${D}/${INSTALLDIR}"/messages/* "${D}/${VAR_PREFIX}" "${D}/${VAR_PREFIX}"/{logs,lists,spam,locks,archives/public} |
155 |
chmod 2770 "${D}/${VAR_PREFIX}/archives/private" |
156 |
chmod 2770 "${D}/${VAR_PREFIX}/qfiles" |
157 |
chmod 2755 "${D}/${INSTALLDIR}"/cgi-bin/* "${D}/${INSTALLDIR}/mail/mailman" |
158 |
|
159 |
} |
160 |
|
161 |
pkg_postinst() { |
162 |
python_mod_optimize ${INSTALLDIR}/bin/ ${INSTALLDIR}/Mailman \ |
163 |
${INSTALLDIR}/pythonlib/*/ |
164 |
|
165 |
enewgroup ${MAILGRP} ${MAILGID} |
166 |
enewuser ${MAILUSR} ${MAILUID} -1 ${INSTALLDIR} mailman -G cron -c "mailman" |
167 |
elog |
168 |
elog "Please read /usr/share/doc/${PF}/README.gentoo.bz2 for additional" |
169 |
elog "Setup information, mailman will NOT run unless you follow" |
170 |
elog "those instructions!" |
171 |
elog |
172 |
|
173 |
elog "An example Mailman configuration file for Apache has been installed into:" |
174 |
elog " ${APACHE2_MODULES_CONFDIR}/50_mailman.conf" |
175 |
elog |
176 |
elog "To enable, you will need to add \"-D MAILMAN\" to" |
177 |
elog "/etc/conf.d/apache2." |
178 |
elog |
179 |
|
180 |
ewarn "Default-Configuration has changed deeply in 2.1.9-r2. You can configure" |
181 |
ewarn "mailman with the following variables:" |
182 |
ewarn "MAILMAN_PREFIX (default: /usr/$(get_libdir)/mailman)" |
183 |
ewarn "MAILMAN_VAR_PREFIX (default: /var/lib/mailman)" |
184 |
ewarn "MAILMAN_CGIUID (default: apache)" |
185 |
ewarn "MAILMAN_CGIGID (default: apache)" |
186 |
ewarn "MAILMAN_CGIEXT (default: empty)" |
187 |
ewarn "MAILMAN_MAILUSR (default: mailman)" |
188 |
ewarn "MAILMAN_MAILUID (default: 280)" |
189 |
ewarn "MAILMAN_MAILGRP (default: mailman)" |
190 |
ewarn "MAILMAN_MAILGID (default: 280)" |
191 |
ewarn |
192 |
ewarn "Config file is now symlinked in /etc/mailman, so etc-update works." |
193 |
ewarn |
194 |
ewarn "If you're upgrading from below 2.1.9-r2 or changed MAILMAN_PREFIX, you" |
195 |
ewarn "NEED to make a few manual updates to your system:" |
196 |
ewarn |
197 |
ewarn "1. Update your mailman users's home directory: usermod -d ${INSTALLDIR} mailman" |
198 |
ewarn "2. Re-import the crontab: su - mailman -c 'crontab cron/crontab.in'" |
199 |
ewarn "3. Copy your old mm_cfg.py file to /etc/mailman/mm_cfg.py" |
200 |
ewarn |
201 |
ewarn "Additionally if you've modified MAILMAN_VAR_PREFIX (or upgraded from" |
202 |
ewarn "a pre 2.1.9-r2 installation), you should move your old lists/ and" |
203 |
ewarn "archives/ directory to the new location, ensuring that the" |
204 |
ewarn "permissions is correct. See bug #208789 for a discussion." |
205 |
ebeep |
206 |
} |
207 |
|
208 |
pkg_postrm() { |
209 |
INSTALLDIR=${MAILMAN_PREFIX:-"/usr/$(get_libdir)/mailman"} |
210 |
python_mod_cleanup ${INSTALLDIR}/bin ${INSTALLDIR}/Mailman \ |
211 |
${INSTALLDIR}/pythonlib/*/ |
212 |
} |