]>
Commit | Line | Data |
---|---|---|
9db332a8 | 1 | # |
22442fbb | 2 | # Conditional build: |
b2db97da | 3 | %bcond_without pgsql # without PostgreSQL support |
4 | %bcond_without mysql # without MySQL support | |
abe10949 | 5 | %bcond_without sqlite # without sqlite |
b2db97da | 6 | %bcond_without whoson # without whoson support |
ce4633e0 | 7 | %bcond_without sasl # without SASL |
bcbbe38e | 8 | %bcond_without ldap # without LDAP support |
4acd3d45 | 9 | %bcond_without spf # without spf support |
cf3f73d5 | 10 | %bcond_without srs # without srs support |
bcbbe38e | 11 | # |
d6eed07a | 12 | Summary: University of Cambridge Mail Transfer Agent |
9906dddb ER |
13 | Summary(pl.UTF-8): Agent Transferu Poczty Uniwersytetu w Cambridge |
14 | Summary(pt_BR.UTF-8): Servidor de correio eletrônico exim | |
859700c9 | 15 | Name: exim |
b4106aa6 | 16 | Version: 4.72 |
480b90e9 | 17 | Release: 4 |
5e2ead7f | 18 | Epoch: 2 |
b870edc7 | 19 | License: GPL |
e50559d6 | 20 | Group: Networking/Daemons/SMTP |
d3697a6b | 21 | Source0: ftp://ftp.exim.org/pub/exim/exim4/%{name}-%{version}.tar.bz2 |
3ccf383b | 22 | # Source0-md5: ccc937b533568e5e8340f181a3b3d2ff |
b4106aa6 AM |
23 | Source1: ftp://ftp.exim.org/pub/exim/exim4/%{name}-html-%{version}.tar.bz2 |
24 | # Source1-md5: 8b39be84de74b94bd4b5c3e7aad3fcdf | |
066110a4 | 25 | Source2: %{name}.init |
26 | Source3: %{name}.cron.db | |
88f45d21 | 27 | Source4: %{name}4.conf |
859700c9 | 28 | Source5: analyse-log-errors |
066110a4 | 29 | Source6: %{name}on.desktop |
88f45d21 | 30 | # 20021016: http://www.logic.univie.ac.at/~ametzler/debian/exim4manpages/ |
0e6a6f9b | 31 | Source7: %{name}4-man-021016.tar.bz2 |
00108711 | 32 | # Source7-md5: b552704ebf853a401946038a2b7e8e98 |
066110a4 | 33 | Source9: %{name}.aliases |
3a772b92 | 34 | Source10: newaliases |
0e6a6f9b | 35 | Source11: %{name}.logrotate |
0e6a6f9b | 36 | Source12: %{name}.sysconfig |
c72741ba | 37 | Source13: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/FAQ.txt.bz2 |
9843e1e0 | 38 | # Source13-md5: ff781bd31fb1d574c8b9d33f4bfd34a7 |
c72741ba | 39 | Source14: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/config.samples.tar.bz2 |
9843e1e0 | 40 | # Source14-md5: 4b93321938a800caa6127c48ad60a42b |
077cda1b | 41 | Source15: %{name}4-smtp.pamd |
ff7ae076 | 42 | Source16: %{name}on.png |
88f45d21 | 43 | Patch0: %{name}4-EDITME.patch |
44 | Patch1: %{name}4-monitor-EDITME.patch | |
ac65266c | 45 | Patch2: %{name}4-cflags.patch |
88f45d21 | 46 | Patch4: %{name}4-Makefile-Default.patch |
6d9e2777 AM |
47 | # http://marc.merlins.org/linux/exim/files/sa-exim-cvs/localscan_dlopen_exim_4.20_or_better.patch |
48 | Patch5: localscan_dlopen_%{name}_4.20_or_better.patch | |
dc311445 | 49 | Patch6: %{name}-noloadbalance.patch |
a4a0cfb9 | 50 | # http://sourceforge.net/projects/eximdsn/ |
8b9018e8 | 51 | Patch7: %{name}_463_dsn_1_3.patch |
76e38fe1 | 52 | Patch8: %{name}-spam-timeout.patch |
b6cbc73e | 53 | Patch9: %{name}-dkim.patch |
60791d8d | 54 | Patch10: %{name}-force-sigalrm.patch |
066110a4 | 55 | URL: http://www.exim.org/ |
82ad425e ER |
56 | %{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.1.0} |
57 | BuildRequires: db-devel | |
eaeb5576 AM |
58 | %{?with_spf:BuildRequires: libspf2-devel >= 1.2.5-2} |
59 | %{?with_srs:BuildRequires: libsrs_alt-devel >= 1.0} | |
bcbbe38e | 60 | %{?with_mysql:BuildRequires: mysql-devel} |
1f87c676 | 61 | %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0} |
a6ad4b14 | 62 | BuildRequires: openssl-devel >= 0.9.7d |
d6eed07a TP |
63 | BuildRequires: pam-devel |
64 | BuildRequires: pcre-devel | |
5b3e22ec | 65 | BuildRequires: perl-devel >= 1:5.6.0 |
82ad425e | 66 | %{?with_pgsql:BuildRequires: postgresql-devel} |
85ea61b0 | 67 | BuildRequires: readline-devel |
1f87c676 | 68 | BuildRequires: rpm >= 4.4.9-56 |
ed878c0a | 69 | BuildRequires: rpmbuild(macros) >= 1.268 |
82ad425e | 70 | %{?with_sqlite:BuildRequires: sqlite3-devel} |
82ad425e | 71 | %{?with_whoson:BuildRequires: whoson-devel} |
1f87c676 | 72 | %if "%{pld_release}" != "ac" |
36ff593d | 73 | BuildRequires: xorg-lib-libX11-devel |
204feb3d | 74 | BuildRequires: xorg-lib-libXaw-devel |
1f87c676 ER |
75 | %else |
76 | BuildRequires: XFree86-devel | |
77 | %endif | |
82ad425e ER |
78 | Requires(post): /bin/hostname |
79 | Requires(post): fileutils | |
80 | Requires(post,preun): /sbin/chkconfig | |
81 | Requires(postun): /usr/sbin/groupdel | |
82 | Requires(postun): /usr/sbin/userdel | |
33a67372 | 83 | Requires(pre): /bin/id |
84 | Requires(pre): /usr/bin/getgid | |
85 | Requires(pre): /usr/sbin/groupadd | |
86 | Requires(pre): /usr/sbin/useradd | |
618734e2 | 87 | Requires: findutils |
f27a18bf | 88 | Requires: pam >= 0.79.0 |
82ad425e | 89 | Requires: rc-scripts |
74d9646b | 90 | Provides: group(exim) |
55d7b250 | 91 | Provides: smtpdaemon |
74d9646b | 92 | Provides: user(exim) |
88f45d21 | 93 | Obsoletes: smtpdaemon |
7f76fd6c | 94 | Conflicts: logrotate < 3.7-4 |
b2db97da | 95 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f38f6b11 | 96 | |
97 | %description | |
b870edc7 | 98 | Smail like Mail Transfer Agent with single configuration file. |
99 | Features: flexible retry algorithms, header & envelope rewriting, | |
100 | multiple deliveries down single connection or multiple deliveries in | |
101 | parallel, regular expressions in configuration parameters, file | |
102 | lookups, supports sender and/or reciever verification, selective | |
103 | relaying, supports virtual domains, built-in mail filtering and can be | |
104 | configured to drop root privilleges when possible. | |
f38f6b11 | 105 | |
f46cabaa | 106 | %description -l pl.UTF-8 |
c130e36a | 107 | Agent transferu poczty (MTA) z pojedynczym plikiem konfiguracyjnym. |
f46cabaa JR |
108 | Jego zalety: świetne algorytmy, możliwość przepisywania nagłówków & |
109 | koperty, wielokrotne dostarczanie poczty podczas jednego połączenia | |
110 | lub równoległe dostarczanie poczty, wyrażenia regularne w parametrach | |
b870edc7 | 111 | konfiguracyjnych, weryfikacja nadawcy i/lub odbiorcy, selektywne |
f46cabaa JR |
112 | relayowanie, wsparcie dla wirtualnych domen, wbudowany system filtrów, |
113 | możliwość odrzucania praw roota kiedy jest to możliwe. | |
c130e36a | 114 | |
f46cabaa JR |
115 | %description -l pt_BR.UTF-8 |
116 | O exim é um agente de transporte de correio eletrônico (MTA), | |
d0f0285c | 117 | desenvolvido na Universidade de Cambridge para uso em sistemas Unix |
118 | conectados a Internet. Similar em estilo ao smail 3, suas facilidades | |
f46cabaa JR |
119 | são mais extensivas e em particular ele tem opções para verificação do |
120 | remetente e destinatário, para recusar mensagens de máquinas, redes ou | |
121 | remetentes específicos. | |
d0f0285c | 122 | |
f38f6b11 | 123 | %package X11 |
d0f0285c | 124 | Summary: X11 based Exim administration tool |
9906dddb ER |
125 | Summary(pl.UTF-8): Narzędzia administracyjne exima dla X11 |
126 | Summary(pt_BR.UTF-8): Monitor X11 para o exim | |
066110a4 | 127 | Group: X11/Applications |
859700c9 | 128 | |
f38f6b11 | 129 | %description X11 |
d0f0285c | 130 | X11 based monitor & administration utility for the Exim Mail Transfer |
131 | Agent. | |
f38f6b11 | 132 | |
f46cabaa JR |
133 | %description X11 -l pl.UTF-8 |
134 | Bazujące na X11 narzędzia dla Exima - monitor i program | |
b870edc7 | 135 | administracyjny. |
c130e36a | 136 | |
f46cabaa JR |
137 | %description X11 -l pt_BR.UTF-8 |
138 | O monitor exim é um suplemento opcional ao pacote exim. Ele mostra | |
139 | informações sobre o processamento do exim em uma janela X11. O | |
140 | administrador pode executar uma série de ações de controle a partir | |
d0f0285c | 141 | desta interface. |
142 | ||
6d9e2777 | 143 | %package devel |
0ca73329 | 144 | Summary: Header files for Exim |
9906dddb | 145 | Summary(pl.UTF-8): Pliki nagłówkowe dla Exima |
6d9e2777 AM |
146 | Group: Development/Libraries |
147 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
148 | ||
149 | %description devel | |
0ca73329 JB |
150 | Header files for Exim. |
151 | ||
f46cabaa JR |
152 | %description devel -l pl.UTF-8 |
153 | Pliki nagłówkowe dla Exima. | |
6d9e2777 | 154 | |
f38f6b11 | 155 | %prep |
01a20a09 | 156 | %setup -q -a1 -a7 |
489eca58 | 157 | %patch0 -p1 |
158 | %patch1 -p1 | |
ac65266c | 159 | %patch2 -p1 |
22442fbb | 160 | %patch4 -p1 |
6d9e2777 | 161 | %patch5 -p1 |
dc311445 | 162 | %patch6 -p1 |
a4a0cfb9 | 163 | %patch7 -p1 |
76e38fe1 | 164 | %patch8 -p1 |
b4106aa6 | 165 | #%patch9 -p0 |
60791d8d | 166 | %patch10 -p1 |
489eca58 | 167 | |
88f45d21 | 168 | install %{SOURCE13} doc/FAQ.txt.bz2 |
169 | install %{SOURCE14} doc/config.samples.tar.bz2 | |
489eca58 | 170 | |
b870edc7 | 171 | install -d Local |
4bf6fc61 JB |
172 | cp -f src/EDITME Local/Makefile |
173 | cp -f exim_monitor/EDITME Local/eximon.conf | |
f38f6b11 | 174 | |
175 | %build | |
ff6bb4ab | 176 | %{__make} -j1 \ |
8c3fdc47 | 177 | FULLECHO='' \ |
88f45d21 | 178 | CC="%{__cc}" \ |
d3697a6b | 179 | CUSTOM_CFLAGS="%{rpmcppflags} %{rpmcflags} -DSUPPORT_DSN=yes %{?with_spf:-DEXPERIMENTAL_SPF=yes} %{?with_srs:-DEXPERIMENTAL_SRS=yes}" \ |
ea57ae4e | 180 | LOOKUP_CDB=yes \ |
9db332a8 JB |
181 | XLFLAGS=-L%{_prefix}/X11R6/%{_lib} \ |
182 | X11_LD_LIB=%{_prefix}/X11R6/%{_lib} \ | |
bcbbe38e | 183 | %{?with_mysql:LOOKUP_MYSQL=yes} \ |
184 | %{?with_pgsql:LOOKUP_PGSQL=yes} \ | |
abe10949 | 185 | %{?with_sqlite:LOOKUP_SQLITE=yes} \ |
bcbbe38e | 186 | %{?with_whoson:LOOKUP_WHOSON=yes} \ |
ce4633e0 | 187 | %{?with_sasl:AUTH_CYRUS_SASL=yes} \ |
bcbbe38e | 188 | %{?with_ldap:LOOKUP_LDAP=yes LDAP_LIB_TYPE=OPENLDAP2} \ |
d3697a6b | 189 | LOOKUP_LIBS="%{?with_ldap:-lldap -llber} %{?with_mysql:-lmysqlclient} %{?with_pgsql:-lpq} %{?with_sqlite:-lsqlite3} %{?with_whoson:-lwhoson} %{?with_spf:-lspf2} %{?with_srs:-lsrs_alt} %{?with_sasl:-lsasl2}" \ |
bcbbe38e | 190 | LOOKUP_INCLUDE="%{?with_mysql:-I%{_includedir}/mysql} %{?with_pgsql:-I%{_includedir}/pgsql}" |
f38f6b11 | 191 | |
192 | %install | |
b870edc7 | 193 | rm -rf $RPM_BUILD_ROOT |
11db3d17 | 194 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mail |
94a2ea3c | 195 | install -d $RPM_BUILD_ROOT/etc/{cron.{daily,weekly},logrotate.d,rc.d/init.d,sysconfig,pam.d,security} |
6d9e2777 | 196 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8,%{_prefix}/lib} |
4797292f | 197 | install -d $RPM_BUILD_ROOT%{_var}/{spool/exim/{db,input,msglog},log/{archive,}/exim,mail} |
b4106aa6 | 198 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
6d9e2777 | 199 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name} |
066110a4 | 200 | |
1e7de296 | 201 | install build-Linux-*/exim{,_fixdb,_tidydb,_dbmbuild,on.bin,_dumpdb,_lock} \ |
1e7de296 | 202 | build-Linux-*/exi{cyclog,next,what} %{SOURCE10} \ |
88f45d21 | 203 | build-Linux-*/{exigrep,eximstats,exiqsumm,convert4r4} \ |
204 | util/unknownuser.sh \ | |
066110a4 | 205 | $RPM_BUILD_ROOT%{_bindir} |
9db332a8 JB |
206 | install build-Linux-*/eximon.bin $RPM_BUILD_ROOT%{_bindir} |
207 | install build-Linux-*/eximon $RPM_BUILD_ROOT%{_bindir} | |
066110a4 | 208 | |
209 | install %{SOURCE5} . | |
9db332a8 | 210 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.weekly |
3a772b92 | 211 | install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
066110a4 | 212 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
3a772b92 | 213 | install %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
88f45d21 | 214 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/mail/exim.conf |
9db332a8 | 215 | install {doc,man}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8 |
066110a4 | 216 | install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mail/aliases |
fa39e47a | 217 | install %{SOURCE15} $RPM_BUILD_ROOT/etc/pam.d/smtp |
187c8c8b | 218 | |
4bf6fc61 | 219 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/sendmail |
6d9e2777 | 220 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_prefix}/lib/sendmail |
4bf6fc61 JB |
221 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/mailq |
222 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/rsmtp | |
223 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/rmail | |
224 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/runq | |
b870edc7 | 225 | |
ff7ae076 | 226 | install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir} |
227 | install %{SOURCE16} $RPM_BUILD_ROOT%{_pixmapsdir} | |
187c8c8b | 228 | |
6d9e2777 AM |
229 | install -d $RPM_BUILD_ROOT%{_includedir}/%{name} |
230 | install src/{local_scan.h,store.h,mytypes.h} $RPM_BUILD_ROOT%{_includedir}/%{name} | |
231 | ||
489eca58 | 232 | touch $RPM_BUILD_ROOT%{_var}/log/exim/{main,reject,panic,process}.log |
187c8c8b | 233 | |
36310b55 JR |
234 | touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp |
235 | ||
d387c64b JB |
236 | %clean |
237 | rm -rf $RPM_BUILD_ROOT | |
238 | ||
0bbd4a49 | 239 | %pre |
74a274d2 ER |
240 | %groupadd -g 79 exim |
241 | %useradd -u 79 -d /var/spool/exim -s /bin/false -c "Exim pseudo user" -g exim exim | |
0bbd4a49 | 242 | |
859700c9 | 243 | %post |
187c8c8b | 244 | umask 022 |
5f92f1d0 | 245 | /sbin/chkconfig --add %{name} |
ed878c0a | 246 | %service %{name} restart "exim daemon" |
187c8c8b AM |
247 | |
248 | if [ ! -f /etc/mail/mailname ]; then | |
249 | rm -f /etc/mail/mailname && hostname -f > /etc/mail/mailname | |
859700c9 | 250 | fi |
187c8c8b | 251 | newaliases |
859700c9 | 252 | |
253 | %preun | |
5f92f1d0 | 254 | if [ "$1" = "0" ]; then |
ed878c0a | 255 | %service exim stop |
5f92f1d0 | 256 | /sbin/chkconfig --del %{name} |
257 | fi | |
187c8c8b | 258 | |
3fdba252 | 259 | %postun |
0bbd4a49 | 260 | if [ "$1" = "0" ]; then |
74d9646b | 261 | %userremove exim |
262 | %groupremove exim | |
0bbd4a49 | 263 | fi |
3fdba252 | 264 | |
f38f6b11 | 265 | %files |
859700c9 | 266 | %defattr(644,root,root,755) |
00bddbb1 | 267 | %doc README* NOTICE LICENCE analyse-log-errors doc/{ChangeLog,NewStuff,dbm.discuss.txt,filter.txt,spec.txt,Exim*.upgrade,OptionLists.txt,experimental-spec.txt} build-Linux-*/transport-filter.pl |
b4106aa6 | 268 | %doc exim-html-*/doc/html |
5310bdd0 | 269 | %dir %{_sysconfdir}/mail |
9db332a8 | 270 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/exim.conf |
36ff593d ER |
271 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/aliases |
272 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/exim | |
bfa1d1a0 | 273 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/exim |
882e1157 | 274 | %attr(754,root,root) /etc/rc.d/init.d/exim |
187c8c8b | 275 | %attr(4755,root,root) %{_bindir}/exim |
882e1157 JB |
276 | %attr(770,root,exim) %dir %{_var}/spool/exim |
277 | %attr(750,exim,exim) %dir %{_var}/spool/exim/db | |
278 | %attr(700,exim,root) %dir %{_var}/spool/exim/input | |
279 | %attr(750,exim,root) %dir %{_var}/spool/exim/msglog | |
280 | %attr(755,root,root) %{_bindir}/exim_* | |
281 | %attr(755,root,root) %{_bindir}/exinext | |
282 | %attr(755,root,root) %{_bindir}/exiwhat | |
283 | %attr(755,root,root) %{_bindir}/exicyclog | |
284 | %attr(755,root,root) %{_bindir}/exigrep | |
285 | %attr(755,root,root) %{_bindir}/eximstats | |
286 | %attr(755,root,root) %{_bindir}/exiqsumm | |
287 | %attr(755,root,root) %{_bindir}/unknownuser.sh | |
288 | %attr(755,root,root) %{_bindir}/newaliases | |
289 | %attr(755,root,root) %{_bindir}/convert4r4 | |
c9e9e044 | 290 | %attr(755,root,root) %{_sbindir}/mailq |
291 | %attr(755,root,root) %{_sbindir}/rmail | |
292 | %attr(755,root,root) %{_sbindir}/rsmtp | |
293 | %attr(755,root,root) %{_sbindir}/runq | |
294 | %attr(755,root,root) %{_sbindir}/sendmail | |
6d9e2777 | 295 | %attr(755,root,root) %{_prefix}/lib/sendmail |
882e1157 JB |
296 | %attr(754,root,root) /etc/cron.weekly/exim.cron.db |
297 | %attr(750,exim,root) %dir %{_var}/log/exim | |
40f3bcfe | 298 | %attr(750,exim,root) %dir %{_var}/log/archive/exim |
882e1157 | 299 | %attr(640,exim,root) %ghost %{_var}/log/exim/* |
9db332a8 | 300 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp |
36310b55 | 301 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.smtp |
6d9e2777 | 302 | %{_libdir}/%{name} |
8d58ce27 | 303 | %{_mandir}/man8/* |
859700c9 | 304 | |
f38f6b11 | 305 | %files X11 |
b870edc7 | 306 | %defattr(644,root,root,755) |
9db332a8 JB |
307 | %attr(755,root,root) %{_bindir}/eximon |
308 | %attr(755,root,root) %{_bindir}/eximon.bin | |
309 | %{_desktopdir}/eximon.desktop | |
310 | %{_pixmapsdir}/eximon.png | |
6d9e2777 AM |
311 | |
312 | %files devel | |
313 | %defattr(644,root,root,755) | |
314 | %{_includedir}/%{name} |