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