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