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