1 |
hanno 07/09/27 00:55:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mailman-2.1.9-r2.ebuild |
5 |
Log: |
6 |
improved mailman ebuild |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.99 net-mail/mailman/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?rev=1.99&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?rev=1.99&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?r1=1.98&r2=1.99 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v |
19 |
retrieving revision 1.98 |
20 |
retrieving revision 1.99 |
21 |
diff -u -r1.98 -r1.99 |
22 |
--- ChangeLog 13 Sep 2007 22:01:10 -0000 1.98 |
23 |
+++ ChangeLog 27 Sep 2007 00:55:05 -0000 1.99 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-mail/mailman |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.98 2007/09/13 22:01:10 hanno Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.99 2007/09/27 00:55:05 hanno Exp $ |
29 |
+ |
30 |
+*mailman-2.1.9-r2 (26 Sep 2007) |
31 |
+ |
32 |
+ 26 Sep 2007; Hanno Boeck <hanno@g.o> +mailman-2.1.9-r2.ebuild: |
33 |
+ Much improved ebuild, masked for now. |
34 |
|
35 |
*mailman-2.1.9-r1 (13 Sep 2007) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 net-mail/mailman/mailman-2.1.9-r2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/mailman-2.1.9-r2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/mailman-2.1.9-r2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mailman-2.1.9-r2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/mailman-2.1.9-r2.ebuild,v 1.1 2007/09/27 00:55:05 hanno Exp $ |
50 |
|
51 |
inherit eutils python |
52 |
|
53 |
DESCRIPTION="A python-based mailing list server with an extensive web interface" |
54 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" |
55 |
HOMEPAGE="http://www.list.org/" |
56 |
|
57 |
SLOT="0" |
58 |
LICENSE="GPL-2" |
59 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
60 |
IUSE="" |
61 |
|
62 |
DEPEND=">=dev-lang/python-2.3 |
63 |
virtual/mta |
64 |
virtual/cron |
65 |
|| ( www-servers/apache www-servers/lighttpd )" |
66 |
|
67 |
pkg_setup() { |
68 |
INSTALLDIR=${MAILMAN_PREFIX:-"/usr/lib/mailman"} |
69 |
VAR_PREFIX=${MAILMAN_VAR_PREFIX:-"/var/lib/mailman"} |
70 |
CGIGID=${MAILMAN_CGIGID:-81} |
71 |
MAILGID=${MAILMAN_MAILGID:-280} |
72 |
|
73 |
# Bug #58526: switch to enew{group,user}. |
74 |
# need to add mailman here for compile process. |
75 |
# Duplicated at pkg_postinst() for binary install. |
76 |
enewgroup mailman 280 |
77 |
enewuser mailman 280 /bin/bash ${INSTALLDIR} mailman -G cron -c mailman |
78 |
} |
79 |
|
80 |
src_unpack() { |
81 |
unpack ${A} |
82 |
cd ${S} |
83 |
epatch ${FILESDIR}/${PN}-2.1.8_rc1-directory-check.patch || die "patch failed." |
84 |
} |
85 |
|
86 |
src_compile() { |
87 |
econf --without-permcheck \ |
88 |
--prefix=${INSTALLDIR} \ |
89 |
--with-mail-gid=${MAILGID} \ |
90 |
--with-cgi-gid=${CGIGID} \ |
91 |
--with-var-prefix=${VAR_PREFIX} \ |
92 |
|| die "configure failed" |
93 |
|
94 |
emake || die "make failed" |
95 |
} |
96 |
|
97 |
src_install () { |
98 |
emake "DESTDIR=${D}" doinstall || die |
99 |
|
100 |
insinto /etc/apache2/modules.d |
101 |
doins "${FILESDIR}/50_mailman.conf" |
102 |
dosed "s:/usr/local/mailman/cgi-bin:${INSTALLDIR}/cgi-bin:g" /etc/apache2/modules.d/50_mailman.conf |
103 |
dosed "s:/usr/local/mailman/archives:${VAR_PREFIX}/archives:g" /etc/apache2/modules.d/50_mailman.conf |
104 |
|
105 |
dodoc ${FILESDIR}/README.gentoo ACK* BUGS FAQ NEWS README* TODO UPGRADING INSTALL \ |
106 |
contrib/README.check_perms_grsecurity contrib/virtusertable contrib/mailman.mc || die "dodoc failed" |
107 |
|
108 |
exeinto ${INSTALLDIR}/bin |
109 |
doexe build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \ |
110 |
contrib/mm-handler* || die |
111 |
|
112 |
dodir /etc/mailman |
113 |
mv ${D}/${INSTALLDIR}/Mailman/mm_cfg.py ${D}/etc/mailman |
114 |
dosym /etc/mailman/mm_cfg.py ${INSTALLDIR}/Mailman/mm_cfg.py |
115 |
|
116 |
# Save the old config for updates from pre-2.1.9-r2 |
117 |
# To be removed some distant day |
118 |
for i in /var/mailman /home/mailman /usr/local/mailman ${INSTALLDIR} |
119 |
do |
120 |
if [ -f ${i}/Mailman/mm_cfg.py ] && ! [ -L ${i}/Mailman/mm_cfg.py ]; then |
121 |
cp ${i}/Mailman/mm_cfg.py ${D}/etc/mailman/mm_cfg.py |
122 |
fi |
123 |
done |
124 |
|
125 |
newinitd ${FILESDIR}/mailman.rc mailman |
126 |
|
127 |
keepdir ${VAR_PREFIX}/logs |
128 |
keepdir ${VAR_PREFIX}/locks |
129 |
keepdir ${VAR_PREFIX}/spam |
130 |
keepdir ${VAR_PREFIX}/archives/public |
131 |
keepdir ${VAR_PREFIX}/archives/private |
132 |
keepdir ${VAR_PREFIX}/lists |
133 |
keepdir ${VAR_PREFIX}/qfiles |
134 |
|
135 |
chown -R mailman:mailman ${D}/${VAR_PREFIX} ${D}/${INSTALLDIR} ${D}/etc/mailman/* |
136 |
chmod 2775 ${D}/${INSTALLDIR} ${D}/${INSTALLDIR}/templates/* \ |
137 |
${D}/${INSTALLDIR}/messages/* ${D}/${VAR_PREFIX} ${D}/${VAR_PREFIX}/{logs,lists,spam,locks,archives/public} |
138 |
chmod 2750 ${D}/${VAR_PREFIX}/archives/private |
139 |
chmod 2770 ${D}/${VAR_PREFIX}/qfiles |
140 |
chmod 2755 ${D}/${INSTALLDIR}/cgi-bin/* ${D}/${INSTALLDIR}/mail/mailman |
141 |
|
142 |
} |
143 |
|
144 |
|
145 |
pkg_postinst() { |
146 |
python_mod_optimize ${INSTALLDIR}/bin/ ${INSTALLDIR}/Mailman |
147 |
|
148 |
enewgroup mailman 280 |
149 |
enewuser mailman 280 -1 ${INSTALLDIR} mailman -G cron -c "mailman" |
150 |
elog |
151 |
elog "Please read /usr/share/doc/${PF}/README.gentoo.gz for additional" |
152 |
elog "Setup information, mailman will NOT run unless you follow" |
153 |
elog "those instructions!" |
154 |
elog |
155 |
|
156 |
elog "An example Mailman configuration file for Apache has been installed into:" |
157 |
elog " ${APACHE2_MODULES_CONFDIR}/50_mailman.conf" |
158 |
elog |
159 |
elog "To enable, you will need to add \"-D MAILMAN\" to" |
160 |
elog "/etc/conf.d/apache2." |
161 |
elog |
162 |
|
163 |
ewarn "Default-Configuration has changed deeply in 2.1.9-r2. You can configure" |
164 |
ewarn "mailman with the following variables:" |
165 |
ewarn "MAILMAN_INSTALLDIR (default: /usr/lib/mailman)" |
166 |
ewarn "MAILMAN_VAR_PREFIX (default: /var/lib/mailman)" |
167 |
ewarn "MAILMAN_CGIGID (default: 81)" |
168 |
ewarn "MAILMAN_MAILGID (default: 280)" |
169 |
ewarn |
170 |
ewarn "Config file is now symlinked in /etc/mailman, so etc-update works." |
171 |
ebeep |
172 |
} |
173 |
|
174 |
pkg_postrm() { |
175 |
INSTALLDIR=${MAILMAN_PREFIX:-"/usr/lib/mailman"} |
176 |
python_mod_cleanup ${INSTALLDIR}/bin ${INSTALLDIR}/Mailman |
177 |
} |
178 |
|
179 |
|
180 |
|
181 |
-- |
182 |
gentoo-commits@g.o mailing list |