]>
Commit | Line | Data |
---|---|---|
fc394936 PG |
1 | # TODO: |
2 | # - put imap-ssl and pop3-ssl to separate packages - some want to have | |
f97f556e ER |
3 | # ssl-only system (or non-ssl only system) |
4 | # see also http://thread.gmane.org/gmane.linux.pld.devel.english/2509/focus=2509 | |
d422e8d5 ER |
5 | # - fix manpages: |
6 | # [set $man.base.url.for.relative.links]/maildirquota.html | |
a6b6dbcb | 7 | # - Review -toplevel.patch |
4da6c341 | 8 | # |
d422e8d5 | 9 | # Conditional build: |
79753a6a | 10 | %bcond_with toplevel # Allow toplevel folders. More info: http://www.ricky-chan.co.uk/courier/ |
9f31a779 | 11 | %bcond_without fam # FAM for enhanced IMAP IDLE and locking |
91c3446c JB |
12 | %bcond_with gnutls # GnuTLS instead of OpenSSL |
13 | %bcond_with socks # (Courier) Socks support | |
d422e8d5 | 14 | |
8a084354 | 15 | Summary: Courier-IMAP server |
54d5a82c | 16 | Summary(pl.UTF-8): Serwer Courier-IMAP |
c8a16646 | 17 | Name: courier-imap |
3360fcf6 | 18 | Version: 5.2.2 |
545ec7aa | 19 | Release: 1 |
91c3446c | 20 | License: GPL v3 with OpenSSL exception |
8a084354 | 21 | Group: Networking/Daemons |
545ec7aa | 22 | Source0: https://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2 |
3360fcf6 | 23 | # Source0-md5: 7f210160a19ec973ea39d9ef32e25053 |
b89304e7 | 24 | Source1: %{name}.init |
b82224e8 AM |
25 | Source2: %{name}-ssl.init |
26 | Source3: %{name}-pop3.init | |
27 | Source4: %{name}-pop3-ssl.init | |
28 | Source5: %{name}.pamd | |
29 | Source6: %{name}-pop3.pamd | |
43beb1b2 AA |
30 | Patch0: %{name}-dirs.patch |
31 | Patch1: %{name}-certsdir.patch | |
e0e5ebb0 | 32 | Patch2: %{name}-maildir.patch |
4da6c341 | 33 | Patch3: %{name}-toplevel.patch |
e9395271 | 34 | Patch4: %{name}-drop-makedat.patch |
91c3446c | 35 | Patch5: %{name}-disable-courierlogger-check.patch |
572bd89a | 36 | URL: http://www.courier-mta.org/imap/ |
91c3446c | 37 | BuildRequires: autoconf >= 2.59 |
2beb47fe | 38 | BuildRequires: automake |
545ec7aa | 39 | BuildRequires: courier-authlib-devel >= 0.71.0 |
91c3446c | 40 | %{?with_socks:BuildRequires: courier-sox-devel} |
4e001a23 | 41 | BuildRequires: courier-unicode-devel >= 2.1 |
572bd89a | 42 | BuildRequires: db-devel |
3360fcf6 | 43 | BuildRequires: libidn2-devel >= 0.0.0 |
9f31a779 | 44 | %{?with_fam:BuildRequires: gamin-devel} |
91c3446c JB |
45 | %{?with_gnutls:BuildRequires: gnutls-devel >= 3.0} |
46 | %{?with_gnutls:BuildRequires: libgcrypt-devel} | |
47 | %{?with_gnutls:BuildRequires: libgpg-error-devel} | |
5a6f0f2e | 48 | BuildRequires: libstdc++-devel |
3360fcf6 | 49 | BuildRequires: libtool >= 2:2 |
91c3446c JB |
50 | %{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d} |
51 | BuildRequires: perl-base | |
e61278d5 | 52 | BuildRequires: pkgconfig |
c636fa52 | 53 | BuildRequires: procps |
7517a9c9 | 54 | BuildRequires: rpmbuild(macros) >= 1.268 |
bf8b7b21 | 55 | BuildRequires: sed >= 4.0 |
d7bc0eb4 | 56 | BuildRequires: sysconftool |
258b2f39 | 57 | Requires(post,preun): /sbin/chkconfig |
0a6b8d30 | 58 | Requires: %{name}-common = %{version}-%{release} |
124feb33 | 59 | Requires: /sbin/chkconfig |
4e001a23 | 60 | Requires: courier-unicode >= 2.1 |
e5ab93c0 | 61 | Requires: pam >= 0.79.0 |
258b2f39 | 62 | Requires: rc-scripts |
83645454 | 63 | Provides: imapdaemon |
1270157e | 64 | Obsoletes: imapdaemon |
1409bbb6 | 65 | Conflicts: cyrus-imapd |
83645454 | 66 | Conflicts: imap |
c636fa52 | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55311f1f | 68 | |
8a084354 | 69 | %define _sysconfdir /etc/courier-imap |
7ae1849a | 70 | %define _certsdir %{_sysconfdir}/certs |
edf18efc | 71 | %define _localstatedir /var/spool/courier-imap |
f727c71b | 72 | |
73 | %description | |
74 | Courier-IMAP is an IMAP server for Maildir mailboxes. | |
75 | ||
dc98ec94 | 76 | %description -l pl.UTF-8 |
e541686a | 77 | Courier-IMAP jest serwerem IMAP dla skrzynek pocztowych Maildir. |
78 | ||
8a084354 | 79 | %package common |
43beb1b2 | 80 | Summary: Common files for imap and pop3 daemons |
54d5a82c | 81 | Summary(pl.UTF-8): Pliki wspólne dla serwerów imap i pop3 |
8a084354 | 82 | Group: Networking/Daemons |
258b2f39 ER |
83 | Requires(post,preun): /sbin/chkconfig |
84 | Requires: /sbin/chkconfig | |
91c3446c JB |
85 | # even if using OpenSSL libraries, Courier uses certtool from GnuTLS |
86 | Requires: /usr/bin/certtool | |
545ec7aa | 87 | Requires: courier-authlib >= 0.71.0 |
124feb33 | 88 | Requires: procps |
0a6b8d30 | 89 | Requires: rc-scripts |
4e001a23 | 90 | Conflicts: maildrop < 3 |
8a084354 | 91 | |
92 | %description common | |
43beb1b2 | 93 | Common files for imap and pop3 daemons. |
8a084354 | 94 | |
dc98ec94 JR |
95 | %description common -l pl.UTF-8 |
96 | Pliki wspólne dla serwerów imap i pop3. | |
8a084354 | 97 | |
c9082a88 | 98 | %package deliverquota |
83645454 | 99 | Summary: Deliver to a Maildir with a quota |
54d5a82c | 100 | Summary(pl.UTF-8): Obsługa quoty przy dostarczaniu poczty do skrzynek Maildir |
c9082a88 | 101 | Group: Networking/Daemons |
c9082a88 | 102 | |
103 | %description deliverquota | |
104 | deliverquota is a temporary hack to implement E-mail delivery to a | |
83645454 | 105 | Maildir with a software-imposed quota. |
c9082a88 | 106 | |
dc98ec94 JR |
107 | %description deliverquota -l pl.UTF-8 |
108 | deliverquota jest tymczasowym rozwiązaniem implementującym | |
109 | dostarczanie e-maili do skrzynek Maildir z programowo narzuconą quotą. | |
a8a1b6d2 | 110 | |
c9082a88 | 111 | %package maildirmake |
83645454 | 112 | Summary: Tool for making mail folders in Maildir format |
54d5a82c | 113 | Summary(pl.UTF-8): Narzędzie do tworzenia folderów w formacie Maildir |
c9082a88 | 114 | Group: Networking/Daemons |
c9082a88 | 115 | Conflicts: qmail-maildirmake |
116 | ||
117 | %description maildirmake | |
118 | Maildirmake is a tool for making mail folders in Maildir format. | |
119 | ||
dc98ec94 JR |
120 | %description maildirmake -l pl.UTF-8 |
121 | Maildirmake jest narzędziem do tworzenia folderów pocztowych w | |
a8a1b6d2 TP |
122 | formacie Maildir. |
123 | ||
8a084354 | 124 | %package pop3 |
125 | Summary: Courier-IMAP POP3 Server | |
54d5a82c | 126 | Summary(pl.UTF-8): Serwer Courier-IMAP POP3 |
4eea0be3 | 127 | Group: Networking/Daemons/POP3 |
0a6b8d30 | 128 | Requires: %{name}-common = %{version}-%{release} |
066f5bb6 | 129 | Requires: pam >= 0.79.0 |
8a084354 | 130 | Provides: pop3daemon |
131 | Obsoletes: pop3daemon | |
1409bbb6 | 132 | Conflicts: cyrus-imapd |
83645454 | 133 | Conflicts: imap-pop3 |
0cb7bf09 | 134 | Conflicts: solid-pop3d |
3db5befb | 135 | Conflicts: tpop3d |
8a084354 | 136 | |
137 | %description pop3 | |
138 | Courier-IMAP POP3 is an POP3 server for Maildir mailboxes. | |
139 | ||
dc98ec94 | 140 | %description pop3 -l pl.UTF-8 |
8a084354 | 141 | Courier-IMAP POP3 jest serwerem POP3 dla skrzynek pocztowych Maildir. |
142 | ||
f727c71b | 143 | %prep |
c8a16646 | 144 | %setup -q |
43beb1b2 AA |
145 | %patch0 -p1 |
146 | %patch1 -p1 | |
e0e5ebb0 | 147 | %patch2 -p1 |
4da6c341 | 148 | %if %{with toplevel} |
149 | %patch3 -p1 | |
150 | %endif | |
e9395271 | 151 | %patch4 -p1 |
91c3446c | 152 | %patch5 -p1 |
43beb1b2 | 153 | |
9f31a779 ER |
154 | cp -p %{SOURCE1} courier-imap.in |
155 | cp -p %{SOURCE2} courier-imap-ssl.in | |
156 | cp -p %{SOURCE3} courier-pop3.in | |
157 | cp -p %{SOURCE4} courier-pop3-ssl.in | |
27b28430 | 158 | |
f727c71b | 159 | %build |
91c3446c | 160 | %{__libtoolize} |
2b071388 | 161 | # Change Makefile.am files and force recreate Makefile.in's. |
91c3446c | 162 | find -type f -a -name configure.ac | while read FILE; do |
e9395271 | 163 | cd "$(dirname "$FILE")" |
2b071388 | 164 | |
91c3446c | 165 | %{__sed} -i -e '/_[L]DFLAGS=-static/d' Makefile.am |
2b071388 | 166 | |
f6e028d3 ER |
167 | %{__aclocal} |
168 | %{__autoconf} | |
91c3446c | 169 | if grep -q AC_CONFIG_HEADER configure.ac; then |
08bdf7d6 | 170 | %{__autoheader} |
171 | fi | |
f6e028d3 | 172 | %{__automake} |
2b071388 | 173 | |
e9395271 | 174 | cd - |
2b071388 | 175 | done |
2b8d5d97 | 176 | |
91c3446c JB |
177 | %configure \ |
178 | CERTOOL=/usr/bin/certtool \ | |
9f31a779 | 179 | %if %{without fam} |
91c3446c JB |
180 | ac_cv_header_fam_h=no \ |
181 | ac_cv_lib_fam_FAMOpen=no \ | |
9f31a779 | 182 | %endif |
91c3446c | 183 | --libexecdir=%{_libexecdir}/courier-imap \ |
7dbb246f | 184 | --enable-unicode \ |
185 | --with-authchangepwdir=/var/tmp \ | |
3ef803b4 | 186 | --with-certsdir=%{_certsdir} \ |
91c3446c JB |
187 | --with-db=db \ |
188 | %{?with_gnutls:--with-gnutls} \ | |
189 | --with-mailer=/usr/lib/sendmail \ | |
4e001a23 | 190 | --with-notice=unicode \ |
91c3446c | 191 | %{!?with_socks:--without-socks} |
4e8547d5 | 192 | |
08bdf7d6 | 193 | %{__make} -j1 |
f727c71b | 194 | |
55311f1f | 195 | %install |
f727c71b | 196 | rm -rf $RPM_BUILD_ROOT |
edf18efc | 197 | install -d $RPM_BUILD_ROOT{/etc/{pam.d,rc.d/init.d,security},%{_certsdir}} |
f727c71b | 198 | |
eecbc453 | 199 | %{__make} -j1 install \ |
796ef867 | 200 | DESTDIR=$RPM_BUILD_ROOT |
f727c71b | 201 | |
79462f56 ER |
202 | install -p courier-imap $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap |
203 | install -p courier-imap-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap-ssl | |
204 | install -p courier-pop3 $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3 | |
205 | install -p courier-pop3-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3-ssl | |
9f31a779 ER |
206 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/imap |
207 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/pop3 | |
8a084354 | 208 | |
91c3446c JB |
209 | # install directly instead of symlinking |
210 | %{__rm} $RPM_BUILD_ROOT%{_sbindir}/mk{dhparams,imapdcert,pop3dcert} | |
211 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/mk{dhparams,imapdcert,pop3dcert} $RPM_BUILD_ROOT%{_sbindir} | |
55311f1f | 212 | |
91c3446c JB |
213 | # missing from make install |
214 | cp -p libs/imap/courierpop3d.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
215 | cp -p libs/tcpd/couriertls.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
7dbb246f | 216 | |
8a084354 | 217 | touch $RPM_BUILD_ROOT/etc/security/blacklist.{pop3,imap} |
4a1a3688 | 218 | touch $RPM_BUILD_ROOT%{_sysconfdir}/shared/index |
f727c71b | 219 | |
ca08ad0f AA |
220 | # make config files |
221 | ./sysconftool $RPM_BUILD_ROOT%{_sysconfdir}/*.dist | |
222 | ||
e0e5ebb0 | 223 | # set yes to start imapd and pop3d |
8fe3abc7 AA |
224 | sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d |
225 | sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd | |
e0e5ebb0 | 226 | |
08c59bca | 227 | # remove unpackaged files |
91c3446c | 228 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.dist |
08c59bca | 229 | |
48f9fb9c JB |
230 | %clean |
231 | rm -rf $RPM_BUILD_ROOT | |
232 | ||
f727c71b | 233 | %post |
7873775a | 234 | /sbin/chkconfig --add courier-imap |
b82224e8 | 235 | /sbin/chkconfig --add courier-imap-ssl |
7517a9c9 ER |
236 | %service courier-imap restart "courier-imap daemon" |
237 | %service courier-imap-ssl restart "courier-imap-ssl daemon" | |
b82224e8 | 238 | |
55311f1f | 239 | %preun |
7873775a | 240 | if [ "$1" = "0" ]; then |
7517a9c9 | 241 | %service courier-imap stop |
7873775a | 242 | /sbin/chkconfig --del courier-imap |
243 | fi | |
f727c71b | 244 | |
b82224e8 | 245 | if [ "$1" = "0" ]; then |
7517a9c9 | 246 | %service courier-imap-ssl stop |
b82224e8 AM |
247 | /sbin/chkconfig --del courier-imap-ssl |
248 | fi | |
249 | ||
250 | ||
545ec7aa JB |
251 | %triggerin -- %{name} < 3.0.6 |
252 | # 3.0.5 | |
e0e5ebb0 | 253 | if [ -f /var/lib/openssl/certs/imapd.pem ]; then |
7ae1849a | 254 | echo |
255 | echo imapd.pem has been moved automatically to %{_certsdir} | |
256 | echo | |
257 | mv -f /var/lib/openssl/certs/imapd.pem %{_certsdir} | |
e0e5ebb0 | 258 | fi |
df4be8ad | 259 | if [ -f /etc/sysconfig/courier-imap ]; then |
7ae1849a | 260 | . /etc/sysconfig/courier-imap |
572bd89a | 261 | for opt in `grep ^[^#] /etc/sysconfig/courier-imap |grep -v TLS_CERTFILE |grep -v MAILDIR |grep -v COURIERTLS |cut -d= -f1`; |
7ae1849a | 262 | do |
263 | eval opt2=\$$opt | |
264 | sed -i s/^$opt=.*/"$opt=\"$opt2\""/ %{_sysconfdir}/imapd | |
265 | sed -i s/^$opt=.*/"$opt=\"$opt2\""/ %{_sysconfdir}/imapd-ssl | |
266 | done | |
267 | sed -i s/^SSLADDRESS=.*/"SSLADDRESS=$ADDRESS_SSL"/ %{_sysconfdir}/imapd-ssl | |
268 | sed -i s/^SSLPORT=.*/"SSLPORT=$PORTS_SSL"/ %{_sysconfdir}/imapd-ssl | |
269 | sed -i s!^MAILDIRPATH=.*!"MAILDIRPATH=\"$MAILDIR\""! %{_sysconfdir}/imapd-ssl | |
270 | sed -i s!^MAILDIRPATH=.*!"MAILDIRPATH=\"$MAILDIR\""! %{_sysconfdir}/imapd | |
271 | echo | |
272 | echo IMAPD config file has been rewriten to %{_sysconfdir}/imapd,imapd-ssl | |
273 | echo please look at them | |
274 | echo | |
df4be8ad | 275 | fi |
7517a9c9 | 276 | %service -q courier-imap restart |
7873775a | 277 | |
545ec7aa | 278 | # 3.0.6 |
edf18efc AA |
279 | . %{_sysconfdir}/imapd-ssl |
280 | if [ $TLS_CACHEFILE = "/var/couriersslcache" ]; then | |
7ae1849a | 281 | sed -i s/^TLS_CACHEFILE=.*/"TLS_CACHEFILE=\/var\/spool\/courier-imap\/couriersslcache"/ %{_sysconfdir}/imapd-ssl |
edf18efc AA |
282 | fi |
283 | ||
542cc330 AA |
284 | %triggerin -n %{name}-common -- %{name}-userdb |
285 | echo | |
286 | echo courier-imap-userdb is obsolete | |
287 | echo install courier-authlib-userdb package | |
288 | echo | |
289 | ||
ca08ad0f AA |
290 | %triggerin -n %{name}-common -- %{name}-common < 3.0.5 |
291 | /sbin/chkconfig --del authdaemon | |
e3496a0a | 292 | if [ -f /var/lock/subsys/authdaemon ]; then |
7ae1849a | 293 | kill `cat /var/lib/authdaemon/pid` |
294 | rm -f /var/lock/subsys/authdaemon | |
e3496a0a | 295 | fi |
df4be8ad | 296 | if [ -f /etc/sysconfig/authdaemon ]; then |
7ae1849a | 297 | . /etc/sysconfig/authdaemon |
298 | sed -i s/^version.*/version=authdaemond.$METHOD/ %{_sysconfdir}/authdaemonrc | |
df4be8ad | 299 | fi |
51057bba | 300 | echo |
df4be8ad | 301 | echo Changes to version 3.0.5 : |
91c3446c | 302 | echo - config files has been split and moved to %{_sysconfdir} |
df4be8ad AA |
303 | echo - certificates directory has changed to %{_certsdir} |
304 | echo | |
ca08ad0f | 305 | |
4e001a23 JB |
306 | %triggerpostun common -- %{name}-common < 5 |
307 | %banner -e courier-imap-unicode <<EOF | |
308 | WARNING: you have to convert any existing maildirs to Unicode naming scheme. | |
309 | See INSTALL file for details. | |
310 | EOF | |
311 | ||
8a084354 | 312 | %post pop3 |
0e7557ae | 313 | /sbin/chkconfig --add courier-pop3 |
b82224e8 | 314 | /sbin/chkconfig --add courier-pop3-ssl |
23f7e657 | 315 | /sbin/chkconfig --del courier-imap-pop3 >/dev/null 2>&1 || : |
95c9646d | 316 | if [ -f /var/lock/subsys/courier-imap-pop3 ]; then |
7517a9c9 ER |
317 | /sbin/service courier-imap-pop3 stop >&2 |
318 | /sbin/service courier-pop3 start >&2 | |
b82224e8 | 319 | else |
7517a9c9 | 320 | %service courier-pop3 restart "courier-pop3 daemon" |
b82224e8 | 321 | fi |
7517a9c9 | 322 | %service courier-pop3-ssl restart "courier-pop3-ssl daemon" |
b82224e8 | 323 | |
8a084354 | 324 | %preun pop3 |
7873775a | 325 | if [ "$1" = "0" ]; then |
7517a9c9 | 326 | %service courier-pop3 stop |
0e7557ae | 327 | /sbin/chkconfig --del courier-pop3 |
7517a9c9 ER |
328 | %service courier-pop3-ssl stop |
329 | /sbin/chkconfig --del courier-pop3-ssl | |
7873775a | 330 | fi |
8a084354 | 331 | |
e0e1897b JR |
332 | %triggerin -n %{name}-pop3 -- %{name}-pop3 < 3.0.6 |
333 | # 3.0.5 | |
e0e5ebb0 | 334 | if [ -f /var/lib/openssl/certs/pop3d.pem ]; then |
7ae1849a | 335 | echo |
336 | echo pop3d.pem has been moved automatically to %{_certsdir} | |
337 | echo | |
338 | mv -f /var/lib/openssl/certs/pop3d.pem %{_certsdir} | |
e0e5ebb0 | 339 | fi |
df4be8ad | 340 | if [ -f /etc/sysconfig/courier-pop3 ]; then |
7ae1849a | 341 | . /etc/sysconfig/courier-pop3 |
572bd89a | 342 | for opt in `grep ^[^#] /etc/sysconfig/courier-pop3 |grep -v TLS_CERTFILE |grep -v MAILDIR |grep -v COURIERTLS |cut -d= -f1`; |
7ae1849a | 343 | do |
344 | eval opt2=\$$opt | |
345 | sed -i s/^$opt=.*/"$opt=\"$opt2\""/ %{_sysconfdir}/pop3d | |
346 | sed -i s/^$opt=.*/"$opt=\"$opt2\""/ %{_sysconfdir}/pop3d-ssl | |
347 | done | |
348 | sed -i s!^MAILDIRPATH=.*!"MAILDIRPATH=\"$MAILDIR\""! %{_sysconfdir}/pop3d-ssl | |
349 | sed -i s!^MAILDIRPATH=.*!"MAILDIRPATH=\"$MAILDIR\""! %{_sysconfdir}/pop3d | |
350 | echo | |
351 | echo POP3D config file has been rewriten to %{_sysconfdir}/{pop3d,pop3d-ssl} | |
352 | echo please look at them | |
353 | echo | |
df4be8ad | 354 | fi |
7517a9c9 | 355 | %service courier-pop3 restart |
ca08ad0f | 356 | |
e0e1897b | 357 | # 3.0.6 |
edf18efc AA |
358 | . %{_sysconfdir}/pop3d-ssl |
359 | if [ $TLS_CACHEFILE = "/var/couriersslcache" ]; then | |
7ae1849a | 360 | sed -i s/^TLS_CACHEFILE=.*/"TLS_CACHEFILE=\/var\/spool\/courier-imap\/couriersslcache"/ %{_sysconfdir}/pop3d-ssl |
edf18efc AA |
361 | fi |
362 | ||
55311f1f | 363 | %files |
27b28430 | 364 | %defattr(644,root,root,755) |
91c3446c | 365 | %doc libs/maildir/README.sharedfolders.txt libs/imap/README.proxy libs/tcpd/README.couriertls |
2bc65701 AA |
366 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/imap |
367 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.imap | |
368 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd | |
369 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl | |
370 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf | |
ca08ad0f | 371 | %attr(754,root,root) /etc/rc.d/init.d/courier-imap |
b82224e8 | 372 | %attr(754,root,root) /etc/rc.d/init.d/courier-imap-ssl |
edf18efc AA |
373 | %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared |
374 | %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp | |
4a1a3688 | 375 | %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shared/index |
8a084354 | 376 | %attr(755,root,root) %{_bindir}/imapd |
08c59bca | 377 | %attr(755,root,root) %{_bindir}/maildiracl |
0b36f9b4 | 378 | %attr(755,root,root) %{_bindir}/maildirkw |
91c3446c | 379 | %attr(755,root,root) %{_bindir}/makeimapaccess |
8a084354 | 380 | %attr(755,root,root) %{_sbindir}/imaplogin |
381 | %attr(755,root,root) %{_sbindir}/mkimapdcert | |
08c59bca AA |
382 | %attr(755,root,root) %{_sbindir}/sharedindexinstall |
383 | %attr(755,root,root) %{_sbindir}/sharedindexsplit | |
91c3446c JB |
384 | %attr(755,root,root) %{_libexecdir}/courier-imap/imapd.rc |
385 | %attr(755,root,root) %{_libexecdir}/courier-imap/imapd-ssl.rc | |
08c59bca | 386 | %{_mandir}/man1/maildiracl.1* |
0b36f9b4 | 387 | %{_mandir}/man1/maildirkw.1* |
91c3446c JB |
388 | %{_mandir}/man8/imapd.8* |
389 | %{_mandir}/man8/makeimapaccess.8* | |
390 | %{_mandir}/man8/mkimapdcert.8* | |
8a084354 | 391 | |
392 | %files common | |
393 | %defattr(644,root,root,755) | |
3360fcf6 | 394 | %doc AUTHORS COPYING INSTALL NEWS README libs/imap/{BUGS,ChangeLog} libs/maildir/README.maildirquota.txt |
48ce94f2 | 395 | %attr(751,root,root) %dir %{_sysconfdir} |
43beb1b2 | 396 | %attr(750,root,root) %dir %{_certsdir} |
ae571610 | 397 | %attr(770,daemon,daemon) %dir %{_localstatedir} |
91c3446c | 398 | %dir %{_libexecdir}/courier-imap |
8a084354 | 399 | %{_sysconfdir}/quotawarnmsg.example |
400 | %attr(755,root,root) %{_bindir}/couriertls | |
91c3446c JB |
401 | %attr(755,root,root) %{_sbindir}/mkdhparams |
402 | %attr(755,root,root) %{_libexecdir}/courier-imap/couriertcpd | |
403 | %{_mandir}/man1/couriertcpd.1* | |
404 | %{_mandir}/man1/couriertls.1* | |
405 | %{_mandir}/man8/mkdhparams.8* | |
c9082a88 | 406 | |
c9082a88 | 407 | %files deliverquota |
408 | %defattr(644,root,root,755) | |
e781919f | 409 | %attr(755,root,root) %{_bindir}/deliverquota |
91c3446c | 410 | %{_mandir}/man8/deliverquota.8* |
c9082a88 | 411 | |
412 | %files maildirmake | |
413 | %defattr(644,root,root,755) | |
414 | %attr(755,root,root) %{_bindir}/maildirmake | |
91c3446c | 415 | %{_mandir}/man1/maildirmake.1* |
8a084354 | 416 | |
417 | %files pop3 | |
27b28430 | 418 | %defattr(644,root,root,755) |
2bc65701 AA |
419 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3 |
420 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.pop3 | |
421 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d | |
422 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl | |
423 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf | |
0e7557ae | 424 | %attr(754,root,root) /etc/rc.d/init.d/courier-pop3 |
b82224e8 | 425 | %attr(754,root,root) /etc/rc.d/init.d/courier-pop3-ssl |
8a084354 | 426 | %attr(755,root,root) %{_bindir}/pop3d |
427 | %attr(755,root,root) %{_sbindir}/mkpop3dcert | |
428 | %attr(755,root,root) %{_sbindir}/pop3login | |
91c3446c JB |
429 | %attr(755,root,root) %{_libexecdir}/courier-imap/pop3d.rc |
430 | %attr(755,root,root) %{_libexecdir}/courier-imap/pop3d-ssl.rc | |
431 | %{_mandir}/man8/courierpop3d.8* | |
432 | %{_mandir}/man8/mkpop3dcert.8* |