source: projects/specs/trunk/c/cyrus-imapd/cyrus-imapd-vl.spec @ 5395

Revision 5395, 46.9 KB checked in by inagaki, 12 years ago (diff)

update: cyrus-imapd

Line 
1Name:                   cyrus-imapd
2Version:                2.2.13p1
3Release:                10%{?_dist_release}
4
5# ********************** BUILD TIME OPTIONS START **********************
6
7# To modify parameters, edit the .spec file or build like this:
8# rpm --rebuild --define='SEEN_DB skiplist' cyrus-imapd-2.x.x-x.src.rpm
9
10# use saslauth group
11%{!?SASLGROUP:          %define         SASLGROUP 0}
12
13# include deliver-wrapper
14%{!?DEL_WRAP:           %define         DEL_WRAP 0}
15
16# use preforking cyrus.conf
17%{!?PREFORK:            %define         PREFORK 1}
18
19# enable Netscape hack (recommended)
20%{!?NETSCAPEHACK:       %define         NETSCAPEHACK 1}
21
22# enable IMAP4 LIST extensions
23%{!?LISTEXT:            %define         LISTEXT 1}
24
25# enable IDLED support
26%{!?IDLED:              %define         IDLED 0}
27
28# force syncronous updates on ext3
29%{!?FORCESYNCEXT3:      %define         FORCESYNCEXT3 0}
30
31# include autocreate feature
32%{!?AUTOCREATE:         %define         AUTOCREATE 1}
33
34# enable allnumeric patch
35%{!?ALLNUMERIC:         %define         ALLNUMERIC 0}
36
37# don't check for RFC compliant line termination (bare newlines)
38%{!?NO_BARE_NL:         %define         NO_BARE_NL 0}
39
40# used syslog facility for logging
41%{!?SYSLOGFACILITY:     %define         SYSLOGFACILITY MAIL}
42
43# use -fpie for linking
44%{!?USEPIE:             %define         USEPIE 0}
45
46# OutlookExpress seenstate patch
47%{!?OE_SEEN_ST:         %define         OE_SEEN_ST 0}
48
49# use authorization module METHOD [unix|krb5]
50%{!?AUTH_METHOD:        %define         AUTH_METHOD unix}
51
52# krb5
53%if %{?_dist_release} == "vl4" || %{?_dist_release} == "vl5"
54%define krb5 0
55%else
56%define krb5 1
57%endif
58
59# ********************** BUILD TIME OPTIONS END ************************
60
61%define         _use_internal_dependency_generator 0
62%define         _vlver %(eval rpm -q --queryformat '%{VERSION}' $(rpm -qf /etc/vine-release))
63%define         _vlrelease %(eval %{__cat} /etc/vine-release)
64%define         _dbver db4
65%define         _dbrpmver %(eval rpm -q db4)
66%define         _perlhack 1
67%define         _perl_man3dir %(eval "$(perl -V:man3dir)"; echo $man3dir)
68# Disable -debuginfo package generation
69#%define debug_package  %{nil}
70
71Summary:                A high-performance mail server with IMAP, POP3, NNTP and SIEVE support.
72Summary(ja):            IMAP と POP3, NNTP, SIEVE サービスを提供する高パフォーマンスのメールサーバ
73License:                OSI Approved
74Group:                  System Environment/Daemons
75URL:                    http://asg.web.cmu.edu/cyrus/imapd/
76Source0:                ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz
77Source1:                ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz.sig
78Source2:                cyrus-procmailrc
79Source3:                cyrus-deliver-wrapper.c
80Source4:                cyrus-user-procmailrc.template
81Source5:                cyrus-imapd.logrotate
82Source6:                cyrus-imapd.imap-2.2.x-conf
83Source7:                cyrus-imapd.pam-config
84Source8:                http://email.uoa.gr/projects/cyrus/autocreate/README.autocreate
85Source9:                http://email.uoa.gr/projects/cyrus/autosievefolder/README.autosievefolder
86Source10:               cyrus-imapd-db.cfg
87Source11:               cyrus-imapd.init
88Source12:               cyrus-imapd.sysconfig
89# updated 2009-09-26 inagaki
90Source13:               cyrus-imapd.cvt_cyrusdb_all
91Source14:               cyrus-imapd.magic
92Source15:               http://clement.hermann.free.fr/scripts/Cyrus/imapcreate.pl
93Source16:               http://eu.dl.sourceforge.net/cyrus-utils/cyrus_ldap_quota.pl
94Source17:               ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/batchreconstruct
95Source18:               ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/bsd2cyrus
96Source19:               ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/cpmsg
97Source20:               ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/folderxfer
98Source21:               ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/inboxfer
99Source22:               http://email.uoa.gr/download/cyrus/cyrus_sharedbackup/cyrus_sharedbackup-0.1.tar.gz
100Source23:               cyrus-imapd-README.RPM
101Source24:               cyrus-imapd-README.HOWTO-recover-mailboxes.db
102Source25:               cyrus-imapd.cron-daily
103Source27:               cyrus-imapd-procmail+cyrus.mc
104Source28:               cyrus-imapd.rpm_set_permissions
105Source29:               cyrus-imapd-sendmail-8.12.9-cyrusv2.m4
106Source30:               cyrus-imapd-README.contrib
107Patch0:                 cyrus-imapd-2.1.9-fdatasync.patch
108Patch1:                 http://email.uoa.gr/download/cyrus/cyrus-imapd-2.2.7/cyrus-imapd-2.2.7-autocreate-0.2.diff
109Patch2:                 http://email.uoa.gr/download/cyrus/cyrus-imapd-2.2.7/cyrus-imapd-2.2.7-autosieve-0.1.diff
110Patch3:                 http://email.uoa.gr/download/cyrus/cyrus-imapd-2.2.7/cyrus-imapd-2.2.7-rmquota+deletemailbox-0.1.diff
111Patch4:                 http://servercc.oakton.edu/~jwade/cyrus/cyrus-imapd-2.1.3/cyrus-imapd-2.1.3-flock.patch
112Patch5:                 cyrus-imapd-2.2.4-munge8bit.patch
113Patch6:                 cyrus-imapd-2.1.16-getrlimit.patch
114Patch7:                 cyrus-imapd-2.1.15-nobarenewlinescheck.patch
115Patch8:                 cyrus-imapd-2.2.4-allnumeric.patch
116Patch9:                 cyrus-imapd-2.2.4-OE-seenstate.patch
117Patch10:                cyrus-imapd-acceptinvalidfrom.patch
118Patch11:                cyrus-imapd-2.2.12-dontstrip.patch
119Patch12:                cyrus-imapd-2.2.12-off-by-one-null.patch
120Patch13:                cyrus-imapd-2.2.12-getgrouplist.patch
121Patch14:                cyrus-imapd-2.2.12-quota64b.patch
122Patch15:                cyrus-imapd-2.2.12-autocreate-crashfix1.diff
123#for rhbz#505425
124Patch16:                cyrus-imapd-2.2.12-encode64.patch
125#from upstream, rhbz#521056
126Patch17:                cyrus-imapd-2.3.7-bufov.patch
127
128Patch51:                cyrus-imapd-2.2.12-config.patch
129Patch52:                cyrus-imapd-2.2.12-db4.6.patch
130# Patches >= 100 are fixed in CVS
131Patch100:               cyrus-imapd-2.2.13-2817.patch
132Patch101:               cyrus-imapd-2.2.13p1_CVE-2011-3208.patch
133Patch102:               cyrus-imapd_CVE-2011-1926.patch
134Patch103:               cyrus-imapd-2.2.13p1_SA46093.patch
135#Patch104:              cyrus-imapd-2.2.13p1_CVE-2011-3481.patch
136Patch104:               cyrus-imapd-2.3.7-CVE-2011-3481.patch
137
138BuildRoot:              %{_tmppath}/%{name}-%{version}-root
139BuildRequires:          cyrus-sasl-devel >= 2.1.15-1
140BuildRequires:          perl
141BuildRequires:          tcp_wrappers
142BuildRequires:          %{_dbver}-devel
143BuildRequires:          openssl-devel
144BuildRequires:          flex, bison, groff >= 1.15-8
145BuildRequires:          autoconf
146%if %{krb5}
147BuildRequires:          krb5-devel
148%endif
149Requires:               cyrus-sasl >= 2.1.15
150Requires:               file >= 3.35-1
151Requires(pre):          coreutils shadow-utils /sbin/service
152Requires(post):         coreutils make diffutils e2fsprogs grep
153Requires(post):         db4-utils file /sbin/chkconfig
154Requires(postun):       shadow-utils /sbin/service
155Requires(preun):        /sbin/service /sbin/chkconfig
156
157%define         uid 76
158%if %{SASLGROUP}
159%define         gid 76
160%define         _saslgroup saslauth
161%endif
162%define         _cyrususer cyrus
163%define         _cyrusgroup mail
164%define         _vardata %{_var}/lib/imap
165%define         _spooldata %{_var}/spool/imap
166%define         _cyrexecdir %{_exec_prefix}/lib/%{name}
167%define         _confdir master/conf
168%define         _contribdir %{_datadir}/%{name}/contrib
169%if %{PREFORK}
170%define         _cyrusconf %{_confdir}/prefork.conf
171%else
172%define         _cyrusconf %{_confdir}/normal.conf
173%endif
174
175%description
176The %{name} package contains the core of the Cyrus IMAP server.
177It is a scaleable enterprise mail system designed for use from
178small to large enterprise environments using standards-based
179internet mail technologies.
180
181A full Cyrus IMAP implementation allows a seamless mail and bulletin
182board environment to be set up across multiple servers. It differs from
183other IMAP server implementations in that it is run on "sealed"
184servers, where users are not normally permitted to log in. The mailbox
185database is stored in parts of the filesystem that are private to the
186Cyrus IMAP server. All user access to mail is through software using
187the IMAP, POP3, or KPOP protocols. TLSv1 and SSL are supported for
188security.
189
190%description -l ja
191Cyrus-IMAP サーバは基本的な技術を用い、小規模から大規模なエンタープライズ用途
192で利用できるよう設計された、スケーラブルなメールシステムです。
193
194Cyrus-IMAP の実装は複数のサーバに渡り、シームレスなメールおよび掲示板システムを
195提供します。他の IMAP サーバと異なり、本サーバは通常はログインが許されない
196ユーザ権限の下で閉じたサーバとして働きます。メールボックスデータベースは
197Cyrus-IMAP システムのプライベートファイルとして保存されます。全てのユーザは
198IMAP, POP3, KPOP プロトコルを通してのみメールにアクセスできます。セキュリティ
199のために TLSv1 と SSL をサポートしています。
200
201%package murder
202Group: System Environment/Daemons
203Summary: Cyrus IMAP server murder aggregator system files.
204Requires: %{name} = %{version}-%{release}
205
206%description murder
207The %{name}-murder package contains the Cyrus murder aggregator system,
208i.e. IMAP, POP3 and LMTP proxies, and the mupdate mailbox master daemon.
209It allows for cluster setups where there are many backend Cyrus spools
210and frontend proxy servers.
211
212%package nntp
213Group: System Environment/Daemons
214Summary: Cyrus IMAP server NNTP system files.
215Requires: %{name} = %{version}-%{release}
216 
217%description nntp
218The %{name}-nntp package contains the Cyrus NNTP server component.
219Cyrus has the ability to export Usenet via IMAP and/or export shared IMAP
220mailboxes via NNTP. This is made possible by a new NNTP daemon which is
221included with Cyrus.
222
223%package devel
224Group: Development/Libraries
225Summary: Cyrus IMAP server development files.
226Requires: %{name} = %{version}-%{release}
227
228%description devel
229The %{name}-devel package contains header files and libraries
230necessary for developing applications which use the imclient library.
231
232%package -n perl-Cyrus
233Group: Development/Libraries
234Summary: Cyrus IMAP server utility Perl modules.
235
236%description -n perl-Cyrus
237The perl-Cyrus package contains Perl modules necessary to use the
238Cyrus IMAP server administration utilities.
239
240%package utils
241Group: Applications/System
242Summary: Cyrus IMAP server administration utilities.
243Requires: perl-Cyrus = %{version}-%{release}
244
245%description utils
246The %{name}-utils package contains administrative tools for the
247Cyrus IMAP server. It can be installed on systems other than the
248one running the server.
249
250%prep
251%setup -q
252%patch0 -p0 -b .fdatasync
253%if %{AUTOCREATE}
254%patch1 -p1 -b .autocreate
255%patch2 -p1 -b .autosieve
256%patch3 -p1 -b .rmquota
257%endif
258%patch4 -p1 -b .flock
259%patch5 -p1 -b .munge8bit
260%patch6 -p1 -b .getrlimit
261%if %{NO_BARE_NL}
262%patch7 -p1 -b .nobarenewlinescheck
263%endif
264%if %{ALLNUMERIC}
265%patch8 -p1 -b .allnumeric
266%endif
267%if %{OE_SEEN_ST}
268%patch9 -p1 -b .oeseenstate
269%endif
270%patch10 -p1 -b .acceptinvalidfrom
271%patch11 -p1 -b .dontstrip
272#patch12 -p1 -b .off-by-one-null
273%patch13 -p1 -b .getgrouplist
274#patch14 -p1 -b .quota64b
275%patch15 -p1 -b .autocreate-crashfix1
276%patch16 -p1 -b .encode64
277#patch17 -p1 -b .bufov
278
279%patch51 -p1 -b .config
280%patch52 -p1 -b .db46
281
282%patch100 -p0 -b .2817
283%patch101 -p1 -b .CVE-2011-3208
284%patch102 -p1 -b .CVE-2011-1926
285%patch103 -p1 -b .SA46093
286%patch104 -p1 -b .CVE-2011-3481
287
288aclocal -I ./cmulocal
289autoconf -I ./cmulocal
290
291%build
292# kerberos include is needed (because of openssl-0.9.7 ?)
293CPPFLAGS="-I%{_includedir}/et -I%{_prefix}/kerberos/include"; export CPPFLAGS
294CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
295CCDLFLAGS="-rdynamic"; export CCDLFLAGS
296LDFLAGS="-L%{_prefix}/kerberos/%{_lib}"; export LDFLAGS
297%if %{USEPIE}
298%ifnarch ppc ppc64
299LDFLAGS="$LDFLAGS -pie"; export LDFLAGS
300%endif
301%endif
302
303%configure \
304%if %{NETSCAPEHACK}
305  --enable-netscapehack \
306%endif
307%if %{LISTEXT}
308  --enable-listext \
309%endif
310%if %{IDLED}
311  --with-idle=idled \
312%endif
313%if !%{krb5}
314  --disable-gssapi \
315%endif
316  --enable-murder \
317  --enable-nntp \
318  --without-snmp \
319  --with-perl=%{__perl} \
320  --with-cyrus-prefix=%{_cyrexecdir} \
321  --with-service-path=%{_cyrexecdir} \
322  --with-auth=%{AUTH_METHOD} \
323  --with-bdb-incdir=%{_includedir}/%{_dbver} \
324  --with-extraident="Invoca-RPM-%{version}-%{release}" \
325  --with-syslogfacility=%{SYSLOGFACILITY}
326
327%{__make}
328%if %{DEL_WRAP}
329%{__cc} -DLIBEXECDIR=\"%{_cyrexecdir}\" -Wall -o deliver-wrapper %{SOURCE3}
330%endif
331
332# Modify docs master --> cyrus-master
333pushd man
334  %{__perl} -pi -e "s@master\(8\)@cyrus-master(8)@" $(ls *5 *8)
335popd
336pushd doc
337  %{__perl} -pi -e "s@master@cyrus-master@g;" man.html
338popd
339pushd doc/man
340  %{__perl} -pi -e "s@master\(8\)@cyrus-master(8)@;" $(ls *html)
341popd
342
343# Modify path in perl scripts
344%{__perl} -pi -e "s@/usr/local/bin/perl@%{__perl}@" $(find . -type f -name "*.pl")
345
346# Fix permissions on perl programs
347find . -type f -name "*.pl" -exec %{__chmod} 755 {} \;
348
349# Cleanup of doc dir
350find doc perl -name CVS -type d | xargs -r %{__rm} -fr
351find doc -name "*~" -type f | xargs -r %{__rm} -f
352%{__rm} -f doc/Makefile.dist
353%{__rm} -f doc/text/htmlstrip.c
354
355# Create README.buildoptions
356%{__cat} << EOF >> doc/README.buildoptions
357This RPM has been compiled on %{_vlrelease} using
358Berkeley DB version %{_dbrpmver} with the following source
359RPM build options:
360
361use saslauth group
362SASLGROUP       : %{SASLGROUP}
363
364include deliver-wrapper
365DEL_WRAP        : %{DEL_WRAP}
366
367use preforking cyrus.conf
368PREFORK         : %{PREFORK}
369
370enable Netscape hack (recommended)
371NETSCAPEHACK    : %{NETSCAPEHACK}
372
373enable IMAP4 LIST extensions
374LISTEXT         : %{LISTEXT}
375
376enable IDLED support
377IDLED           : %{IDLED}
378
379force syncronous updates on ext3
380FORCESYNCEXT3   : %{FORCESYNCEXT3}
381
382include autocreate feature
383AUTOCREATE      : %{AUTOCREATE}
384
385include allnumeric patch
386ALLNUMERIC      : %{ALLNUMERIC}
387
388include nobarenewlinescheck patch
389NO_BARE_NL      : %{NO_BARE_NL}
390
391used syslog facility for logging
392SYSLOGFACILITY  : %{SYSLOGFACILITY}
393
394used -fpie for linking
395USEPIE          : %{USEPIE}
396
397include OutlookExpress seenstate patch
398OE_SEEN_ST      : %{OE_SEEN_ST}
399
400use authorization module METHOD [unix|krb5]
401AUTH_METHOD     : %{AUTH_METHOD}
402
403
404To modify parameters, edit the .spec file or build like this:
405rpm --rebuild --define='FULLDIRHASH 1' %{name}-%{version}-%{release}.src.rpm
406EOF
407
408%{__install} -m 644 %{SOURCE23} doc/README.RPM
409%{__install} -m 644 %{SOURCE24} doc/README.HOWTO-recover-mailboxes.db
410%if %{AUTOCREATE}
411%{__install} -m 644 %{SOURCE8}  doc/README.autocreate
412%{__install} -m 644 %{SOURCE9}  doc/README.autosievefolder
413%endif
414%{__install} -d doc/m4
415%{__install} -m 644 %{SOURCE2}  doc/m4/cyrus-procmailrc
416%{__install} -m 644 %{SOURCE4}  doc/m4/cyrus-user-procmailrc.template
417%{__install} -m 644 %{SOURCE27} doc/m4/%{name}-procmail+cyrus.mc
418%{__install} -m 644 %{SOURCE29} doc/m4/%{name}-sendmail-8.12.9-cyrusv2.m4
419
420# modify lmtp socket path in .conf files
421%{__perl} -pi -e "s@/var/imap/@%{_vardata}/@" %{_confdir}/*.conf doc/cyrusv2.mc doc/m4/%{name}-sendmail-8.12.9-cyrusv2.m4
422
423%install
424[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
425
426# This hack is needed on RedHat > 7.3 to install the perl files correctly
427%if %{_perlhack}
428pushd perl/imap
429  %{__perl} Makefile.PL INSTALLDIRS=vendor
430popd
431pushd perl/sieve/managesieve
432  %{__perl} Makefile.PL INStALLDIRS=vendor
433popd
434
435# Do what the regular make install does
436  %{__make} install DESTDIR=%{buildroot} PREFIX=%{_prefix} mandir=%{_mandir}
437  %{__make} -C man install DESTDIR=%{buildroot} PREFIX=%{_prefix} mandir=%{_mandir}
438%else
439  %{__make} install DESTDIR=%{buildroot} PREFIX=%{buildroot}%{_prefix} mandir=%{_mandir}
440  %{__make} -C man install DESTDIR=%{buildroot} PREFIX=%{buildroot}%{_prefix} mandir=%{_mandir}
441%endif
442
443%if %{DEL_WRAP}
444%{__install} -s -m 2755 deliver-wrapper %{buildroot}%{_cyrexecdir}/
445%endif
446%{__install} -m 755 imtest/imtest       %{buildroot}%{_cyrexecdir}/
447%{__install} -m 755 perl/imap/cyradm    %{buildroot}%{_cyrexecdir}/
448
449# Install tools
450for tool in tools/* ; do
451  test -f ${tool} && %{__install} -m 755 ${tool} %{buildroot}%{_cyrexecdir}/
452done
453
454# Create directories
455%{__install} -d \
456  %{buildroot}%{_sysconfdir}/{rc.d/init.d,logrotate.d,pam.d,sysconfig,cron.daily} \
457  %{buildroot}%{_libdir}/sasl \
458  %{buildroot}%{_bindir} \
459  %{buildroot}%{_spooldata} \
460  %{buildroot}%{_vardata}/{user,quota,proc,log,msg,socket,db,sieve,rpm,backup} \
461  %{buildroot}%{_contribdir} \
462  %{buildroot}%{_datadir}/%{name}/rpm
463
464# Install additional files
465%{__install} -m 755 %{SOURCE11}   %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}
466%{__install} -m 755 %{SOURCE13}   %{buildroot}%{_cyrexecdir}/cvt_cyrusdb_all
467%{__install} -m 755 %{SOURCE28}   %{buildroot}%{_cyrexecdir}/rpm_set_permissions
468%{__install} -m 644 %{SOURCE14}   %{buildroot}%{_datadir}/%{name}/rpm/magic
469%{__install} -m 755 %{SOURCE15}   %{buildroot}%{_contribdir}/imapcreate
470%{__install} -m 755 %{SOURCE16}   %{buildroot}%{_contribdir}/cyrus_ldap_quota
471%{__install} -m 755 %{SOURCE17}   %{buildroot}%{_contribdir}/batchreconstruct
472%{__install} -m 755 %{SOURCE18}   %{buildroot}%{_contribdir}/bsd2cyrus
473%{__install} -m 755 %{SOURCE19}   %{buildroot}%{_contribdir}/cpmsg
474%{__install} -m 755 %{SOURCE20}   %{buildroot}%{_contribdir}/folderxfer
475%{__install} -m 755 %{SOURCE21}   %{buildroot}%{_contribdir}/inboxfer
476%{__install} -m 644 %{SOURCE22}   %{buildroot}%{_contribdir}/
477%{__install} -m 644 %{SOURCE30}   %{buildroot}%{_contribdir}/README
478%{__install} -m 644 %{SOURCE10}   %{buildroot}%{_datadir}/%{name}/rpm/db.cfg
479
480# Install config files
481%{__install} -m 644 %{_cyrusconf} %{buildroot}%{_sysconfdir}/cyrus.conf
482%{__install} -m 644 %{SOURCE6}    %{buildroot}%{_sysconfdir}/imapd.conf
483%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/pop
484%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/imap
485%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/sieve
486%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/mupdate
487%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/lmtp
488%{__install} -m 644 %{SOURCE7}    %{buildroot}%{_sysconfdir}/pam.d/news
489%{__install} -m 644 %{SOURCE12}   %{buildroot}%{_sysconfdir}/sysconfig/%{name}
490%{__install} -m 644 %{SOURCE5}    %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
491%{__install} -m 755 %{SOURCE25}   %{buildroot}%{_sysconfdir}/cron.daily/%{name}
492
493#%{__cat} %{SOURCE11} | %{__sed} -e 's,/usr/lib,%{_libdir},g' > %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}
494#%{__chmod} 755 %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}
495
496# Install templates
497%{__install} -m 755 -d doc/conf
498%{__install} -m 644 %{_confdir}/*.conf doc/conf/
499
500# Rename 'master' binary and manpage to avoid crash with postfix
501%{__mv} -f %{buildroot}%{_cyrexecdir}/master         %{buildroot}%{_cyrexecdir}/cyrus-master
502%{__mv} -f %{buildroot}%{_mandir}/man8/master.8      %{buildroot}%{_mandir}/man8/cyrus-master.8
503%{__mv} -f doc/man/master.8.html                     doc/man/cyrus-master.8.html
504%{__perl} -pi -e 's/master/cyrus-master/g'           %{buildroot}%{_mandir}/man8/cyrus-master.8
505%{__perl} -pi -e 's/Master/Cyrus-master/g'           %{buildroot}%{_mandir}/man8/cyrus-master.8
506%{__perl} -pi -e 's/MASTER/CYRUS-MASTER/g'           %{buildroot}%{_mandir}/man8/cyrus-master.8
507%{__perl} -pi -e 's/master/cyrus-master/g'           doc/man/cyrus-master.8.html
508%{__perl} -pi -e 's/Master/Cyrus-master/g'           doc/man/cyrus-master.8.html
509%{__perl} -pi -e 's/MASTER/CYRUS-MASTER/g'           doc/man/cyrus-master.8.html
510
511# Rename 'fetchnews' binary and manpage to avoid crash with leafnode
512%{__mv} -f %{buildroot}%{_cyrexecdir}/fetchnews      %{buildroot}%{_cyrexecdir}/cyrfetchnews
513%{__mv} -f %{buildroot}%{_mandir}/man8/fetchnews.8   %{buildroot}%{_mandir}/man8/cyrfetchnews.8
514%{__mv} -f doc/man/fetchnews.8.html                  doc/man/cyrfetchnews.8.html
515%{__perl} -pi -e 's/fetchnews/cyrfetchnews/g'        %{buildroot}%{_mandir}/man8/cyrfetchnews.8
516%{__perl} -pi -e 's/Fetchnews/Cyrfetchnews/g'        %{buildroot}%{_mandir}/man8/cyrfetchnews.8
517%{__perl} -pi -e 's/FETCHNEWS/CYRFETCHNEWS/g'        %{buildroot}%{_mandir}/man8/cyrfetchnews.8
518%{__perl} -pi -e 's/fetchnews/cyrfetchnews/g'        doc/man/cyrfetchnews.8.html
519%{__perl} -pi -e 's/Fetchnews/Cyrfetchnews/g'        doc/man/cyrfetchnews.8.html
520%{__perl} -pi -e 's/FETCHNEWS/CYRFETCHNEWS/g'        doc/man/cyrfetchnews.8.html
521
522# Create symlinks
523%{__ln_s} -f %{_cyrexecdir}/cyradm %{buildroot}%{_bindir}/
524%{__ln_s} -f %{_cyrexecdir}/imtest %{buildroot}%{_bindir}/
525
526# Create filelist for perl package, compress manpages before
527[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
528find %{buildroot}%{perl_vendorarch}/Cyrus %{buildroot}%{perl_vendorarch}/auto/Cyrus -type f -print |
529  %{__sed} "s@^%{buildroot}@@g" |
530  %{__grep} -v perllocal.pod |
531  %{__grep} -v "\.packlist" > perl-Cyrus-%{version}-filelist
532find %{buildroot}%{_perl_man3dir} -type f -name "Cyrus*" -print |
533  %{__sed} "s@^%{buildroot}@@g" >> perl-Cyrus-%{version}-filelist
534if [ "$(%{__cat} perl-Cyrus-%{version}-filelist)X" = "X" ] ; then
535  echo "ERROR: EMPTY FILE LIST"
536  exit -1
537fi
538
539# Strip binaries
540%{__strip} --strip-unneeded %{buildroot}%{_cyrexecdir}/* ||:
541
542# Remove installed but not packaged files
543%{__rm} -f %{buildroot}%{_cyrexecdir}/not-mkdep
544%{__rm} -f %{buildroot}%{_cyrexecdir}/config2header
545%{__rm} -f %{buildroot}%{_cyrexecdir}/config2man
546%{__rm} -f %{buildroot}%{_cyrexecdir}/pop3proxyd
547find %{buildroot} -name "perllocal.pod" -exec %{__rm} -f {} \;
548find %{buildroot} -name ".packlist" -exec %{__rm} -f {} \;
549
550# On RedHat 7.3, this file is created here
551%{__rm} -f /perllocal.pod
552
553%clean
554[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
555
556%pre
557# Create 'cyrus' user on target host
558%if %{SASLGROUP}
559/usr/sbin/groupadd -g %{gid} -r %{_saslgroup} 2> /dev/null || :
560/usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_vardata} -g %{_cyrusgroup} \
561  -G %{_saslgroup} -s /bin/bash -u %{uid} -r %{_cyrususer} 2> /dev/null || :
562%else
563/usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_vardata} -g %{_cyrusgroup} \
564  -s /bin/bash -u %{uid} -r %{_cyrususer} 2> /dev/null || :
565%endif
566# Let postun know whether cyrus-imapd was running
567if [ -e /var/lock/subsys/cyrus-imapd ]; then
568  /sbin/service %{name} stop >/dev/null 2>&1 || :
569  touch /var/lock/subsys/cyrus-imapd
570fi
571
572%post
573/sbin/chkconfig --add %{name}
574
575# Create SSL certificates
576exec > /dev/null 2> /dev/null
577if [ ! -f %{_datadir}/ssl/certs/%{name}.pem ]; then
578pushd %{_datadir}/ssl/certs
579umask 077
580%{__cat} << EOF | make %{name}.pem
581--
582SomeState
583SomeCity
584SomeOrganization
585SomeOrganizationalUnit
586localhost.localdomain
587root@localhost.localdomain
588EOF
589%{__chown} root.%{_cyrusgroup} %{name}.pem
590%{__chmod} 640 %{name}.pem
591popd
592fi
593
594# Force synchronous updates, usually only on ext2 filesystems
595for i in %{_vardata}/{user,quota} %{_spooldata}
596do
597%if %{FORCESYNCEXT3}
598  if [ $(find $i -maxdepth 0 -printf %%F) = "ext2" -o $(find $i -maxdepth 0 -printf %%F) = "ext3" ]; then
599%else
600  if [ $(find $i -maxdepth 0 -printf %%F) = "ext2" ]; then
601%endif
602    chattr -R +S $i 2>/dev/null
603  fi
604done
605
606# Add service entries if necessary
607if ! %{__grep} -q ^lmtp %{_sysconfdir}/services; then
608  echo -e 'lmtp\t\t24/tcp\t\t\t\t# LMTP Mail Delivery over TCP' >> %{_sysconfdir}/services
609  echo -e 'lmtp\t\t24/udp\t\t\t\t# LMTP Mail Delivery over TCP' >> %{_sysconfdir}/services
610fi
611if ! %{__grep} -q ^nntps %{_sysconfdir}/services; then
612  echo -e 'nntps\t\t563/tcp\t\t\t\t# NNTP over SSL' >> %{_sysconfdir}/services
613  echo -e 'nntps\t\t563/udp\t\t\t\t# NNTP over SSL' >> %{_sysconfdir}/services
614fi
615if ! %{__grep} -q ^pop3s %{_sysconfdir}/services; then
616  echo -e 'pop3s\t\t995/tcp\t\t\t\t# POP-3 over SSL' >> %{_sysconfdir}/services
617  echo -e 'pop3s\t\t995/udp\t\t\t\t# POP-3 over SSL' >> %{_sysconfdir}/services
618fi
619if ! %{__grep} -q ^imaps %{_sysconfdir}/services; then
620  echo -e 'imaps\t\t993/tcp\t\t\t\t# IMAP over SSL' >> %{_sysconfdir}/services
621  echo -e 'imaps\t\t993/udp\t\t\t\t# IMAP over SSL' >> %{_sysconfdir}/services
622fi
623if ! %{__grep} -q ^sieve %{_sysconfdir}/services; then
624  echo -e 'sieve\t\t2000/tcp\t\t\t# Sieve Mail Filter Daemon' >> %{_sysconfdir}/services
625  echo -e 'sieve\t\t2000/udp\t\t\t# Sieve Mail Filter Daemon' >> %{_sysconfdir}/services
626fi
627if ! %{__grep} -q ^fud %{_sysconfdir}/services; then
628  echo -e 'fud\t\t4201/udp\t\t\t# Cyrus IMAP FUD Daemon' >> %{_sysconfdir}/services
629fi
630
631# "ctl_deliver -E" is deprecated, now is "cyr_expire -E"
632if grep -q "ctl_deliver *-E" %{_sysconfdir}/cyrus.conf ; then
633  %{__perl} -pi -e "s/ctl_deliver *-E/cyr_expire -E/" %{_sysconfdir}/cyrus.conf
634fi
635
636%preun
637if [ $1 = 0 ]; then
638  /sbin/service %{name} stop >/dev/null 2>&1 || :
639  /sbin/chkconfig --del %{name}
640  %{__rm} -f %{_vardata}/socket/lmtp 2> /dev/null
641fi
642
643%postun
644if [ $1 = 0 ]; then
645  /usr/sbin/userdel %{_cyrususer} 2> /dev/null || :
646%if %{SASLGROUP}
647  if [ "$(%{__grep} ^%{_saslgroup}: %{_sysconfdir}/group | cut -d: -f4-)" = "" ]; then
648    /usr/sbin/groupdel %{_saslgroup} 2> /dev/null || :
649  fi
650%endif
651else
652  /sbin/service %{name} condrestart >/dev/null 2>&1 || :
653fi
654
655%files
656%defattr(0644,root,root,0755)
657%config %{_sysconfdir}/cyrus.conf
658%config %{_sysconfdir}/imapd.conf
659%attr(0755,root,root) %config %{_sysconfdir}/rc.d/init.d/%{name}
660%config %{_sysconfdir}/logrotate.d/%{name}
661%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
662%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/pop
663%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/imap
664%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/sieve
665%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/lmtp
666%attr(0755,root,root) %config %{_sysconfdir}/cron.daily/%{name}
667%dir %{_cyrexecdir}
668%attr(0755,root,root) %{_cyrexecdir}/arbitron
669%attr(0755,root,root) %{_cyrexecdir}/arbitronsort.pl
670%attr(0755,root,root) %{_cyrexecdir}/chk_cyrus
671%attr(0755,root,root) %{_cyrexecdir}/convert-sieve.pl
672%attr(0755,root,root) %{_cyrexecdir}/ctl_cyrusdb
673%attr(0755,root,root) %{_cyrexecdir}/ctl_deliver
674%attr(0755,root,root) %{_cyrexecdir}/ctl_mboxlist
675%attr(0755,root,root) %{_cyrexecdir}/cvt_cyrusdb
676%attr(0755,root,root) %{_cyrexecdir}/cyr_expire
677%attr(0755,root,root) %{_cyrexecdir}/cyrdump
678%attr(0755,root,root) %{_cyrexecdir}/cyrus-master
679%attr(0755,root,root) %{_cyrexecdir}/dohash
680%attr(0755,root,root) %{_cyrexecdir}/fud
681%attr(0755,root,root) %{_cyrexecdir}/imapd
682%attr(0755,root,root) %{_cyrexecdir}/ipurge
683%attr(0755,root,root) %{_cyrexecdir}/lmtpd
684%attr(0755,root,root) %{_cyrexecdir}/masssievec
685%attr(0755,root,root) %{_cyrexecdir}/mbexamine
686%attr(0755,root,root) %{_cyrexecdir}/mbpath
687%attr(0755,root,root) %{_cyrexecdir}/mkimap
688%attr(0755,root,root) %{_cyrexecdir}/mknewsgroups
689%attr(0755,root,root) %{_cyrexecdir}/notifyd
690%attr(0755,root,root) %{_cyrexecdir}/pop3d
691%attr(0755,root,root) %{_cyrexecdir}/quota
692%attr(0755,root,root) %{_cyrexecdir}/reconstruct
693%attr(0755,root,root) %{_cyrexecdir}/rehash
694%attr(0755,root,root) %{_cyrexecdir}/sievec
695%attr(0755,root,root) %{_cyrexecdir}/smmapd
696%attr(0755,root,root) %{_cyrexecdir}/squatter
697%attr(0755,root,root) %{_cyrexecdir}/timsieved
698%attr(0755,root,root) %{_cyrexecdir}/tls_prune
699%attr(0755,root,root) %{_cyrexecdir}/translatesieve
700%attr(0755,root,root) %{_cyrexecdir}/undohash
701%attr(0755,root,root) %{_cyrexecdir}/upgradesieve
702%attr(0755,root,root) %{_cyrexecdir}/cvt_cyrusdb_all
703%attr(0755,root,root) %{_cyrexecdir}/rpm_set_permissions
704%if %{IDLED}
705%attr(0755,root,root) %{_cyrexecdir}/idled
706%endif
707%attr(4754,%{_cyrususer},%{_cyrusgroup}) %{_cyrexecdir}/deliver
708%if %{DEL_WRAP}
709%attr(2755,%{_cyrususer},%{_cyrusgroup}) %{_cyrexecdir}/deliver-wrapper
710%endif
711%attr(0750,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}
712%attr(0750,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/socket
713%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/user
714%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/quota
715%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/proc
716%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/log
717%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/msg
718%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/db
719%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/sieve
720%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/rpm
721%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}/backup
722%attr(0700,%{_cyrususer},%{_cyrusgroup}) %dir %{_spooldata}
723%dir %{_datadir}/%{name}
724%dir %{_datadir}/%{name}/rpm
725%{_datadir}/%{name}/rpm/*
726%{_mandir}/man5/*
727%{_mandir}/man8/*
728%doc COPYRIGHT README
729%doc doc/*
730
731%files murder
732%defattr(0644,root,root,0755)
733%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/mupdate
734%attr(0755,root,root) %{_cyrexecdir}/lmtpproxyd
735%attr(0755,root,root) %{_cyrexecdir}/mupdate
736%attr(0755,root,root) %{_cyrexecdir}/proxyd
737
738%files nntp
739%defattr(0644,root,root,0755)
740%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/news
741%attr(0755,root,root) %{_cyrexecdir}/cyrfetchnews
742%attr(0755,root,root) %{_cyrexecdir}/nntpd
743
744%files devel
745%defattr(0644,root,root,0755)
746%{_includedir}/cyrus
747%{_libdir}/lib*.a
748%{_mandir}/man3/imclient.3*
749
750%files -n perl-Cyrus -f perl-Cyrus-%{version}-filelist
751%defattr(-,root,root)
752%doc perl/imap/README
753%doc perl/imap/Changes
754%doc perl/imap/examples
755
756%files utils
757%defattr(0644,root,root,0755)
758%attr(0755,root,root) %{_cyrexecdir}/cyradm
759%attr(0755,root,root) %{_cyrexecdir}/imtest
760%attr(0755,root,root) %{_cyrexecdir}/mupdate-loadgen.pl
761%attr(-,root,root) %{_contribdir}
762%attr(0755,root,root) %{_bindir}/*
763%{_mandir}/man1/*
764
765%changelog
766* Wed Jan 11 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.13p1-10
767- added Patch104 for CVE-2011-3481
768
769* Wed Oct 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.13p1-9
770- added Patch101 for CVE-2011-3208
771- added Patch102 for CVE-2011-1926
772- added Patch103 for SA46093
773- define %%{_cyrexecdir} to %%{_execdir}/lib/cyrus-imapd (for x86_64)
774
775* Tue Mar 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.13p1-8
776- rebuild with krb5-libs-1.8.2 and openssl-1.0.0d
777
778* Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.13p1-7
779- rebuild with openssl-1.0.0c
780
781* Tue Sep  7 2010 IWAI, Masaharu <iwai@alib.jp> 2.2.13p1-6
782- fix libdir path in init script for x86_64 arch: <BTS:VineLinux:918>
783 - update sed oneliner in install section
784
785* Sat Apr 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.13p1-5
786- use Requires(pre,post,postun,preun) instead of Prereq
787
788* Thu Nov  5 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.13p1-4
789- added --disable-gssapi for vl4, vl5
790
791* Sun Oct 11 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.13p1-3
792- added Patch100 from Bugzilla
793
794* Sat Sep 26 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.13p1-2
795- fixed for <BTS:VineLinux:781>
796  updated Source13 to convert db correctly at cyrus-imapd upgrade
797  added PreReq: db4-utils, file
798
799* Fri Sep 18 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.13p1-1
800- new upstream release, including security fix for CVE-2009-2632
801- dropped Patch50 merged into upstream
802
803* Sun May  3 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.12-2
804- run aclocal, autoconf on %%prep section
805
806* Sun Sep 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.12-1
807- applied new versioning policy
808- spec in UTF-8
809- rebuilt with perl-5.10.0
810- added Patch52 for compiling with db4-4.6
811- perl-Cyrus files were installed to vendor_perl dir
812
813* Mon Feb  4 2008 Shu KONNO <owa@bg.wakwak.com> 2.2.12-0vl3
814- added cyrus-imapd-2.2.12-config.patch (for x86_64)
815
816* Sun Jun  3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.12-0vl2
817- rebuilt with new toolchain
818
819* Thu Sep 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.12-0vl1
820- update to upstream rpm packages. (some fixes are imported from RHEL)
821- drop OLD&NOTMAINTAINED vine package.
822
823* Sat Apr 23 2005 John Dennis <jdennis@redhat.com> - 2.2.12-3.RHEL4.1
824- bring up to 2.2.12, includes security fix for CAN-2005-0546
825  Note: the upstream delta between is 2.2.10 (prior RHEL-4 version) and
826  2.2.12 is only the application of the security fixes in CAN-2005-0546.
827  Thus the 2.2.10 --> 2.2.12 version change is not really a version change
828  in the traditional sense, but rather is equivalent to backporting the
829  CAN-2005-0546 fixes into 2.2.10. No other aspects of 2.2.10 RHEL-4 spec file
830  have changed, patches and build options are identical. Since bringing the
831  base tar file up to 2.2.12 from 2.2.10 is equivalent to backporting the
832  fixes into 2.2.10 it would be disingenuous and mileading to call this version
833  of the rpm 2.2.10 with backported fixes as might be the requirement for RHEL.
834
835* Wed Apr 20 2005 John Dennis <jdennis@redhat.com> - 2.2.10-2.RHEL4.1
836- patch to allow building with gcc4 which is more strict
837
838* Wed Nov 24 2004 John Dennis <jdennis@redhat.com> 2.2.10-1.RHEL4.1
839- update to Simon Matter's 2.2.10 RPM,
840  fixes bug #139382,
841  security advisories: CAN-2004-1011 CAN-2004-1012 CAN-2004-1013 CAN-2004-1015
842
843* Tue Nov 24 2004 Simon Matter <simon.matter@invoca.ch>
844- updated to 2.2.10
845
846* Tue Nov 23 2004 Simon Matter <simon.matter@invoca.ch>
847- updated to 2.2.9
848
849* Fri Nov 19 2004 Simon Matter <simon.matter@invoca.ch>
850- changed scripts to use runuser instead of su if available
851
852* Thu Nov 18 2004 Simon Matter <simon.matter@invoca.ch>
853- changed requirement for file >= 3.35-1 from BuildPrereq to
854  Requires, fixes RedHat's bug #124991
855- added acceptinvalidfrom patch to fix RedHat's bug #137705
856
857* Mon Oct 4 2004 Dan Walsh <dwalsh@redhat.com> 2.2.6-2.FC3.6
858- Change cyrus init scripts and cron job to use runuser instead of su
859
860* Fri Aug  6 2004 John Dennis <jdennis@redhat.com> 2.2.6-2.FC3.5
861- remove obsoletes tag, fixes bugs #127448, #129274
862
863* Wed Aug  4 2004 John Dennis <jdennis@redhat.com>
864- replace commas in release field with dots, bump build number
865
866* Tue Aug 03 2004 Simon Matter <simon.matter@invoca.ch>
867- fixed symlinks for x86_64, now uses the _libdir macro
868  reported by John Dennis, fixes RedHat's bug #128964
869- removed obsoletes tag, fixes RedHat's bugs #127448, #129274
870
871* Mon Aug  2 2004 John Dennis <jdennis@redhat.com> 2.2.6-2,FC3,3
872- fix bug #128964, lib symlinks wrong on x86_64
873
874* Thu Jul 29 2004 Simon Matter <simon.matter@invoca.ch>
875- updated to 2.2.8
876
877* Thu Jul 29 2004 Simon Matter <simon.matter@invoca.ch>
878- updated autocreate and autosieve patches
879- made authorization a compile time option
880- added sieve-bc_eval patch
881
882* Tue Jul 27 2004 Simon Matter <simon.matter@invoca.ch>
883- updated to 2.2.7
884- modified autocreate patch or 2.2.7
885- removed snmpargs patch which was needed for RedHat 6.2
886
887* Tue Jul 13 2004 Simon Matter <simon.matter@invoca.ch>
888- added mboxlist / mboxname patches from CVS
889
890* Tue Jul 06 2004 Simon Matter <simon.matter@invoca.ch>
891- updated rmquota+deletemailbox patch
892
893* Sat Jul  3 2004 John Dennis <jdennis@redhat.com> - 2.2.6-2,FC3,1
894- bring up to date with Simon Matter's latest upstream rpm 2.2.6-2
895- comment out illegal tags Packager, Vendor, Distribution
896  build for FC3
897
898* Wed Jun 30 2004 Simon Matter <simon.matter@invoca.ch>
899- added quota patches from CVS
900
901* Fri Jun 25 2004 Simon Matter <simon.matter@invoca.ch>
902- updated autocreate patch
903
904* Fri Jun 18 2004 Simon Matter <simon.matter@invoca.ch>
905- updated to 2.2.6
906
907* Fri Jun 11 2004 Simon Matter <simon.matter@invoca.ch>
908- updated autocreate and autosieve patches
909
910* Tue Jun 01 2004 Simon Matter <simon.matter@invoca.ch>
911- updated autocreate, autosieve and rmquota patches
912- fixed rmquota patch to build on gcc v3.3.x
913- added lmtp_sieve patch
914
915* Sat May 29 2004 Simon Matter <simon.matter@invoca.ch>
916- updated to 2.2.5
917
918* Fri May 28 2004 Simon Matter <simon.matter@invoca.ch>
919- updated to 2.2.5 pre-release
920
921* Mon May 24 2004 Simon Matter <simon.matter@invoca.ch>
922- added hash patch to fix a sig11 problem
923- added noncritical typo patch
924
925* Fri May 21 2004 Simon Matter <simon.matter@invoca.ch>
926- include OutlookExpress seenstate patch
927- fixed allnumeric patch
928
929* Thu May 20 2004 Simon Matter <simon.matter@invoca.ch>
930- don't enable cyrus-imapd per default
931- rename fetchnews to cyrfetchnews to avoid namespace conflicts with leafnode
932- replace fetchnews with cyrfetchnews in man pages
933- replace master with cyrus-master in man pages
934
935* Tue May 18 2004 Simon Matter <simon.matter@invoca.ch>
936- updated to 2.2.4
937
938* Fri Apr 30 2004 Simon Matter <simon.matter@invoca.ch>
939- Don't provides: imap
940
941* Wed Mar 17 2004 Simon Matter <simon.matter@invoca.ch>
942- fix init script
943
944* Thu Mar 04 2004 Simon Matter <simon.matter@invoca.ch>
945- strip binaries
946
947* Tue Mar 02 2004 Simon Matter <simon.matter@invoca.ch>
948- add more SELinux fixes
949
950* Wed Feb 25 2004 Simon Matter <simon.matter@invoca.ch>
951- add makedepend to path, thank you Andreas Piesk for reporting it
952
953* Mon Feb 23 2004 Dan Walsh <dwalsh@redhat.com>
954- change su within init script to get input from /dev/null
955  this prevents hang when running in SELinux
956- don't use -fpie as default, it breaks different distributions
957
958* Thu Feb 19 2004 Simon Matter <simon.matter@invoca.ch>
959- merged in most changes from Karsten Hopp's RedHat package
960- fixed permissions of files in contrib, thank you
961  Edward Rudd for reporting it.
962- modified snmp patch to make it build on RedHat 6.2 again
963
964* Tue Feb 03 2004 Karsten Hopp <karsten@redhat.de>
965- switch to Simon Matter's cyrus-imapd package, which has
966  some major improvements over the old Red Hat package.
967  - configdirectory moved from /var/imap to /var/lib/imap
968  - sasl_pwcheck_method changed to saslauthd
969- needed to delete package/vendor tags for buildsystem.
970- added USEPIE variable for linking with -fpie flag
971- removed rpath from linker arguments
972- removed email header from README.HOWTO-recover-mailboxes
973- added lib64 patch
974- use CFLAGS from specfile in imtest subdir
975- disable -pie on ppc for now
976
977* Tue Feb 03 2004 Simon Matter <simon.matter@invoca.ch>
978- added tls_ca_file: to imapd.conf
979- updated autocreate patch which fixes a small sig11 problem
980
981* Thu Jan 29 2004 Simon Matter <simon.matter@invoca.ch>
982- convert sieve scripts to UTF-8 only if sievec failed before
983- add note to the readme about limiting loggin on busy servers
984- added build time option to chose the syslog facility
985
986* Wed Jan 28 2004 Simon Matter <simon.matter@invoca.ch>
987- sieve scripts are now converted to UTF-8 with cvt_cyrusdb_all
988
989* Tue Jan 27 2004 Simon Matter <simon.matter@invoca.ch>
990- fixed problems with masssievec
991- lots of small fixes in the init scripts
992
993* Fri Jan 23 2004 Simon Matter <simon.matter@invoca.ch>
994- updated auto db converting functionality
995- added auto masssievec functionality
996
997* Thu Jan 22 2004 Simon Matter <simon.matter@invoca.ch>
998- updated autocreate/autosievefolder patches
999
1000* Fri Jan 16 2004 Simon Matter <simon.matter@invoca.ch>
1001- updated to 2.2.3
1002
1003* Wed Jan 14 2004 Simon Matter <simon.matter@invoca.ch>
1004- number of mailbox list dumps can now be configured
1005
1006* Fri Jan 01 2004 Simon Matter <simon.matter@invoca.ch>
1007- updated autosievefolder patch
1008
1009* Thu Dec 18 2003 Simon Matter <simon.matter@invoca.ch>
1010- updated autocreate/autosievefolder/rmquota patches
1011
1012* Tue Oct 28 2003 Simon Matter <simon.matter@invoca.ch>
1013- updated to 2.2.2-BETA
1014
1015* Tue Aug 05 2003 Simon Matter <simon.matter@invoca.ch>
1016- add sendmail m4 macro, some people were looking for it
1017- just one source for pam default configuration (they were all the same)
1018- added /etc/pam.d/lmtp
1019- added build support for RedHat Beta severn
1020
1021* Wed Jul 30 2003 Simon Matter <simon.matter@invoca.ch>
1022- updated autocreate patch to 0.8.1
1023- removed creation of spool/config dirs, not needed anymore
1024- added cyrus_sharedbackup to contrib
1025
1026* Fri Jul 18 2003 Simon Matter <simon.matter@invoca.ch>
1027- modified for 2.2.1-BETA
1028
1029* Wed Jul 09 2003 Simon Matter <simon.matter@invoca.ch>
1030- modified rpm_set_permissions script
1031
1032* Mon Jul 07 2003 Simon Matter <simon.matter@invoca.ch>
1033- changed permissions on config and spool dirs
1034- modified init script
1035
1036* Thu Jul 03 2003 Simon Matter <simon.matter@invoca.ch>
1037- upgraded to 2.1.14
1038- removed now obsolete forcedowncase patch
1039- use --with-extraident to add extra version information
1040- updated munge8bit patch
1041
1042* Wed Jun 04 2003 Simon Matter <simon.matter@invoca.ch>
1043- added RedHat 2.1ES support to the perlhack detection
1044
1045* Tue May 20 2003 Simon Matter <simon.matter@invoca.ch>
1046- upgraded autocreate patch
1047
1048* Fri May 09 2003 Simon Matter <simon.matter@invoca.ch>
1049- upgraded autocreate patch
1050- modified init script
1051
1052* Mon May 05 2003 Simon Matter <simon.matter@invoca.ch>
1053- upgraded to 2.1.13
1054- replaced commands with macros, cleaned up spec file
1055
1056* Fri May 02 2003 Simon Matter <simon.matter@invoca.ch>
1057- added murder subpackage
1058- changed exec path to /usr/lib/cyrus-imapd
1059
1060* Thu May 01 2003 Simon Matter <simon.matter@invoca.ch>
1061- included modified munge8bit patch again
1062
1063* Tue Apr 29 2003 Simon Matter <simon.matter@invoca.ch>
1064- added new 8bit header patch
1065- upgraded IPv6 patch
1066- upgraded autocreate patch to 0.7
1067
1068* Mon Apr 28 2003 Simon Matter <simon.matter@invoca.ch>
1069- added new autocreate patch
1070
1071* Mon Mar 31 2003 H-E Sandstrom <hes@mailcore.net>
1072- added munge8bit patch
1073
1074* Mon Mar 24 2003 Simon Matter <simon.matter@invoca.ch>
1075- added createonpost fix patch
1076
1077* Thu Mar 20 2003 Simon Matter <simon.matter@invoca.ch>
1078- added functionality to patch the IPv6 patch on the fly if
1079  autoconf > 2.13, we can now use newer autoconf again.
1080
1081* Tue Mar 18 2003 Paul Bender <pbender@qualcomm.com>
1082- fixed spec file so that autoconf 2.13 will always be used,
1083  since the IPv6 patch requires autoconf <= 2.13
1084
1085* Fri Mar 14 2003 Simon Matter <simon.matter@invoca.ch>
1086- fixed problems with new file package
1087
1088* Thu Mar 13 2003 Simon Matter <simon.matter@invoca.ch>
1089- added kerberos include for RedHat Beta phoebe 2
1090- added Henrique's forcedowncase patch
1091
1092* Mon Mar 03 2003 Simon Matter <simon.matter@invoca.ch>
1093- corrected imapd.conf
1094
1095* Sat Mar 01 2003 Simon Matter <simon.matter@invoca.ch>
1096- added note about lmtp socket in sendmail
1097- added flock patches
1098
1099* Fri Feb 07 2003 Simon Matter <simon.matter@invoca.ch>
1100- added build time option for fulldirhash
1101
1102* Wed Feb 05 2003 Simon Matter <simon.matter@invoca.ch>
1103- added IPV6 patch to source rpm
1104- fixed build on RedHat 6.2
1105
1106* Tue Feb 04 2003 Simon Matter <simon.matter@invoca.ch>
1107- update to 2.1.12
1108- added logrotate entry for /var/log/auth.log
1109- modified init script to use builtin daemon mode
1110
1111* Fri Jan 10 2003 Simon Matter <simon.matter@invoca.ch>
1112- small change in mboxlist backup script
1113
1114* Fri Jan 10 2003 Simon Matter <simon.matter@invoca.ch>
1115- fixed a cosmetic bug in cvt_cyrusdb_all
1116- added cron.daily job to backup mailboxes.db
1117
1118* Mon Jan 06 2003 Simon Matter <simon.matter@invoca.ch>
1119- add more entries to /etc/services
1120
1121* Wed Jan 01 2003 Simon Matter <simon.matter@invoca.ch>
1122- include snmpargs patch for build on RedHat 6.2
1123- added build support for RedHat 6.2
1124
1125* Mon Dec 30 2002 Simon Matter <simon.matter@invoca.ch>
1126- removed autoconf hack, not needed anymore
1127- enabled build on RedHat Beta Phoebe
1128- added services entry for lmtp
1129- cleanup spec file
1130
1131* Thu Dec 26 2002 Simon Matter <simon.matter@invoca.ch>
1132- removed BuildPrereq for e2fsprogs-devel
1133
1134* Thu Dec 12 2002 Simon Matter <simon.matter@invoca.ch>
1135- modified RedHat release detection
1136- added BuildPrereq for file
1137
1138* Thu Dec 05 2002 Simon Matter <simon.matter@invoca.ch>
1139- upgraded to cyrus-imapd 2.1.11
1140- upgrade IPV6 patch to 20021205
1141
1142* Thu Nov 28 2002 Simon Matter <simon.matter@invoca.ch>
1143- Fixed some default attributes
1144
1145* Thu Nov 28 2002 Troels Arvin <troels@arvin.dk>
1146- Explicitly changed files-section to
1147   - use defattr for simple (root-owned 0644) files
1148   - explictly set root as user/group owner where
1149     the user/group ownership was previously indicated
1150     as "-"; this allows building valid packages without
1151     having to being root when building
1152
1153* Mon Nov 25 2002 Simon Matter <simon.matter@invoca.ch>
1154- changed default build option for IDLED to off
1155- included some useful info in README.*
1156
1157* Thu Nov 21 2002 Simon Matter <simon.matter@invoca.ch>
1158- added build time option for IDLED, thank you Roland Pope
1159
1160* Tue Nov 19 2002 Simon Matter <simon.matter@invoca.ch>
1161- fixed spec to really use fdatasync patch
1162- added createonpost patch
1163
1164* Thu Nov 14 2002 Simon Matter <simon.matter@invoca.ch>
1165- upgraded to cyrus-imapd 2.1.10
1166- build without IPv6 support by default
1167
1168* Tue Nov 12 2002 Simon Matter <simon.matter@invoca.ch>
1169- fixed db detection in .spec
1170
1171* Mon Oct 21 2002 Simon Matter <simon.matter@invoca.ch>
1172- updated cvt_cyrusdb_all script
1173
1174* Fri Oct 18 2002 Simon Matter <simon.matter@invoca.ch>
1175- added fdatasync patch
1176
1177* Thu Oct 03 2002 Simon Matter <simon.matter@invoca.ch>
1178- add RPM version 4.1 compatibility, which means remove installed
1179  but not packaged files
1180
1181* Wed Sep 18 2002 Simon Matter <simix@datacomm.ch>
1182- added auto db converting functionality
1183- changed default for MBOXLIST_DB and SEEN_DB to skiplist
1184
1185* Mon Sep 16 2002 Simon Matter <simix@datacomm.ch>
1186- remove creation of cyrus user at build time
1187- added scripts from ftp://kalamazoolinux.org/pub/projects/awilliam/cyrus/
1188
1189* Mon Sep 02 2002 Simon Matter <simix@datacomm.ch>
1190- upgraded to cyrus-imapd 2.1.9
1191
1192* Fri Aug 30 2002 Simon Matter <simix@datacomm.ch>
1193- included extra ident string
1194
1195* Thu Aug 29 2002 Simon Matter <simix@datacomm.ch>
1196- modified path in deliver-wrapper, thank you Richard L. Phipps
1197- added RedHat 2.1AS support to the perlhack detection
1198- added build time option to force syncronous updates on ext3
1199
1200* Wed Aug 28 2002 Simon Matter <simix@datacomm.ch>
1201- added updated IPv6 patch from Hajimu UMEMOTO
1202
1203* Wed Aug 28 2002 Simon Matter <simix@datacomm.ch>
1204- upgraded to cyrus-imapd 2.1.8
1205
1206* Thu Aug 22 2002 Simon Matter <simix@datacomm.ch>
1207- included IPv6 patch from Hajimu UMEMOTO
1208
1209* Wed Aug 21 2002 Simon Matter <simix@datacomm.ch>
1210- upgraded to cyrus-imapd 2.1.7 because of wrong version info
1211
1212* Wed Aug 21 2002 Simon Matter <simix@datacomm.ch>
1213- upgraded to cyrus-imapd 2.1.6
1214
1215* Mon Aug 19 2002 Simon Matter <simix@datacomm.ch>
1216- change db version detection, thank you Chris for reporting
1217
1218* Tue Aug 13 2002 Simon Matter <simix@datacomm.ch>
1219- fixed autoconf detection
1220
1221* Mon Aug 12 2002 Simon Matter <simix@datacomm.ch>
1222- included support for different autoconf versions
1223- modified the perl build and install process
1224- made some .spec changes to build on RedHat 7.x and limbo
1225
1226* Fri Aug 09 2002 Simon Matter <simix@datacomm.ch>
1227- included sieve matching patch
1228
1229* Thu Jun 27 2002 Simon Matter <simix@datacomm.ch>
1230- fixed %post script where %F was expanded to file.file
1231
1232* Wed Jun 26 2002 Simon Matter <simix@datacomm.ch>
1233- fixed missing man page
1234
1235* Tue Jun 25 2002 Simon Matter <simix@datacomm.ch>
1236- upgraded to cyrus-imapd 2.1.5
1237
1238* Mon Jun 24 2002 Simon Matter <simix@datacomm.ch>
1239- added compile time parameters to configure the package based on
1240  the idea from Luca Olivetti <luca@olivetti.cjb.net>
1241- make deliver-wrapper a compile time option
1242
1243* Fri May 02 2002 Simon Matter <simix@datacomm.ch>
1244- upgraded to cyrus-imapd 2.1.4
1245
1246* Mon Apr 22 2002 Simon Matter <simix@datacomm.ch>
1247- small initscript fix
1248
1249* Fri Mar 08 2002 Simon Matter <simix@datacomm.ch>
1250- upgraded to cyrus-imapd 2.1.3
1251- removed some stuff that was cleaned up in the sources
1252- added compile time options for db backends
1253
1254* Wed Mar 06 2002 Simon Matter <simix@datacomm.ch>
1255- removed requires perl-File-Temp for utils package, it's in the RedHat
1256  perl RPM now
1257
1258* Fri Feb 22 2002 Simon Matter <simix@datacomm.ch>
1259- removed deliverdb/db
1260
1261* Wed Feb 20 2002 Simon Matter <simix@datacomm.ch>
1262- upgraded to cyrus-imapd 2.1.2
1263
1264* Mon Feb 11 2002 Simon Matter <simix@datacomm.ch>
1265- changed sasl_mech_list: PLAIN in /etc/imapd.conf
1266- added sieve to /etc/pam.d
1267
1268* Fri Feb 08 2002 Simon Matter <simix@datacomm.ch>
1269- added requires perl-File-Temp for utils package
1270
1271* Wed Feb 06 2002 Simon Matter <simix@datacomm.ch>
1272- added some %dir flags
1273- removed /usr/lib/sasl/Cyrus.conf
1274- added conf templates
1275- build time option for usage of saslauth group
1276
1277* Tue Feb 05 2002 Simon Matter <simix@datacomm.ch>
1278- upgraded to cyrus-imapd 2.1.1
1279- dependency of cyrus-sasl >= 2.1.0-1
1280
1281* Sun Feb 03 2002 Simon Matter <simix@datacomm.ch>
1282- saslauth group is only deleted on uninstall if there is no other
1283  member in this group
1284
1285* Sat Feb 02 2002 Simon Matter <simix@datacomm.ch>
1286- changed start/stop level in init file
1287
1288* Tue Jan 29 2002 Simon Matter <simix@datacomm.ch>
1289- dependency of cyrus-sasl >= 1.5.24-22
1290- dotstuffing patch for sendmail calls made by sieve for outgoing
1291  mails
1292- patch for ability to force ipurge to traverse personal folders
1293
1294* Mon Jan 28 2002 Simon Matter <simix@datacomm.ch>
1295- minor spec file changes
1296
1297* Sat Jan 19 2002 Simon Matter <simix@datacomm.ch>
1298- changed default auth to pam
1299- remove several %dir from %files sections
1300- change from /usr/lib/cyrus -> /usr/libexec/cyrus
1301- rename source files to something like cyrus...
1302- added rehash tool
1303- changed to hashed spool
1304
1305* Fri Jan 18 2002 Simon Matter <simix@datacomm.ch>
1306- fixed init script
1307- fixed %post section in spec
1308
1309* Thu Jan 17 2002 Simon Matter <simix@datacomm.ch>
1310- ready for first build
1311
1312* Wed Jan 09 2002 Simon Matter <simix@datacomm.ch>
1313- initial package, with help from other packages out there
Note: See TracBrowser for help on using the repository browser.