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