]> git.pld-linux.org Git - packages/courier.git/blame - courier.spec
- updated to 1.1.8
[packages/courier.git] / courier.spec
CommitLineData
485ac86d 1# TODO
6c3bd8da 2# - doesn't -webadmin need webserver integration?
95006427 3# - use rc-scripts in %%post scriptlets
7859d47c 4# - init.d script, pre and post for webmlm?
285ed68b
AA
5#
6# Conditional build:
a6245dc6 7%bcond_without fam # with fam support
401b2552
JB
8%bcond_with gnutls # GnuTLS instead of OpenSSL
9%bcond_with socks # (Courier) Socks support
c7adf967 10%bcond_with tests # without tests
285ed68b 11#
f65a4ca3 12Summary: Courier mail server
5537b050 13Summary(pl.UTF-8): Serwer poczty Courier
ac45207a 14Name: courier
ed681050
JB
15Version: 1.1.8
16Release: 1
9754ea44 17License: GPL v3 with OpenSSL exception
1fdfbbe1 18Group: Networking/Daemons
ed681050
JB
19Source0: https://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
20# Source0-md5: 13de4bf23524c64f270161d22e59a593
285ed68b 21Patch1: %{name}-withoutfam.patch
0dae501c 22Patch2: %{name}-maildir.patch
7b162996
AA
23Patch3: %{name}-sendmail_dir.patch
24Patch4: %{name}-start_scripts.patch
27221f8a 25Patch5: %{name}-certs.patch
9754ea44 26Patch6: %{name}-filterbindir.patch
f65a4ca3 27URL: http://www.courier-mta.org/
9754ea44 28BuildRequires: autoconf >= 2.59
77b70afa 29BuildRequires: automake
ed681050 30BuildRequires: courier-authlib-devel >= 0.71
401b2552 31%{?with_socks:BuildRequires: courier-sox-devel}
6d61614b 32BuildRequires: courier-unicode-devel >= 2.1
401b2552 33BuildRequires: db-devel
1fdfbbe1 34BuildRequires: expect
485ac86d 35%{?with_fam:BuildRequires: fam-devel}
dc4f5410 36BuildRequires: gettext-tools
401b2552 37# or gnupg2 when --with-gpg2
b325c6a1 38BuildRequires: gnupg
401b2552
JB
39%{?with_gnutls:BuildRequires: gnutls-devel >= 3.0}
40%{?with_gnutls:BuildRequires: libgcrypt-devel}
41%{?with_gnutls:BuildRequires: libgpg-error-devel}
42BuildRequires: libidn-devel >= 0.0.0
43BuildRequires: libstdc++-devel >= 6:4.7
9754ea44 44BuildRequires: libtool >= 2:1.5
932156cb 45BuildRequires: mailcap
b2511bb8 46BuildRequires: openldap-devel >= 2.3.0
401b2552 47%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d}
cb2ac501 48BuildRequires: openssl-tools >= 0.9.7d
debd9b9c 49BuildRequires: pam-devel
ed681050 50BuildRequires: pcre2-8-devel
401b2552 51BuildRequires: perl-devel >= 5
b325c6a1 52BuildRequires: pkgconfig
6c3bd8da 53BuildRequires: rpmbuild(macros) >= 1.268
27221f8a 54BuildRequires: sed >= 4.0
77b70afa 55BuildRequires: sysconftool
36277a4b 56Requires(post,preun): /sbin/chkconfig
401b2552
JB
57# even if using OpenSSL libraries, Courier uses certtool from GnuTLS
58Requires: /usr/bin/certtool
ed681050 59Requires: courier-authlib >= 0.71
c7f61e7e 60Requires: courier-unicode >= 2.1
95006427 61Requires: rc-scripts
ac45207a 62Provides: smtpdaemon
a0621e90 63Obsoletes: smtpdaemon
6d61614b 64Conflicts: cone < 1
36277a4b 65BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c5ebe9bf 66
f65a4ca3
JB
67%define _localstatedir /var/spool/courier
68%define _sysconfdir /etc/courier
c5520896 69%define _certsdir %{_sysconfdir}/certs
c5ebe9bf 70
6c3bd8da 71%define _webapps /etc/webapps
3b267ecc 72%define _cgibindir /usr/lib/cgi-bin
9754ea44 73%define _imagedir %{_datadir}/courier/sqwebmail/images
33c18667 74%define _imageurl /webmail
c5ebe9bf 75
c5ebe9bf 76%description
77Courier is a fully functional mail server, that can completely take
78over the mail services normally provided by sendmail, Qmail, or any
9e755595 79other mail server. Although Courier does not support all legacy
c5ebe9bf 80features of existing mail servers, the number of obsoleted functions
81is very small, and there are better, and more robust, alternatives
82available.
83
84Courier implements many SMTP extensions: DSN, PIPELINING, 8BITMIME.
85Courier also implements several new SMTP extensions for mailing list
86management and spam filtering.
87
33db9f72
JR
88%description -l pl.UTF-8
89Courier jest w pełni funkcjonalnym serwerem poczty, może całkowicie
90zastąpić usługi pocztowe dawane przez sendmail, Qmaila i inne serwery.
91Wprawdzie Courier nie ma wszystkich możliwości istniejących serwerów,
92ilość nie obsługiwanych funkcji jest bardzo mała, i są dostępne lepsze
6f4c39d4 93alternatywy.
f65a4ca3 94
33db9f72
JR
95Courier zawiera wiele rozszerzeń SMTP: DSN, PIPELINING, 8BITMIME. Ma
96także nowe rozszerzenia SMTP dla pocztowych list dyskusyjnych i
f65a4ca3
JB
97filtrowania spamu.
98
f65a4ca3
JB
99%package pop3d
100Summary: Courier Integrated POP3 server
5537b050 101Summary(pl.UTF-8): Zintegrowany serwer POP3 do Couriera
1bdc4e6f 102Group: Networking/Daemons/POP3
3b73318a 103Requires(post): openssl-tools >= 0.9.7d
485ac86d 104Requires: %{name} = %{version}-%{release}
732bab98
TP
105Provides: pop3daemon
106Obsoletes: pop3daemon
f65a4ca3 107
c5ebe9bf 108%description pop3d
109This package installs Courier mail server's integrated POP3 server,
110which allows you to download mail from your mailbox using any POP3
9e755595
JB
111client. Courier's POP3 server can only be used to download mail from
112maildir mailboxes. This server does not support mailbox files. If you
113do not need the ability to download your mail using a POP3 client, you
114do not need to install this package.
c5ebe9bf 115
33db9f72
JR
116%description pop3d -l pl.UTF-8
117Ten pakiet zawiera zintegrowany serwer POP3 do Couriera, pozwalający
118na ściąganie poczty ze skrzynki przy pomocy dowolnego klienta POP3.
119Serwer POP3 Couriera może być używany tylko ze skrzynkami Maildir, nie
120obsługuje skrzynek w postaci pojedynczych plików.
f65a4ca3
JB
121
122%package imapd
123Summary: Courier Integrated IMAP server
5537b050 124Summary(pl.UTF-8): Zintegrowany serwer IMAP do Couriera
1fdfbbe1 125Group: Networking/Daemons
3b73318a 126Requires(post): openssl-tools >= 0.9.7d
485ac86d 127Requires: %{name} = %{version}-%{release}
f65a4ca3
JB
128Obsoletes: courier-imap
129Obsoletes: courier-imap-common
130
c5ebe9bf 131%description imapd
9e755595
JB
132This package installs Courier mail server's integrated IMAP server. If
133you do not need the ability to download your mail using an IMAP mail
134client, you do not need to install this package. Courier's IMAP server
135can only be used to download mail from maildir mailboxes. This server
136does not support mailbox files.
137
138This package requires that Courier must be already installed, this is
139NOT the standalone version of the Courier-IMAP server, and you cannot
140install both this package, and the standalone version of Courier-IMAP.
141If you have the standalone version of the Courier-IMAP server already
142installed, installing this package will automatically remove the
143standalone version.
c5ebe9bf 144
33db9f72 145%description imapd -l pl.UTF-8
f65a4ca3 146Ten pakiet zawiera zintegrowany serwer IMAP do Couriera. Pozwala
33db9f72
JR
147ściągać pocztę przy pomocy klienta IMAP. Serwer IMAP Couriera może być
148używany tylko ze skrzynkami Maildir, nie obsługuje skrzynek w postaci
149pojedynczych plików.
f65a4ca3
JB
150
151Ten pakiet wymaga serwera Courier, to NIE jest samodzielna wersja
33db9f72 152serwera Courier-IMAP. Nie można też instalować jednocześnie tego
f65a4ca3 153pakietu i samodzielnej wersji Courier-IMAP. Zainstalowanie tego
33db9f72 154pakietu automatycznie odinstaluje Courier-IMAP jeśli był zinstalowany.
f65a4ca3 155
ea45ecdd
AA
156%package webadmin
157Summary: Courier Integrated HTTP administraton panel
5537b050 158Summary(pl.UTF-8): Panel administracyjny przez HTTP dla Couriera
ea45ecdd 159Group: Networking/Daemons
485ac86d 160Requires: %{name} = %{version}-%{release}
5405c399 161Requires: filesystem >= 3.0-11
6c3bd8da 162Requires: webapps
e15af55d 163Requires: webserver = apache
8e3ef11d
AA
164Conflicts: apache-base < 2.2.0-8
165Conflicts: apache1 < 1.3.34-5.11
ea45ecdd
AA
166
167%description webadmin
168This is a web-based administration tool. Webadmin is a web CGI
169application.
170
33db9f72
JR
171%description webadmin -l pl.UTF-8
172Webadmin jest narzędziem administracyjnym obsługiwanym przez WWW.
ea45ecdd 173
f65a4ca3
JB
174%package webmail
175Summary: Courier Integrated HTTP (webmail) server
5537b050 176Summary(pl.UTF-8): Zintegrowany serwer poczty przez HTTP (webmail) do Couriera
1fdfbbe1 177Group: Networking/Daemons
485ac86d 178Requires: %{name} = %{version}-%{release}
2a001acf 179Requires: filesystem >= 3.0-11
6c3bd8da 180Requires: webapps
e15af55d 181Requires: webserver = apache
8e3ef11d
AA
182Conflicts: apache-base < 2.2.0-8
183Conflicts: apache1 < 1.3.34-5.11
f65a4ca3 184
c5ebe9bf 185%description webmail
186This package installs Courier mail server's integrated HTTP webmail
9e755595
JB
187server. If you do not need the ability to access your mail using a web
188browser, you do not need to install this package. Courier's webmail
189server can only be used to download mail from maildir mailboxes. This
190server does not support mailbox files.
c5ebe9bf 191
9e755595
JB
192This is the same server that's distributed separately under the name
193of SqWebMail, however its configuration is customized for the Courier
194mail server.
c5ebe9bf 195
33db9f72 196%description webmail -l pl.UTF-8
f65a4ca3 197Ten pakiet zawiera zintegrowany serwer poczty przez HTTP (webmail) dla
33db9f72
JR
198Couriera, pozwalający na dostęp do poczty za pomocą przeglądarki WWW.
199Serwer webmail Couriera może być używany tylko ze skrzynkami Maildir,
200nie obsługuje skrzynek w postaci pojedynczych plików.
f65a4ca3 201
33db9f72 202Jest to ten sam serwer, co dystrybuowany oddzielnie pod nazwą
f65a4ca3
JB
203SqWebMail, ale jego konfiguracja jest dostosowana do serwera Courier.
204
7859d47c 205%package webmlm
206Summary: Courier web-based access to some couriermlm commands
207Summary(pl.UTF-8): Dostęp WWW do niektórych poleceń couriermlm do Couriera
208Group: Networking/Daemons
209Requires: %{name} = %{version}-%{release}
210Requires: filesystem >= 3.0-11
211Requires: webapps
212Requires: webserver = apache
213Conflicts: apache-base < 2.2.0-8
214Conflicts: apache1 < 1.3.34-5.11
215
216%description webmlm
217WebMLM is a service that offers an alternative web-based access to
218some couriermlm commands, as an alternative to submitting them via
219E-mail.
220
a28b7ad2 221%description webmlm -l pl.UTF-8
7859d47c 222WebMLM to serwis oferujący dostęp WWW do wybranych poleceń couriermlm
223jako alternatywę do wysyłania ich poprzez e-mail.
224
9a3d2e11 225%package maildir-tools
8e00b423 226Summary: Tools for mail folders in Maildir format
5537b050 227Summary(pl.UTF-8): Narzędzia do zarządzania skrzynkami Maildir
8e00b423
AA
228Group: Applications/Mail
229Requires: %{name} = %{version}-%{release}
230
9a3d2e11 231%description maildir-tools
8e00b423
AA
232This package contains tools for mail folders in Maildir format.
233
33db9f72
JR
234%description maildir-tools -l pl.UTF-8
235Ten pakiet zawiera narzędzia do zarządzania folderami w formacie
6f4c39d4 236Maildir.
8e00b423 237
f65a4ca3
JB
238%package mlm
239Summary: Courier Integrated Mailing List Manager
5537b050 240Summary(pl.UTF-8): Zintegrowany zarządca list dyskusyjnych do Couriera
f65a4ca3 241Group: Applications/Mail
7efe0fc9 242Requires: %{name} = %{version}-%{release}
c5ebe9bf 243
244%description mlm
245This package installs couriermlm - a mailing list manager for the
9e755595
JB
246Courier mail server. If you do not need the ability to manage mailing
247lists, you do not need to install this package.
c5ebe9bf 248
249couriermlm is used to set up, maintain, and run a mailing list.
250couriermlm automatically processes subscription and unsubscription
251requests, and removes undeliverable addresses from the subscription
9e755595 252rolls. Mailing lists managed by couriermlm require zero human
c5ebe9bf 253administrative oversight. couriermlm supports digests, write-only
254posting aliases, and moderated mailing lists.
255
33db9f72
JR
256%description mlm -l pl.UTF-8
257Ten pakiet zawiera couriermlm - program do zarządzania listami
258dyskusyjnymi dla Couriera. couriermlm jest używany do konfigurowania,
259zarządzania i prowadzenia pocztowej listy dyskusyjnej. Automatycznie
260obsługuje żądania zapisywania i wypisywania oraz usuwa z listy
261niedziałające adresy subskrybentów. Listy obsługiwane przez couriermlm
262nie wymagają pracy administratora. couriermlm obsługuje digesty,
263aliasy pocztowe tylko do wysyłania i listy moderowane.
f65a4ca3
JB
264
265%package maildrop
266Summary: Courier Integrated mail filter
5537b050 267Summary(pl.UTF-8): Zintegrowany filtr poczty do Couriera
f65a4ca3 268Group: Applications/Mail
7efe0fc9 269Requires: %{name} = %{version}-%{release}
f65a4ca3
JB
270
271%description maildrop
272This package installs Courier mail server's integrated mail filter.
9e755595
JB
273You need to install this package if you want to be able to filter your
274incoming mail.
f65a4ca3 275
33db9f72 276%description maildrop -l pl.UTF-8
f65a4ca3 277Ten pakiet zawiera zintegrowany filtr poczty dla Couriera. Jest
33db9f72 278potrzebny do filtrowania przychodzącej poczty.
f65a4ca3 279
9754ea44
JB
280%package fax
281Summary: Courier fax support
282Summary(pl.UTF-8): Obsługa faksów dla Couriera
283Group: Applications/Mail
284Requires: %{name} = %{version}-%{release}
401b2552
JB
285Requires: ghostscript
286Requires: groff
287Requires: netpbm-progs
288#Requires: /usr/bin/sendfax
289# pdftops
290Suggests: poppler-progs
9754ea44
JB
291
292%description fax
293This package adds support for faxing E-mail messages. It allows to
294send fax messages simply by sending an E-mail to phonenumber@fax.
295
296%description fax -l pl.UTF-8
297Ten pakiet dodaje obsługę faksowania listów elektronicznych. Pozwala
298wysyłać faksy wysyłając po prostu e-maila na numertelefonu@fax.
299
c5ebe9bf 300%prep
43a020ce 301%setup -q
285ed68b 302%{!?with_fam:%patch1 -p1}
0dae501c 303%patch2 -p1
d69319ff 304%patch3 -p1
9efdd476 305%patch4 -p1
ed6b22b8 306%patch5 -p1
58bc002e 307%patch6 -p1
c5ebe9bf 308
9754ea44 309cat >apache.conf <<EOF
6c3bd8da
ER
310Alias /webmail %{_imagedir}
311<Directory %{_imagedir}>
312 AllowOverride None
313 Options None
6c3bd8da
ER
314 Allow from all
315</Directory>
9754ea44 316EOF
6c3bd8da 317
50b95ff6 318%build
9754ea44 319%{__libtoolize}
95221c40
AA
320# Change Makefile.am files and force recreate Makefile.in's.
321OLDDIR=`pwd`
9754ea44 322find -type f -a -name configure.ac | while read FILE; do
95221c40
AA
323 cd "`dirname "$FILE"`"
324
325 if [ -f Makefile.am ]; then
6f622803 326 sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am
95221c40
AA
327 fi
328
ed681050 329 %{__aclocal} $(test ! -d m4 || echo -I m4)
95221c40 330 %{__autoconf}
9754ea44 331 if grep -q AC_CONFIG_HEADER configure.ac; then
e2d411bb
ER
332 %{__autoheader}
333 fi
95221c40
AA
334 %{__automake}
335
336 cd "$OLDDIR"
337done
d8190ce6 338
50b95ff6 339%configure \
401b2552
JB
340 CERTTOOL=/usr/bin/certtool \
341 GROPS=/usr/bin/grops \
342 GS=/usr/bin/gs \
343 PNMSCALE=/usr/bin/pnmscale \
344 OPENSSL=/usr/bin/openssl \
345 SENDFAX=/usr/bin/sendfax \
9754ea44 346 --datadir=%{_datadir}/courier \
33c18667 347 --enable-imagedir=%{_imagedir} \
cbf1746a 348 --enable-imageurl=%{_imageurl} \
401b2552 349 --enable-mimetypes=/etc/mime.types \
c5520896 350 --with-certsdir=%{_certsdir} \
9efdd476 351 --with-db=db \
401b2552 352 %{?with_gnutls:--with-gnutls} \
33c18667 353 --with-mailer=%{_sbindir}/sendmail \
9754ea44 354 --with-mailgid=2 \
33c18667
AA
355 --with-mailgroup=daemon \
356 --with-mailuid=2 \
401b2552 357 --with-mailuser=daemon \
6d61614b 358 --with-notice=unicode \
401b2552 359 %{!?with_socks:--without-socks}
c5ebe9bf 360
5b00fb05 361%{__make} -j1
fbcfab47 362%{?with_tests:%{__make} -j1 check}
c5ebe9bf 363
f65a4ca3
JB
364%install
365rm -rf $RPM_BUILD_ROOT
c5ebe9bf 366umask 022
92ccf594 367install -d -p $RPM_BUILD_ROOT/etc/{cron.hourly,pam.d,rc.d/init.d} \
9754ea44 368 $RPM_BUILD_ROOT{/usr/lib,%{_certsdir},%{_cgibindir},%{_webapps}/courier-webmail,%{_sysconfdir}/hosteddomains}
c5ebe9bf 369
5b00fb05 370%{__make} -j1 install \
3d3f32f4 371 DESTDIR=$RPM_BUILD_ROOT
c5ebe9bf 372
a78f0f7d 373# fix pam problem
ed681050 374%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.authpam
a78f0f7d
AA
375for X in imap esmtp pop3 webmail calendar
376do
e15af55d 377 cat > $RPM_BUILD_ROOT/etc/pam.d/$X <<'EOF'
0dae501c 378#%PAM-1.0
a0621e90 379auth required pam_unix.so shadow nullok
380account required pam_unix.so
381session required pam_unix.so
a78f0f7d
AA
382EOF
383done
c5ebe9bf 384
f224ea7d 385%{__make} install-perms
c5ebe9bf 386
ea45ecdd 387# Move webmail and webadmin to cgibindir
9754ea44 388%{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webmail \
c5ebe9bf 389 $RPM_BUILD_ROOT%{_cgibindir}/webmail
9754ea44 390%{__mv} $RPM_BUILD_ROOT%{_libexecdir}/courier/webmail/webadmin \
ea45ecdd 391 $RPM_BUILD_ROOT%{_cgibindir}/webadmin
c5ebe9bf 392
ed681050
JB
393# noinst program (as of 1.1.8)
394%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/maildirwatch.1
395
debd9b9c 396# install a cron job to clean out webmail's cache
9754ea44 397install libs/sqwebmail/cron.cmd $RPM_BUILD_ROOT/etc/cron.hourly/courier-webmail-cleancache
c5ebe9bf 398
9754ea44
JB
399# Move .html documentation to docdir; use common directory for all subpackages for references to work.
400install -d $RPM_BUILD_ROOT%{_docdir}
401%{__mv} $RPM_BUILD_ROOT%{_datadir}/courier/htmldoc $RPM_BUILD_ROOT%{_docdir}/courier
c5ebe9bf 402
403# Manually set POP3DSTART and IMAPDSTART to yes, they'll go into a separate
404# package, so after it's installed they should be runnable.
405
27221f8a
AA
406sed -i 's/^POP3DSTART.*/POP3DSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
407sed -i 's/^POP3DSSLSTART.*/POP3DSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
408sed -i 's/^IMAPDSTART.*/IMAPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
409sed -i 's/^IMAPDSSLSTART.*/IMAPDSSLSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
c5ebe9bf 410
0f904c39 411# Want to have esmtpd running by default
27221f8a 412sed -i 's/^ESMTPDSTART.*/ESMTPDSTART=YES/' $RPM_BUILD_ROOT%{_sysconfdir}/esmtpd.dist
0f904c39 413
d10c99ec
AA
414# run script from install-configure (make config files)
415for confdist in `awk ' $5 == "config" && $1 ~ /\.dist$/ { print $1 }' <permissions.dat`
95006427 416do %{__perl} ././sysconftool $RPM_BUILD_ROOT$confdist
d10c99ec
AA
417done
418
3b73318a 419# make locals, esmtpacceptmailfor.dir/default
20d769cb
AA
420touch $RPM_BUILD_ROOT%{_sysconfdir}/esmtpacceptmailfor.dir/default
421touch $RPM_BUILD_ROOT%{_sysconfdir}/locals
c5ebe9bf 422
51b0e2b5
AA
423# file with important options
424cat > $RPM_BUILD_ROOT%{_sysconfdir}/bofh <<EOF
425# enable this option if you want to pass bad converted mails
426# opt BOFHBADMIME=accept
427EOF
428
ea45ecdd
AA
429# Make password and unsecureok (files for webadmin)
430touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/password
431touch $RPM_BUILD_ROOT%{_sysconfdir}/webadmin/unsecureok
432
20d769cb
AA
433# create file me to put localdomain
434touch $RPM_BUILD_ROOT%{_sysconfdir}/me
435
3407e4d1
AA
436# create calendarmode
437touch $RPM_BUILD_ROOT%{_sysconfdir}/calendarmode
438
92ccf594 439install courier.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier
c5ebe9bf 440
c5ebe9bf 441# sendmail soft links
3b267ecc 442ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
c5ebe9bf 443
9754ea44 444# fix rmail link (points to non-existing sendmail in %{_bindir}
a8000b36
AA
445ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/rmail
446
33c18667 447# for apache
9754ea44
JB
448cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/apache.conf
449cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/courier-webmail/httpd.conf
450
451# makedat is packaged in courier-authlib
452%{__rm} $RPM_BUILD_ROOT%{_bindir}/makedat \
453 $RPM_BUILD_ROOT%{_libexecdir}/courier/makedatprog \
454 $RPM_BUILD_ROOT%{_datadir}/courier/makedat \
455 $RPM_BUILD_ROOT%{_mandir}/man1/makedat.1
e95643c5 456# remove unpackaged files
9754ea44 457%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.dist
c5ebe9bf 458
f65a4ca3
JB
459%clean
460rm -rf $RPM_BUILD_ROOT
461
c5520896
AA
462%triggerin -- courier < 0.45.5
463echo
464echo Directory with certificates has changed to %{_certsdir}
465echo
466
c5ebe9bf 467%post
c5520896 468if [ "$1" = "1" ]; then
e15af55d 469 [ -s %{_sysconfdir}/me ] || /bin/hostname -f > %{_sysconfdir}/me
656834c7 470 %banner -e %{name} <<'EOF'
c2b9de9d 471
a78f0f7d 472Now courier will refuse to accept SMTP messages except to localhost
e15af55d 473add hosts to %{_sysconfdir}/esmtpacceptmailfor.dir/default
d69319ff 474run makeacceptmailfor
c2b9de9d 475
e15af55d 476Add hosts to %{_sysconfdir}/locals you want to accept mail for
d69319ff 477run makealiases
c2b9de9d 478
a78f0f7d 479Enter user, who should receive mail for root, mailer-daemon and postmaster
e15af55d 480into %{_sysconfdir}/aliases/system
c2b9de9d 481
c1f6664a
AA
482Default maildir is in ~/Mail/Maildir
483
a78f0f7d 484EOF
fb4d919e
AA
485fi
486
656834c7
ER
487/sbin/chkconfig --add courier
488%service courier restart
3bf26190 489
c5ebe9bf 490%preun
debd9b9c 491if [ "$1" = "0" ]; then
656834c7 492 %service courier stop
debb60a3 493 /sbin/chkconfig --del courier
3a3d7263 494fi
c5ebe9bf 495
496%post imapd
656834c7 497# TODO: use rc-scripts here
fb4d919e 498if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
4e9a0961 499 %{_sbindir}/imapd stop
500 %{_sbindir}/imapd start
ba530181 501else
4e9a0961 502 echo
33c18667 503 echo 'Type "%{_sbindir}/imapd start" to start imapd server'
4e9a0961 504 echo
ba530181 505fi
fb4d919e 506if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
4e9a0961 507 %{_sbindir}/imapd-ssl stop
508 %{_sbindir}/imapd-ssl start
ba530181 509else
4e9a0961 510 echo
511 echo Type "%{_sbindir}/imapd-ssl start" to start imapd-ssl server
512 echo
ba530181 513fi
c5ebe9bf 514
debd9b9c
JB
515%preun imapd
516if [ "$1" = "0" ]; then
4e9a0961 517 if [ -e %{_localstatedir}/tmp/imapd.pid ]; then
518 %{_sbindir}/imapd stop
519 fi
520 if [ -e %{_localstatedir}/tmp/imapd-ssl.pid ]; then
521 %{_sbindir}/imapd-ssl stop
522 fi
debd9b9c
JB
523fi
524
525%post pop3d
fb4d919e 526if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
4e9a0961 527 %{_sbindir}/pop3d stop
528 %{_sbindir}/pop3d start
ba530181 529else
4e9a0961 530 echo
33c18667 531 echo 'Type "%{_sbindir}/pop3d start" to start pop3d server'
4e9a0961 532 echo
ba530181 533fi
fb4d919e 534if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
4e9a0961 535 %{_sbindir}/pop3d-ssl stop
536 %{_sbindir}/pop3d-ssl start
ba530181 537else
4e9a0961 538 echo
33c18667 539 echo 'Type "%{_sbindir}/pop3d-ssl start" to start pop3d-ssl server'
4e9a0961 540 echo
ba530181 541fi
debd9b9c
JB
542
543%preun pop3d
544if [ "$1" = "0" ]; then
4e9a0961 545 if [ -e %{_localstatedir}/tmp/pop3d.pid ]; then
546 %{_sbindir}/pop3d stop
547 fi
548 if [ -e %{_localstatedir}/tmp/pop3d-ssl.pid ]; then
549 %{_sbindir}/pop3d-ssl stop
550 fi
debd9b9c 551fi
c5ebe9bf 552
ea45ecdd
AA
553%post webadmin
554if [ "$1" = "1" ]; then
4e9a0961 555 echo
556 echo Remember to put your webadmin password to %{_sysconfdir}/webadmin/password
557 echo
ea45ecdd
AA
558fi
559
df8fd513 560%post webmail
3407e4d1 561if [ "$1" = "1" ]; then
4e9a0961 562 echo
563 echo If you want to have calendar starting by default then
564 echo put word net to %{_sysconfdir}/calendarmode
565 echo
3407e4d1 566fi
8d884446 567if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
4e9a0961 568 %{_sbindir}/webmaild stop
569 %{_sbindir}/webmaild start
bb7dcd14 570else
4e9a0961 571 echo
33c18667 572 echo 'Type "%{_sbindir}/webmaild start" to start webmail server'
4e9a0961 573 echo
df8fd513
AA
574fi
575
33c18667
AA
576%preun webmail
577if [ "$1" = "0" ]; then
578 if [ -e %{_localstatedir}/tmp/sqwebmaild.pid ]; then
579 %{_sbindir}/webmaild stop
a0621e90 580 fi
0f904c39
AA
581fi
582
30a7fa6a 583%triggerin webmail -- apache1 < 1.3.37-3, apache1-base
6c3bd8da 584%webapp_register apache courier-webmail
485ac86d 585
30a7fa6a 586%triggerun webmail -- apache1 < 1.3.37-3, apache1-base
6c3bd8da 587%webapp_unregister apache courier-webmail
485ac86d 588
c0bdab23 589%triggerin webmail -- apache < 2.2.0, apache-base
6c3bd8da 590%webapp_register httpd courier-webmail
485ac86d 591
c0bdab23 592%triggerun webmail -- apache < 2.2.0, apache-base
6c3bd8da
ER
593%webapp_unregister httpd courier-webmail
594
595%triggerpostun webmail -- courier-webmail < 0.52.2-0.2
596# migrate from apache-config macros
597if [ -f /etc/courier/apache-courier.conf.rpmsave ]; then
598 if [ -d /etc/apache/webapps.d ]; then
599 cp -f %{_webapps}/courier-webmail/apache.conf{,.rpmnew}
600 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/apache.conf
601 fi
602
603 if [ -d /etc/httpd/webapps.d ]; then
604 cp -f %{_webapps}/courier-webmail/httpd.conf{,.rpmnew}
605 cp -f /etc/courier/apache-courier.conf.rpmsave %{_webapps}/courier-webmail/httpd.conf
606 fi
607 rm -f /etc/courier/apache-courier.conf.rpmsave
608fi
609
610# migrating apache-config symlinks
611if [ -L /etc/apache/conf.d/99_courier.conf ]; then
612 rm -f /etc/apache/conf.d/99_courier.conf
613 /usr/sbin/webapp register apache courier-webmail
614 %service -q apache reload
615fi
616if [ -L /etc/httpd/httpd.conf/99_courier.conf ]; then
617 rm -f /etc/httpd/httpd.conf/99_courier.conf
618 /usr/sbin/webapp register httpd courier-webmail
619 %service -q httpd reload
620fi
485ac86d 621
debd9b9c 622%files
9e755595 623%defattr(644,root,root,755)
9754ea44
JB
624%doc AUTHORS BENCHMARKS COPYING ChangeLog INSTALL NEWS README TODO
625# common:
626# couriertcpd, couriertls are common TCP/TLS wrappers
627# makemime used by sqwebmail, useful for maildrop
628# reformime used by mlm, useful for maildrop
629# deliverquota, sharedindex* are common for maildir
630%attr(755,root,root) %{_bindir}/couriertls
631%attr(755,root,root) %{_bindir}/deliverquota
632%attr(755,root,root) %{_bindir}/makemime
633%attr(755,root,root) %{_bindir}/mimegpg
634%attr(755,root,root) %{_bindir}/reformime
635%attr(755,root,root) %{_sbindir}/couriertcpd
636%attr(755,root,root) %{_sbindir}/mkdhparams
637%attr(755,root,root) %{_sbindir}/sharedindexinstall
638%attr(755,root,root) %{_sbindir}/sharedindexsplit
639%dir %{_libexecdir}/courier
640%dir %{_datadir}/courier
641%attr(755,root,root) %{_datadir}/courier/mkdhparams
642%attr(755,daemon,daemon) %dir %{_sysconfdir}
643%attr(750,daemon,daemon) %dir %{_certsdir}
644%dir %{_docdir}/courier
645%{_docdir}/courier/bg.png
646%{_docdir}/courier/japanese_flag.png
647%{_docdir}/courier/icon.gif
648%{_docdir}/courier/manpage.css
649%{_docdir}/courier/draft-varshavchik-*-smtpext.txt
650%{_docdir}/courier/FAQ.html
651%{_docdir}/courier/couriertcpd.html
652%{_docdir}/courier/couriertls.html
653%{_docdir}/courier/deliverquota.html
654%{_docdir}/courier/documentation.html
655%{_docdir}/courier/download.html
656%{_docdir}/courier/index.html
657%{_docdir}/courier/install.html
658%{_docdir}/courier/layout.html
659%{_docdir}/courier/links.html
660%{_docdir}/courier/makedat.html
661%{_docdir}/courier/makemime.html
662%{_docdir}/courier/menu.html
663%{_docdir}/courier/mimegpg.html
664%{_docdir}/courier/mkdhparams.html
665%{_docdir}/courier/modules.html
666%{_docdir}/courier/reformime.html
667%{_docdir}/courier/repo.html
668%{_docdir}/courier/rpm.html
669%{_docdir}/courier/socks.html
670%{_docdir}/courier/status.html
671%{_docdir}/courier/structures.html
672%{_mandir}/man1/couriertcpd.1*
673%{_mandir}/man1/couriertls.1*
debd9b9c 674%{_mandir}/man1/makemime.1*
9754ea44 675%{_mandir}/man1/reformime.1*
debd9b9c 676%{_mandir}/man1/mimegpg.1*
9754ea44
JB
677%{_mandir}/man8/deliverquota.8*
678%{_mandir}/man8/mkdhparams.8*
679
680# MTA
681%attr(6555,daemon,daemon) %{_bindir}/cancelmsg
682%attr(755,root,root) %{_bindir}/courier-config
683%attr(755,root,root) %{_bindir}/dotforward
684%attr(2755,daemon,daemon) %{_bindir}/mailq
685%attr(4755,root,root) %{_bindir}/rmail
686%attr(755,root,root) %{_bindir}/testmxlookup
687%attr(755,root,root) %{_sbindir}/aliaslookup
688%attr(755,root,root) %{_sbindir}/courier
689%attr(754,root,daemon) %{_sbindir}/makealiases
690%attr(755,root,root) %{_sbindir}/makehosteddomains
691%attr(755,root,root) %{_sbindir}/showconfig
692%attr(754,root,daemon) %{_sbindir}/showmodules
693%attr(4755,root,root) %{_sbindir}/sendmail
694%attr(755,root,root) /usr/lib/sendmail
695%attr(754,daemon,daemon) %{_libexecdir}/courier/aliascombine
696%attr(754,daemon,daemon) %{_libexecdir}/courier/aliascreate
697%attr(754,daemon,daemon) %{_libexecdir}/courier/aliasexp
698%attr(754,daemon,daemon) %{_libexecdir}/courier/courierd
699%attr(754,daemon,daemon) %{_libexecdir}/courier/submit
700%attr(4554,daemon,daemon) %{_libexecdir}/courier/submitmkdir
701%attr(755,root,root) %{_datadir}/courier/courierctl.start
702%attr(754,root,daemon) %{_datadir}/courier/makealiases
703%attr(755,root,root) %{_datadir}/courier/makehosteddomains
704%attr(755,daemon,daemon) %dir %{_sysconfdir}/shared
705%attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp
706%attr(754,root,root) /etc/rc.d/init.d/courier
707%attr(755,bin,bin) %dir %{_localstatedir}
708%attr(755,daemon,daemon) %dir %{_localstatedir}/track
709%{_docdir}/courier/aliases.html
710%{_docdir}/courier/aliaslookup.html
711%{_docdir}/courier/cancelmsg.html
712%{_docdir}/courier/courier.html
713%{_docdir}/courier/courierd.html
714%{_docdir}/courier/dot-courier.html
715%{_docdir}/courier/dot-forward.html
716%{_docdir}/courier/mailq.html
717%{_docdir}/courier/makealiases.html
718%{_docdir}/courier/makehosteddomains.html
719%{_docdir}/courier/queue.html
720%{_docdir}/courier/sendmail.html
721%{_docdir}/courier/submit.html
722%{_docdir}/courier/testmxlookup.html
723%{_mandir}/man1/cancelmsg.1*
debd9b9c 724%{_mandir}/man1/dot-forward.1*
13f7f200 725%{_mandir}/man1/dotforward.1*
9754ea44 726%{_mandir}/man1/mailq.1*
13f7f200 727%{_mandir}/man1/rmail.1*
9754ea44
JB
728%{_mandir}/man1/sendmail.1*
729%{_mandir}/man1/testmxlookup.1*
debd9b9c
JB
730%{_mandir}/man5/dot-courier.5*
731%{_mandir}/man7/localmailfilter.7*
fbcfab47 732%{_mandir}/man8/aliaslookup.8*
debd9b9c 733%{_mandir}/man8/courier.8*
debd9b9c 734%{_mandir}/man8/makealiases.8*
9754ea44 735%{_mandir}/man8/makehosteddomains.8*
debd9b9c 736%{_mandir}/man8/submit.8*
9754ea44
JB
737%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bofh
738%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/courierd
739%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/enablefiltering
740%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/locals
6f4c39d4 741%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/me
debd9b9c
JB
742%attr(755,daemon,daemon) %dir %{_sysconfdir}/aliasdir
743%attr(750,daemon,daemon) %dir %{_sysconfdir}/aliases
9754ea44
JB
744%attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases/system
745%attr(755,daemon,daemon) %dir %{_sysconfdir}/hosteddomains
debd9b9c 746%attr(755,daemon,daemon) %dir %{_sysconfdir}/smtpaccess
6f4c39d4 747%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/smtpaccess/default
c8c1f2fa 748%{_sysconfdir}/quotawarnmsg.example
9754ea44
JB
749%dir %{_datadir}/courier/courierwebadmin
750%{_datadir}/courier/courierwebadmin/admin-15*
751
752# LDAP configuration
753%attr(744,daemon,daemon) %{_sbindir}/courierldapaliasd
754%attr(640,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaliasrc
755%{_docdir}/courier/courierldapaliasd.html
756%{_mandir}/man8/courierldapaliasd.8*
757
758# filters
759%attr(755,root,root) %{_bindir}/verifysmtp
760%attr(754,root,daemon) %{_sbindir}/courierfilter
761%attr(754,root,daemon) %{_sbindir}/filterctl
762%attr(755,root,root) %{_libexecdir}/courier/courierfilter
763%dir %{_libexecdir}/courier/filters
764%attr(755,root,root) %{_libexecdir}/courier/filters/dupfilter
765%attr(755,root,root) %{_libexecdir}/courier/filters/perlfilter
766%attr(755,root,root) %{_libexecdir}/courier/filters/ratefilter
767%attr(755,root,root) %{_libexecdir}/courier/filters/verifyfilter
768%attr(754,root,daemon) %{_datadir}/courier/filterctl
769%attr(755,root,root) %{_datadir}/courier/perlfilter-*.pl
770%attr(755,root,root) %{_datadir}/courier/verifysender
771%attr(755,root,root) %{_datadir}/courier/verifysenderfull
772%attr(750,daemon,daemon) %dir %{_sysconfdir}/filters
773%attr(750,daemon,daemon) %dir %{_sysconfdir}/filters/active
774%attr(750,daemon,daemon) %dir %{_localstatedir}/allfilters
775%attr(750,daemon,daemon) %dir %{_localstatedir}/filters
debd9b9c
JB
776%attr(770,daemon,daemon) %dir %{_localstatedir}/tmp
777%attr(750,daemon,daemon) %dir %{_localstatedir}/msgs
778%attr(750,daemon,daemon) %dir %{_localstatedir}/msgq
9754ea44
JB
779%{_docdir}/courier/courierfilter.html
780%{_docdir}/courier/courierperlfilter.html
781%{_docdir}/courier/dupfilter.html
782%{_docdir}/courier/ratefilter.html
783%{_docdir}/courier/verifyfilter.html
784%{_mandir}/man8/courierfilter.8*
785%{_mandir}/man8/courierperlfilter.8*
786%{_mandir}/man8/dupfilter.8*
787%{_mandir}/man8/filterctl.8*
788%{_mandir}/man8/ratefilter.8*
789%{_mandir}/man8/verifyfilter.8*
790%{_mandir}/man8/verifysmtp.8*
791
792# module.dsn
793%dir %{_libexecdir}/courier/modules/dsn
794%attr(755,root,root) %{_libexecdir}/courier/modules/dsn/courierdsn
795%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.dsn
796%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelayed.txt
797%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsndelivered.txt
798%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfailed.txt
799%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnrelayed.txt
800%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnfooter.txt
801%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectnotice.txt
802%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnsubjectwarn.txt
803%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dsnheader.txt
804%{_docdir}/courier/courierdsn.html
805
806# module.esmtp
debd9b9c 807%attr(755,root,root) %{_bindir}/addcr
9754ea44 808%attr(755,root,root) %{_sbindir}/courieresmtpd
debd9b9c 809%attr(755,root,root) %{_sbindir}/esmtpd
9754ea44 810%attr(755,root,root) %{_sbindir}/esmtpd-msa
3bf26190 811%attr(755,root,root) %{_sbindir}/esmtpd-ssl
debd9b9c 812%attr(755,root,root) %{_sbindir}/makeacceptmailfor
debd9b9c 813%attr(755,root,root) %{_sbindir}/makepercentrelay
9754ea44 814%attr(755,root,root) %{_sbindir}/makesmtpaccess
debd9b9c 815%attr(755,root,root) %{_sbindir}/makesmtpaccess-msa
9754ea44
JB
816%attr(755,root,root) %{_sbindir}/mkesmtpdcert
817%dir %{_libexecdir}/courier/modules/esmtp
818%attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtp
819%attr(754,root,daemon) %{_libexecdir}/courier/modules/esmtp/courieresmtpd
820%attr(755,root,root) %{_libexecdir}/courier/modules/esmtp/addcr
821%attr(755,root,root) %{_datadir}/courier/esmtpd
822%attr(755,root,root) %{_datadir}/courier/esmtpd-ssl
823%attr(755,root,root) %{_datadir}/courier/makeacceptmailfor
824%attr(755,root,root) %{_datadir}/courier/makepercentrelay
825%attr(755,root,root) %{_datadir}/courier/makesmtpaccess
826%attr(755,root,root) %{_datadir}/courier/mkesmtpdcert
827%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/esmtp
828%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.esmtp
6f4c39d4
SP
829%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd
830%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-msa
831%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd-ssl
6f4c39d4
SP
832%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpd.cnf
833%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpauthclient
9754ea44
JB
834%attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtpacceptmailfor.dir
835%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/esmtpacceptmailfor.dir/default
836%attr(755,daemon,daemon) %dir %{_sysconfdir}/esmtppercentrelay.dir
837%{_docdir}/courier/esmtp.html
838%{_docdir}/courier/esmtpd.html
839%{_docdir}/courier/makeacceptmailfor.html
840%{_docdir}/courier/makepercentrelay.html
841%{_docdir}/courier/makesmtpaccess.html
842%{_docdir}/courier/mkesmtpdcert.html
843%{_mandir}/man8/esmtpd.8*
844%{_mandir}/man8/esmtpd-msa.8*
845%{_mandir}/man8/makeacceptmailfor.8*
846%{_mandir}/man8/makepercentrelay.8*
847%{_mandir}/man8/makesmtpaccess.8*
848%{_mandir}/man8/makesmtpaccess-msa.8*
849%{_mandir}/man8/mkesmtpdcert.8*
850
851# module.local
852%attr(755,root,root) %{_bindir}/preline
853%dir %{_libexecdir}/courier/modules/local
854%attr(755,root,root) %{_libexecdir}/courier/modules/local/courierdeliver
855%attr(755,root,root) %{_libexecdir}/courier/modules/local/courierlocal
856%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.local
857%{_docdir}/courier/local.html
858%{_docdir}/courier/localmailfilter.html
859%{_docdir}/courier/preline.html
860%{_mandir}/man1/preline.1*
861
862# module.uucp
863%attr(755,root,root) %{_sbindir}/makeuucpneighbors
864%dir %{_libexecdir}/courier/modules
865%dir %{_libexecdir}/courier/modules/uucp
866%attr(755,root,root) %{_libexecdir}/courier/modules/uucp/courieruucp
867%attr(755,root,root) %{_datadir}/courier/makeuucpneighbors
868%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.uucp
869%{_docdir}/courier/courieruucp.html
870%{_mandir}/man8/courieruucp.8*
871%{_mandir}/man8/makeuucpneighbors.8*
debd9b9c
JB
872
873%files pop3d
9e755595 874%defattr(644,root,root,755)
6f4c39d4
SP
875%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d
876%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d.cnf
877%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pop3d-ssl
9754ea44 878%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/pop3
1326bb92 879%attr(755,root,root) %{_sbindir}/mkpop3dcert
debd9b9c 880%attr(755,root,root) %{_sbindir}/pop3d
d10c99ec 881%attr(755,root,root) %{_sbindir}/pop3d-ssl
9754ea44
JB
882%attr(755,root,root) %{_libexecdir}/courier/courierpop3d
883%attr(755,root,root) %{_libexecdir}/courier/courierpop3login
884%attr(755,root,root) %{_datadir}/courier/mkpop3dcert
885%attr(755,root,root) %{_datadir}/courier/pop3d
886%attr(755,root,root) %{_datadir}/courier/pop3d-ssl
887%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-45pop3.pl
888%{_datadir}/courier/courierwebadmin/admin-45pop3.html
889%{_docdir}/courier/courierpop3d.html
890%{_docdir}/courier/mkpop3dcert.html
891%{_docdir}/courier/pop3d.html
892%{_mandir}/man8/courierpop3d.8*
893%{_mandir}/man8/courierpop3login.8*
894%{_mandir}/man8/mkpop3dcert.8*
895%{_mandir}/man8/pop3d.8*
896%{_mandir}/man8/pop3d-ssl.8*
debd9b9c
JB
897
898%files imapd
9e755595 899%defattr(644,root,root,755)
6f4c39d4
SP
900%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd
901%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd-ssl
902%attr(600,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapd.cnf
9754ea44
JB
903%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/imap
904%attr(755,root,root) %{_bindir}/imapd
debd9b9c
JB
905%attr(755,root,root) %{_sbindir}/imapd
906%attr(755,root,root) %{_sbindir}/imapd-ssl
9754ea44 907%attr(755,root,root) %{_sbindir}/makeimapaccess
debd9b9c 908%attr(755,root,root) %{_sbindir}/mkimapdcert
9754ea44
JB
909%attr(755,root,root) %{_libexecdir}/courier/imaplogin
910%attr(755,root,root) %{_datadir}/courier/imapd
911%attr(755,root,root) %{_datadir}/courier/imapd-ssl
912%attr(755,root,root) %{_datadir}/courier/makeimapaccess
913%attr(755,root,root) %{_datadir}/courier/mkimapdcert
914%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-40imap.pl
915%{_datadir}/courier/courierwebadmin/admin-40imap.html
916%{_docdir}/courier/imapd.html
917%{_docdir}/courier/makeimapaccess.html
918%{_docdir}/courier/mkimapdcert.html
919%{_mandir}/man8/imapd.8*
920%{_mandir}/man8/makeimapaccess.8*
921%{_mandir}/man8/mkimapdcert.8*
debd9b9c 922
ea45ecdd
AA
923%files webadmin
924%defattr(644,root,root,755)
fc15d33a 925# suid root to cgi-bin??? and it's not secured by apache config!
ea45ecdd
AA
926%attr(4755,root,root) %{_cgibindir}/webadmin
927%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin
928%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/added
929%attr(700,daemon,daemon) %dir %{_sysconfdir}/webadmin/removed
6f4c39d4
SP
930%attr(400,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/password
931%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/webadmin/unsecureok
9754ea44
JB
932%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-main.pl
933%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-save.pl
934%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-cancel.pl
935%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-[0235]*.pl
936%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-10password.pl
937%attr(755,root,root) %{_datadir}/courier/courierwebadmin/dumpenv.pl
938%attr(755,root,root) %{_datadir}/courier/courierwebadmin/webadmin.pl
939%{_datadir}/courier/courierwebadmin/admin-[0235]*.html
940%{_datadir}/courier/courierwebadmin/admin-10password.html
941%{_datadir}/courier/courierwebadmin/admin-main.html
942%{_datadir}/courier/courierwebadmin/admin-save.html
943%{_datadir}/courier/courierwebadmin/login.html
944%{_datadir}/courier/courierwebadmin/notsupp.html
945%{_datadir}/courier/courierwebadmin/unsecure.html
946%{_datadir}/courier/courierwebadmin/webadmin.pm
ea45ecdd 947
debd9b9c 948%files webmail
9e755595 949%defattr(644,root,root,755)
9754ea44 950%doc libs/gpglib/README.html
33c18667 951%attr(755,root,root) %{_cgibindir}/webmail
9754ea44 952%attr(755,root,root) /etc/cron.hourly/courier-webmail-cleancache
c8c1f2fa
ER
953%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/webmail
954%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/calendar
9754ea44
JB
955%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/calendarmode
956%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ldapaddressbook
6f4c39d4 957%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sqwebmaild
1326bb92 958%attr(755,root,root) %{_sbindir}/webgpg
9754ea44
JB
959%attr(755,root,root) %{_sbindir}/webmaild
960%attr(755,root,root) %{_libexecdir}/courier/pcpd
961%attr(755,root,root) %{_libexecdir}/courier/sqwebmaild
962%attr(755,root,root) %{_libexecdir}/courier/sqwebpasswd
963%dir %{_datadir}/courier/sqwebmail
964%dir %{_datadir}/courier/sqwebmail/html
965%dir %{_datadir}/courier/sqwebmail/html/en-us
966%{_datadir}/courier/sqwebmail/html/en
967%{_datadir}/courier/sqwebmail/images
968%config %{_datadir}/courier/sqwebmail/html/en-us/[CILT]*
969%{_datadir}/courier/sqwebmail/html/en-us/*.html
970%{_datadir}/courier/sqwebmail/html/en-us/*.txt
971%attr(755,root,root) %{_datadir}/courier/sqwebmail/cleancache.pl
972%attr(755,root,root) %{_datadir}/courier/sqwebmail/ldapsearch
973%attr(755,root,root) %{_datadir}/courier/sqwebmail/sendit.sh
974%attr(755,root,root) %{_datadir}/courier/sqwebmail/webgpg
975%attr(755,root,root) %{_datadir}/courier/courierwebadmin/admin-47webmail.pl
976%{_datadir}/courier/courierwebadmin/admin-47webmail.html
c1f6664a
AA
977%attr(755,bin,daemon) %dir %{_localstatedir}/calendar
978%attr(700,bin,daemon) %dir %{_localstatedir}/calendar/localcache
979%attr(750,bin,daemon) %dir %{_localstatedir}/calendar/private
980%attr(755,bin,daemon) %dir %{_localstatedir}/calendar/public
9754ea44 981%attr(700,bin,bin) %dir %{_localstatedir}/webmail-logincache
6c3bd8da
ER
982%dir %attr(750,root,http) %{_webapps}/courier-webmail
983%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/apache.conf
984%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/courier-webmail/httpd.conf
9754ea44 985%{_docdir}/courier/pcp_README.html
debd9b9c 986
7859d47c 987%files webmlm
988%defattr(644,root,root,755)
c14214de 989%attr(700,daemon,daemon) %{_sysconfdir}/webmlmrc
7859d47c 990%attr(755,root,root) %{_bindir}/webmlmd
991%attr(755,root,root) %{_bindir}/webmlmd.rc
9754ea44
JB
992%dir %{_libexecdir}/courier/webmail
993%attr(755,root,root) %{_libexecdir}/courier/webmail/webmlm
994%{_docdir}/courier/webmlmd.html
7859d47c 995%{_mandir}/man1/webmlmd.1*
996
debd9b9c 997%files maildrop
9e755595 998%defattr(644,root,root,755)
6f4c39d4 999%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/maildrop
9754ea44
JB
1000%attr(755,root,root) %{_bindir}/lockmail
1001%attr(755,root,root) %{_bindir}/mailbot
debd9b9c 1002%attr(4755,root,root) %{_bindir}/maildrop
a0621e90 1003%attr(755,root,root) %{_bindir}/reformail
9754ea44
JB
1004%{_docdir}/courier/lockmail.html
1005%{_docdir}/courier/mailbot.html
1006%{_docdir}/courier/maildrop*.html
1007%{_docdir}/courier/reformail.html
1008%{_mandir}/man1/lockmail.1*
1009%{_mandir}/man1/mailbot.1*
1010%{_mandir}/man1/maildrop.1*
1011%{_mandir}/man1/reformail.1*
1012%{_mandir}/man7/maildropex.7*
1013%{_mandir}/man7/maildropfilter.7*
1014%{_mandir}/man7/maildropgdbm.7*
debd9b9c 1015
9a3d2e11 1016%files maildir-tools
8e00b423 1017%defattr(644,root,root,755)
9754ea44
JB
1018%doc libs/maildir/README.*.html
1019%attr(755,root,root) %{_bindir}/maildirmake
1020%attr(755,root,root) %{_bindir}/maildirkw
1021%attr(755,root,root) %{_bindir}/maildiracl
1022%{_docdir}/courier/maildir*.html
8e00b423
AA
1023%{_mandir}/man1/maildirmake.1*
1024%{_mandir}/man1/maildirkw.1*
1025%{_mandir}/man1/maildiracl.1*
1026%{_mandir}/man5/maildir.5*
1027%{_mandir}/man7/maildirquota.7*
8e00b423 1028
debd9b9c 1029%files mlm
9e755595 1030%defattr(644,root,root,755)
debd9b9c 1031%attr(755,root,root) %{_bindir}/couriermlm
9754ea44
JB
1032%{_datadir}/courier/couriermlm
1033%{_docdir}/courier/couriermlm.html
1034%{_mandir}/man1/couriermlm.1*
1035
1036%files fax
1037%defattr(644,root,root,755)
1038%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxcoverpage.tr
1039%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxnotifyrc
1040%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/faxrc
1041%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/module.fax
1042%dir %{_libexecdir}/courier/modules/fax
1043%attr(755,root,root) %{_libexecdir}/courier/modules/fax/courierfax
1044%dir %{_datadir}/courier/faxmail
1045%{_datadir}/courier/faxmail/*.filter
1046%{_datadir}/courier/faxmail/coverpage
1047%{_datadir}/courier/faxmail/init
1048%{_datadir}/courier/faxmail/new_fax
1049%{_docdir}/courier/courierfax.html
1050%{_mandir}/man8/courierfax.8*
This page took 0.403721 seconds and 4 git commands to generate.