cyrus-imapd-vl.spec 44 KB

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