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