cyrus-imapd-vl.spec 46 KB

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