]>
Commit | Line | Data |
---|---|---|
9fc0ebeb | 1 | %define orig_name exim |
2 | Summary: Lite version of exim Mail Transfer Agent | |
758dee59 | 3 | Summary(pl.UTF-8): Lekka wersja Agenta Transferu Poczty |
9fc0ebeb | 4 | Name: exim-lite |
735c2160 | 5 | Version: 4.51 |
3eae0813 | 6 | Release: 2 |
9fc0ebeb | 7 | Epoch: 2 |
8 | License: GPL | |
9 | Group: Networking/Daemons | |
10 | Source0: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/%{orig_name}-%{version}.tar.bz2 | |
735c2160 | 11 | # Source0-md5: 36c0c005e012d13beb7edfd8d124c049 |
12 | Source1: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/%{orig_name}-texinfo-4.50.tar.bz2 | |
13 | # Source1-md5: a12993436e9943083e3ce5b76cf96b11 | |
9fc0ebeb | 14 | Source2: %{orig_name}.init |
15 | Source3: %{orig_name}.cron.db | |
16 | Source4: %{orig_name}4.conf | |
17 | Source5: analyse-log-errors | |
18 | Source6: %{orig_name}on.desktop | |
19 | # 20021016: http://www.logic.univie.ac.at/~ametzler/debian/exim4manpages/ | |
20 | Source7: %{orig_name}4-man-021016.tar.bz2 | |
21 | # Source7-md5: b552704ebf853a401946038a2b7e8e98 | |
9fc0ebeb | 22 | Source9: %{orig_name}.aliases |
23 | Source10: newaliases | |
24 | Source11: %{orig_name}.logrotate | |
25 | Source12: %{orig_name}.sysconfig | |
26 | Source13: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/FAQ.txt.bz2 | |
f7c77af4 | 27 | # Source13-md5: ff781bd31fb1d574c8b9d33f4bfd34a7 |
9fc0ebeb | 28 | Source14: ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4/config.samples.tar.bz2 |
f7c77af4 | 29 | # Source14-md5: 4b93321938a800caa6127c48ad60a42b |
9fc0ebeb | 30 | Source15: %{orig_name}4-smtp.pamd |
31 | Source16: %{orig_name}on.png | |
9fc0ebeb | 32 | Patch0: %{orig_name}4-EDITME.patch |
33 | Patch1: %{orig_name}4-monitor-EDITME.patch | |
34 | Patch2: %{orig_name}4-texinfo.patch | |
35 | Patch3: %{orig_name}4-use_system_pcre.patch | |
36 | Patch4: %{orig_name}4-Makefile-Default.patch | |
37 | Patch5: %{orig_name}4-exiscan-pld.patch | |
38 | URL: http://www.exim.org/ | |
39 | BuildRequires: XFree86-devel | |
40 | BuildRequires: db-devel | |
41 | BuildRequires: openssl-devel >= 0.9.7d | |
42 | BuildRequires: pam-devel | |
43 | BuildRequires: pcre-devel | |
44 | BuildRequires: perl-devel >= 1:5.6.0 | |
45 | BuildRequires: readline-devel | |
90b2a2ce | 46 | BuildRequires: rpmbuild(macros) >= 1.202 |
9fc0ebeb | 47 | BuildRequires: texinfo |
44bf2823 ER |
48 | Requires(post): /bin/hostname |
49 | Requires(post): fileutils | |
50 | Requires(post,preun): /sbin/chkconfig | |
51 | Requires(postun): /usr/sbin/groupdel | |
52 | Requires(postun): /usr/sbin/userdel | |
9fc0ebeb | 53 | Requires(pre): /bin/id |
54 | Requires(pre): /usr/bin/getgid | |
55 | Requires(pre): /usr/sbin/groupadd | |
56 | Requires(pre): /usr/sbin/useradd | |
9fc0ebeb | 57 | Requires: pam >= 0.77.3 |
44bf2823 ER |
58 | Requires: rc-scripts |
59 | Provides: exim | |
9fc0ebeb | 60 | Provides: group(exim) |
61 | Provides: smtpdaemon | |
62 | Provides: user(exim) | |
9fc0ebeb | 63 | Obsoletes: courier |
44bf2823 | 64 | Obsoletes: exim |
9fc0ebeb | 65 | Obsoletes: masqmail |
66 | Obsoletes: nullmailer | |
67 | Obsoletes: omta | |
68 | Obsoletes: postfix | |
69 | Obsoletes: qmail | |
70 | Obsoletes: qmail-client | |
71 | Obsoletes: sendmail | |
72 | Obsoletes: sendmail-cf | |
73 | Obsoletes: sendmail-doc | |
74 | Obsoletes: smail | |
75 | Obsoletes: smtpdaemon | |
76 | Obsoletes: ssmtp | |
77 | Obsoletes: zmailer | |
901abf05 | 78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9fc0ebeb | 79 | |
80 | %description | |
81 | Smail like Mail Transfer Agent with single configuration file. | |
82 | Features: flexible retry algorithms, header & envelope rewriting, | |
83 | multiple deliveries down single connection or multiple deliveries in | |
84 | parallel, regular expressions in configuration parameters, file | |
85 | lookups, supports sender and/or reciever verification, selective | |
86 | relaying, supports virtual domains, built-in mail filtering and can be | |
87 | configured to drop root privilleges when possible. | |
88 | ||
40f43e79 | 89 | %description -l pl.UTF-8 |
9fc0ebeb | 90 | Agent transferu poczty (MTA) z pojedynczym plikiem konfiguracyjnym. |
40f43e79 JR |
91 | Jego zalety: świetne algorytmy, możliwość przepisywania nagłówków & |
92 | koperty, wielokrotne dostarczanie poczty podczas jednego połączenia | |
93 | lub równoległe dostarczanie poczty, wyrażenia regularne w parametrach | |
9fc0ebeb | 94 | konfiguracyjnych, weryfikacja nadawcy i/lub odbiorcy, selektywne |
40f43e79 JR |
95 | relayowanie, wsparcie dla wirtualnych domen, wbudowany system filtrów, |
96 | możliwość odrzucania praw roota kiedy jest to możliwe. | |
9fc0ebeb | 97 | |
98 | %package X11 | |
99 | Summary: X11 based Exim administration tool | |
758dee59 ER |
100 | Summary(pl.UTF-8): Narzędzia administracyjne exima dla X11 |
101 | Summary(pt_BR.UTF-8): Monitor X11 para o exim | |
9fc0ebeb | 102 | Group: X11/Applications |
103 | ||
104 | %description X11 | |
105 | X11 based monitor & administration utility for the Exim Mail Transfer | |
106 | Agent. | |
107 | ||
40f43e79 JR |
108 | %description X11 -l pl.UTF-8 |
109 | Bazujące na X11 narzędzia dla Exima - monitor i program | |
9fc0ebeb | 110 | administracyjny. |
111 | ||
112 | %prep | |
113 | %setup -n %{orig_name}-%{version} -q -a1 -a7 | |
114 | %patch0 -p1 | |
115 | %patch1 -p1 | |
116 | %patch2 -p0 | |
117 | %patch3 -p1 | |
118 | %patch4 -p1 | |
119 | %patch5 -p0 | |
120 | ||
121 | install %{SOURCE13} doc/FAQ.txt.bz2 | |
122 | install %{SOURCE14} doc/config.samples.tar.bz2 | |
123 | ||
124 | install -d Local | |
125 | cp -f src/EDITME Local/Makefile | |
126 | cp -f exim_monitor/EDITME Local/eximon.conf | |
127 | ||
128 | %build | |
129 | ||
130 | %{__make} -j1 \ | |
131 | CC="%{__cc}" \ | |
132 | CFLAGS="%{rpmcflags}" \ | |
133 | LOOKUP_CDB=yes \ | |
9812229d JB |
134 | XLFLAGS=-L%{_prefix}/X11R6/%{_lib} \ |
135 | X11_LD_LIB=%{_prefix}/X11R6/%{_lib} \ | |
9fc0ebeb | 136 | LOOKUP_LIBS="" \ |
137 | LOOKUP_INCLUDE="" | |
138 | ||
139 | makeinfo --force exim-texinfo-*/doc/*.texinfo | |
140 | ||
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/mail | |
144 | install -d $RPM_BUILD_ROOT/etc/{cron.{daily,weekly},logrotate.d,rc.d/init.d,sysconfig,pam.d} | |
145 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8,/usr/lib} | |
7835b05c | 146 | install -d $RPM_BUILD_ROOT%{_var}/{spool/exim/{db,input,msglog},log/{archive,}/exim,mail} |
9812229d | 147 | install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}} |
9fc0ebeb | 148 | |
149 | install build-Linux-*/exim{,_fixdb,_tidydb,_dbmbuild,on.bin,_dumpdb,_lock} \ | |
150 | build-Linux-*/exi{cyclog,next,what} %{SOURCE10} \ | |
151 | build-Linux-*/{exigrep,eximstats,exiqsumm,convert4r4} \ | |
152 | util/unknownuser.sh \ | |
153 | $RPM_BUILD_ROOT%{_bindir} | |
9812229d JB |
154 | install build-Linux-*/eximon.bin $RPM_BUILD_ROOT%{_bindir} |
155 | install build-Linux-*/eximon $RPM_BUILD_ROOT%{_bindir} | |
9fc0ebeb | 156 | |
157 | install %{SOURCE5} . | |
9812229d | 158 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.weekly |
9fc0ebeb | 159 | install %{SOURCE12} $RPM_BUILD_ROOT/etc/sysconfig/%{orig_name} |
160 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{orig_name} | |
161 | install %{SOURCE11} $RPM_BUILD_ROOT/etc/logrotate.d/%{orig_name} | |
162 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/mail/exim.conf | |
9812229d | 163 | install {doc,man}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8 |
9fc0ebeb | 164 | install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mail/aliases |
9812229d | 165 | install *.info* $RPM_BUILD_ROOT%{_infodir} |
9fc0ebeb | 166 | install %{SOURCE15} $RPM_BUILD_ROOT/etc/pam.d/smtp |
167 | ||
168 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/sendmail | |
169 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT/usr/lib/sendmail | |
170 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/mailq | |
171 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/rsmtp | |
172 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/rmail | |
173 | ln -sf %{_bindir}/exim $RPM_BUILD_ROOT%{_sbindir}/runq | |
174 | ||
175 | install %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir} | |
176 | install %{SOURCE16} $RPM_BUILD_ROOT%{_pixmapsdir} | |
177 | ||
178 | touch $RPM_BUILD_ROOT%{_var}/log/exim/{main,reject,panic,process}.log | |
179 | ||
180 | %clean | |
181 | rm -rf $RPM_BUILD_ROOT | |
182 | ||
183 | %pre | |
90b2a2ce ER |
184 | %groupadd -g 79 exim |
185 | %useradd -u 79 -d /var/spool/exim -s /bin/false -c "Exim pseudo user" -g exim exim | |
9fc0ebeb | 186 | |
187 | %post | |
188 | umask 022 | |
189 | /sbin/chkconfig --add %{orig_name} | |
190 | if [ -f /var/lock/subsys/exim ]; then | |
191 | /etc/rc.d/init.d/%{orig_name} restart >&2 | |
192 | else | |
193 | echo "Run \"/etc/rc.d/init.d/%{orig_name} start\" to start exim daemon." | |
194 | fi | |
195 | ||
196 | if [ ! -f /etc/mail/mailname ]; then | |
197 | rm -f /etc/mail/mailname && hostname -f > /etc/mail/mailname | |
198 | chmod 644 /etc/mail/mailname | |
199 | fi | |
200 | newaliases | |
201 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
202 | ||
203 | %preun | |
204 | if [ "$1" = "0" ]; then | |
205 | if [ -f /var/lock/subsys/exim ]; then | |
206 | /etc/rc.d/init.d/exim stop >&2 | |
207 | fi | |
208 | /sbin/chkconfig --del %{orig_name} | |
209 | fi | |
210 | ||
211 | %postun | |
212 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
213 | if [ "$1" = "0" ]; then | |
214 | %userremove exim | |
215 | %groupremove exim | |
216 | fi | |
217 | ||
40144c47 | 218 | %triggerpostun -- exim < 3.90 |
9fc0ebeb | 219 | if [ -f /etc/mail/exim.conf ]; then |
220 | umask 022 | |
221 | mv /etc/mail/exim.conf /etc/mail/exim.conf.3 | |
222 | /usr/bin/convert4r4 < /etc/mail/exim.conf.3 > /etc/mail/exim.conf | |
223 | fi | |
224 | ||
225 | %files | |
226 | %defattr(644,root,root,755) | |
227 | %doc README* NOTICE LICENCE analyse-log-errors doc/{ChangeLog,NewStuff,dbm.discuss.txt,filter.txt,spec.txt,Exim*.upgrade,OptionLists.txt%{?with_exiscan:,exiscan-*.txt}} build-Linux-*/transport-filter.pl | |
228 | %dir %{_sysconfdir}/mail | |
9812229d | 229 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/exim.conf |
44bf2823 ER |
230 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/aliases |
231 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/exim | |
232 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/exim | |
9fc0ebeb | 233 | %attr(754,root,root) /etc/rc.d/init.d/exim |
234 | %attr(4755,root,root) %{_bindir}/exim | |
235 | %attr(770,root,exim) %dir %{_var}/spool/exim | |
236 | %attr(750,exim,exim) %dir %{_var}/spool/exim/db | |
237 | %attr(700,exim,root) %dir %{_var}/spool/exim/input | |
238 | %attr(750,exim,root) %dir %{_var}/spool/exim/msglog | |
239 | %attr(755,root,root) %{_bindir}/exim_* | |
240 | %attr(755,root,root) %{_bindir}/exinext | |
241 | %attr(755,root,root) %{_bindir}/exiwhat | |
242 | %attr(755,root,root) %{_bindir}/exicyclog | |
243 | %attr(755,root,root) %{_bindir}/exigrep | |
244 | %attr(755,root,root) %{_bindir}/eximstats | |
245 | %attr(755,root,root) %{_bindir}/exiqsumm | |
246 | %attr(755,root,root) %{_bindir}/unknownuser.sh | |
247 | %attr(755,root,root) %{_bindir}/newaliases | |
248 | %attr(755,root,root) %{_bindir}/convert4r4 | |
249 | %attr(755,root,root) %{_sbindir}/mailq | |
250 | %attr(755,root,root) %{_sbindir}/rmail | |
251 | %attr(755,root,root) %{_sbindir}/rsmtp | |
252 | %attr(755,root,root) %{_sbindir}/runq | |
253 | %attr(755,root,root) %{_sbindir}/sendmail | |
254 | %attr(755,root,root) /usr/lib/sendmail | |
255 | %attr(754,root,root) /etc/cron.weekly/exim.cron.db | |
256 | %attr(750,exim,root) %dir %{_var}/log/exim | |
036089f7 | 257 | %attr(750,exim,root) %dir %{_var}/log/archive/exim |
9fc0ebeb | 258 | %attr(640,exim,root) %ghost %{_var}/log/exim/* |
9812229d JB |
259 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp |
260 | %{_infodir}/*.info* | |
9fc0ebeb | 261 | %{_mandir}/man8/* |
262 | ||
263 | %files X11 | |
264 | %defattr(644,root,root,755) | |
9812229d JB |
265 | %attr(755,root,root) %{_bindir}/eximon |
266 | %attr(755,root,root) %{_bindir}/eximon.bin | |
267 | %{_desktopdir}/eximon.desktop | |
268 | %{_pixmapsdir}/eximon.png |