]> git.pld-linux.org Git - packages/courier.git/blob - courier.spec
perl 5.38.0 rebuild
[packages/courier.git] / courier.spec
1 # TODO
2 # - doesn't -webadmin need webserver integration?
3 # - use rc-scripts in %%post scriptlets
4 # - init.d script, pre and post for webmlm?
5 #
6 # Conditional build:
7 %bcond_without  fam             # with fam support
8 %bcond_with     gnutls          # GnuTLS instead of OpenSSL
9 %bcond_with     socks           # (Courier) Socks support
10 %bcond_with     tests           # without tests
11 #
12 Summary:        Courier mail server
13 Summary(pl.UTF-8):      Serwer poczty Courier
14 Name:           courier
15 Version:        0.78.2
16 Release:        3
17 License:        GPL v3 with OpenSSL exception
18 Group:          Networking/Daemons
19 Source0:        http://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
20 # Source0-md5:  6e8e8617cccc152c2b03f8faf3e5d2e7
21 Patch1:         %{name}-withoutfam.patch
22 Patch2:         %{name}-maildir.patch
23 Patch3:         %{name}-sendmail_dir.patch
24 Patch4:         %{name}-start_scripts.patch
25 Patch5:         %{name}-certs.patch
26 Patch6:         %{name}-filterbindir.patch
27 URL:            http://www.courier-mta.org/
28 BuildRequires:  autoconf >= 2.59
29 BuildRequires:  automake
30 BuildRequires:  courier-authlib-devel >= 0.61
31 %{?with_socks:BuildRequires:    courier-sox-devel}
32 BuildRequires:  courier-unicode-devel >= 2.0
33 BuildRequires:  db-devel
34 BuildRequires:  expect
35 %{?with_fam:BuildRequires:      fam-devel}
36 BuildRequires:  gettext-tools
37 # or gnupg2 when --with-gpg2
38 BuildRequires:  gnupg
39 %{?with_gnutls:BuildRequires:   gnutls-devel >= 3.0}
40 %{?with_gnutls:BuildRequires:   libgcrypt-devel}
41 %{?with_gnutls:BuildRequires:   libgpg-error-devel}
42 BuildRequires:  libidn-devel >= 0.0.0
43 BuildRequires:  libstdc++-devel >= 6:4.7
44 BuildRequires:  libtool >= 2:1.5
45 BuildRequires:  mailcap
46 BuildRequires:  openldap-devel >= 2.3.0
47 %{!?with_gnutls:BuildRequires:  openssl-devel >= 0.9.7d}
48 BuildRequires:  openssl-tools >= 0.9.7d
49 BuildRequires:  pam-devel
50 BuildRequires:  pcre-devel
51 BuildRequires:  perl-devel >= 5
52 BuildRequires:  pkgconfig
53 BuildRequires:  rpmbuild(macros) >= 1.268
54 BuildRequires:  sed >= 4.0
55 BuildRequires:  sysconftool
56 Requires(post,preun):   /sbin/chkconfig
57 # even if using OpenSSL libraries, Courier uses certtool from GnuTLS
58 Requires:       /usr/bin/certtool
59 Requires:       rc-scripts
60 Provides:       smtpdaemon
61 Obsoletes:      smtpdaemon
62 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
63
64 %define         _localstatedir  /var/spool/courier
65 %define         _sysconfdir     /etc/courier
66 %define         _certsdir       %{_sysconfdir}/certs
67
68 %define         _webapps        /etc/webapps
69 %define         _cgibindir      /usr/lib/cgi-bin
70 %define         _imagedir       %{_datadir}/courier/sqwebmail/images
71 %define         _imageurl       /webmail
72
73 %description
74 Courier is a fully functional mail server, that can completely take
75 over the mail services normally provided by sendmail, Qmail, or any
76 other mail server. Although Courier does not support all legacy
77 features of existing mail servers, the number of obsoleted functions
78 is very small, and there are better, and more robust, alternatives
79 available.
80
81 Courier implements many SMTP extensions: DSN, PIPELINING, 8BITMIME.
82 Courier also implements several new SMTP extensions for mailing list
83 management and spam filtering.
84
85 %description -l pl.UTF-8
86 Courier jest w pełni funkcjonalnym serwerem poczty, może całkowicie
87 zastąpić usługi pocztowe dawane przez sendmail, Qmaila i inne serwery.
88 Wprawdzie Courier nie ma wszystkich możliwości istniejących serwerów,
89 ilość nie obsługiwanych funkcji jest bardzo mała, i są dostępne lepsze
90 alternatywy.
91
92 Courier zawiera wiele rozszerzeń SMTP: DSN, PIPELINING, 8BITMIME. Ma
93 także nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
94 filtrowania spamu.
95
96 %package pop3d
97 Summary:        Courier Integrated POP3 server
98 Summary(pl.UTF-8):      Zintegrowany serwer POP3 do Couriera
99 Group:          Networking/Daemons/POP3
100 Requires(post): openssl-tools >= 0.9.7d
101 Requires:       %{name} = %{version}-%{release}
102 Provides:       pop3daemon
103 Obsoletes:      pop3daemon
104
105 %description pop3d
106 This package installs Courier mail server's integrated POP3 server,
107 which allows you to download mail from your mailbox using any POP3
108 client. Courier's POP3 server can only be used to download mail from
109 maildir mailboxes. This server does not support mailbox files. If you
110 do not need the ability to download your mail using a POP3 client, you
111 do not need to install this package.
112
113 %description pop3d -l pl.UTF-8
114 Ten pakiet zawiera zintegrowany serwer POP3 do Couriera, pozwalający
115 na ściąganie poczty ze skrzynki przy pomocy dowolnego klienta POP3.
116 Serwer POP3 Couriera może być używany tylko ze skrzynkami Maildir, nie
117 obsługuje skrzynek w postaci pojedynczych plików.
118
119 %package imapd
120 Summary:        Courier Integrated IMAP server
121 Summary(pl.UTF-8):      Zintegrowany serwer IMAP do Couriera
122 Group:          Networking/Daemons
123 Requires(post): openssl-tools >= 0.9.7d
124 Requires:       %{name} = %{version}-%{release}
125 Obsoletes:      courier-imap
126 Obsoletes:      courier-imap-common
127
128 %description imapd
129 This package installs Courier mail server's integrated IMAP server. If
130 you do not need the ability to download your mail using an IMAP mail
131 client, you do not need to install this package. Courier's IMAP server
132 can only be used to download mail from maildir mailboxes. This server
133 does not support mailbox files.
134
135 This package requires that Courier must be already installed, this is
136 NOT the standalone version of the Courier-IMAP server, and you cannot
137 install both this package, and the standalone version of Courier-IMAP.
138 If you have the standalone version of the Courier-IMAP server already
139 installed, installing this package will automatically remove the
140 standalone version.
141
142 %description imapd -l pl.UTF-8
143 Ten pakiet zawiera zintegrowany serwer IMAP do Couriera. Pozwala
144 ściągać pocztę przy pomocy klienta IMAP. Serwer IMAP Couriera może być
145 używany tylko ze skrzynkami Maildir, nie obsługuje skrzynek w postaci
146 pojedynczych plików.
147
148 Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja
149 serwera Courier-IMAP. Nie można też instalować jednocześnie tego
150 pakietu i samodzielnej wersji Courier-IMAP. Zainstalowanie tego
151 pakietu automatycznie odinstaluje Courier-IMAP jeśli był zinstalowany.
152
153 %package webadmin
154 Summary:        Courier Integrated HTTP administraton panel
155 Summary(pl.UTF-8):      Panel administracyjny przez HTTP dla Couriera
156 Group:          Networking/Daemons
157 Requires:       %{name} = %{version}-%{release}
158 Requires:       filesystem >= 3.0-11
159 Requires:       webapps
160 Requires:       webserver = apache
161 Conflicts:      apache-base < 2.2.0-8
162 Conflicts:      apache1 < 1.3.34-5.11
163
164 %description webadmin
165 This is a web-based administration tool. Webadmin is a web CGI
166 application.
167
168 %description webadmin -l pl.UTF-8
169 Webadmin jest narzędziem administracyjnym obsługiwanym przez WWW.
170
171 %package webmail
172 Summary:        Courier Integrated HTTP (webmail) server
173 Summary(pl.UTF-8):      Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
174 Group:          Networking/Daemons
175 Requires:       %{name} = %{version}-%{release}
176 Requires:       filesystem >= 3.0-11
177 Requires:       webapps
178 Requires:       webserver = apache
179 Conflicts:      apache-base < 2.2.0-8
180 Conflicts:      apache1 < 1.3.34-5.11
181
182 %description webmail
183 This package installs Courier mail server's integrated HTTP webmail
184 server. If you do not need the ability to access your mail using a web
185 browser, you do not need to install this package. Courier's webmail
186 server can only be used to download mail from maildir mailboxes. This
187 server does not support mailbox files.
188
189 This is the same server that's distributed separately under the name
190 of SqWebMail, however its configuration is customized for the Courier
191 mail server.
192
193 %description webmail -l pl.UTF-8
194 Ten pakiet zawiera zintegrowany serwer poczty przez HTTP (webmail) dla
195 Couriera, pozwalający na dostęp do poczty za pomocą przeglądarki WWW.
196 Serwer webmail Couriera może być używany tylko ze skrzynkami Maildir,
197 nie obsługuje skrzynek w postaci pojedynczych plików.
198
199 Jest to ten sam serwer, co dystrybuowany oddzielnie pod nazwą
200 SqWebMail, ale jego konfiguracja jest dostosowana do serwera Courier.
201
202 %package webmlm
203 Summary:        Courier web-based access to some couriermlm commands
204 Summary(pl.UTF-8):      Dostęp WWW do niektórych poleceń couriermlm do Couriera
205 Group:          Networking/Daemons
206 Requires:       %{name} = %{version}-%{release}
207 Requires:       filesystem >= 3.0-11
208 Requires:       webapps
209 Requires:       webserver = apache
210 Conflicts:      apache-base < 2.2.0-8
211 Conflicts:      apache1 < 1.3.34-5.11
212
213 %description webmlm
214 WebMLM is a service that offers an alternative web-based access to
215 some couriermlm commands, as an alternative to submitting them via
216 E-mail.
217
218 %description webmlm -l pl.UTF-8
219 WebMLM to serwis oferujący dostęp WWW do wybranych poleceń couriermlm
220 jako alternatywę do wysyłania ich poprzez e-mail.
221
222 %package maildir-tools
223 Summary:        Tools for mail folders in Maildir format
224 Summary(pl.UTF-8):      Narzędzia do zarządzania skrzynkami Maildir
225 Group:          Applications/Mail
226 Requires:       %{name} = %{version}-%{release}
227
228 %description maildir-tools
229 This package contains tools for mail folders in Maildir format.
230
231 %description maildir-tools -l pl.UTF-8
232 Ten pakiet zawiera narzędzia do zarządzania folderami w formacie
233 Maildir.
234
235 %package mlm
236 Summary:        Courier Integrated Mailing List Manager
237 Summary(pl.UTF-8):      Zintegrowany zarządca list dyskusyjnych do Couriera
238 Group:          Applications/Mail
239 Requires:       %{name} = %{version}-%{release}
240
241 %description mlm
242 This package installs couriermlm - a mailing list manager for the
243 Courier mail server. If you do not need the ability to manage mailing
244 lists, you do not need to install this package.
245
246 couriermlm is used to set up, maintain, and run a mailing list.
247 couriermlm automatically processes subscription and unsubscription
248 requests, and removes undeliverable addresses from the subscription
249 rolls. Mailing lists managed by couriermlm require zero human
250 administrative oversight. couriermlm supports digests, write-only
251 posting aliases, and moderated mailing lists.
252
253 %description mlm -l pl.UTF-8
254 Ten pakiet zawiera couriermlm - program do zarządzania listami
255 dyskusyjnymi dla Couriera. couriermlm jest używany do konfigurowania,
256 zarządzania i prowadzenia pocztowej listy dyskusyjnej. Automatycznie
257 obsługuje żądania zapisywania i wypisywania oraz usuwa z listy
258 niedziałające adresy subskrybentów. Listy obsługiwane przez couriermlm
259 nie wymagają pracy administratora. couriermlm obsługuje digesty,
260 aliasy pocztowe tylko do wysyłania i listy moderowane.
261
262 %package maildrop
263 Summary:        Courier Integrated mail filter
264 Summary(pl.UTF-8):      Zintegrowany filtr poczty do Couriera
265 Group:          Applications/Mail
266 Requires:       %{name} = %{version}-%{release}
267
268 %description maildrop
269 This package installs Courier mail server's integrated mail filter.
270 You need to install this package if you want to be able to filter your
271 incoming mail.
272
273 %description maildrop -l pl.UTF-8
274 Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
275 potrzebny do filtrowania przychodzącej poczty.
276
277 %package fax
278 Summary:        Courier fax support
279 Summary(pl.UTF-8):      Obsługa faksów dla Couriera
280 Group:          Applications/Mail
281 Requires:       %{name} = %{version}-%{release}
282 Requires:       ghostscript
283 Requires:       groff
284 Requires:       netpbm-progs
285 #Requires:      /usr/bin/sendfax
286 # pdftops
287 Suggests:       poppler-progs
288
289 %description fax
290 This package adds support for faxing E-mail messages. It allows to
291 send fax messages simply by sending an E-mail to phonenumber@fax.
292
293 %description fax -l pl.UTF-8
294 Ten pakiet dodaje obsługę faksowania listów elektronicznych. Pozwala
295 wysyłać faksy wysyłając po prostu e-maila na numertelefonu@fax.
296
297 %prep
298 %setup -q
299 %{!?with_fam:%patch1 -p1}
300 %patch2 -p1
301 %patch3 -p1
302 %patch4 -p1
303 %patch5 -p1
304 %patch6 -p1
305
306 cat >apache.conf <<EOF
307 Alias /webmail %{_imagedir}
308 <Directory %{_imagedir}>
309         AllowOverride None
310         Options None
311         Allow from all
312 </Directory>
313 EOF
314
315 %build
316 %{__libtoolize}
317 # Change Makefile.am files and force recreate Makefile.in's.
318 OLDDIR=`pwd`
319 find -type f -a -name configure.ac | while read FILE; do
320         cd "`dirname "$FILE"`"
321
322         if [ -f Makefile.am ]; then
323                 sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am
324         fi
325
326         %{__aclocal}
327         %{__autoconf}
328         if grep -q AC_CONFIG_HEADER configure.ac; then
329                 %{__autoheader}
330         fi
331         %{__automake}
332
333         cd "$OLDDIR"
334 done
335
336 %configure \
337         CERTTOOL=/usr/bin/certtool \
338         GROPS=/usr/bin/grops \
339         GS=/usr/bin/gs \
340         PNMSCALE=/usr/bin/pnmscale \
341         OPENSSL=/usr/bin/openssl \
342         SENDFAX=/usr/bin/sendfax \
343         --datadir=%{_datadir}/courier \
344         --enable-imagedir=%{_imagedir} \
345         --enable-imageurl=%{_imageurl} \
346         --enable-mimetypes=/etc/mime.types \
347         --with-certsdir=%{_certsdir} \
348         --with-db=db \
349         %{?with_gnutls:--with-gnutls} \
350         --with-mailer=%{_sbindir}/sendmail \
351         --with-mailgid=2 \
352         --with-mailgroup=daemon \
353         --with-mailuid=2 \
354         --with-mailuser=daemon \
355         %{!?with_socks:--without-socks}
356
357 %{__make} -j1
358 %{?with_tests:%{__make} -j1 check}
359
360 %install
361 rm -rf $RPM_BUILD_ROOT
362 umask 022
363 install -d -p $RPM_BUILD_ROOT/etc/{cron.hourly,pam.d,rc.d/init.d} \
364         $RPM_BUILD_ROOT{/usr/lib,%{_certsdir},%{_cgibindir},%{_webapps}/courier-webmail,%{_sysconfdir}/hosteddomains}
365
366 %{__make} -j1 install \
367         DESTDIR=$RPM_BUILD_ROOT
368
369 # fix pam problem
370 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
371 for X in imap esmtp pop3 webmail calendar
372 do
373         cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<'EOF'
374 #%PAM-1.0
375 auth    required        pam_unix.so shadow nullok
376 account required        pam_unix.so
377 session required        pam_unix.so
378 EOF
379 done
380
381 %{__make} install-perms
382
383 # Move webmail and webadmin to cgibindir
384 %{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
385         $RPM_BUILD_ROOT%{_cgibindir}/webmail
386 %{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webadmin \
387         $RPM_BUILD_ROOT%{_cgibindir}/webadmin
388
389 # install a cron job to clean out webmail's cache
390 install libs/sqwebmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
391
392 # Move .html documentation to docdir; use common directory for all subpackages for references to work.
393 install -d $RPM_BUILD_ROOT%{_docdir}
394 %{__mv} $RPM_BUILD_ROOT%{_datadir}/courier/htmldoc $RPM_BUILD_ROOT%{_docdir}/courier
395
396 # Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
397 # package, so after it's installed they should be runnable.
398
399 sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
400 sed -i 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
401 sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
402 sed -i 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
403
404 # Want to have esmtpd running by default
405 sed -i 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
406
407 # run script from install-configure (make config files)
408 for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
409 do %{__perl} ././sysconftool $RPM_BUILD_ROOT$confdist
410 done
411
412 # make locals, esmtpacceptmailfor.dir/default
413 touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
414 touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
415
416 # file with important options
417 cat > $RPM_BUILD_ROOT%{_sysconfdir}/bofh <<EOF
418 # enable this option if you want to pass bad converted mails
419 # opt BOFHBADMIME=accept
420 EOF
421
422 # Make password and unsecureok (files for webadmin)
423 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
424 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
425
426 # create file me to put localdomain
427 touch $RPM_BUILD_ROOT%{_sysconfdir}/me
428
429 # create calendarmode
430 touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
431
432 install courier.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier
433
434 # sendmail soft links
435 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
436
437 # fix rmail link (points to non-existing sendmail in %{_bindir}
438 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
439
440 # for apache
441 cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/apache.conf
442 cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/httpd.conf
443
444 # makedat is packaged in courier-authlib
445 %{__rm} $RPM_BUILD_ROOT%{_bindir}/makedat \
446         $RPM_BUILD_ROOT%{_libexecdir}/courier/makedatprog \
447         $RPM_BUILD_ROOT%{_datadir}/courier/makedat \
448         $RPM_BUILD_ROOT%{_mandir}/man1/makedat.1
449 # remove unpackaged files
450 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
451
452 %clean
453 rm -rf $RPM_BUILD_ROOT
454
455 %triggerin -- courier < 0.45.5
456 echo
457 echo Directory with certificates has changed to %{_certsdir}
458 echo
459
460 %post
461 if [ "$1" = "1" ]; then
462         [ -s %{_sysconfdir}/me ] || /bin/hostname -f > %{_sysconfdir}/me
463         %banner -e %{name} <<'EOF'
464
465 Now courier will refuse to accept SMTP messages except to localhost
466 add hosts to %{_sysconfdir}/esmtpacceptmailfor.dir/default
467 run makeacceptmailfor
468
469 Add hosts to %{_sysconfdir}/locals you want to accept mail for
470 run makealiases
471
472 Enter user, who should receive mail for root, mailer-daemon and postmaster
473 into %{_sysconfdir}/aliases/system
474
475 Default maildir is in ~/Mail/Maildir
476
477 EOF
478 fi
479
480 /sbin/chkconfig --add courier
481 %service courier restart
482
483 %preun
484 if [ "$1" = "0" ]; then
485         %service courier stop
486         /sbin/chkconfig --del courier
487 fi
488
489 %post imapd
490 # TODO: use rc-scripts here
491 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
492         %{_sbindir}/imapd stop
493         %{_sbindir}/imapd start
494 else
495         echo
496         echo 'Type "%{_sbindir}/imapd start" to start imapd server'
497         echo
498 fi
499 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
500         %{_sbindir}/imapd-ssl stop
501         %{_sbindir}/imapd-ssl start
502 else
503         echo
504         echo Type "%{_sbindir}/imapd-ssl start" to start imapd-ssl server
505         echo
506 fi
507
508 %preun imapd
509 if [ "$1" = "0" ]; then
510         if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
511                 %{_sbindir}/imapd stop
512         fi
513         if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
514                 %{_sbindir}/imapd-ssl stop
515         fi
516 fi
517
518 %post pop3d
519 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
520         %{_sbindir}/pop3d stop
521         %{_sbindir}/pop3d start
522 else
523         echo
524         echo 'Type "%{_sbindir}/pop3d start" to start pop3d server'
525         echo
526 fi
527 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
528         %{_sbindir}/pop3d-ssl stop
529         %{_sbindir}/pop3d-ssl start
530 else
531         echo
532         echo 'Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server'
533         echo
534 fi
535
536 %preun pop3d
537 if [ "$1" = "0" ]; then
538         if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
539                 %{_sbindir}/pop3d stop
540         fi
541         if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
542                 %{_sbindir}/pop3d-ssl stop
543         fi
544 fi
545
546 %post webadmin
547 if [ "$1" = "1" ]; then
548         echo
549         echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password
550         echo
551 fi
552
553 %post webmail
554 if [ "$1" = "1" ]; then
555         echo
556         echo If you want to have calendar starting by default then
557         echo put word net to %{_sysconfdir}/calendarmode
558         echo
559 fi
560 if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
561         %{_sbindir}/webmaild stop
562         %{_sbindir}/webmaild start
563 else
564         echo
565         echo 'Type "%{_sbindir}/webmaild start" to start webmail server'
566         echo
567 fi
568
569 %preun webmail
570 if [ "$1" = "0" ]; then
571         if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
572                 %{_sbindir}/webmaild stop
573         fi
574 fi
575
576 %triggerin webmail -- apache1 < 1.3.37-3, apache1-base
577 %webapp_register apache courier-webmail
578
579 %triggerun webmail -- apache1 < 1.3.37-3, apache1-base
580 %webapp_unregister apache courier-webmail
581
582 %triggerin webmail -- apache < 2.2.0, apache-base
583 %webapp_register httpd courier-webmail
584
585 %triggerun webmail -- apache < 2.2.0, apache-base
586 %webapp_unregister httpd courier-webmail
587
588 %triggerpostun webmail -- courier-webmail < 0.52.2-0.2
589 # migrate from apache-config macros
590 if [ -f /etc/courier/apache-courier.conf.rpmsave ]; then
591         if [ -d /etc/apache/webapps.d ]; then
592                 cp -f %{_webapps}/courier-webmail/apache.conf{,.rpmnew}
593                 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/apache.conf
594         fi
595
596         if [ -d /etc/httpd/webapps.d ]; then
597                 cp -f %{_webapps}/courier-webmail/httpd.conf{,.rpmnew}
598                 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/httpd.conf
599         fi
600         rm -f /etc/courier/apache-courier.conf.rpmsave
601 fi
602
603 # migrating apache-config symlinks
604 if [ -L /etc/apache/conf.d/99_courier.conf ]; then
605         rm -f /etc/apache/conf.d/99_courier.conf
606         /usr/sbin/webapp register apache courier-webmail
607         %service -q apache reload
608 fi
609 if [ -L /etc/httpd/httpd.conf/99_courier.conf ]; then
610         rm -f /etc/httpd/httpd.conf/99_courier.conf
611         /usr/sbin/webapp register httpd courier-webmail
612         %service -q httpd reload
613 fi
614
615 %files
616 %defattr(644,root,root,755)
617 %doc AUTHORS BENCHMARKS COPYING ChangeLog INSTALL NEWS README TODO
618 # common:
619 # couriertcpd, couriertls are common TCP/TLS wrappers
620 # makemime used by sqwebmail, useful for maildrop
621 # reformime used by mlm, useful for maildrop
622 # deliverquota, sharedindex* are common for maildir
623 %attr(755,root,root) %{_bindir}/couriertls
624 %attr(755,root,root) %{_bindir}/deliverquota
625 %attr(755,root,root) %{_bindir}/makemime
626 %attr(755,root,root) %{_bindir}/mimegpg
627 %attr(755,root,root) %{_bindir}/reformime
628 %attr(755,root,root) %{_sbindir}/couriertcpd
629 %attr(755,root,root) %{_sbindir}/mkdhparams
630 %attr(755,root,root) %{_sbindir}/sharedindexinstall
631 %attr(755,root,root) %{_sbindir}/sharedindexsplit
632 %dir %{_libexecdir}/courier
633 %dir %{_datadir}/courier
634 %attr(755,root,root) %{_datadir}/courier/mkdhparams
635 %attr(755,daemon,daemon) %dir %{_sysconfdir}
636 %attr(750,daemon,daemon) %dir %{_certsdir}
637 %dir %{_docdir}/courier
638 %{_docdir}/courier/bg.png
639 %{_docdir}/courier/japanese_flag.png
640 %{_docdir}/courier/icon.gif
641 %{_docdir}/courier/manpage.css
642 %{_docdir}/courier/draft-varshavchik-*-smtpext.txt
643 %{_docdir}/courier/FAQ.html
644 %{_docdir}/courier/couriertcpd.html
645 %{_docdir}/courier/couriertls.html
646 %{_docdir}/courier/deliverquota.html
647 %{_docdir}/courier/documentation.html
648 %{_docdir}/courier/download.html
649 %{_docdir}/courier/index.html
650 %{_docdir}/courier/install.html
651 %{_docdir}/courier/layout.html
652 %{_docdir}/courier/links.html
653 %{_docdir}/courier/makedat.html
654 %{_docdir}/courier/makemime.html
655 %{_docdir}/courier/menu.html
656 %{_docdir}/courier/mimegpg.html
657 %{_docdir}/courier/mkdhparams.html
658 %{_docdir}/courier/modules.html
659 %{_docdir}/courier/reformime.html
660 %{_docdir}/courier/repo.html
661 %{_docdir}/courier/rpm.html
662 %{_docdir}/courier/socks.html
663 %{_docdir}/courier/status.html
664 %{_docdir}/courier/structures.html
665 %{_mandir}/man1/couriertcpd.1*
666 %{_mandir}/man1/couriertls.1*
667 %{_mandir}/man1/makemime.1*
668 %{_mandir}/man1/reformime.1*
669 %{_mandir}/man1/mimegpg.1*
670 %{_mandir}/man8/deliverquota.8*
671 %{_mandir}/man8/mkdhparams.8*
672
673 # MTA
674 %attr(6555,daemon,daemon) %{_bindir}/cancelmsg
675 %attr(755,root,root) %{_bindir}/courier-config
676 %attr(755,root,root) %{_bindir}/dotforward
677 %attr(2755,daemon,daemon) %{_bindir}/mailq
678 %attr(4755,root,root) %{_bindir}/rmail
679 %attr(755,root,root) %{_bindir}/testmxlookup
680 %attr(755,root,root) %{_sbindir}/aliaslookup
681 %attr(755,root,root) %{_sbindir}/courier
682 %attr(754,root,daemon) %{_sbindir}/makealiases
683 %attr(755,root,root) %{_sbindir}/makehosteddomains
684 %attr(755,root,root) %{_sbindir}/showconfig
685 %attr(754,root,daemon) %{_sbindir}/showmodules
686 %attr(4755,root,root) %{_sbindir}/sendmail
687 %attr(755,root,root) /usr/lib/sendmail
688 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliascombine
689 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliascreate
690 %attr(754,daemon,daemon) %{_libexecdir}/courier/aliasexp
691 %attr(754,daemon,daemon) %{_libexecdir}/courier/courierd
692 %attr(754,daemon,daemon) %{_libexecdir}/courier/submit
693 %attr(4554,daemon,daemon) %{_libexecdir}/courier/submitmkdir
694 %attr(755,root,root) %{_datadir}/courier/courierctl.start
695 %attr(754,root,daemon) %{_datadir}/courier/makealiases
696 %attr(755,root,root) %{_datadir}/courier/makehosteddomains
697 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
698 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
699 %attr(754,root,root) /etc/rc.d/init.d/courier
700 %attr(755,bin,bin) %dir %{_localstatedir}
701 %attr(755,daemon,daemon) %dir %{_localstatedir}/track
702 %{_docdir}/courier/aliases.html
703 %{_docdir}/courier/aliaslookup.html
704 %{_docdir}/courier/cancelmsg.html
705 %{_docdir}/courier/courier.html
706 %{_docdir}/courier/courierd.html
707 %{_docdir}/courier/dot-courier.html
708 %{_docdir}/courier/dot-forward.html
709 %{_docdir}/courier/mailq.html
710 %{_docdir}/courier/makealiases.html
711 %{_docdir}/courier/makehosteddomains.html
712 %{_docdir}/courier/queue.html
713 %{_docdir}/courier/sendmail.html
714 %{_docdir}/courier/submit.html
715 %{_docdir}/courier/testmxlookup.html
716 %{_mandir}/man1/cancelmsg.1*
717 %{_mandir}/man1/dot-forward.1*
718 %{_mandir}/man1/dotforward.1*
719 %{_mandir}/man1/mailq.1*
720 %{_mandir}/man1/rmail.1*
721 %{_mandir}/man1/sendmail.1*
722 %{_mandir}/man1/testmxlookup.1*
723 %{_mandir}/man5/dot-courier.5*
724 %{_mandir}/man7/localmailfilter.7*
725 %{_mandir}/man8/aliaslookup.8*
726 %{_mandir}/man8/courier.8*
727 %{_mandir}/man8/makealiases.8*
728 %{_mandir}/man8/makehosteddomains.8*
729 %{_mandir}/man8/submit.8*
730 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bofh
731 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/courierd
732 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/enablefiltering
733 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals
734 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/me
735 %attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
736 %attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
737 %attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases/system
738 %attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
739 %attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
740 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smtpaccess/default
741 %{_sysconfdir}/quotawarnmsg.example
742 %dir %{_datadir}/courier/courierwebadmin
743 %{_datadir}/courier/courierwebadmin/admin-15*
744
745 # LDAP configuration
746 %attr(744,daemon,daemon) %{_sbindir}/courierldapaliasd
747 %attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaliasrc
748 %{_docdir}/courier/courierldapaliasd.html
749 %{_mandir}/man8/courierldapaliasd.8*
750
751 # filters
752 %attr(755,root,root) %{_bindir}/verifysmtp
753 %attr(754,root,daemon) %{_sbindir}/courierfilter
754 %attr(754,root,daemon) %{_sbindir}/filterctl
755 %attr(755,root,root) %{_libexecdir}/courier/courierfilter
756 %dir %{_libexecdir}/courier/filters
757 %attr(755,root,root) %{_libexecdir}/courier/filters/dupfilter
758 %attr(755,root,root) %{_libexecdir}/courier/filters/perlfilter
759 %attr(755,root,root) %{_libexecdir}/courier/filters/ratefilter
760 %attr(755,root,root) %{_libexecdir}/courier/filters/verifyfilter
761 %attr(754,root,daemon) %{_datadir}/courier/filterctl
762 %attr(755,root,root) %{_datadir}/courier/perlfilter-*.pl
763 %attr(755,root,root) %{_datadir}/courier/verifysender
764 %attr(755,root,root) %{_datadir}/courier/verifysenderfull
765 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
766 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
767 %attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
768 %attr(750,daemon,daemon) %dir %{_localstatedir}/filters
769 %attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
770 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
771 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
772 %{_docdir}/courier/courierfilter.html
773 %{_docdir}/courier/courierperlfilter.html
774 %{_docdir}/courier/dupfilter.html
775 %{_docdir}/courier/ratefilter.html
776 %{_docdir}/courier/verifyfilter.html
777 %{_mandir}/man8/courierfilter.8*
778 %{_mandir}/man8/courierperlfilter.8*
779 %{_mandir}/man8/dupfilter.8*
780 %{_mandir}/man8/filterctl.8*
781 %{_mandir}/man8/ratefilter.8*
782 %{_mandir}/man8/verifyfilter.8*
783 %{_mandir}/man8/verifysmtp.8*
784
785 # module.dsn
786 %dir %{_libexecdir}/courier/modules/dsn
787 %attr(755,root,root) %{_libexecdir}/courier/modules/dsn/courierdsn
788 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.dsn
789 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelayed.txt
790 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelivered.txt
791 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfailed.txt
792 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnrelayed.txt
793 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfooter.txt
794 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectnotice.txt
795 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectwarn.txt
796 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnheader.txt
797 %{_docdir}/courier/courierdsn.html
798
799 # module.esmtp
800 %attr(755,root,root) %{_bindir}/addcr
801 %attr(755,root,root) %{_sbindir}/courieresmtpd
802 %attr(755,root,root) %{_sbindir}/esmtpd
803 %attr(755,root,root) %{_sbindir}/esmtpd-msa
804 %attr(755,root,root) %{_sbindir}/esmtpd-ssl
805 %attr(755,root,root) %{_sbindir}/makeacceptmailfor
806 %attr(755,root,root) %{_sbindir}/makepercentrelay
807 %attr(755,root,root) %{_sbindir}/makesmtpaccess
808 %attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
809 %attr(755,root,root) %{_sbindir}/mkesmtpdcert
810 %dir %{_libexecdir}/courier/modules/esmtp
811 %attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtp
812 %attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtpd
813 %attr(755,root,root) %{_libexecdir}/courier/modules/esmtp/addcr
814 %attr(755,root,root) %{_datadir}/courier/esmtpd
815 %attr(755,root,root) %{_datadir}/courier/esmtpd-ssl
816 %attr(755,root,root) %{_datadir}/courier/makeacceptmailfor
817 %attr(755,root,root) %{_datadir}/courier/makepercentrelay
818 %attr(755,root,root) %{_datadir}/courier/makesmtpaccess
819 %attr(755,root,root) %{_datadir}/courier/mkesmtpdcert
820 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/esmtp
821 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.esmtp
822 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd
823 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-msa
824 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-ssl
825 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd.cnf
826 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpauthclient
827 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
828 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpacceptmailfor.dir/default
829 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
830 %{_docdir}/courier/esmtp.html
831 %{_docdir}/courier/esmtpd.html
832 %{_docdir}/courier/makeacceptmailfor.html
833 %{_docdir}/courier/makepercentrelay.html
834 %{_docdir}/courier/makesmtpaccess.html
835 %{_docdir}/courier/mkesmtpdcert.html
836 %{_mandir}/man8/esmtpd.8*
837 %{_mandir}/man8/esmtpd-msa.8*
838 %{_mandir}/man8/makeacceptmailfor.8*
839 %{_mandir}/man8/makepercentrelay.8*
840 %{_mandir}/man8/makesmtpaccess.8*
841 %{_mandir}/man8/makesmtpaccess-msa.8*
842 %{_mandir}/man8/mkesmtpdcert.8*
843
844 # module.local
845 %attr(755,root,root) %{_bindir}/preline
846 %dir %{_libexecdir}/courier/modules/local
847 %attr(755,root,root) %{_libexecdir}/courier/modules/local/courierdeliver
848 %attr(755,root,root) %{_libexecdir}/courier/modules/local/courierlocal
849 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.local
850 %{_docdir}/courier/local.html
851 %{_docdir}/courier/localmailfilter.html
852 %{_docdir}/courier/preline.html
853 %{_mandir}/man1/preline.1*
854
855 # module.uucp
856 %attr(755,root,root) %{_sbindir}/makeuucpneighbors
857 %dir %{_libexecdir}/courier/modules
858 %dir %{_libexecdir}/courier/modules/uucp
859 %attr(755,root,root) %{_libexecdir}/courier/modules/uucp/courieruucp
860 %attr(755,root,root) %{_datadir}/courier/makeuucpneighbors
861 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.uucp
862 %{_docdir}/courier/courieruucp.html
863 %{_mandir}/man8/courieruucp.8*
864 %{_mandir}/man8/makeuucpneighbors.8*
865
866 %files pop3d
867 %defattr(644,root,root,755)
868 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d
869 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf
870 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl
871 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3
872 %attr(755,root,root) %{_sbindir}/mkpop3dcert
873 %attr(755,root,root) %{_sbindir}/pop3d
874 %attr(755,root,root) %{_sbindir}/pop3d-ssl
875 %attr(755,root,root) %{_libexecdir}/courier/courierpop3d
876 %attr(755,root,root) %{_libexecdir}/courier/courierpop3login
877 %attr(755,root,root) %{_datadir}/courier/mkpop3dcert
878 %attr(755,root,root) %{_datadir}/courier/pop3d
879 %attr(755,root,root) %{_datadir}/courier/pop3d-ssl
880 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-45pop3.pl
881 %{_datadir}/courier/courierwebadmin/admin-45pop3.html
882 %{_docdir}/courier/courierpop3d.html
883 %{_docdir}/courier/mkpop3dcert.html
884 %{_docdir}/courier/pop3d.html
885 %{_mandir}/man8/courierpop3d.8*
886 %{_mandir}/man8/courierpop3login.8*
887 %{_mandir}/man8/mkpop3dcert.8*
888 %{_mandir}/man8/pop3d.8*
889 %{_mandir}/man8/pop3d-ssl.8*
890
891 %files imapd
892 %defattr(644,root,root,755)
893 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd
894 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl
895 %attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf
896 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/imap
897 %attr(755,root,root) %{_bindir}/imapd
898 %attr(755,root,root) %{_sbindir}/imapd
899 %attr(755,root,root) %{_sbindir}/imapd-ssl
900 %attr(755,root,root) %{_sbindir}/makeimapaccess
901 %attr(755,root,root) %{_sbindir}/mkimapdcert
902 %attr(755,root,root) %{_libexecdir}/courier/imaplogin
903 %attr(755,root,root) %{_datadir}/courier/imapd
904 %attr(755,root,root) %{_datadir}/courier/imapd-ssl
905 %attr(755,root,root) %{_datadir}/courier/makeimapaccess
906 %attr(755,root,root) %{_datadir}/courier/mkimapdcert
907 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-40imap.pl
908 %{_datadir}/courier/courierwebadmin/admin-40imap.html
909 %{_docdir}/courier/imapd.html
910 %{_docdir}/courier/makeimapaccess.html
911 %{_docdir}/courier/mkimapdcert.html
912 %{_mandir}/man8/imapd.8*
913 %{_mandir}/man8/makeimapaccess.8*
914 %{_mandir}/man8/mkimapdcert.8*
915
916 %files webadmin
917 %defattr(644,root,root,755)
918 # suid root to cgi-bin??? and it's not secured by apache config!
919 %attr(4755,root,root) %{_cgibindir}/webadmin
920 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
921 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
922 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
923 %attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/password
924 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/unsecureok
925 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-main.pl
926 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-save.pl
927 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-cancel.pl
928 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-[0235]*.pl
929 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-10password.pl
930 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/dumpenv.pl
931 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/webadmin.pl
932 %{_datadir}/courier/courierwebadmin/admin-[0235]*.html
933 %{_datadir}/courier/courierwebadmin/admin-10password.html
934 %{_datadir}/courier/courierwebadmin/admin-main.html
935 %{_datadir}/courier/courierwebadmin/admin-save.html
936 %{_datadir}/courier/courierwebadmin/login.html
937 %{_datadir}/courier/courierwebadmin/notsupp.html
938 %{_datadir}/courier/courierwebadmin/unsecure.html
939 %{_datadir}/courier/courierwebadmin/webadmin.pm
940
941 %files webmail
942 %defattr(644,root,root,755)
943 %doc libs/gpglib/README.html
944 %attr(755,root,root) %{_cgibindir}/webmail
945 %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
946 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/webmail
947 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/calendar
948 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/calendarmode
949 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaddressbook
950 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sqwebmaild
951 %attr(755,root,root) %{_sbindir}/webgpg
952 %attr(755,root,root) %{_sbindir}/webmaild
953 %attr(755,root,root) %{_libexecdir}/courier/pcpd
954 %attr(755,root,root) %{_libexecdir}/courier/sqwebmaild
955 %attr(755,root,root) %{_libexecdir}/courier/sqwebpasswd
956 %dir %{_datadir}/courier/sqwebmail
957 %dir %{_datadir}/courier/sqwebmail/html
958 %dir %{_datadir}/courier/sqwebmail/html/en-us
959 %{_datadir}/courier/sqwebmail/html/en
960 %{_datadir}/courier/sqwebmail/images
961 %config %{_datadir}/courier/sqwebmail/html/en-us/[CILT]*
962 %{_datadir}/courier/sqwebmail/html/en-us/*.html
963 %{_datadir}/courier/sqwebmail/html/en-us/*.txt
964 %attr(755,root,root) %{_datadir}/courier/sqwebmail/cleancache.pl
965 %attr(755,root,root) %{_datadir}/courier/sqwebmail/ldapsearch
966 %attr(755,root,root) %{_datadir}/courier/sqwebmail/sendit.sh
967 %attr(755,root,root) %{_datadir}/courier/sqwebmail/webgpg
968 %attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-47webmail.pl
969 %{_datadir}/courier/courierwebadmin/admin-47webmail.html
970 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar
971 %attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache
972 %attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private
973 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public
974 %attr(700,bin,bin) %dir %{_localstatedir}/webmail-logincache
975 %dir %attr(750,root,http) %{_webapps}/courier-webmail
976 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/apache.conf
977 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/httpd.conf
978 %{_docdir}/courier/pcp_README.html
979
980 %files webmlm
981 %defattr(644,root,root,755)
982 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webmlmrc
983 %attr(755,root,root) %{_bindir}/webmlmd
984 %attr(755,root,root) %{_bindir}/webmlmd.rc
985 %dir %{_libexecdir}/courier/webmail
986 %attr(755,root,root) %{_libexecdir}/courier/webmail/webmlm
987 %{_docdir}/courier/webmlmd.html
988 %{_mandir}/man1/webmlmd.1*
989
990 %files maildrop
991 %defattr(644,root,root,755)
992 %attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/maildrop
993 %attr(755,root,root) %{_bindir}/lockmail
994 %attr(755,root,root) %{_bindir}/mailbot
995 %attr(4755,root,root) %{_bindir}/maildrop
996 %attr(755,root,root) %{_bindir}/reformail
997 %{_docdir}/courier/lockmail.html
998 %{_docdir}/courier/mailbot.html
999 %{_docdir}/courier/maildrop*.html
1000 %{_docdir}/courier/reformail.html
1001 %{_mandir}/man1/lockmail.1*
1002 %{_mandir}/man1/mailbot.1*
1003 %{_mandir}/man1/maildrop.1*
1004 %{_mandir}/man1/reformail.1*
1005 %{_mandir}/man7/maildropex.7*
1006 %{_mandir}/man7/maildropfilter.7*
1007 %{_mandir}/man7/maildropgdbm.7*
1008
1009 %files maildir-tools
1010 %defattr(644,root,root,755)
1011 %doc libs/maildir/README.*.html
1012 %attr(755,root,root) %{_bindir}/maildirmake
1013 %attr(755,root,root) %{_bindir}/maildirkw
1014 %attr(755,root,root) %{_bindir}/maildiracl
1015 %{_docdir}/courier/maildir*.html
1016 %{_mandir}/man1/maildirmake.1*
1017 %{_mandir}/man1/maildirkw.1*
1018 %{_mandir}/man1/maildiracl.1*
1019 %{_mandir}/man5/maildir.5*
1020 %{_mandir}/man7/maildirquota.7*
1021
1022 %files mlm
1023 %defattr(644,root,root,755)
1024 %attr(755,root,root) %{_bindir}/couriermlm
1025 %{_datadir}/courier/couriermlm
1026 %{_docdir}/courier/couriermlm.html
1027 %{_mandir}/man1/couriermlm.1*
1028
1029 %files fax
1030 %defattr(644,root,root,755)
1031 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxcoverpage.tr
1032 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxnotifyrc
1033 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxrc
1034 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.fax
1035 %dir %{_libexecdir}/courier/modules/fax
1036 %attr(755,root,root) %{_libexecdir}/courier/modules/fax/courierfax
1037 %dir %{_datadir}/courier/faxmail
1038 %{_datadir}/courier/faxmail/*.filter
1039 %{_datadir}/courier/faxmail/coverpage
1040 %{_datadir}/courier/faxmail/init
1041 %{_datadir}/courier/faxmail/new_fax
1042 %{_docdir}/courier/courierfax.html
1043 %{_mandir}/man8/courierfax.8*
This page took 0.232393 seconds and 3 git commands to generate.