Gentoo Archives: gentoo-commits

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