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