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