1 |
# $Id$ |
2 |
# Authority: gordonr |
3 |
# Name: Gordon Rowell |
4 |
|
5 |
Summary: Mailman configuration for SME server. |
6 |
%define name smeserver-mailman |
7 |
Name: %{name} |
8 |
%define version 1.3.0 |
9 |
%define release 15 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Applications/Internet |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
Patch0: smeserver-mailman-1.3.0-relocate.patch |
16 |
Patch1: smeserver-mailman-1.3.0-relocate.patch2 |
17 |
Patch2: smeserver-mailman-1.3.0-mailmanmail.patch |
18 |
Patch3: smeserver-mailman-1.3.0-smelist.patch |
19 |
Patch4: smeserver-mailman-1.3.0-createlinks.patch2 |
20 |
Patch5: smeserver-mailman-1.3.0-postinstall.patch |
21 |
Patch6: smeserver-mailman-1.3.0-postinstall.patch2 |
22 |
Patch7: smeserver-mailman-1.3.0-firsttime.patch |
23 |
Patch8: smeserver-mailman-1.3.0-actionorder.patch |
24 |
Patch9: smeserver-mailman-1.3.0-alias2mailman.patch |
25 |
Patch10: smeserver-mailman-1.3.0-smelist.patch2 |
26 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
27 |
BuildArchitectures: noarch |
28 |
Requires: e-smith-base |
29 |
Requires: e-smith-release >= 7.0 |
30 |
Requires: mailman >= 2.1.5.1-34.rhel4.3sme01 |
31 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
32 |
Obsoletes: e-smith-mailman |
33 |
Provides: e-smith-mailman |
34 |
AutoReqProv: no |
35 |
|
36 |
%description |
37 |
Add Mailman integration to the SME server. |
38 |
|
39 |
%changelog |
40 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
41 |
- Clean up spec so package can be built by koji/plague |
42 |
|
43 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
44 |
- Update to new release naming. No functional changes. |
45 |
- Make Packager generic |
46 |
|
47 |
* Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-15 |
48 |
- Allow hyphen in list names in smelist command [SME: 1307] |
49 |
|
50 |
* Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-14 |
51 |
- Add /sbin/e-smith/alias2mailman to convert hand-built alias files |
52 |
to mailman lists. Converst ~alias/.qmail-<listname> to the mailman |
53 |
list <listname> |
54 |
- List owner is mailman{DefaultOwner} defaulting to admin |
55 |
|
56 |
* Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-13 |
57 |
- Fix various permissions to satisfy /usr/lib/mailman/check_perms |
58 |
- Update mailman dependency to latest from CentOS |
59 |
|
60 |
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-12 |
61 |
- Run the addlist/rmlist actions before generic_template_expand [SME: 665] |
62 |
|
63 |
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-11 |
64 |
- Ensure that mailman record exists prior to trying to set the status |
65 |
|
66 |
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-10 |
67 |
- Adjust path in post-install script to match CentOS structure |
68 |
|
69 |
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-09 |
70 |
- Make further use of services2adjust and templates2expand |
71 |
|
72 |
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-08 |
73 |
- Make use of services2adjust and templates2expand |
74 |
- Update dependency as this is for 7.0 |
75 |
|
76 |
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-07 |
77 |
- Create qfiles heirarchy |
78 |
- Fix up taint issue in smelist script |
79 |
|
80 |
* Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-06 |
81 |
- TODO: Check permissions on /var/spool/mailman/qfiles. The |
82 |
'in' directory needs to be writable by the mailman CGI script, |
83 |
which is running as www. |
84 |
|
85 |
* Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-05 |
86 |
- Remove postun section which depended on action scripts which |
87 |
no longer exist |
88 |
|
89 |
* Fri Dec 23 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-04 |
90 |
- Allow mail for mailman user |
91 |
- TODO: We should have configurable allow/deny for system accounts |
92 |
|
93 |
* Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-03 |
94 |
- No change |
95 |
- TODO: Rewrite templates to new API and move to templates2expand |
96 |
- TODO: Add pre script to relocate /opt/mailman parts for upgrades |
97 |
|
98 |
* Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-02 |
99 |
- Require patched mailman - SME Server runs httpd as www, not apache |
100 |
- Relocate paths from /opt/mailman to /usr/lib/mailman to match mailman pkg |
101 |
- Changed references to accounts db to new location |
102 |
|
103 |
* Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-01 |
104 |
- Package renamed to smeserver-mailman, including patches to 1.1.10-05 |
105 |
- TODO: Relocate to /usr/lib/mailman |
106 |
- TODO: Change DB references, and rewrite to new API |
107 |
|
108 |
* Fri Oct 14 2005 Michael Soulier <msoulier@e-smith.com> |
109 |
- [1.1.10-05] |
110 |
- Fixed error with creation of alias file with dot in the name. |
111 |
|
112 |
* Wed Mar 16 2005 Michael Soulier <msoulier@e-smith.com> |
113 |
- [1.1.10-04] |
114 |
- Added FQDN of box as a potential virtual host. |
115 |
|
116 |
* Mon Mar 14 2005 Michael Soulier <msoulier@e-smith.com> |
117 |
- [1.1.10-03] |
118 |
- Removed circular event call. |
119 |
|
120 |
* Wed Feb 23 2005 Michael Soulier <msoulier@e-smith.com> |
121 |
- [1.1.10-02] |
122 |
- Forgot to set mode on smelist. |
123 |
|
124 |
* Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com> |
125 |
- [1.1.10-01] |
126 |
- Added hooks into domain creation and deletion. |
127 |
|
128 |
* Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com> |
129 |
- [1.1.9-01] |
130 |
- Rolling again to get past build error on sme61build. |
131 |
|
132 |
* Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com> |
133 |
- [1.1.8-01] |
134 |
- Added create-system-user call to make the mailman user. |
135 |
- Added a link to the mailman UI. |
136 |
|
137 |
* Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com> |
138 |
- [1.1.7-01] |
139 |
- Updated mailman-conf to call a post-install script when first run. If this |
140 |
is ever included in a blade, post-install should move to the blade handler. |
141 |
|
142 |
* Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com> |
143 |
- [1.1.6-01] |
144 |
- Fixed badly placed lib. |
145 |
- Added post-install script to move it out of scriptlets. |
146 |
|
147 |
* Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com> |
148 |
- [1.1.5-01] |
149 |
- Added conf and restart actions. |
150 |
- Added a simple panel. |
151 |
|
152 |
* Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com> |
153 |
- [1.1.4-01] |
154 |
- Fixed perms on /opt/mailman, and bad symlink. |
155 |
|
156 |
* Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com> |
157 |
- [1.1.3-01] |
158 |
- Fixed error in createlinks. |
159 |
|
160 |
* Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com> |
161 |
- [1.1.2-01] |
162 |
- Rolling initial build of imported package. [msoulier] |
163 |
|
164 |
* Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com> |
165 |
- [1.1.1-01] |
166 |
- Reimplementation after lost packages. Implementing for mailman 2.1.5. |
167 |
[msoulier] |
168 |
|
169 |
* Sun Sep 08 2002 Shad L. Lords <slords@mail.com> |
170 |
- 1.0-5 |
171 |
- updated addlist and rmlist to better handle conflicts |
172 |
|
173 |
* Sun Sep 01 2002 Shad L. Lords <slords@mail.com> |
174 |
- 1.0-4 |
175 |
- updated accounts so that ezmlm can coexist with mailman |
176 |
|
177 |
* Tue Aug 27 2002 Shad L. Lords <slords@mail.com> |
178 |
- 1.0-3 |
179 |
- make site have a random password on install |
180 |
- make mailman list have random password on install |
181 |
|
182 |
* Sat Aug 24 2002 Shad L. Lords <slords@mail.com> |
183 |
- 1.0-2 |
184 |
- changed mailman-addlist to set perms and ownership correctly. |
185 |
- changed permissions from root,mailman to mailman,mailman |
186 |
|
187 |
* Fri Aug 23 2002 Shad L. Lords <slords@mail.com> |
188 |
- 1.0-1 |
189 |
- Initial release |
190 |
|
191 |
%prep |
192 |
%setup |
193 |
%patch0 -p1 |
194 |
%patch1 -p1 |
195 |
%patch2 -p1 |
196 |
%patch3 -p1 |
197 |
%patch4 -p1 |
198 |
%patch5 -p1 |
199 |
%patch6 -p1 |
200 |
%patch7 -p1 |
201 |
%patch8 -p1 |
202 |
%patch9 -p1 |
203 |
%patch10 -p1 |
204 |
|
205 |
/bin/rm -r root/opt/mailman |
206 |
|
207 |
%build |
208 |
perl createlinks |
209 |
mkdir -p root/usr/lib/mailman/aliases |
210 |
|
211 |
mkdir -p root/opt |
212 |
ln -s /usr/lib/mailman root/opt/mailman |
213 |
mkdir -p root/var/spool/mailman/qfiles |
214 |
for dir in archive bounces commands in news out retry shunt virgin |
215 |
do |
216 |
mkdir -p root/var/spool/mailman/qfiles/$dir |
217 |
done |
218 |
|
219 |
|
220 |
%install |
221 |
rm -rf $RPM_BUILD_ROOT |
222 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
223 |
rm -f e-smith-%{version}-filelist |
224 |
/sbin/e-smith/genfilelist \ |
225 |
--dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \ |
226 |
--dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \ |
227 |
--dir '/var/spool/mailman' 'attr(02775,root,mailman)' \ |
228 |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
229 |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
230 |
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ |
231 |
--dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \ |
232 |
--dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \ |
233 |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ |
234 |
--dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ |
235 |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
236 |
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ |
237 |
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ |
238 |
--dir '/var/spool/mailman/qfiles/in' 'attr(02770,mailman,mailman)' \ |
239 |
--dir '/var/spool/mailman/qfiles/news' 'attr(02770,mailman,mailman)' \ |
240 |
--dir '/var/spool/mailman/qfiles/out' 'attr(02770,mailman,mailman)' \ |
241 |
--dir '/var/spool/mailman/qfiles/retry' 'attr(02770,mailman,mailman)' \ |
242 |
--dir '/var/spool/mailman/qfiles/shunt' 'attr(02770,mailman,mailman)' \ |
243 |
--dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \ |
244 |
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
245 |
|
246 |
%clean |
247 |
rm -rf $RPM_BUILD_ROOT |
248 |
|
249 |
%files -f %{name}-%{version}-filelist |
250 |
|
251 |
%defattr(-,root,root) |
252 |
|
253 |
%pre |
254 |
/sbin/e-smith/create-system-user mailman 41 \ |
255 |
"Mailman user" /usr/lib/mailman /bin/false |
256 |
|
257 |
%post |
258 |
|
259 |
%preun |
260 |
|
261 |
%postun |