cyrus-imapd-vl.spec 47 KB

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