]>
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 |
91c3446c | 18 | Version: 4.18.2 |
80906aa4 | 19 | Release: 2 |
91c3446c | 20 | License: GPL v3 with OpenSSL exception |
8a084354 | 21 | Group: Networking/Daemons |
d94a48a0 | 22 | Source0: http://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2 |
91c3446c | 23 | # Source0-md5: 6af3e78d3206518aab5510638cd620c2 |
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 |
91c3446c JB |
39 | BuildRequires: courier-authlib-devel >= 0.61.0 |
40 | %{?with_socks:BuildRequires: courier-sox-devel} | |
41 | BuildRequires: courier-unicode-devel >= 2.0 | |
572bd89a | 42 | BuildRequires: db-devel |
91c3446c | 43 | BuildRequires: libidn-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 |
91c3446c JB |
49 | BuildRequires: libtool >= 2:1.5 |
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 |
91c3446c | 60 | Requires: courier-unicode >= 2.0 |
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 | |
87 | Requires: courier-authlib >= 0.61.0 | |
124feb33 | 88 | Requires: procps |
0a6b8d30 | 89 | Requires: rc-scripts |
8a084354 | 90 | |
91 | %description common | |
43beb1b2 | 92 | Common files for imap and pop3 daemons. |
8a084354 | 93 | |
dc98ec94 JR |
94 | %description common -l pl.UTF-8 |
95 | Pliki wspólne dla serwerów imap i pop3. | |
8a084354 | 96 | |
c9082a88 | 97 | %package deliverquota |
83645454 | 98 | Summary: Deliver to a Maildir with a quota |
54d5a82c | 99 | Summary(pl.UTF-8): Obsługa quoty przy dostarczaniu poczty do skrzynek Maildir |
c9082a88 | 100 | Group: Networking/Daemons |
c9082a88 | 101 | |
102 | %description deliverquota | |
103 | deliverquota is a temporary hack to implement E-mail delivery to a | |
83645454 | 104 | Maildir with a software-imposed quota. |
c9082a88 | 105 | |
dc98ec94 JR |
106 | %description deliverquota -l pl.UTF-8 |
107 | deliverquota jest tymczasowym rozwiązaniem implementującym | |
108 | dostarczanie e-maili do skrzynek Maildir z programowo narzuconą quotą. | |
a8a1b6d2 | 109 | |
c9082a88 | 110 | %package maildirmake |
83645454 | 111 | Summary: Tool for making mail folders in Maildir format |
54d5a82c | 112 | Summary(pl.UTF-8): Narzędzie do tworzenia folderów w formacie Maildir |
c9082a88 | 113 | Group: Networking/Daemons |
c9082a88 | 114 | Conflicts: qmail-maildirmake |
115 | ||
116 | %description maildirmake | |
117 | Maildirmake is a tool for making mail folders in Maildir format. | |
118 | ||
dc98ec94 JR |
119 | %description maildirmake -l pl.UTF-8 |
120 | Maildirmake jest narzędziem do tworzenia folderów pocztowych w | |
a8a1b6d2 TP |
121 | formacie Maildir. |
122 | ||
8a084354 | 123 | %package pop3 |
124 | Summary: Courier-IMAP POP3 Server | |
54d5a82c | 125 | Summary(pl.UTF-8): Serwer Courier-IMAP POP3 |
4eea0be3 | 126 | Group: Networking/Daemons/POP3 |
0a6b8d30 | 127 | Requires: %{name}-common = %{version}-%{release} |
066f5bb6 | 128 | Requires: pam >= 0.79.0 |
8a084354 | 129 | Provides: pop3daemon |
130 | Obsoletes: pop3daemon | |
1409bbb6 | 131 | Conflicts: cyrus-imapd |
83645454 | 132 | Conflicts: imap-pop3 |
0cb7bf09 | 133 | Conflicts: solid-pop3d |
3db5befb | 134 | Conflicts: tpop3d |
8a084354 | 135 | |
136 | %description pop3 | |
137 | Courier-IMAP POP3 is an POP3 server for Maildir mailboxes. | |
138 | ||
dc98ec94 | 139 | %description pop3 -l pl.UTF-8 |
8a084354 | 140 | Courier-IMAP POP3 jest serwerem POP3 dla skrzynek pocztowych Maildir. |
141 | ||
f727c71b | 142 | %prep |
c8a16646 | 143 | %setup -q |
43beb1b2 AA |
144 | %patch0 -p1 |
145 | %patch1 -p1 | |
e0e5ebb0 | 146 | %patch2 -p1 |
4da6c341 | 147 | %if %{with toplevel} |
148 | %patch3 -p1 | |
149 | %endif | |
e9395271 | 150 | %patch4 -p1 |
91c3446c | 151 | %patch5 -p1 |
43beb1b2 | 152 | |
9f31a779 ER |
153 | cp -p %{SOURCE1} courier-imap.in |
154 | cp -p %{SOURCE2} courier-imap-ssl.in | |
155 | cp -p %{SOURCE3} courier-pop3.in | |
156 | cp -p %{SOURCE4} courier-pop3-ssl.in | |
27b28430 | 157 | |
f727c71b | 158 | %build |
91c3446c | 159 | %{__libtoolize} |
2b071388 | 160 | # Change Makefile.am files and force recreate Makefile.in's. |
91c3446c | 161 | find -type f -a -name configure.ac | while read FILE; do |
e9395271 | 162 | cd "$(dirname "$FILE")" |
2b071388 | 163 | |
91c3446c | 164 | %{__sed} -i -e '/_[L]DFLAGS=-static/d' Makefile.am |
2b071388 | 165 | |
f6e028d3 ER |
166 | %{__aclocal} |
167 | %{__autoconf} | |
91c3446c | 168 | if grep -q AC_CONFIG_HEADER configure.ac; then |
08bdf7d6 | 169 | %{__autoheader} |
170 | fi | |
f6e028d3 | 171 | %{__automake} |
2b071388 | 172 | |
e9395271 | 173 | cd - |
2b071388 | 174 | done |
2b8d5d97 | 175 | |
91c3446c JB |
176 | %configure \ |
177 | CERTOOL=/usr/bin/certtool \ | |
9f31a779 | 178 | %if %{without fam} |
91c3446c JB |
179 | ac_cv_header_fam_h=no \ |
180 | ac_cv_lib_fam_FAMOpen=no \ | |
9f31a779 | 181 | %endif |
91c3446c | 182 | --libexecdir=%{_libexecdir}/courier-imap \ |
7dbb246f | 183 | --enable-unicode \ |
184 | --with-authchangepwdir=/var/tmp \ | |
3ef803b4 | 185 | --with-certsdir=%{_certsdir} \ |
91c3446c JB |
186 | --with-db=db \ |
187 | %{?with_gnutls:--with-gnutls} \ | |
188 | --with-mailer=/usr/lib/sendmail \ | |
189 | %{!?with_socks:--without-socks} | |
4e8547d5 | 190 | |
08bdf7d6 | 191 | %{__make} -j1 |
f727c71b | 192 | |
55311f1f | 193 | %install |
f727c71b | 194 | rm -rf $RPM_BUILD_ROOT |
edf18efc | 195 | install -d $RPM_BUILD_ROOT{/etc/{pam.d,rc.d/init.d,security},%{_certsdir}} |
f727c71b | 196 | |
eecbc453 | 197 | %{__make} -j1 install \ |
796ef867 | 198 | DESTDIR=$RPM_BUILD_ROOT |
f727c71b | 199 | |
79462f56 ER |
200 | install -p courier-imap $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap |
201 | install -p courier-imap-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap-ssl | |
202 | install -p courier-pop3 $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3 | |
203 | install -p courier-pop3-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3-ssl | |
9f31a779 ER |
204 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/imap |
205 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/pop3 | |
8a084354 | 206 | |
91c3446c JB |
207 | # install directly instead of symlinking |
208 | %{__rm} $RPM_BUILD_ROOT%{_sbindir}/mk{dhparams,imapdcert,pop3dcert} | |
209 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/mk{dhparams,imapdcert,pop3dcert} $RPM_BUILD_ROOT%{_sbindir} | |
55311f1f | 210 | |
91c3446c | 211 | cp -pf libs/imap/README README.imap |
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 | ||
e0e5ebb0 AA |
251 | %triggerin -- %{name} < 3.0.5 |
252 | if [ -f /var/lib/openssl/certs/imapd.pem ]; then | |
7ae1849a | 253 | echo |
254 | echo imapd.pem has been moved automatically to %{_certsdir} | |
255 | echo | |
256 | mv -f /var/lib/openssl/certs/imapd.pem %{_certsdir} | |
e0e5ebb0 | 257 | fi |
df4be8ad | 258 | if [ -f /etc/sysconfig/courier-imap ]; then |
7ae1849a | 259 | . /etc/sysconfig/courier-imap |
572bd89a | 260 | for opt in `grep ^[^#] /etc/sysconfig/courier-imap |grep -v TLS_CERTFILE |grep -v MAILDIR |grep -v COURIERTLS |cut -d= -f1`; |
7ae1849a | 261 | do |
262 | eval opt2=\$$opt | |
263 | sed -i s/^$opt=.*/"$opt=\"$opt2\""/ %{_sysconfdir}/imapd | |
264 | sed -i s/^$opt=.*/"$opt=\"$opt2\""/ %{_sysconfdir}/imapd-ssl | |
265 | done | |
266 | sed -i s/^SSLADDRESS=.*/"SSLADDRESS=$ADDRESS_SSL"/ %{_sysconfdir}/imapd-ssl | |
267 | sed -i s/^SSLPORT=.*/"SSLPORT=$PORTS_SSL"/ %{_sysconfdir}/imapd-ssl | |
268 | sed -i s!^MAILDIRPATH=.*!"MAILDIRPATH=\"$MAILDIR\""! %{_sysconfdir}/imapd-ssl | |
269 | sed -i s!^MAILDIRPATH=.*!"MAILDIRPATH=\"$MAILDIR\""! %{_sysconfdir}/imapd | |
270 | echo | |
271 | echo IMAPD config file has been rewriten to %{_sysconfdir}/imapd,imapd-ssl | |
272 | echo please look at them | |
273 | echo | |
df4be8ad | 274 | fi |
7517a9c9 | 275 | %service -q courier-imap restart |
7873775a | 276 | |
edf18efc AA |
277 | %triggerin -- %{name} < 3.0.6 |
278 | . %{_sysconfdir}/imapd-ssl | |
279 | if [ $TLS_CACHEFILE = "/var/couriersslcache" ]; then | |
7ae1849a | 280 | sed -i s/^TLS_CACHEFILE=.*/"TLS_CACHEFILE=\/var\/spool\/courier-imap\/couriersslcache"/ %{_sysconfdir}/imapd-ssl |
edf18efc AA |
281 | fi |
282 | ||
542cc330 AA |
283 | %triggerin -n %{name}-common -- %{name}-userdb |
284 | echo | |
285 | echo courier-imap-userdb is obsolete | |
286 | echo install courier-authlib-userdb package | |
287 | echo | |
288 | ||
ca08ad0f AA |
289 | %triggerin -n %{name}-common -- %{name}-common < 3.0.5 |
290 | /sbin/chkconfig --del authdaemon | |
e3496a0a | 291 | if [ -f /var/lock/subsys/authdaemon ]; then |
7ae1849a | 292 | kill `cat /var/lib/authdaemon/pid` |
293 | rm -f /var/lock/subsys/authdaemon | |
e3496a0a | 294 | fi |
df4be8ad | 295 | if [ -f /etc/sysconfig/authdaemon ]; then |
7ae1849a | 296 | . /etc/sysconfig/authdaemon |
297 | sed -i s/^version.*/version=authdaemond.$METHOD/ %{_sysconfdir}/authdaemonrc | |
df4be8ad | 298 | fi |
51057bba | 299 | echo |
df4be8ad | 300 | echo Changes to version 3.0.5 : |
91c3446c | 301 | echo - config files has been split and moved to %{_sysconfdir} |
df4be8ad AA |
302 | echo - certificates directory has changed to %{_certsdir} |
303 | echo | |
ca08ad0f | 304 | |
8a084354 | 305 | %post pop3 |
0e7557ae | 306 | /sbin/chkconfig --add courier-pop3 |
b82224e8 | 307 | /sbin/chkconfig --add courier-pop3-ssl |
23f7e657 | 308 | /sbin/chkconfig --del courier-imap-pop3 >/dev/null 2>&1 || : |
95c9646d | 309 | if [ -f /var/lock/subsys/courier-imap-pop3 ]; then |
7517a9c9 ER |
310 | /sbin/service courier-imap-pop3 stop >&2 |
311 | /sbin/service courier-pop3 start >&2 | |
b82224e8 | 312 | else |
7517a9c9 | 313 | %service courier-pop3 restart "courier-pop3 daemon" |
b82224e8 | 314 | fi |
7517a9c9 | 315 | %service courier-pop3-ssl restart "courier-pop3-ssl daemon" |
b82224e8 | 316 | |
8a084354 | 317 | %preun pop3 |
7873775a | 318 | if [ "$1" = "0" ]; then |
7517a9c9 | 319 | %service courier-pop3 stop |
0e7557ae | 320 | /sbin/chkconfig --del courier-pop3 |
7517a9c9 ER |
321 | %service courier-pop3-ssl stop |
322 | /sbin/chkconfig --del courier-pop3-ssl | |
7873775a | 323 | fi |
8a084354 | 324 | |
e0e5ebb0 AA |
325 | %triggerin -n %{name}-pop3 -- %{name}-pop3 < 3.0.5 |
326 | if [ -f /var/lib/openssl/certs/pop3d.pem ]; then | |
7ae1849a | 327 | echo |
328 | echo pop3d.pem has been moved automatically to %{_certsdir} | |
329 | echo | |
330 | mv -f /var/lib/openssl/certs/pop3d.pem %{_certsdir} | |
e0e5ebb0 | 331 | fi |
df4be8ad | 332 | if [ -f /etc/sysconfig/courier-pop3 ]; then |
7ae1849a | 333 | . /etc/sysconfig/courier-pop3 |
572bd89a | 334 | for opt in `grep ^[^#] /etc/sysconfig/courier-pop3 |grep -v TLS_CERTFILE |grep -v MAILDIR |grep -v COURIERTLS |cut -d= -f1`; |
7ae1849a | 335 | do |
336 | eval opt2=\$$opt | |
337 | sed -i s/^$opt=.*/"$opt=\"$opt2\""/ %{_sysconfdir}/pop3d | |
338 | sed -i s/^$opt=.*/"$opt=\"$opt2\""/ %{_sysconfdir}/pop3d-ssl | |
339 | done | |
340 | sed -i s!^MAILDIRPATH=.*!"MAILDIRPATH=\"$MAILDIR\""! %{_sysconfdir}/pop3d-ssl | |
341 | sed -i s!^MAILDIRPATH=.*!"MAILDIRPATH=\"$MAILDIR\""! %{_sysconfdir}/pop3d | |
342 | echo | |
343 | echo POP3D config file has been rewriten to %{_sysconfdir}/{pop3d,pop3d-ssl} | |
344 | echo please look at them | |
345 | echo | |
df4be8ad | 346 | fi |
7517a9c9 | 347 | %service courier-pop3 restart |
ca08ad0f | 348 | |
edf18efc AA |
349 | %triggerin -n %{name}-pop3 -- %{name}-pop3 < 3.0.6 |
350 | . %{_sysconfdir}/pop3d-ssl | |
351 | if [ $TLS_CACHEFILE = "/var/couriersslcache" ]; then | |
7ae1849a | 352 | sed -i s/^TLS_CACHEFILE=.*/"TLS_CACHEFILE=\/var\/spool\/courier-imap\/couriersslcache"/ %{_sysconfdir}/pop3d-ssl |
edf18efc AA |
353 | fi |
354 | ||
55311f1f | 355 | %files |
27b28430 | 356 | %defattr(644,root,root,755) |
91c3446c | 357 | %doc libs/maildir/README.sharedfolders.txt libs/imap/README.proxy libs/tcpd/README.couriertls |
2bc65701 AA |
358 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/imap |
359 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.imap | |
360 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd | |
361 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl | |
362 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf | |
ca08ad0f | 363 | %attr(754,root,root) /etc/rc.d/init.d/courier-imap |
b82224e8 | 364 | %attr(754,root,root) /etc/rc.d/init.d/courier-imap-ssl |
edf18efc AA |
365 | %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared |
366 | %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp | |
4a1a3688 | 367 | %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shared/index |
8a084354 | 368 | %attr(755,root,root) %{_bindir}/imapd |
08c59bca | 369 | %attr(755,root,root) %{_bindir}/maildiracl |
0b36f9b4 | 370 | %attr(755,root,root) %{_bindir}/maildirkw |
91c3446c | 371 | %attr(755,root,root) %{_bindir}/makeimapaccess |
8a084354 | 372 | %attr(755,root,root) %{_sbindir}/imaplogin |
373 | %attr(755,root,root) %{_sbindir}/mkimapdcert | |
08c59bca AA |
374 | %attr(755,root,root) %{_sbindir}/sharedindexinstall |
375 | %attr(755,root,root) %{_sbindir}/sharedindexsplit | |
91c3446c JB |
376 | %attr(755,root,root) %{_libexecdir}/courier-imap/imapd.rc |
377 | %attr(755,root,root) %{_libexecdir}/courier-imap/imapd-ssl.rc | |
08c59bca | 378 | %{_mandir}/man1/maildiracl.1* |
0b36f9b4 | 379 | %{_mandir}/man1/maildirkw.1* |
91c3446c JB |
380 | %{_mandir}/man8/imapd.8* |
381 | %{_mandir}/man8/makeimapaccess.8* | |
382 | %{_mandir}/man8/mkimapdcert.8* | |
8a084354 | 383 | |
384 | %files common | |
385 | %defattr(644,root,root,755) | |
91c3446c | 386 | %doc AUTHORS COPYING INSTALL NEWS README README.imap libs/imap/{BUGS,ChangeLog} libs/maildir/README.maildirquota.txt |
48ce94f2 | 387 | %attr(751,root,root) %dir %{_sysconfdir} |
43beb1b2 | 388 | %attr(750,root,root) %dir %{_certsdir} |
ae571610 | 389 | %attr(770,daemon,daemon) %dir %{_localstatedir} |
91c3446c | 390 | %dir %{_libexecdir}/courier-imap |
8a084354 | 391 | %{_sysconfdir}/quotawarnmsg.example |
392 | %attr(755,root,root) %{_bindir}/couriertls | |
91c3446c JB |
393 | %attr(755,root,root) %{_sbindir}/mkdhparams |
394 | %attr(755,root,root) %{_libexecdir}/courier-imap/couriertcpd | |
395 | %{_mandir}/man1/couriertcpd.1* | |
396 | %{_mandir}/man1/couriertls.1* | |
397 | %{_mandir}/man8/mkdhparams.8* | |
c9082a88 | 398 | |
c9082a88 | 399 | %files deliverquota |
400 | %defattr(644,root,root,755) | |
e781919f | 401 | %attr(755,root,root) %{_bindir}/deliverquota |
91c3446c | 402 | %{_mandir}/man8/deliverquota.8* |
c9082a88 | 403 | |
404 | %files maildirmake | |
405 | %defattr(644,root,root,755) | |
406 | %attr(755,root,root) %{_bindir}/maildirmake | |
91c3446c | 407 | %{_mandir}/man1/maildirmake.1* |
8a084354 | 408 | |
409 | %files pop3 | |
27b28430 | 410 | %defattr(644,root,root,755) |
2bc65701 AA |
411 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3 |
412 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.pop3 | |
413 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d | |
414 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl | |
415 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf | |
0e7557ae | 416 | %attr(754,root,root) /etc/rc.d/init.d/courier-pop3 |
b82224e8 | 417 | %attr(754,root,root) /etc/rc.d/init.d/courier-pop3-ssl |
8a084354 | 418 | %attr(755,root,root) %{_bindir}/pop3d |
419 | %attr(755,root,root) %{_sbindir}/mkpop3dcert | |
420 | %attr(755,root,root) %{_sbindir}/pop3login | |
91c3446c JB |
421 | %attr(755,root,root) %{_libexecdir}/courier-imap/pop3d.rc |
422 | %attr(755,root,root) %{_libexecdir}/courier-imap/pop3d-ssl.rc | |
423 | %{_mandir}/man8/courierpop3d.8* | |
424 | %{_mandir}/man8/mkpop3dcert.8* |