cyrus-imapd-vl.spec 47 KB

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