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