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