1 |
hanno 07/09/13 21:59:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mailman-2.1.9-r1.ebuild |
5 |
Log: |
6 |
mailman installdir support |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.97 net-mail/mailman/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?rev=1.97&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?rev=1.97&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/ChangeLog?r1=1.96&r2=1.97 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v |
19 |
retrieving revision 1.96 |
20 |
retrieving revision 1.97 |
21 |
diff -u -r1.96 -r1.97 |
22 |
--- ChangeLog 13 Sep 2007 20:33:41 -0000 1.96 |
23 |
+++ ChangeLog 13 Sep 2007 21:59:22 -0000 1.97 |
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.96 2007/09/13 20:33:41 hansmi Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailman/ChangeLog,v 1.97 2007/09/13 21:59:22 hanno Exp $ |
29 |
+ |
30 |
+*mailman-2.1.9-r1 (13 Sep 2007) |
31 |
+ |
32 |
+ 13 Sep 2007; Hanno Boeck <hanno@g.o> +mailman-2.1.9-r1.ebuild: |
33 |
+ Make customized installation paths possible, with great help from hansmi. |
34 |
|
35 |
13 Sep 2007; Michael Hanselmann <hansmi@g.o> |
36 |
-mailman-2.1.9_rc1.ebuild: |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-mail/mailman/mailman-2.1.9-r1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/mailman-2.1.9-r1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailman/mailman-2.1.9-r1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mailman-2.1.9-r1.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-r1.ebuild,v 1.1 2007/09/13 21:59:22 hanno Exp $ |
50 |
|
51 |
inherit eutils depend.apache |
52 |
IUSE="postfix sendmail qmail courier exim xmail" |
53 |
|
54 |
DESCRIPTION="A python-based mailing list server with an extensive web interface" |
55 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" |
56 |
HOMEPAGE="http://www.list.org/" |
57 |
|
58 |
SLOT="0" |
59 |
LICENSE="GPL-2" |
60 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
61 |
|
62 |
DEPEND=">=dev-lang/python-2.3 |
63 |
virtual/mta |
64 |
virtual/cron |
65 |
|| ( www-servers/apache www-servers/lighttpd )" |
66 |
|
67 |
INSTALLDIR="/usr/local/mailman" |
68 |
APACHEGID="81" |
69 |
|
70 |
if use postfix; then |
71 |
MAILGID="280" |
72 |
elif use sendmail; then |
73 |
MAILGID=daemon |
74 |
elif use qmail; then |
75 |
MAILGID="280" |
76 |
elif use courier; then |
77 |
MAILGID=mail |
78 |
elif use exim; then |
79 |
MAILGID=mail |
80 |
elif use xmail; then |
81 |
MAILGID=xmail |
82 |
else |
83 |
MAILGID="280" |
84 |
fi |
85 |
|
86 |
pkg_setup() { |
87 |
# Bug #58526: switch to enew{group,user}. |
88 |
# need to add mailman here for compile process. |
89 |
# Duplicated at pkg_postinst() for binary install. |
90 |
enewgroup mailman 280 |
91 |
enewuser mailman 280 /bin/bash ${INSTALLDIR} mailman -G cron -c mailman |
92 |
mkdir -p ${INSTALLDIR} |
93 |
chown mailman:mailman ${INSTALLDIR} |
94 |
chmod 2775 ${INSTALLDIR} |
95 |
} |
96 |
|
97 |
src_unpack() { |
98 |
unpack ${A} |
99 |
cd ${S} |
100 |
epatch ${FILESDIR}/${PN}-2.1.8_rc1-directory-check.patch || die "patch failed." |
101 |
} |
102 |
|
103 |
src_compile() { |
104 |
econf \ |
105 |
--prefix=${INSTALLDIR} \ |
106 |
--with-mail-gid=${MAILGID} \ |
107 |
--with-cgi-gid=${APACHEGID} \ |
108 |
|| die "configure failed" |
109 |
|
110 |
make || die "make failed" |
111 |
} |
112 |
|
113 |
src_install () { |
114 |
ID=${D}${INSTALLDIR} |
115 |
|
116 |
make prefix=${ID} var_prefix=${ID} doinstall || die |
117 |
|
118 |
keepdir ${INSTALLDIR}/logs |
119 |
keepdir ${INSTALLDIR}/locks |
120 |
keepdir ${INSTALLDIR}/spam |
121 |
keepdir ${INSTALLDIR}/archives/public |
122 |
keepdir ${INSTALLDIR}/archives/private |
123 |
keepdir ${INSTALLDIR}/lists |
124 |
keepdir ${INSTALLDIR}/qfiles |
125 |
|
126 |
insinto ${APACHE2_MODULES_CONFDIR} |
127 |
doins ${FILESDIR}/50_mailman.conf |
128 |
|
129 |
dodoc ${FILESDIR}/README.gentoo |
130 |
dodoc ACK* BUGS FAQ NEWS README* TODO UPGRADING INSTALL |
131 |
dodoc contrib/README.check_perms_grsecurity contrib/mm-handler.readme |
132 |
dodoc contrib/virtusertable contrib/mailman.mc |
133 |
|
134 |
cp build/contrib/*.py contrib/majordomo2mailman.pl contrib/auto \ |
135 |
contrib/mm-handler* ${ID}/bin |
136 |
|
137 |
# Save the old config into the new package as CONFIG_PROTECT |
138 |
# doesn't work for this package. |
139 |
for i in ${ROOT}/var/mailman ${ROOT}/home/mailman \ |
140 |
${ROOT}/usr/local/mailman ${INSTALLDIR} |
141 |
do |
142 |
if [ -f ${i}/Mailman/mm_cfg.py ]; then |
143 |
cp ${i}/Mailman/mm_cfg.py \ |
144 |
${ID}/Mailman/mm_cfg.py |
145 |
elog "Your old config has been saved as mm_cfg.py" |
146 |
elog "A new config has been installed as mm_cfg.dist" |
147 |
fi |
148 |
done |
149 |
|
150 |
newinitd ${FILESDIR}/mailman.rc mailman |
151 |
|
152 |
chown -R mailman:mailman ${ID} |
153 |
chmod 2775 ${ID} |
154 |
} |
155 |
|
156 |
pkg_postinst() { |
157 |
enewgroup mailman 280 |
158 |
enewuser mailman 280 -1 ${INSTALLDIR} mailman -G cron -c "mailman" |
159 |
cd ${INSTALLDIR} |
160 |
bin/update |
161 |
elog "Running \`${INSTALLDIR}/bin/check_perms -f\` *" |
162 |
bin/check_perms -f |
163 |
elog |
164 |
elog "Please read /usr/share/doc/${PF}/README.gentoo.gz for additional" |
165 |
elog "Setup information, mailman will NOT run unless you follow" |
166 |
elog "those instructions!" |
167 |
elog |
168 |
|
169 |
elog "An example Mailman configuration file for Apache has been installed into:" |
170 |
elog " ${APACHE2_MODULES_CONFDIR}/50_mailman.conf" |
171 |
elog |
172 |
elog "To enable, you will need to add \"-D MAILMAN\" to" |
173 |
elog "/etc/conf.d/apache2." |
174 |
elog |
175 |
} |
176 |
|
177 |
|
178 |
|
179 |
-- |
180 |
gentoo-commits@g.o mailing list |