]> git.pld-linux.org Git - packages/courier.git/blob - courier.spec
- packet maildir -> maildir-tools
[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 for X in locals esmtpacceptmailfor.dir/default
462 do
463 echo localhost >$RPM_BUILD_ROOT%{_sysconfdir}/$X
464 done
465
466 install courier.sysvinit $RPM_BUILD_ROOT%{initdir}/courier
467
468 # Make password and unsecureok (files for webadmin)
469 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
470 touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
471
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 # create file me to put localdomain
518 touch $RPM_BUILD_ROOT%{_sysconfdir}/me
519
520 # remove unpackaged files
521 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
522 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/rfcerr*.txt
523 rm -rf $RPM_BUILD_ROOT%{_datadir}/faxmail
524 rm -f $RPM_BUILD_ROOT%{_datadir}/courierwebadmin/*fax*
525
526 %clean
527 rm -rf $RPM_BUILD_ROOT
528
529 %post
530 if [ "$1" = "1" ]; then
531 /sbin/chkconfig --add courier
532 /bin/hostname -f >/etc/courier/me
533 cat <<EOF
534
535 Now courier will refuse to accept SMTP messages except to localhost
536 add hosts to /etc/courier/esmtpacceptmailfor.dir/default
537 run makeacceptmailfor
538
539 Add hosts to /etc/courier/locals you want to accept mail for
540 run makealiases
541
542 Enter user, who should receive mail for root, mailer-daemon and postmaster
543 into /etc/courier/aliases/system
544
545 EOF
546 fi
547
548 if [ -e /var/lock/subsys/courier ]; then
549     %{initdir}/courier restart
550 else
551 echo
552 echo Type "%{initdir}/courier start" to start courier
553 echo
554 fi
555
556 %preun
557 if [ "$1" = "0" ]; then
558     if [ -e /var/lock/subsys/courier ]; then
559         %{initdir}/courier stop
560     fi
561         /sbin/chkconfig --del courier
562 fi
563
564 %post imapd
565 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
566     %{_sbindir}/imapd stop
567     %{_sbindir}/imapd start
568 fi
569 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
570     %{_sbindir}/imapd-ssl stop
571     %{_sbindir}/imapd-ssl start
572 fi
573
574 %preun imapd
575 if [ "$1" = "0" ]; then
576     if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
577         %{_sbindir}/imapd stop
578     fi
579     if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
580         %{_sbindir}/imapd-ssl stop
581     fi
582 fi
583
584 %post pop3d
585 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
586     %{_sbindir}/pop3d stop
587     %{_sbindir}/pop3d start
588 fi
589 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
590     %{_sbindir}/pop3d-ssl stop
591     %{_sbindir}/pop3d-ssl start
592 fi
593
594 %preun pop3d
595 if [ "$1" = "0" ]; then
596     if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
597         %{_sbindir}/pop3d stop
598     fi
599     if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
600         %{_sbindir}/pop3d-ssl stop
601     fi
602 fi
603
604 %post webadmin
605 if [ "$1" = "1" ]; then
606 echo
607 echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password
608 echo
609 fi
610
611 %post webmail
612 if ps -A |grep -q sqwebmaild; then
613     %{_libdir}/courier/sqwebmaild stop
614     %{_libdir}/courier/sqwebmaild start
615 else
616 echo
617 echo Type "%{_libdir}/courier/sqwebmaild start" to start webmail server
618 echo
619 fi
620
621 %preun webmail
622 if [ "$1" = "0" ]; then
623     if ps -A |grep -q sqwebmaild; then
624         %{_libdir}/courier/sqwebmaild stop
625     fi
626 fi
627
628 %post smtpauth
629 if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then
630     %{_sbindir}/esmtpd stop
631     %{_sbindir}/esmtpd start
632 fi
633 if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then
634     %{_sbindir}/esmtpd-ssl stop
635     %{_sbindir}/esmtpd-ssl start
636 fi
637
638 if [ "$1" = "1" ]; then
639 echo
640 echo Remember to enable auth in esmtp config files
641 echo
642 fi
643
644 %postun smtpauth
645 if [ "$1" = "0" ]; then
646     if [ -e %{_localstatedir}/tmp/esmtpd.pid ]; then
647         %{_sbindir}/esmtpd stop
648         %{_sbindir}/esmtpd start
649     fi
650     if [ -e %{_localstatedir}/tmp/esmtpd-ssl.pid ]; then
651         %{_sbindir}/esmtpd-ssl stop
652         %{_sbindir}/esmtpd-ssl start
653     fi
654 fi
655
656 %post authldap
657 if ps -A |grep -q authdaemond.lda; then
658         %{_libdir}/authlib/authdaemond stop
659         %{_libdir}/authlib/authdaemond start
660 fi
661
662 %postun authldap
663 if [ -x %{_libdir}/authlib/authdaemond ]; then
664         if ps -A |grep -q authdaemond.lda; then
665                 %{_libdir}/authlib/authdaemond stop;
666                 %{_libdir}/authlib/authdaemond start;
667         fi
668 fi
669
670 %post authmysql
671 if ps -A |grep -q authdaemond.mys; then
672         %{_libdir}/authlib/authdaemond stop
673         %{_libdir}/authlib/authdaemond start
674 fi
675
676 %postun authmysql
677 if [ -x %{_libdir}/authlib/authdaemond ]; then
678         if ps -A |grep -q authdaemond.mys; then
679                 %{_libdir}/authlib/authdaemond stop;
680                 %{_libdir}/authlib/authdaemond start;
681         fi
682 fi
683
684 %post authpgsql
685 if ps -A |grep -q authdaemond.pgs; then
686         %{_libdir}/authlib/authdaemond stop
687         %{_libdir}/authlib/authdaemond start
688 fi
689
690 %postun authpgsql
691 if [ -x %{_libdir}/authlib/authdaemond ]; then
692         if ps -A |grep -q authdaemond.pgs; then
693                 %{_libdir}/authlib/authdaemond stop;
694                 %{_libdir}/authlib/authdaemond start;
695         fi
696 fi
697
698 %files
699 %defattr(644,root,root,755)
700 %doc AUTHORS BENCHMARKS ChangeLog INSTALL NEWS README TODO htmldoc/[adehqstu]*
701 %doc htmldoc/courierperl* htmldoc/courier.html htmldoc/courier[fltu]*
702 %doc htmldoc/local* htmldoc/mailbot* htmldoc/mailq* htmldoc/make*
703 %doc htmldoc/mime* htmldoc/mkesmtpd* htmldoc/modules* htmldoc/preline*
704 %{_mandir}/man1/sendmail.1*
705 %{_mandir}/man1/preline.1*
706 %{_mandir}/man1/cancelmsg.1*
707 %{_mandir}/man1/lockmail.1*
708 %{_mandir}/man1/mailbot.1*
709 %{_mandir}/man1/makemime.1*
710 %{_mandir}/man1/mimegpg.1*
711 %{_mandir}/man1/makedat.1*
712 %{_mandir}/man1/testmxlookup.1*
713 %{_mandir}/man1/dot-forward.1*
714 %{_mandir}/man1/couriertls.1*
715 %{_mandir}/man1/mailq*
716 %{_mandir}/man1/couriertcpd*
717 %{_mandir}/man1/dotforward.1*
718 %{_mandir}/man1/rmail.1*
719 %{_mandir}/man5/dot-courier.5*
720 %{_mandir}/man7/localmailfilter.7*
721 %{_mandir}/man7/authlib.7*
722 %{_mandir}/man7/authcram.7*
723 %{_mandir}/man7/authdaemon.7*
724 %{_mandir}/man7/authdaemond.7*
725 %{_mandir}/man7/authpam.7*
726 %{_mandir}/man7/authpwd.7*
727 %{_mandir}/man7/authshadow.7*
728 %{_mandir}/man7/authuserdb.7*
729 %{_mandir}/man7/authvchkpw.7*
730 %{_mandir}/man8/courierfilter.8*
731 %{_mandir}/man8/courierperlfilter.8*
732 %{_mandir}/man8/dupfilter.8*
733 %{_mandir}/man8/courier.8*
734 %{_mandir}/man8/courierldapaliasd.8*
735 %{_mandir}/man8/deliverquota.8*
736 %{_mandir}/man8/esmtpd.8*
737 %{_mandir}/man8/makeacceptmailfor.8*
738 %{_mandir}/man8/makehosteddomains.8*
739 %{_mandir}/man8/mkesmtpdcert.8*
740 %{_mandir}/man8/makealiases.8*
741 %{_mandir}/man8/makepercentrelay.8*
742 %{_mandir}/man8/makesmtpaccess.8*
743 %{_mandir}/man8/makeuserdb.8*
744 %{_mandir}/man8/submit.8*
745 %{_mandir}/man8/userdb.8*
746 %{_mandir}/man8/userdbpw.8*
747 %{_mandir}/man8/courieruucp.8*
748 %{_mandir}/man8/esmtpd-msa.8*
749 %{_mandir}/man8/filterctl.8*
750 %{_mandir}/man8/makesmtpaccess-msa.8*
751 %{_mandir}/man8/makeuucpneighbors.8*
752 %{_mandir}/man8/pw2userdb.8*
753 %{_mandir}/man8/vchkpw2userdb.8*
754 %dir %{_sysconfdir}
755 %attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
756 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/me
757 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaddressbook
758 %attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
759 %attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
760 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/enablefiltering
761 %attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
762 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/smtpaccess/default
763 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpacceptmailfor.dir/default
764 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/locals
765 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/courierd
766 %attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/aliases/system
767 %attr(644,root,root) %{_sysconfdir}/quotawarnmsg.example
768 %dir %{_libdir}
769 %dir %{_libdir}/courier
770 %dir %{_datadir}
771 %{_datadir}/rootcerts
772 %attr(755,root,root) %dir %{_datadir}/courierwebadmin
773 %dir %{_libdir}/filters
774 %attr(755,root,root) %{_libdir}/filters/*
775 %attr(755,root,root) %{_datadir}/perlfilter-*.pl
776 %dir %{_localstatedir}
777 %attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
778 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
779 %attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
780 %attr(750,daemon,daemon) %dir %{_localstatedir}/filters
781 %attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
782 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
783 %attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
784 %attr(754,root,daemon) %{_datadir}/filterctl
785 %attr(754,root,daemon) %{_sbindir}/filterctl
786 %attr(754,root,daemon) %{_sbindir}/courierfilter
787 %dir %{_libdir}/courier/modules
788 %dir %{_libdir}/courier/modules/uucp
789 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.uucp
790 %attr(755,root,root) %{_libdir}/courier/modules/uucp/courieruucp
791 %attr(755,root,root) %{_sbindir}/makeuucpneighbors
792 %attr(755,root,root) %{_datadir}/makeuucpneighbors
793 %dir %{_libdir}/courier/modules/local
794 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.local
795 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmodulelist
796 %attr(755,root,root) %{_libdir}/courier/modules/local/courierlocal
797 %attr(755,root,root) %{_libdir}/courier/modules/local/courierdeliver
798 %attr(755,root,root) %{_bindir}/preline
799 %dir %{_libdir}/courier/modules/esmtp
800 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.esmtp
801 %attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtp
802 %attr(750,root,daemon) %{_libdir}/courier/modules/esmtp/courieresmtpd
803 %attr(755,root,root) %{_libdir}/courier/modules/esmtp/addcr
804 %attr(755,root,root) %{_sbindir}/courieresmtpd
805 %attr(755,root,root) %{_bindir}/addcr
806 %attr(755,root,root) %{_sbindir}/esmtpd
807 %attr(755,root,root) %{_datadir}/esmtpd
808 %attr(755,root,root) %{_sbindir}/esmtpd-ssl
809 %attr(755,root,root) %{_datadir}/esmtpd-ssl
810 %attr(755,root,root) %{_sbindir}/makesmtpaccess
811 %attr(755,root,root) %{_datadir}/makesmtpaccess
812 %attr(755,root,root) %{_sbindir}/makeacceptmailfor
813 %attr(755,root,root) %{_datadir}/makeacceptmailfor
814 %attr(755,root,root) %{_sbindir}/makepercentrelay
815 %attr(755,root,root) %{_datadir}/makepercentrelay
816 %attr(755,root,root) %{_sbindir}/mkesmtpdcert
817 %attr(755,root,root) %{_datadir}/mkesmtpdcert
818 %attr(755,root,root) %{_sbindir}/esmtpd-msa
819 %attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
820 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd
821 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-msa
822 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd-ssl
823 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
824 %attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
825 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpd.cnf
826 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/esmtpauthclient
827 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsndelayed.txt
828 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsndelivered.txt
829 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnfailed.txt
830 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnrelayed.txt
831 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnfooter.txt
832 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectnotice.txt
833 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnsubjectwarn.txt
834 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dsnheader.txt
835 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/module.dsn
836 %dir %{_libdir}/courier/modules/dsn
837 %attr(755,root,root) %{_libdir}/courier/modules/dsn/courierdsn
838 %{_libdir}/courier/modules/modules.ctl
839 %attr(4550,daemon,daemon) %{_libdir}/courier/submitmkdir
840 %attr(750,root,daemon) %{_libdir}/courier/courierd
841 %attr(750,root,daemon) %{_libdir}/courier/aliasexp
842 %attr(750,root,daemon) %{_libdir}/courier/aliascombine
843 %attr(750,root,daemon) %{_libdir}/courier/aliascreate
844 %attr(750,root,daemon) %{_libdir}/courier/submit
845 %attr(755,root,root) %{_libdir}/courier/makedatprog
846 %attr(755,root,root) %{_sbindir}/authenumerate
847 %attr(6555,daemon,daemon) %{_bindir}/cancelmsg
848 %attr(755,root,root) %{_sbindir}/courier
849 %attr(755,root,root) %{_datadir}/courierctl.start
850 %attr(755,root,root) %{_bindir}/couriertls
851 %attr(755,root,root) %{_sbindir}/couriertcpd
852 %attr(755,root,root) %{_sbindir}/courierlogger
853 %attr(755,root,root) %{_bindir}/courier-config
854 %attr(755,root,root) %{_bindir}/deliverquota
855 %attr(755,root,root) %{_bindir}/dotforward
856 %attr(755,root,root) %{_bindir}/lockmail
857 %attr(755,root,root) %{_bindir}/mailbot
858 %attr(2755,root,daemon) %{_bindir}/mailq
859 %attr(750,root,daemon) %{_datadir}/makealiases
860 %attr(750,root,daemon) %{_sbindir}/makealiases
861 %attr(755,root,root) %{_datadir}/makedat
862 %attr(755,root,root) %{_bindir}/makedat
863 %attr(755,root,root) %{_datadir}/makehosteddomains
864 %attr(755,root,root) %{_sbindir}/makehosteddomains
865 %attr(755,root,root) %{_bindir}/makemime
866 %attr(755,root,root) %{_datadir}/makeuserdb
867 %attr(755,root,root) %{_sbindir}/makeuserdb
868 %attr(755,root,root) %{_bindir}/mimegpg
869 %attr(755,root,root) %{_datadir}/pw2userdb
870 %attr(755,root,root) %{_sbindir}/pw2userdb
871 %attr(4755,root,root) %{_bindir}/rmail
872 %attr(755,root,root) %{_sbindir}/showconfig
873 %attr(750,root,daemon) %{_sbindir}/showmodules
874 %attr(4755,root,root) %{_sbindir}/sendmail
875 %attr(755,root,root) %{_bindir}/testmxlookup
876 %attr(755,root,root) %{_datadir}/userdb
877 %attr(755,root,root) %{_sbindir}/userdb
878 %attr(755,root,root) %{_sbindir}/userdbpw
879 %attr(755,root,root) %{_datadir}/vchkpw2userdb
880 %attr(755,root,root) %{_sbindir}/vchkpw2userdb
881 %attr(640,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ldapaliasrc
882 %attr(700,daemon,daemon) %{_sbindir}/courierldapaliasd
883 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authdaemonrc
884 %dir %{_libdir}/authlib
885 %attr(755,root,root) %{_libdir}/authlib/authdaemon
886 %attr(755,root,root) %{_libdir}/authlib/authdaemond.plain
887 %attr(755,root,root) %{_libdir}/authlib/authdaemond
888 %attr(770,daemon,daemon) %dir %{_localstatedir}/authdaemon
889 %attr(755,root,root) %dir %{_libdir}/authlib/changepwd
890 %attr(4755,root,root) %{_libdir}/authlib/changepwd/authdaemon.passwd
891 %attr(755,root,root) %{_libdir}/authlib/changepwd/authsystem.passwd
892 %attr(755,root,root) %{_datadir}/authsystem.passwd
893 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/esmtp
894 %attr(755,root,root) /etc/profile.d/courier.sh
895 %attr(755,root,root) /etc/profile.d/courier.csh
896 %attr(754,root,root) /etc/rc.d/init.d/courier
897 %attr(700,daemon,daemon) %dir %{_sysconfdir}/userdb
898 %attr(755,daemon,daemon) %dir %{_localstatedir}/calendar
899 %attr(755,daemon,daemon) %dir %{_localstatedir}/tmp/broken
900 %attr(755,root,root) /usr/lib/sendmail
901
902 %files pop3d
903 %defattr(644,root,root,755)
904 %doc htmldoc/*pop3d*
905 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/pop3
906 %{_mandir}/man8/courierpop3d.8*
907 %{_mandir}/man8/courierpop3login.8*
908 %{_mandir}/man8/mkpop3dcert.8*
909 %{_mandir}/man8/pop3d.8*
910 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-45pop3.pl
911 %{_datadir}/courierwebadmin/admin-45pop3.html
912 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d
913 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d.cnf
914 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pop3d-ssl
915 %attr(755,root,root) %{_libdir}/courier/courierpop3d
916 %attr(755,root,root) %{_libdir}/courier/courierpop3login
917 %attr(755,root,root) %{_datadir}/mkpop3dcert
918 %attr(755,root,root) %{_sbindir}/mkpop3dcert
919 %attr(755,root,root) %{_datadir}/pop3d
920 %attr(755,root,root) %{_sbindir}/pop3d
921 %attr(755,root,root) %{_datadir}/pop3d-ssl
922 %attr(755,root,root) %{_sbindir}/pop3d-ssl
923
924 %files imapd
925 %defattr(644,root,root,755)
926 %doc htmldoc/*imapd*
927 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/imap
928 %{_mandir}/man8/imapd.8*
929 %{_mandir}/man8/mkimapdcert.8*
930 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-40imap.pl
931 %attr(644,root,root) %{_datadir}/courierwebadmin/admin-40imap.html
932 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd
933 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd-ssl
934 %attr(600,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/imapd.cnf
935 %attr(755,root,root) %{_libdir}/courier/imaplogin
936 %attr(755,root,root) %{_sbindir}/imapd
937 %attr(755,root,root) %{_sbindir}/imapd-ssl
938 %attr(755,root,root) %{_datadir}/imapd
939 %attr(755,root,root) %{_datadir}/imapd-ssl
940 %attr(755,root,root) %{_bindir}/imapd
941 %attr(755,root,root) %{_datadir}/mkimapdcert
942 %attr(755,root,root) %{_sbindir}/mkimapdcert
943
944 %files webadmin
945 %defattr(644,root,root,755)
946 %attr(4755,root,root) %{_cgibindir}/webadmin
947 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
948 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
949 %attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
950 %attr(400,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/webadmin/password
951 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/webadmin/unsecureok
952 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-main.pl
953 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-save.pl
954 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-cancel.pl
955 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-[0235]*.pl
956 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-10password.pl
957 %attr(755,root,root) %{_datadir}/courierwebadmin/dumpenv.pl
958 %attr(755,root,root) %{_datadir}/courierwebadmin/webadmin.pl
959 %{_datadir}/courierwebadmin/admin-[0235]*.html
960 %{_datadir}/courierwebadmin/admin-10password.html
961 %{_datadir}/courierwebadmin/admin-main.html
962 %{_datadir}/courierwebadmin/admin-save.html
963 %{_datadir}/courierwebadmin/login.html
964 %{_datadir}/courierwebadmin/notsupp.html
965 %{_datadir}/courierwebadmin/unsecure.html
966 %{_datadir}/courierwebadmin/webadmin.pm
967
968 %files webmail
969 %defattr(644,root,root,755)
970 %doc htmldoc/pcp*
971 %attr(4755,root,root) %{_cgibindir}/webmail
972 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/webmail
973 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/calendar
974 %{_documentrootdir}/webmail
975 %dir %{_datadir}/sqwebmail
976 %dir %{_datadir}/sqwebmail/html
977 %dir %{_datadir}/sqwebmail/html/en-us
978 %{_datadir}/sqwebmail/html/en
979 %config %{_datadir}/sqwebmail/html/en-us/[CILT]*
980 %{_datadir}/sqwebmail/html/en-us/*.html
981 %{_datadir}/sqwebmail/html/en-us/*.txt
982 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-47webmail.pl
983 %{_datadir}/courierwebadmin/admin-47webmail.html
984 %attr(755,root,root) %{_datadir}/sqwebmail/cleancache.pl
985 %attr(755,root,root) %{_datadir}/sqwebmail/ldapsearch
986 %attr(755,root,root) %{_datadir}/sqwebmail/sendit.sh
987 %attr(755,root,root) %{_datadir}/sqwebmail/webgpg
988 %attr(755,root,root) %{_sbindir}/webgpg
989 %attr(755,root,root) %{_libdir}/courier/pcpd
990 %attr(755,root,root) %{_libdir}/courier/sqwebmaild
991 %attr(700, bin, bin) %dir %{_localstatedir}/webmail-logincache
992 %attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
993
994 %files maildrop
995 %defattr(644,root,root,755)
996 %doc htmldoc/r* htmldoc/maildrop* htmldoc/lockmail*
997 %{_mandir}/man1/maildrop.1*
998 %{_mandir}/man1/refor*
999 %{_mandir}/man5/maildrop*
1000 %attr(644,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/maildrop
1001 %attr(4755,root,root) %{_bindir}/maildrop
1002 %attr(755,root,root) %{_bindir}/reformail
1003 %attr(755,root,root) %{_bindir}/reformime
1004
1005 %files maildir-tools
1006 %defattr(644,root,root,755)
1007 %doc maildir/README.*.html htmldoc/maildir*
1008 %{_mandir}/man1/maildirmake.1*
1009 %{_mandir}/man1/maildirkw.1*
1010 %{_mandir}/man1/maildiracl.1*
1011 %{_mandir}/man5/maildir.5*
1012 %{_mandir}/man7/maildirquota.7*
1013 %attr(755,root,root) %{_bindir}/maildirmake
1014 %attr(755,root,root) %{_bindir}/maildirkw
1015 %attr(755,root,root) %{_bindir}/maildiracl
1016 %attr(755,root,root) %{_sbindir}/sharedindexinstall
1017 %attr(755,root,root) %{_sbindir}/sharedindexsplit
1018
1019 %files mlm
1020 %defattr(644,root,root,755)
1021 %doc htmldoc/couriermlm.html
1022 %{_mandir}/man1/couriermlm.1*
1023 %attr(755,root,root) %{_bindir}/couriermlm
1024 %{_datadir}/couriermlm
1025
1026 %files smtpauth
1027 %defattr(644,root,root,755)
1028 %attr(4750,root,daemon) %{_libdir}/courier/modules/esmtp/authstart
1029 %attr(755,root,root) %{_libdir}/courier/modules/esmtp/authend
1030
1031 %files authldap
1032 %defattr(644,root,root,755)
1033 %doc authlib/README.ldap
1034 %attr(755,root,root) %{_libdir}/authlib/authdaemond.ldap
1035 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authldaprc
1036 %{_mandir}/man7/authldap.7*
1037 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-15ldap.pl
1038 %{_datadir}/courierwebadmin/admin-15ldap.html
1039 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-15ldapa.pl
1040 %{_datadir}/courierwebadmin/admin-15ldapa.html
1041
1042 %files authmysql
1043 %defattr(644,root,root,755)
1044 %doc authlib/README.authmysql.html authlib/README.authmysql.myownquery
1045 %attr(755,root,root) %{_libdir}/authlib/authdaemond.mysql
1046 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authmysqlrc
1047 %{_mandir}/man7/authmysql.7*
1048 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-15mysql.pl
1049 %{_datadir}/courierwebadmin/admin-15mysql.html
1050
1051 %files authpgsql
1052 %defattr(644,root,root,755)
1053 %doc authlib/README.authpostgres.html
1054 %attr(755,root,root) %{_libdir}/authlib/authdaemond.pgsql
1055 %attr(660,daemon,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/authpgsqlrc
1056 %{_mandir}/man7/authpgsql.7*
1057 %attr(755,root,root) %{_datadir}/courierwebadmin/admin-15pgsql.pl
1058 %{_datadir}/courierwebadmin/admin-15pgsql.html
This page took 0.127259 seconds and 4 git commands to generate.