/[smecontribs]/rpms/smeserver-mailman/contribs7/smeserver-mailman.spec
ViewVC logotype

Contents of /rpms/smeserver-mailman/contribs7/smeserver-mailman.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Wed Apr 23 15:54:39 2008 UTC (16 years, 6 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-mailman-1_3_0-17_el4_sme
Changes since 1.3: +7 -2 lines
fix the path of the archives (/var instead of /usr)

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed