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