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