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

Revision 1787, 45.9 KB checked in by iwaim, 14 years ago (diff)

cyrus-imapd 2.2.13p1-6

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