]> git.pld-linux.org Git - packages/courier.git/blob - courier.spec
f8a6659c2536cabb4e6a603e477d08ec8c451f71
[packages/courier.git] / courier.spec
1 #
2 # Conditional build:
3 %bcond_with     fam             # with fam support
4 #
5 Summary:        Courier mail server
6 Summary(pl):    Serwer poczty Courier
7 Name:           courier
8 Version:        0.45.6
9 Release:        2
10 License:        GPL
11 Group:          Networking/Daemons
12 Source0:        http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
13 # Source0-md5:  da08b5f7d2fc9f4a871a5584914011c6
14 Patch0:         %{name}-openssl-path.patch
15 Patch1:         %{name}-withoutfam.patch
16 Patch2:         %{name}-maildir.patch
17 Patch3:         %{name}-sendmail_dir.patch
18 Patch4:         %{name}-start_scripts.patch
19 Patch5:         %{name}-fix_build.patch
20 Patch6:         %{name}-certs.patch
21 URL:            http://www.courier-mta.org/
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  db-devel
25 BuildRequires:  expect
26 BuildRequires:  libstdc++-devel
27 BuildRequires:  libtool
28 BuildRequires:  mailcap
29 BuildRequires:  mysql-devel
30 BuildRequires:  openldap-devel
31 BuildRequires:  openssl-devel >= 0.9.7d
32 BuildRequires:  openssl-tools >= 0.9.7d
33 BuildRequires:  openssl-tools-perl >= 0.9.7d
34 BuildRequires:  pam-devel
35 BuildRequires:  perl-devel
36 BuildRequires:  postgresql-devel
37 BuildRequires:  sysconftool
38 BuildRequires:  zlib-devel
39 %{?with_fam:BuildRequires:      fam-devel}
40 Requires(post,preun):   /sbin/chkconfig
41 Requires(post): openssl-tools >= 0.9.7d
42 %{?with_fam:Requires:   fam}
43 Provides:       smtpdaemon
44 Obsoletes:      exim
45 Obsoletes:      masqmail
46 Obsoletes:      nullmailer
47 Obsoletes:      omta
48 Obsoletes:      postfix
49 Obsoletes:      qmail
50 Obsoletes:      sendmail
51 Obsoletes:      sendmail-cf
52 Obsoletes:      sendmail-doc
53 Obsoletes:      smail
54 Obsoletes:      smtpdaemon
55 Obsoletes:      ssmtp
56 Obsoletes:      zmailer
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %define         apachedir       /home/services/httpd
60 %define         _datadir        %{_prefix}/share/courier
61 %define         _mandir         /usr/share/man
62 %define         _libdir         %{_prefix}/%{_lib}/courier
63 %define         _libexecdir     %{_libdir}
64 %define         _localstatedir  /var/spool/courier
65 %define         _sysconfdir     /etc/courier
66 %define         _certsdir       %{_sysconfdir}/certs
67 %define         initdir         /etc/rc.d/init.d
68
69 # Change the following if your DocumentRoot and cgibindir differ.  This is
70 # the default redhat build:
71
72 %define         _cgibindir              %{apachedir}/cgi-bin
73 %define         _documentrootdir        %{apachedir}/html
74 %define         _imageurl               /webmail/
75
76 %description
77 Courier is a fully functional mail server, that can completely take
78 over the mail services normally provided by sendmail, Qmail, or any
79 other mail server. Although Courier does not support all legacy
80 features of existing mail servers, the number of obsoleted functions
81 is very small, and there are better, and more robust, alternatives
82 available.
83
84 Courier implements many SMTP extensions: DSN, PIPELINING, 8BITMIME.
85 Courier also implements several new SMTP extensions for mailing list
86 management and spam filtering.
87
88 %description -l pl
89 Courier jest w pe³ni funkcjonalnym serwerem poczty, mo¿e ca³kowicie
90 zast±piæ us³ugi pocztowe dawane przez sendmail, Qmaila i inne serwery.
91 Wprawdzie Courier nie ma wszystkich mo¿liwo¶ci istniej±cych serwerów,
92 ilo¶æ nie obs³ugiwanych funkcji jest bardzo ma³a, i s± dostêpne
93 lepsze alternatywy.
94
95 Courier zawiera wiele rozszerzeñ SMTP: DSN, PIPELINING, 8BITMIME. Ma
96 tak¿e nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
97 filtrowania spamu.
98
99 %package pop3d
100 Summary:        Courier Integrated POP3 server
101 Summary(pl):    Zintegrowany serwer POP3 do Couriera
102 Group:          Networking/Daemons
103 Requires:       %{name} = %{version}-%{release}
104 Requires(post): openssl-tools >= 0.9.7d
105
106 %description pop3d
107 This package installs Courier mail server's integrated POP3 server,
108 which allows you to download mail from your mailbox using any POP3
109 client. Courier's POP3 server can only be used to download mail from
110 maildir mailboxes. This server does not support mailbox files. If you
111 do not need the ability to download your mail using a POP3 client, you
112 do not need to install this package.
113
114 %description pop3d -l pl
115 Ten pakiet zawiera zintegrowany serwer POP3 do Couriera, pozwalaj±cy
116 na ¶ci±ganie poczty ze skrzynki przy pomocy dowolnego klienta POP3.
117 Serwer POP3 Couriera mo¿e byæ u¿ywany tylko ze skrzynkami Maildir, nie
118 obs³uguje skrzynek w postaci pojedynczych plików.
119
120 %package imapd
121 Summary:        Courier Integrated IMAP server
122 Summary(pl):    Zintegrowany serwer IMAP do Couriera
123 Group:          Networking/Daemons
124 Requires:       %{name} = %{version}-%{release}
125 Requires(post): openssl-tools >= 0.9.7d
126 Obsoletes:      courier-imap
127 Obsoletes:      courier-imap-common
128
129 %description imapd
130 This package installs Courier mail server's integrated IMAP server. If
131 you do not need the ability to download your mail using an IMAP mail
132 client, you do not need to install this package. Courier's IMAP server
133 can only be used to download mail from maildir mailboxes. This server
134 does not support mailbox files.
135
136 This package requires that Courier must be already installed, this is
137 NOT the standalone version of the Courier-IMAP server, and you cannot
138 install both this package, and the standalone version of Courier-IMAP.
139 If you have the standalone version of the Courier-IMAP server already
140 installed, installing this package will automatically remove the
141 standalone version.
142
143 %description imapd -l pl
144 Ten pakiet zawiera zintegrowany serwer IMAP do Couriera. Pozwala
145 ¶ci±gaæ pocztê przy pomocy klienta IMAP. Serwer IMAP Couriera mo¿e byæ
146 u¿ywany tylko ze skrzynami Maildir, nie obs³uguje skrzynek w postaci
147 pojedynczych plików.
148
149 Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja
150 serwera Courier-IMAP. Nie mo¿na te¿ instalowaæ jednocze¶nie tego
151 pakietu i samodzielnej wersji Courier-IMAP. Zainstalowanie tego
152 pakietu automatycznie odinstaluje Courier-IMAP je¶li by³ zinstalowany.
153
154 %package webadmin
155 Summary:        Courier Integrated HTTP administraton panel
156 Summary(pl):    Panel administracyjny przez HTTP dla Couriera
157 Group:          Networking/Daemons
158 Requires:       %{name} = %{version}-%{release}
159 Requires:       %{_cgibindir}
160 Requires:       webserver
161
162 %description webadmin
163 This is a web-based administration tool. Webadmin is a web CGI
164 application.
165
166 %description webadmin -l pl
167 Webadmin jest narzêdziem administracyjnym obs³ugiwanym przez WWW.
168
169 %package webmail
170 Summary:        Courier Integrated HTTP (webmail) server
171 Summary(pl):    Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
172 Group:          Networking/Daemons
173 Requires:       %{name} = %{version}-%{release}
174 Requires:       %{_cgibindir}
175 Requires:       %{_documentrootdir}
176
177 %description webmail
178 This package installs Courier mail server's integrated HTTP webmail
179 server. If you do not need the ability to access your mail using a web
180 browser, you do not need to install this package. Courier's webmail
181 server can only be used to download mail from maildir mailboxes. This
182 server does not support mailbox files.
183
184 This is the same server that's distributed separately under the name
185 of SqWebMail, however its configuration is customized for the Courier
186 mail server.
187
188 %description webmail -l pl
189 Ten pakiet zawiera zintegrowany serwer poczty przez HTTP (webmail) dla
190 Couriera, pozwalaj±cy na dostêp do poczty za pomoc± przegl±darki WWW.
191 Serwer webmail Couriera mo¿e byæ u¿ywany tylko ze skrzynkami Maildir,
192 nie obs³uguje skrzynek w postaci pojedynczych plików.
193
194 Jest to ten sam serwer, co dystrybuowany oddzielnie pod nazw±
195 SqWebMail, ale jego konfiguracja jest dostosowana do serwera Courier.
196
197 %package maildir-tools
198 Summary:        Tools for mail folders in Maildir format
199 Summary(pl):    Narzêdzia do zarz±dzania skrzynkami Maildir
200 Group:          Applications/Mail
201 Requires:       %{name} = %{version}-%{release}
202
203 %description maildir-tools
204 This package contains tools for mail folders in Maildir format.
205
206 %description maildir-tools -l pl
207 Ten pakiet zawiera narzêdzia do zarz±dzania folderami w formacie Maildir.
208
209 %package mlm
210 Summary:        Courier Integrated Mailing List Manager
211 Summary(pl):    Zintegrowany zarz±dca list dyskusyjnych do Couriera
212 Group:          Applications/Mail
213 Requires:       %{name} = %{version}-%{release}
214
215 %description mlm
216 This package installs couriermlm - a mailing list manager for the
217 Courier mail server. If you do not need the ability to manage mailing
218 lists, you do not need to install this package.
219
220 couriermlm is used to set up, maintain, and run a mailing list.
221 couriermlm automatically processes subscription and unsubscription
222 requests, and removes undeliverable addresses from the subscription
223 rolls. Mailing lists managed by couriermlm require zero human
224 administrative oversight. couriermlm supports digests, write-only
225 posting aliases, and moderated mailing lists.
226
227 %description mlm -l pl
228 Ten pakiet zawiera couriermlm - program do zarz±dzania listami
229 dyskusyjnymi dla Couriera. couriermlm jest u¿ywany do konfigurowania,
230 zarz±dzania i prowadzenia pocztowej listy dyskusyjnej. Automatycznie
231 obs³uguje ¿±dania zapisywania i wypisywania oraz usuwa z listy
232 niedzia³aj±ce adresy subskrybentów. Listy obs³ugiwane przez couriermlm
233 nie wymagaj± pracy administratora. couriermlm obs³uguje digesty,
234 aliasy pocztowe tylko do wysy³ania i listy moderowane.
235
236 %package maildrop
237 Summary:        Courier Integrated mail filter
238 Summary(pl):    Zintegrowany filtr poczty do Couriera
239 Group:          Applications/Mail
240 Requires:       %{name} = %{version}-%{release}
241
242 %description maildrop
243 This package installs Courier mail server's integrated mail filter.
244 You need to install this package if you want to be able to filter your
245 incoming mail.
246
247 %description maildrop -l pl
248 Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
249 potrzebny do filtrowania przychodz±cej poczty.
250
251 %package smtpauth
252 Summary:        Courier mail server authenticated ESMTP module
253 Summary(pl):    Modu³ uwierzytelniania ESMTP (SMTP AUTH) do Couriera
254 Group:          Networking/Daemons
255 Requires:       %{name} = %{version}-%{release}
256
257 %description smtpauth
258 Authenticated ESMTP allows remote users to authenticate themselves and
259 be able to relay outbound mail through the Courier mail server.
260
261 %description smtpauth -l pl
262 SMTP AUTH pozwala zdalnym u¿ytkownikom na uwierzytelnianie i
263 umo¿liwienie przekazania wychodz±cej poczty poprzez serwer poczty
264 Courier.
265
266 %package authldap
267 Summary:        LDAP authentication daemon for Courier mail server
268 Summary(pl):    Demon autentykacji LDAP do Couriera
269 Group:          Networking/Daemons
270 PreReq:         %{name} = %{version}-%{release}
271
272 %description authldap
273 This package provides LDAP authentication for Courier.
274
275 %description authldap -l pl
276 Ten pakiet pozwala na korzystanie z autentykacji LDAP w Courierze.
277
278 %package authmysql
279 Summary:        MySQL authentication daemon for Courier mail server
280 Summary(pl):    Demon autentykacji MySQL do Couriera
281 Group:          Networking/Daemons
282 PreReq:         %{name} = %{version}-%{release}
283
284 %description authmysql
285 This package provides MySQL authentication for Courier.
286
287 %description authmysql -l pl
288 Ten pakiet pozwala na korzystanie z autentykacji MySQL w Courierze.
289
290 %package authpgsql
291 Summary:        PostgreSQL authentication daemon for Courier mail server
292 Summary(pl):    Demon autentykacji PostgreSQL do Couriera
293 Group:          Networking/Daemons
294 PreReq:         %{name} = %{version}-%{release}
295
296 %description authpgsql
297 This package provides PostgreSQL authentication for Courier.
298
299 %description authpgsql -l pl
300 Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courierze.
301
302 %prep
303 %setup -q
304 %patch0 -p1
305 %{!?with_fam:%patch1 -p1}
306 %patch2 -p1
307 %patch3 -p1
308 %patch4 -p1
309 %patch5 -p1
310 %patch6 -p1
311
312 %build
313 # we don't want fax module
314 rm -rf courier/module.fax
315 cp -f /usr/share/automake/config.sub webmail
316
317 cd rootcerts
318 %{__libtoolize}
319 %{__aclocal}
320 %{__autoconf}
321 %{__automake}
322 cd ..
323
324 cd authlib
325 %{__aclocal}
326 %{__autoconf}
327 %{__automake}
328 cd ..
329
330 %{__libtoolize}
331 %{__aclocal}
332 %{__autoconf}
333 %{__automake}
334
335 cd courier
336 %{__aclocal}
337 %{__autoconf}
338 ln -s ../ltmain.sh .
339 %{__automake}
340
341 cd module.esmtp
342 %{__aclocal}
343 %{__autoconf}
344 ln -s ../ltmain.sh .
345 %{__automake}
346 cd ../..
347
348 cd imap
349 %{__aclocal}
350 %{__autoconf}
351 %{__automake}
352 cd ..
353
354 %configure \
355         --localstatedir=%{_localstatedir} \
356         --sysconfdir=%{_sysconfdir} \
357         --mandir=%{_mandir} \
358         --enable-imageurl=%{_imageurl} \
359         --with-certsdir=%{_certsdir} \
360         --with-db=db \
361         --with-mailer=%{_sbindir}/sendmail
362
363 %{__make}
364 %{__make} 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},%{initdir}} \
370         $RPM_BUILD_ROOT{%{_cgibindir},%{_documentrootdir}} \
371         $RPM_BUILD_ROOT%{_sysconfdir}/{hosteddomains,userdb} \
372         $RPM_BUILD_ROOT{/etc/cron.hourly,%{_certsdir}}
373
374 %{__make} install \
375         DESTDIR=$RPM_BUILD_ROOT
376
377 # fix pam problem
378 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
379 for X in imap esmtp pop3 webmail calendar
380 do
381         cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<EOF
382 #%PAM-1.0
383 auth    required        pam_unix.so shadow nullok
384 account required        pam_unix.so
385 session required        pam_unix.so
386 EOF
387 done
388
389 # delete dead links
390 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1 \
391 $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1 \
392 $RPM_BUILD_ROOT%{_mandir}/man7/authcram.7 \
393 $RPM_BUILD_ROOT%{_mandir}/man7/authdaemon.7 \
394 $RPM_BUILD_ROOT%{_mandir}/man7/authdaemond.7 \
395 $RPM_BUILD_ROOT%{_mandir}/man7/authldap.7 \
396 $RPM_BUILD_ROOT%{_mandir}/man7/authmysql.7 \
397 $RPM_BUILD_ROOT%{_mandir}/man7/authpam.7 \
398 $RPM_BUILD_ROOT%{_mandir}/man7/authpwd.7 \
399 $RPM_BUILD_ROOT%{_mandir}/man7/authshadow.7 \
400 $RPM_BUILD_ROOT%{_mandir}/man7/authuserdb.7 \
401 $RPM_BUILD_ROOT%{_mandir}/man7/authvchkpw.7 \
402 $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8 \
403 $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8 \
404 $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8 \
405 $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8 \
406 $RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8 \
407 $RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8 \
408 $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
409
410 # make man links
411 echo '.so dot-forward.1' > $RPM_BUILD_ROOT%{_mandir}/man1/dotforward.1
412 echo '.so sendmail.1' > $RPM_BUILD_ROOT%{_mandir}/man1/rmail.1
413 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authcram.7
414 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authdaemon.7
415 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authdaemond.7
416 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authldap.7
417 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authmysql.7
418 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpgsql.7
419 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpam.7
420 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authpwd.7
421 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authshadow.7
422 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authuserdb.7
423 echo '.so authlib.7' > $RPM_BUILD_ROOT%{_mandir}/man7/authvchkpw.7
424 echo '.so esmtpd.8' > $RPM_BUILD_ROOT%{_mandir}/man8/esmtpd-msa.8
425 echo '.so courierfilter.8' > $RPM_BUILD_ROOT%{_mandir}/man8/filterctl.8
426 echo '.so makesmtpaccess.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makesmtpaccess-msa.8
427 echo '.so courieruucp.8' > $RPM_BUILD_ROOT%{_mandir}/man8/makeuucpneighbors.8
428 echo '.so makeuserdb.8' > $RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8
429 echo '.so makeuserdb.8' > $RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8
430 echo '.so courierpop3d.8' > $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3login.8
431
432 %{__make} install-perms
433
434 # Move webmail and webadmin to cgibindir
435 mv -f $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
436         $RPM_BUILD_ROOT%{_cgibindir}/webmail
437 mv -f $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webadmin \
438         $RPM_BUILD_ROOT%{_cgibindir}/webadmin
439
440 # And here's why we delete all images from filelist.webmail:
441 mv -f $RPM_BUILD_ROOT%{_datadir}/sqwebmail/images $RPM_BUILD_ROOT%{_documentrootdir}/webmail
442
443 # install a cron job to clean out webmail's cache
444 install webmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
445
446 # Move .html documentation back to build dir, so that RPM will move it to
447 # the appropriate docdir
448
449 rm -rf htmldoc
450 mkdir htmldoc
451 mv -f $RPM_BUILD_ROOT%{_datadir}/htmldoc/* htmldoc
452 chmod a-w htmldoc/*
453
454 # Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
455 # package, so after it's installed they should be runnable.
456
457 sed 's/^POP3DSTART.*/POP3DSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new
458 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
459
460 sed 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist >$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.new
461 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.new $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
462
463 sed 's/^IMAPDSTART.*/IMAPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new
464 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
465
466 sed 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist >$RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl
467 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/imapd.new-ssl $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
468
469 # Want to have esmtpd running by default
470 sed 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' <$RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist >$RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.new
471 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.new $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
472
473 # run script from install-configure (make config files)
474 for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
475 do /usr/bin/perl ././sysconftool $RPM_BUILD_ROOT$confdist
476 done
477
478 # make locals, esmtpacceptmailfor.dir/default
479 touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
480 touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
481
482 # Make password and unsecureok (files for webadmin)
483 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
484 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
485
486 # create file me to put localdomain
487 touch $RPM_BUILD_ROOT%{_sysconfdir}/me
488
489 # create calendarmode
490 touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
491
492 install courier.sysvinit $RPM_BUILD_ROOT%{initdir}/courier
493 #
494 # Red Hat /etc/profile.d scripts
495 #
496
497 install -d $RPM_BUILD_ROOT/etc/profile.d
498 cat >$RPM_BUILD_ROOT/etc/profile.d/courier.sh <<EOF
499 if echo "\$PATH" | tr ':' '\012' | fgrep -qx %{_bindir}
500 then
501         :
502 else
503         if test -w /etc
504         then
505                 PATH="%{_sbindir}:\$PATH"
506         fi
507         PATH="%{_bindir}:\$PATH"
508         export PATH
509 fi
510 EOF
511
512 cat >$RPM_BUILD_ROOT/etc/profile.d/courier.csh <<EOF
513
514 echo "\$PATH" | tr ':' '\012' | fgrep -qx %{_bindir}
515
516 if ( \$? ) then
517         true
518 else
519         test -w /etc
520         if ( \$? ) then
521         then
522                 setenv PATH "%{_sbindir}:\$PATH"
523         endif
524         setenv PATH "%{_bindir}:\$PATH"
525 endif
526 EOF
527
528 # sendmail soft links
529 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
530
531 # fix rmail link
532 rm -f $RPM_BUILD_ROOT%{_bindir}/rmail
533 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
534
535 # This link by default is missing
536 ln -sf %{_datadir}/esmtpd-ssl $RPM_BUILD_ROOT%{_sbindir}/esmtpd-ssl
537
538 # remove unpackaged files
539 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
540 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rfcerr*.txt
541 rm -rf $RPM_BUILD_ROOT%{_datadir}/faxmail
542 rm -f $RPM_BUILD_ROOT%{_datadir}/courierwebadmin/*fax*
543
544 %clean
545 rm -rf $RPM_BUILD_ROOT
546
547 %triggerin -- courier < 0.45.5
548 echo
549 echo Directory with certificates has changed to %{_certsdir}
550 echo
551
552 %post
553 /sbin/chkconfig --add courier
554
555 if [ "$1" = "1" ]; then
556         /bin/hostname -f >/etc/courier/me
557         cat <<EOF
558
559 Now courier will refuse to accept SMTP messages except to localhost
560 add hosts to /etc/courier/esmtpacceptmailfor.dir/default
561 run makeacceptmailfor
562
563 Add hosts to /etc/courier/locals you want to accept mail for
564 run makealiases
565
566 Enter user, who should receive mail for root, mailer-daemon and postmaster
567 into /etc/courier/aliases/system
568
569 Default maildir is in ~/Mail/Maildir
570
571 EOF
572 fi
573
574 if [ -e /var/lock/subsys/courier ]; then
575         %{initdir}/courier restart
576 else
577         echo
578         echo Type "%{initdir}/courier start" to start courier
579         echo
580 fi
581
582 %preun
583 if [ "$1" = "0" ]; then
584         if [ -e /var/lock/subsys/courier ]; then
585                 %{initdir}/courier stop
586         fi
587         /sbin/chkconfig --del courier
588 fi
589
590 %post imapd
591 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
592         %{_sbindir}/imapd stop
593         %{_sbindir}/imapd start
594 else
595         echo
596         echo Type "%{_sbindir}/imapd start" to start imapd server
597         echo
598 fi
599 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
600         %{_sbindir}/imapd-ssl stop
601         %{_sbindir}/imapd-ssl start
602 else
603         echo
604         echo Type "%{_sbindir}/imapd-ssl start" to start imapd-ssl server
605         echo
606 fi
607
608 %preun imapd
609 if [ "$1" = "0" ]; then
610         if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
611                 %{_sbindir}/imapd stop
612         fi
613         if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
614                 %{_sbindir}/imapd-ssl stop
615         fi
616 fi
617
618 %post pop3d
619 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
620         %{_sbindir}/pop3d stop
621         %{_sbindir}/pop3d start
622 else
623         echo
624         echo Type "%{_sbindir}/pop3d start" to start pop3d server
625         echo
626 fi
627 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
628         %{_sbindir}/pop3d-ssl stop
629         %{_sbindir}/pop3d-ssl start
630 else
631         echo
632         echo Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server
633         echo
634 fi
635
636 %preun pop3d
637 if [ "$1" = "0" ]; then
638         if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
639                 %{_sbindir}/pop3d stop
640         fi
641         if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
642                 %{_sbindir}/pop3d-ssl stop
643         fi
644 fi
645
646 %post webadmin
647 if [ "$1" = "1" ]; then
648         echo
649         echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password
650         echo
651 fi
652
653 %post webmail
654 if [ "$1" = "1" ]; then
655         echo
656         echo If you want to have calendar starting by default then
657         echo put word net to %{_sysconfdir}/calendarmode
658         echo
659 fi
660 if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
661         %{_sbindir}/webmaild stop
662         %{_sbindir}/webmaild start
663 else
664         echo
665         echo Type "%{_sbindir}/webmaild start" to start webmail server
666         echo
667 fi
668
669 %preun webmail
670 if [ "$1" = "0" ]; then
671         if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
672                 %{_sbindir}/webmaild stop
673         fi
674 fi
675
676 %post smtpauth
677 if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then
678         %{_sbindir}/esmtpd stop
679         %{_sbindir}/esmtpd start
680 fi
681 if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then
682         %{_sbindir}/esmtpd-ssl stop
683         %{_sbindir}/esmtpd-ssl start
684 fi
685
686 if [ "$1" = "1" ]; then
687         echo
688         echo Remember to enable auth in esmtp config files
689         echo
690 fi
691
692 %postun smtpauth
693 if [ "$1" = "0" ]; then
694         if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then
695                 %{_sbindir}/esmtpd stop
696                 %{_sbindir}/esmtpd start
697         fi
698         if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then
699                 %{_sbindir}/esmtpd-ssl stop
700                 %{_sbindir}/esmtpd-ssl start
701         fi
702 fi
703
704 %post authldap
705 if ps -A |grep -q authdaemond.lda; then
706         %{_libdir}/authlib/authdaemond stop
707         %{_libdir}/authlib/authdaemond start
708 fi
709
710 %postun authldap
711 if [ -x %{_libdir}/authlib/authdaemond ]; then
712         if ps -A |grep -q authdaemond.lda; then
713                 %{_libdir}/authlib/authdaemond stop;
714                 %{_libdir}/authlib/authdaemond start;
715         fi
716 fi
717
718 %post authmysql
719 if ps -A |grep -q authdaemond.mys; then
720         %{_libdir}/authlib/authdaemond stop
721         %{_libdir}/authlib/authdaemond start
722 fi
723
724 %postun authmysql
725 if [ -x %{_libdir}/authlib/authdaemond ]; then
726         if ps -A |grep -q authdaemond.mys; then
727                 %{_libdir}/authlib/authdaemond stop;
728                 %{_libdir}/authlib/authdaemond start;
729         fi
730 fi
731
732 %post authpgsql
733 if ps -A |grep -q authdaemond.pgs; then
734         %{_libdir}/authlib/authdaemond stop
735         %{_libdir}/authlib/authdaemond start
736 fi
737
738 %postun authpgsql
739 if [ -x %{_libdir}/authlib/authdaemond ]; then
740         if ps -A |grep -q authdaemond.pgs; then
741                 %{_libdir}/authlib/authdaemond stop;
742                 %{_libdir}/authlib/authdaemond start;
743         fi
744 fi
745
746 %files
747 %defattr(644,root,root,755)
748 %doc AUTHORS BENCHMARKS ChangeLog INSTALL NEWS README TODO htmldoc/[adehqstu]*
749 %doc htmldoc/courierperl* htmldoc/courier.html htmldoc/courier[fltu]*
750 %doc htmldoc/local* htmldoc/mailbot* htmldoc/mailq* htmldoc/make*
751 %doc htmldoc/mime* htmldoc/mkesmtpd* htmldoc/modules* htmldoc/preline*
752 %{_mandir}/man1/sendmail.1*
753 %{_mandir}/man1/preline.1*
754 %{_mandir}/man1/cancelmsg.1*
755 %{_mandir}/man1/lockmail.1*
756 %{_mandir}/man1/mailbot.1*
757 %{_mandir}/man1/makemime.1*
758 %{_mandir}/man1/mimegpg.1*
759 %{_mandir}/man1/makedat.1*
760 %{_mandir}/man1/testmxlookup.1*
761 %{_mandir}/man1/dot-forward.1*
762 %{_mandir}/man1/couriertls.1*
763 %{_mandir}/man1/courierlogger.1*
764 %{_mandir}/man1/mailq*
765 %{_mandir}/man1/couriertcpd*
766 %{_mandir}/man1/dotforward.1*
767 %{_mandir}/man1/rmail.1*
768 %{_mandir}/man5/dot-courier.5*
769 %{_mandir}/man7/localmailfilter.7*
770 %{_mandir}/man7/authlib.7*
771 %{_mandir}/man7/authcram.7*
772 %{_mandir}/man7/authdaemon.7*
773 %{_mandir}/man7/authdaemond.7*
774 %{_mandir}/man7/authpam.7*
775 %{_mandir}/man7/authpwd.7*
776 %{_mandir}/man7/authshadow.7*
777 %{_mandir}/man7/authuserdb.7*
778 %{_mandir}/man7/authvchkpw.7*
779 %{_mandir}/man8/courierfilter.8*
780 %{_mandir}/man8/courierperlfilter.8*
781 %{_mandir}/man8/dupfilter.8*
782 %{_mandir}/man8/courier.8*
783 %{_mandir}/man8/courierldapaliasd.8*
784 %{_mandir}/man8/deliverquota.8*
785 %{_mandir}/man8/esmtpd.8*
786 %{_mandir}/man8/makeacceptmailfor.8*
787 %{_mandir}/man8/makehosteddomains.8*
788 %{_mandir}/man8/mkesmtpdcert.8*
789 %{_mandir}/man8/makealiases.8*
790 %{_mandir}/man8/makepercentrelay.8*
791 %{_mandir}/man8/makesmtpaccess.8*
792 %{_mandir}/man8/makeuserdb.8*
793 %{_mandir}/man8/submit.8*
794 %{_mandir}/man8/userdb.8*
795 %{_mandir}/man8/userdbpw.8*
796 %{_mandir}/man8/courieruucp.8*
797 %{_mandir}/man8/esmtpd-msa.8*
798 %{_mandir}/man8/filterctl.8*
799 %{_mandir}/man8/makesmtpaccess-msa.8*
800 %{_mandir}/man8/makeuucpneighbors.8*
801 %{_mandir}/man8/pw2userdb.8*
802 %{_mandir}/man8/vchkpw2userdb.8*
803 %dir %{_sysconfdir}
804 %attr(750,daemon,root) %dir %{_certsdir}
805 %attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
806 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/me
807 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaddressbook
808 %attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
809 %attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
810 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/enablefiltering
811 %attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
812 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smtpaccess/default
813 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpacceptmailfor.dir/default
814 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/locals
815 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/courierd
816 %attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/aliases/system
817 %attr(644,root,root) %{_sysconfdir}/quotawarnmsg.example
818 %dir %{_libdir}
819 %dir %{_libdir}/courier
820 %dir %{_datadir}
821 %{_datadir}/rootcerts
822 %attr(755,root,root) %dir %{_datadir}/courierwebadmin
823 %dir %{_libdir}/filters
824 %attr(755,daemon,daemon) %{_libdir}/filters/*
825 %attr(755,daemon,daemon) %{_datadir}/perlfilter-*.pl
826 %attr(755,bin,bin) %dir %{_localstatedir}
827 %attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
828 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
829 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
830 %attr(750,daemon,daemon) %dir %{_localstatedir}/filters
831 %attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
832 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
833 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
834 %attr(754,root,daemon) %{_datadir}/filterctl
835 %attr(754,root,daemon) %{_sbindir}/filterctl
836 %attr(754,root,daemon) %{_sbindir}/courierfilter
837 %dir %{_libdir}/courier/modules
838 %dir %{_libdir}/courier/modules/uucp
839 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.uucp
840 %attr(755,root,root) %{_libdir}/courier/modules/uucp/courieruucp
841 %attr(755,root,root) %{_sbindir}/makeuucpneighbors
842 %attr(755,root,root) %{_datadir}/makeuucpneighbors
843 %dir %{_libdir}/courier/modules/local
844 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.local
845 %attr(755,root,root) %{_libdir}/courier/modules/local/courierlocal
846 %attr(755,root,root) %{_libdir}/courier/modules/local/courierdeliver
847 %attr(755,root,root) %{_bindir}/preline
848 %dir %{_libdir}/courier/modules/esmtp
849 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.esmtp
850 %attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtp
851 %attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtpd
852 %attr(755,root,root) %{_libdir}/courier/modules/esmtp/addcr
853 %attr(755,root,root) %{_sbindir}/courieresmtpd
854 %attr(755,root,root) %{_bindir}/addcr
855 %attr(755,root,root) %{_sbindir}/esmtpd
856 %attr(755,root,root) %{_datadir}/esmtpd
857 %attr(755,root,root) %{_sbindir}/esmtpd-ssl
858 %attr(755,root,root) %{_datadir}/esmtpd-ssl
859 %attr(755,root,root) %{_sbindir}/makesmtpaccess
860 %attr(755,root,root) %{_datadir}/makesmtpaccess
861 %attr(755,root,root) %{_sbindir}/makeacceptmailfor
862 %attr(755,root,root) %{_datadir}/makeacceptmailfor
863 %attr(755,root,root) %{_sbindir}/makepercentrelay
864 %attr(755,root,root) %{_datadir}/makepercentrelay
865 %attr(755,root,root) %{_sbindir}/mkesmtpdcert
866 %attr(755,root,root) %{_datadir}/mkesmtpdcert
867 %attr(755,root,root) %{_sbindir}/esmtpd-msa
868 %attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
869 %attr(755,root,root) %{_sbindir}/sharedindexinstall
870 %attr(755,root,root) %{_sbindir}/sharedindexsplit
871 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd
872 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-msa
873 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-ssl
874 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
875 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
876 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd.cnf
877 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpauthclient
878 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsndelayed.txt
879 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsndelivered.txt
880 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnfailed.txt
881 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnrelayed.txt
882 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnfooter.txt
883 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectnotice.txt
884 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectwarn.txt
885 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnheader.txt
886 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.dsn
887 %dir %{_libdir}/courier/modules/dsn
888 %attr(755,root,root) %{_libdir}/courier/modules/dsn/courierdsn
889 %{_libdir}/courier/modules/modules.ctl
890 %attr(4550,daemon,daemon) %{_libdir}/courier/submitmkdir
891 %attr(750,daemon,daemon) %{_libdir}/courier/courierd
892 %attr(750,daemon,daemon) %{_libdir}/courier/aliasexp
893 %attr(750,daemon,daemon) %{_libdir}/courier/aliascombine
894 %attr(750,daemon,daemon) %{_libdir}/courier/aliascreate
895 %attr(750,daemon,daemon) %{_libdir}/courier/submit
896 %attr(755,daemon,daemon) %{_libdir}/courier/makedatprog
897 %attr(755,root,root) %{_sbindir}/authenumerate
898 %attr(6555,daemon,daemon) %{_bindir}/cancelmsg
899 %attr(755,root,root) %{_sbindir}/courier
900 %attr(755,root,root) %{_datadir}/courierctl.start
901 %attr(755,root,root) %{_bindir}/couriertls
902 %attr(755,root,root) %{_sbindir}/couriertcpd
903 %attr(755,root,root) %{_sbindir}/courierlogger
904 %attr(755,root,root) %{_bindir}/courier-config
905 %attr(755,root,root) %{_bindir}/deliverquota
906 %attr(755,root,root) %{_bindir}/dotforward
907 %attr(755,root,root) %{_bindir}/lockmail
908 %attr(755,root,root) %{_bindir}/mailbot
909 %attr(2755,daemon,daemon) %{_bindir}/mailq
910 %attr(750,root,daemon) %{_datadir}/makealiases
911 %attr(750,root,daemon) %{_sbindir}/makealiases
912 %attr(755,root,root) %{_datadir}/makedat
913 %attr(755,root,root) %{_bindir}/makedat
914 %attr(755,root,root) %{_datadir}/makehosteddomains
915 %attr(755,root,root) %{_sbindir}/makehosteddomains
916 %attr(755,root,root) %{_bindir}/makemime
917 %attr(755,root,root) %{_datadir}/makeuserdb
918 %attr(755,root,root) %{_sbindir}/makeuserdb
919 %attr(755,root,root) %{_bindir}/mimegpg
920 %attr(755,root,root) %{_datadir}/pw2userdb
921 %attr(755,root,root) %{_sbindir}/pw2userdb
922 %attr(4755,root,root) %{_bindir}/rmail
923 %attr(755,root,root) %{_sbindir}/showconfig
924 %attr(750,root,daemon) %{_sbindir}/showmodules
925 %attr(4755,root,root) %{_sbindir}/sendmail
926 %attr(755,root,root) %{_bindir}/testmxlookup
927 %attr(755,root,root) %{_datadir}/userdb
928 %attr(755,root,root) %{_sbindir}/userdb
929 %attr(755,root,root) %{_sbindir}/userdbpw
930 %attr(755,root,root) %{_datadir}/vchkpw2userdb
931 %attr(755,root,root) %{_sbindir}/vchkpw2userdb
932 %attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaliasrc
933 %attr(700,daemon,daemon) %{_sbindir}/courierldapaliasd
934 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authdaemonrc
935 %dir %{_libdir}/authlib
936 %attr(755,root,root) %{_libdir}/authlib/authdaemon
937 %attr(755,root,root) %{_libdir}/authlib/authdaemond.plain
938 %attr(755,root,root) %{_libdir}/authlib/authdaemond
939 %attr(770,daemon,daemon) %dir %{_localstatedir}/authdaemon
940 %attr(755,root,root) %dir %{_libdir}/authlib/changepwd
941 %attr(4755,root,root) %{_libdir}/authlib/changepwd/authdaemon.passwd
942 %attr(755,root,root) %{_libdir}/authlib/changepwd/authsystem.passwd
943 %attr(755,root,root) %{_datadir}/authsystem.passwd
944 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/esmtp
945 %attr(755,root,root) /etc/profile.d/courier.sh
946 %attr(755,root,root) /etc/profile.d/courier.csh
947 %attr(754,root,root) /etc/rc.d/init.d/courier
948 %attr(700,daemon,daemon) %dir %{_sysconfdir}/userdb
949 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
950 %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
951 %attr(755,daemon,daemon) %dir %{_localstatedir}/tmp/broken
952 %attr(755,root,root) /usr/lib/sendmail
953
954 %files pop3d
955 %defattr(644,root,root,755)
956 %doc htmldoc/*pop3d*
957 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/pop3
958 %{_mandir}/man8/courierpop3d.8*
959 %{_mandir}/man8/courierpop3login.8*
960 %{_mandir}/man8/mkpop3dcert.8*
961 %{_mandir}/man8/pop3d.8*
962 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-45pop3.pl
963 %{_datadir}/courierwebadmin/admin-45pop3.html
964 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d
965 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d.cnf
966 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d-ssl
967 %attr(755,root,root) %{_libdir}/courier/courierpop3d
968 %attr(755,root,root) %{_libdir}/courier/courierpop3login
969 %attr(755,root,root) %{_datadir}/mkpop3dcert
970 %attr(755,root,root) %{_sbindir}/mkpop3dcert
971 %attr(755,root,root) %{_datadir}/pop3d
972 %attr(755,root,root) %{_sbindir}/pop3d
973 %attr(755,root,root) %{_datadir}/pop3d-ssl
974 %attr(755,root,root) %{_sbindir}/pop3d-ssl
975
976 %files imapd
977 %defattr(644,root,root,755)
978 %doc htmldoc/*imapd*
979 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/imap
980 %{_mandir}/man8/imapd.8*
981 %{_mandir}/man8/mkimapdcert.8*
982 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-40imap.pl
983 %attr(644,root,root) %{_datadir}/courierwebadmin/admin-40imap.html
984 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd
985 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd-ssl
986 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd.cnf
987 %attr(755,root,root) %{_libdir}/courier/imaplogin
988 %attr(755,root,root) %{_sbindir}/imapd
989 %attr(755,root,root) %{_sbindir}/imapd-ssl
990 %attr(755,root,root) %{_datadir}/imapd
991 %attr(755,root,root) %{_datadir}/imapd-ssl
992 %attr(755,root,root) %{_bindir}/imapd
993 %attr(755,root,root) %{_datadir}/mkimapdcert
994 %attr(755,root,root) %{_sbindir}/mkimapdcert
995
996 %files webadmin
997 %defattr(644,root,root,755)
998 %attr(4755,root,root) %{_cgibindir}/webadmin
999 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
1000 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
1001 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
1002 %attr(400,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/webadmin/password
1003 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/webadmin/unsecureok
1004 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-main.pl
1005 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-save.pl
1006 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-cancel.pl
1007 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-[0235]*.pl
1008 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-10password.pl
1009 %attr(755,root,root) %{_datadir}/courierwebadmin/dumpenv.pl
1010 %attr(755,root,root) %{_datadir}/courierwebadmin/webadmin.pl
1011 %{_datadir}/courierwebadmin/admin-[0235]*.html
1012 %{_datadir}/courierwebadmin/admin-10password.html
1013 %{_datadir}/courierwebadmin/admin-main.html
1014 %{_datadir}/courierwebadmin/admin-save.html
1015 %{_datadir}/courierwebadmin/login.html
1016 %{_datadir}/courierwebadmin/notsupp.html
1017 %{_datadir}/courierwebadmin/unsecure.html
1018 %{_datadir}/courierwebadmin/webadmin.pm
1019
1020 %files webmail
1021 %defattr(644,root,root,755)
1022 %doc htmldoc/pcp* gpglib/README.html
1023 %attr(4755,root,root) %{_cgibindir}/webmail
1024 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/webmail
1025 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/calendar
1026 %{_documentrootdir}/webmail
1027 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sqwebmaild
1028 %attr(755,root,root) %{_sbindir}/webmaild
1029 %dir %{_datadir}/sqwebmail
1030 %dir %{_datadir}/sqwebmail/html
1031 %dir %{_datadir}/sqwebmail/html/en-us
1032 %{_datadir}/sqwebmail/html/en
1033 %config %{_datadir}/sqwebmail/html/en-us/[CILT]*
1034 %{_datadir}/sqwebmail/html/en-us/*.html
1035 %{_datadir}/sqwebmail/html/en-us/*.txt
1036 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-47webmail.pl
1037 %{_datadir}/courierwebadmin/admin-47webmail.html
1038 %attr(755,root,root) %{_datadir}/sqwebmail/cleancache.pl
1039 %attr(755,root,root) %{_datadir}/sqwebmail/ldapsearch
1040 %attr(755,root,root) %{_datadir}/sqwebmail/sendit.sh
1041 %attr(755,root,root) %{_datadir}/sqwebmail/webgpg
1042 %attr(755,root,root) %{_sbindir}/webgpg
1043 %attr(755,root,root) %{_libdir}/courier/pcpd
1044 %attr(755,root,root) %{_libdir}/courier/sqwebmaild
1045 %attr(700, bin, bin) %dir %{_localstatedir}/webmail-logincache
1046 %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
1047 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/calendarmode
1048 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar
1049 %attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache
1050 %attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private
1051 %attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public
1052
1053 %files maildrop
1054 %defattr(644,root,root,755)
1055 %doc htmldoc/r* htmldoc/maildrop* htmldoc/lockmail*
1056 %{_mandir}/man1/maildrop.1*
1057 %{_mandir}/man1/refor*
1058 %{_mandir}/man5/maildrop*
1059 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/maildrop
1060 %attr(4755,root,root) %{_bindir}/maildrop
1061 %attr(755,root,root) %{_bindir}/reformail
1062 %attr(755,root,root) %{_bindir}/reformime
1063
1064 %files maildir-tools
1065 %defattr(644,root,root,755)
1066 %doc maildir/README.*.html htmldoc/maildir*
1067 %{_mandir}/man1/maildirmake.1*
1068 %{_mandir}/man1/maildirkw.1*
1069 %{_mandir}/man1/maildiracl.1*
1070 %{_mandir}/man5/maildir.5*
1071 %{_mandir}/man7/maildirquota.7*
1072 %attr(755,root,root) %{_bindir}/maildirmake
1073 %attr(755,root,root) %{_bindir}/maildirkw
1074 %attr(755,root,root) %{_bindir}/maildiracl
1075
1076 %files mlm
1077 %defattr(644,root,root,755)
1078 %doc htmldoc/couriermlm.html
1079 %{_mandir}/man1/couriermlm.1*
1080 %attr(755,root,root) %{_bindir}/couriermlm
1081 %{_datadir}/couriermlm
1082
1083 %files smtpauth
1084 %defattr(644,root,root,755)
1085 %attr(4750,root,daemon) %{_libdir}/courier/modules/esmtp/authstart
1086 %attr(755,root,root) %{_libdir}/courier/modules/esmtp/authend
1087
1088 %files authldap
1089 %defattr(644,root,root,755)
1090 %doc authlib/README.ldap
1091 %attr(755,root,root) %{_libdir}/authlib/authdaemond.ldap
1092 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authldaprc
1093 %{_mandir}/man7/authldap.7*
1094 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-15ldap.pl
1095 %{_datadir}/courierwebadmin/admin-15ldap.html
1096 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-15ldapa.pl
1097 %{_datadir}/courierwebadmin/admin-15ldapa.html
1098
1099 %files authmysql
1100 %defattr(644,root,root,755)
1101 %doc authlib/README.authmysql.html authlib/README.authmysql.myownquery
1102 %attr(755,root,root) %{_libdir}/authlib/authdaemond.mysql
1103 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmysqlrc
1104 %{_mandir}/man7/authmysql.7*
1105 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-15mysql.pl
1106 %{_datadir}/courierwebadmin/admin-15mysql.html
1107
1108 %files authpgsql
1109 %defattr(644,root,root,755)
1110 %doc authlib/README.authpostgres.html
1111 %attr(755,root,root) %{_libdir}/authlib/authdaemond.pgsql
1112 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authpgsqlrc
1113 %{_mandir}/man7/authpgsql.7*
1114 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-15pgsql.pl
1115 %{_datadir}/courierwebadmin/admin-15pgsql.html
This page took 0.137659 seconds and 3 git commands to generate.