1 |
%define alternatives 1 |
2 |
%define sendmaildir %{_prefix}/lib |
3 |
|
4 |
Summary: A widely used Mail Transport Agent (MTA) |
5 |
Name: sendmail |
6 |
Version: 8.14.9 |
7 |
Release: %mkrel 3 |
8 |
License: BSD |
9 |
Group: System/Servers |
10 |
Provides: mail-server sendmail-command |
11 |
Conflicts: vacation postfix |
12 |
URL: http://www.sendmail.com/sm/open_source/ |
13 |
|
14 |
Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz |
15 |
Source2: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz.sig |
16 |
Source3: aliases |
17 |
Source4: sendmail.sysconfig |
18 |
Source5: sendmail-etc-mail-Makefile |
19 |
Source6: sendmail-mandrake.mc |
20 |
Source7: Sendmail.conf |
21 |
Source8: sendmail.pam |
22 |
Source9: sendmail-real-time.mc |
23 |
Source10: README.mdk |
24 |
Source13: sendmail-certs.sh |
25 |
Source14: sendmail.service |
26 |
Source15: sm-client.service |
27 |
|
28 |
Patch1: sendmail-8.10.0-makemapman.patch |
29 |
Patch3: sendmail-8.8.7-rmail.patch |
30 |
Patch5: sendmail-8.12.10-movefiles.patch |
31 |
# build configuration |
32 |
Patch9: sendmail-8.14.0-mdk.patch |
33 |
# (cjw) set .pid file for queue runner and set some other Mageia defaults |
34 |
# adapted from fedora sendmail package, originally applied in mdv |
35 |
Patch12: sendmail-submit.mc-mandriva.patch |
36 |
# (cjw) fix cyrus-imapd path, from fedora pkg |
37 |
Patch13: sendmail-8.13.0-cyrus.patch |
38 |
Patch14: sendmail-8.14.4-libdb5.patch |
39 |
Patch15: sendmail-8.14.8-link.patch |
40 |
|
41 |
Patch50: sendmail-8.11.1-up-limit.patch |
42 |
|
43 |
Requires(pre): rpm-helper |
44 |
Requires(pre): update-alternatives |
45 |
Requires: procmail |
46 |
Requires: bash >= 2.0 |
47 |
Requires: cyrus-sasl |
48 |
Requires: openssl |
49 |
Requires: setup |
50 |
BuildRequires: db5-devel |
51 |
BuildRequires: cyrus-sasl |
52 |
BuildRequires: groff-for-man |
53 |
BuildRequires: libgdbm-devel |
54 |
BuildRequires: openssl-devel |
55 |
BuildRequires: libsasl-devel |
56 |
BuildRequires: tcp_wrappers-devel |
57 |
BuildRequires: libldap-devel |
58 |
BuildRequires: openssl |
59 |
|
60 |
%description |
61 |
The Sendmail program is a widely used Mail Transport Agent (MTA). |
62 |
MTAs send mail from one machine to another. |
63 |
|
64 |
Sendmail is not a client program, which you use to read your e-mail. |
65 |
Sendmail is a behind-the-scenes program which moves your |
66 |
e-mail over networks or the Internet to where you want it to go. |
67 |
|
68 |
If you ever need to reconfigure Sendmail, you'll also need to have the |
69 |
sendmail.cf package installed. If you need documentation on Sendmail, you can |
70 |
install the sendmail-doc package. |
71 |
|
72 |
%package doc |
73 |
Summary: Documentation about the Sendmail Mail Transport Agent program |
74 |
Group: System/Servers |
75 |
|
76 |
%description doc |
77 |
The sendmail-doc package contains documentation about the Sendmail |
78 |
Mail Transport Agent (MTA) program, including release notes, the |
79 |
Sendmail FAQ and a few papers written about Sendmail. The papers are |
80 |
provided in PostScript(TM) and troff formats. |
81 |
|
82 |
Install the sendmail-doc package if you need documentation about |
83 |
Sendmail. |
84 |
|
85 |
%package cf |
86 |
Summary: The files needed to reconfigure Sendmail |
87 |
Group: System/Servers |
88 |
Requires: make, m4 |
89 |
|
90 |
%description cf |
91 |
This package includes the configuration files which you'd need to generate the |
92 |
sendmail.cf file distributed with the sendmail package. |
93 |
|
94 |
You'll need the sendmail-cf package if you ever need to reconfigure and rebuild |
95 |
your sendmail.cf file. For example, the default sendmail.cf file is not |
96 |
configured for UUCP. If someday you needed to send and receive mail over UUCP, |
97 |
you'd need to install the sendmail-cf package to help you reconfigure Sendmail. |
98 |
|
99 |
Install the sendmail-cf package if you need to reconfigure your |
100 |
sendmail.cf file. |
101 |
|
102 |
%package devel |
103 |
Summary: Sendmail static libraries and headers file |
104 |
Group: Development/Other |
105 |
|
106 |
%description devel |
107 |
This package includes the static libraries and header files |
108 |
|
109 |
%prep |
110 |
|
111 |
%setup -q |
112 |
%patch1 -p1 -b .makemapman |
113 |
%patch3 -p1 -b .rmail |
114 |
%patch5 -p1 -b .movefiles |
115 |
%patch9 -p1 -b .mageia |
116 |
%patch12 -p1 -b .mandriva |
117 |
%patch13 -p1 -b .cyrus-imapd-path |
118 |
%patch14 -p1 -b .db5x |
119 |
%patch15 -p1 -b .resolv |
120 |
## |
121 |
%patch50 -p1 -b .up-limit |
122 |
## |
123 |
|
124 |
# XXX REVERTING |
125 |
sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/mandrake.mc |
126 |
sed -e 's|@@PATH@@|\.\.|' < %{SOURCE9} > cf/cf/real-time.mc |
127 |
# (sb) smrsh path fixes in docs |
128 |
perl -pi -e 's|\/usr\/libexec|\/usr\/sbin|g' smrsh/README |
129 |
perl -pi -e 's|\/usr\/adm\/sm.bin|\/etc\/smrsh|g' smrsh/README |
130 |
perl -pi -e 's|\/usr\/lib\/sendmail|\/usr\/sbin\/sendmail|g' smrsh/README |
131 |
echo 'Paths modified for Mandriva Linux mailto:sbenedict@mandriva.com' >> smrsh/README |
132 |
|
133 |
perl -pi -e 's|\/usr\/adm\/sm.bin|\/etc\/smrsh|g' smrsh/smrsh.8 |
134 |
perl -pi -e 's|sm.bin|\/etc\/smrsh|g' smrsh/smrsh.8 |
135 |
head -n -17 smrsh/smrsh.8 > smrsh/smrsh.8.mdk |
136 |
cat << EOF >> smrsh/smrsh.8.mdk |
137 |
.SH FILES |
138 |
/etc/smrsh \- directory for restricted programs |
139 |
.SH SEE ALSO |
140 |
sendmail(8) |
141 |
EOF |
142 |
mv smrsh/smrsh.8.mdk smrsh/smrsh.8 |
143 |
|
144 |
# (sb) m4 path |
145 |
perl -pi -e 's|\`sh \$BUILDTOOLS\/bin\/find_m4.sh\`|\/usr\/bin\/m4|g' cf/cf/Build |
146 |
|
147 |
%build |
148 |
|
149 |
%serverbuild |
150 |
export RPM_OPT_FLAGS="%optflags -DNETINET6" |
151 |
export confLIBDIR=%{_libdir} |
152 |
|
153 |
%make LDOPTS="%ldflags" |
154 |
|
155 |
%install |
156 |
mkdir -p %buildroot/{%_sysconfdir/sysconfig,%{_unitdir},%_sysconfdir/pam.d} |
157 |
mkdir -p %buildroot/{%_bindir,%_libdir,%{sendmaildir},%{_mandir}/man{1,5,8},%_sbindir} |
158 |
mkdir -p %buildroot/{var/log,var/spool,%_datadir/sendmail-cf,%_includedir/libmilter} |
159 |
mkdir -p %buildroot/%_docdir/sendmail |
160 |
|
161 |
OBJDIR=obj.$(uname -s).$(uname -r).$(arch) |
162 |
|
163 |
# fix default id and gid during install steps |
164 |
|
165 |
nameuser=`id -nu` |
166 |
namegroup=`id -ng` |
167 |
|
168 |
export confLIBDIR=%{_libdir} |
169 |
export ID="SBINOWN=${nameuser} SBINGRP=${namegroup} UBINOWN=${nameuser} UBINGRP=${namegroup} MANOWN=${nameuser} MANGRP=${namegroup} MSPQOWN=${nameuser} GBINGRP=${namegroup} GBINOWN=${nameuser} GBINGRP=${namegroup} MSPQOWN=${nameuser} MBINOWN=${nameuser} MBINGRP=${namegroup} LIBOWN=${nameuser} LIBGRP=${namegroup} CFOWN=${nameuser} CFGRP=${namegroup} INCOWN=${nameuser} INCGRP=${namegroup} CFMODE=0644" |
170 |
|
171 |
# (sb) fix example perl script interpreter paths |
172 |
sed -i 's|/usr/local/bin/perl|/usr/bin/perl|' contrib/*.pl |
173 |
|
174 |
# see https://bugzilla.mandriva.com/show_bug.cgi?id=34050 |
175 |
cat cf/cf/mandrake.mc | \ |
176 |
sed -e "s,%{_datadir}/sendmail-cf/m4/cf\.m4,../../cf/m4/cf.m4," \ |
177 |
> cf/cf/mandrake-build.mc |
178 |
cat cf/cf/submit.mc | \ |
179 |
sed -e "s,%{_datadir}/sendmail-cf/m4/cf\.m4,../../cf/m4/cf.m4," \ |
180 |
> cf/cf/submit-build.mc |
181 |
%makeinstall DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man CF=mandrake-build SUBMIT=submit-build $ID |
182 |
|
183 |
%make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man $ID force-install -C $OBJDIR/rmail |
184 |
%make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man $ID force-install -C $OBJDIR/mail.local |
185 |
|
186 |
%make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man $ID install -C $OBJDIR/smrsh |
187 |
|
188 |
ln -sf ../sbin/makemap $RPM_BUILD_ROOT/usr/bin/makemap |
189 |
|
190 |
# install docs by hand - do it in builddir instead of RPM_BUILD_ROOT |
191 |
rm -fr sendmail-docs |
192 |
mkdir -p sendmail-docs%{_docdir}/sendmail |
193 |
cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc sendmail-docs%{_docdir}/sendmail |
194 |
cp smrsh/README sendmail-docs%{_docdir}/sendmail/README.smrsh |
195 |
cp sendmail/README sendmail-docs%{_docdir}/sendmail/README.sendmail |
196 |
cp sendmail/SECURITY sendmail-docs%{_docdir}/sendmail/SECURITY.sendmail |
197 |
cp sendmail/TUNING sendmail-docs%{_docdir}/sendmail/TUNING.sendmail |
198 |
cp mail.local/README sendmail-docs%{_docdir}/sendmail/README.mail.local |
199 |
cp cf/README sendmail-docs%{_docdir}/sendmail/README.cf |
200 |
cp cf/cf/README sendmail-docs%{_docdir}/sendmail/README.install-cf |
201 |
cp %{SOURCE10} sendmail-docs%{_docdir}/sendmail/README.mga |
202 |
cp libmilter/README sendmail-docs%{_docdir}/sendmail/README.libmilter |
203 |
cp -ar libmilter/docs/ sendmail-docs%{_docdir}/sendmail/libmilter |
204 |
|
205 |
# install the cf files |
206 |
make DESTDIR=$RPM_BUILD_ROOT MANROOT=%{_mandir}/man $ID CF=mandrake-build SUBMIT=submit-build install-cf -C cf/cf |
207 |
# restore include path |
208 |
sed -i -e "s,\.\./\.\./cf/m4/cf\.m4,%{_datadir}/sendmail-cf/m4/cf.m4,g" \ |
209 |
%{buildroot}%{_sysconfdir}/mail/sendmail.cf |
210 |
rm -f cf/cf/mandrake-build.mc |
211 |
rm -f cf/cf/submit-build.mc |
212 |
pushd cf |
213 |
cp -ar * $RPM_BUILD_ROOT/usr/share/sendmail-cf |
214 |
install -m 644 %{SOURCE9} $RPM_BUILD_ROOT/usr/share/sendmail-cf/cf |
215 |
rm -f $RPM_BUILD_ROOT/usr/share/sendmail-cf/*/*.m4path |
216 |
make -C cf mandrake-build.cf |
217 |
popd |
218 |
|
219 |
rm -f %{buildroot}%{_datadir}/sendmail-cf/cf/mandrake-build.cf |
220 |
|
221 |
mkdir -p $RPM_BUILD_ROOT/%_sysconfdir/mail |
222 |
sed -e 's|@@PATH@@|/usr/share/sendmail-cf|' < %{SOURCE6} > $RPM_BUILD_ROOT/%_sysconfdir/mail/sendmail.mc |
223 |
cp cf/cf/submit.mc $RPM_BUILD_ROOT/%_sysconfdir/mail/ |
224 |
|
225 |
echo "# local-host-names - include all aliases for your machine here." > $RPM_BUILD_ROOT/%_sysconfdir/mail/local-host-names |
226 |
( echo "# trusted-users - users that can send mail as others without a warning" |
227 |
echo "# apache, mailman, majordomo, uucp, are good candidates" ) \ |
228 |
> $RPM_BUILD_ROOT/%_sysconfdir/mail/trusted-users |
229 |
|
230 |
|
231 |
install -d -m755 %buildroot/var/spool/mqueue |
232 |
install -d -m755 %buildroot/var/spool/clientmqueue |
233 |
|
234 |
# dangling symlinks |
235 |
ln -sf ../sbin/sendmail.sendmail %buildroot/%{sendmaildir}/sendmail |
236 |
for f in hoststat mailq newaliases purgestat |
237 |
do |
238 |
ln -sf ../sbin/sendmail.sendmail %buildroot/%_bindir/${f} |
239 |
done |
240 |
|
241 |
mkdir -p %buildroot/%_sysconfdir/smrsh |
242 |
|
243 |
cat <<EOF > $RPM_BUILD_ROOT/%_sysconfdir/mail/access |
244 |
# Check the /usr/share/doc/sendmail-%{version}/README.cf file for a description |
245 |
# of the format of this file. (search for access_db in that file) |
246 |
# The /usr/share/doc/sendmail-%{version}/README.cf is part of the sendmail-doc |
247 |
# package. |
248 |
# |
249 |
# by default we allow relaying from localhost... |
250 |
localhost.localdomain RELAY |
251 |
localhost RELAY |
252 |
127.0.0.1 RELAY |
253 |
|
254 |
EOF |
255 |
|
256 |
for map in virtusertable access domaintable mailertable |
257 |
do |
258 |
touch $RPM_BUILD_ROOT/%_sysconfdir/mail/${map} |
259 |
chmod 0644 $RPM_BUILD_ROOT/%_sysconfdir/mail/${map} |
260 |
$RPM_BUILD_ROOT/usr/sbin/makemap -C $RPM_BUILD_ROOT/%_sysconfdir/mail/sendmail.cf hash $RPM_BUILD_ROOT/%_sysconfdir/mail/${map}.db < $RPM_BUILD_ROOT/%_sysconfdir/mail/${map} |
261 |
chmod 0644 $RPM_BUILD_ROOT/%_sysconfdir/mail/${map}.db |
262 |
done |
263 |
install -m644 %{SOURCE3} $RPM_BUILD_ROOT/%_sysconfdir/aliases |
264 |
$RPM_BUILD_ROOT/usr/sbin/makemap -C $RPM_BUILD_ROOT/%_sysconfdir/mail/sendmail.cf hash $RPM_BUILD_ROOT/%_sysconfdir/aliases.db < %{SOURCE3} |
265 |
|
266 |
install -m644 %SOURCE4 $RPM_BUILD_ROOT/%_sysconfdir/sysconfig/sendmail |
267 |
install -d -m 755 %{buildroot}%{_unitdir} |
268 |
install -m644 %SOURCE14 %{buildroot}%{_unitdir} |
269 |
install -m644 %SOURCE15 %{buildroot}%{_unitdir} |
270 |
|
271 |
install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/%_sysconfdir/mail/Makefile |
272 |
|
273 |
chmod u+w $RPM_BUILD_ROOT/usr/sbin/{mailstats,praliases} |
274 |
chmod u+w $RPM_BUILD_ROOT/usr/bin/rmail |
275 |
|
276 |
install -m755 -d $RPM_BUILD_ROOT%{_libdir}/sasl2 |
277 |
install -m 644 %{SOURCE7} $RPM_BUILD_ROOT%{_libdir}/sasl2/Sendmail.conf |
278 |
install -m 644 %{SOURCE8} $RPM_BUILD_ROOT/%_sysconfdir/pam.d/smtp |
279 |
|
280 |
# add certs directory for STARTTLS |
281 |
mkdir -p $RPM_BUILD_ROOT/%_sysconfdir/ssl/%{name} |
282 |
# create placeholder certs |
283 |
pushd $RPM_BUILD_ROOT/%_sysconfdir/ssl/%{name} |
284 |
sh %{SOURCE13} |
285 |
popd |
286 |
|
287 |
%if %{alternatives} |
288 |
mv $RPM_BUILD_ROOT%{_sbindir}/sendmail $RPM_BUILD_ROOT%{_sbindir}/sendmail.sendmail |
289 |
mv $RPM_BUILD_ROOT/%{sendmaildir}/sendmail $RPM_BUILD_ROOT/%{sendmaildir}/sendmail.sendmail |
290 |
%endif |
291 |
|
292 |
# (sb) logrotate |
293 |
install -d $RPM_BUILD_ROOT%_sysconfdir/logrotate.d |
294 |
cat << EOF > $RPM_BUILD_ROOT%_sysconfdir/logrotate.d/statistics |
295 |
/var/log/statistics { |
296 |
missingok |
297 |
compress |
298 |
postrotate |
299 |
service sendmail reload |
300 |
endscript |
301 |
} |
302 |
EOF |
303 |
|
304 |
# make strip able to touch these |
305 |
chmod 755 %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/* |
306 |
|
307 |
%pre |
308 |
%_pre_useradd mailnull /var/spool/mqueue /dev/null |
309 |
%_pre_useradd smmsp /var/spool/mqueue /dev/null |
310 |
|
311 |
%_postun_userdel mailnull |
312 |
%_postun_userdel smmsp |
313 |
|
314 |
%post |
315 |
# |
316 |
# Convert old format to new |
317 |
# |
318 |
if [ -f %_sysconfdir/mail/deny ] ; then |
319 |
cat %_sysconfdir/mail/deny | \ |
320 |
awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \ |
321 |
{print $1" REJECT"}' >> %_sysconfdir/mail/access |
322 |
cp %_sysconfdir/mail/deny %_sysconfdir/mail/deny.rpmorig |
323 |
fi |
324 |
for oldfile in relay_allow ip_allow name_allow ; do |
325 |
if [ -f %_sysconfdir/mail/$oldfile ] ; then |
326 |
cat %_sysconfdir/mail/$oldfile | \ |
327 |
awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \ |
328 |
{ print \$1\" RELAY\" }" >> %_sysconfdir/mail/access |
329 |
cp %_sysconfdir/mail/$oldfile %_sysconfdir/mail/$oldfile.rpmorig |
330 |
fi |
331 |
done |
332 |
|
333 |
%if %{alternatives} |
334 |
# |
335 |
# Set up the alternatives files for MTAs. |
336 |
# |
337 |
/usr/sbin/update-alternatives --install %{_sbindir}/sendmail sendmail-command %{_sbindir}/sendmail.sendmail 10 \ |
338 |
--slave %{sendmaildir}/sendmail sendmail-command-in_libdir %{_sbindir}/sendmail.sendmail \ |
339 |
#--initscript sendmail |
340 |
%endif |
341 |
|
342 |
|
343 |
# |
344 |
# Oops, these files moved |
345 |
# |
346 |
if [ -f %_sysconfdir/sendmail.cf -a ! -f %_sysconfdir/mail/sendmail.cf ] ; then |
347 |
sed -e 's/^O AutoRebuildAliases/#O AutoRebuildAliases/' %_sysconfdir/sendmail.cf > %_sysconfdir/mail/sendmail.cf |
348 |
mv %_sysconfdir/sendmail.cf %_sysconfdir/sendmail.cf.rpmorig |
349 |
fi |
350 |
|
351 |
if [ -f %_sysconfdir/sendmail.cw ] ; then |
352 |
cat %_sysconfdir/sendmail.cw | \ |
353 |
awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \ |
354 |
{ print $1 }' >> %_sysconfdir/mail/local-host-names |
355 |
cp %_sysconfdir/sendmail.cw %_sysconfdir/sendmail.cw.rpmorig |
356 |
fi |
357 |
# |
358 |
# Rebuild maps (next reboot will rebuild also) |
359 |
# |
360 |
{ /usr/bin/newaliases |
361 |
for map in virtusertable access domaintable mailertable bitdomain uudomain genericstable authinfo |
362 |
do |
363 |
if [ -f %_sysconfdir/mail/${map} ] ; then |
364 |
/usr/sbin/makemap hash %_sysconfdir/mail/${map} < %_sysconfdir/mail/${map} |
365 |
sleep 1 |
366 |
fi |
367 |
done |
368 |
for map in userdb |
369 |
do |
370 |
if [ -f %_sysconfdir/mail/${map} ] ; then |
371 |
/usr/sbin/makemap btree %_sysconfdir/mail/${map} < %_sysconfdir/mail/${map} |
372 |
sleep 1 |
373 |
fi |
374 |
done |
375 |
} > /dev/null 2>&1 |
376 |
|
377 |
if [ "$1" = "1" ]; then |
378 |
touch /var/lib/rpm-helper/systemd-migration/sendmail |
379 |
fi |
380 |
|
381 |
if [ "$1" = "2" ]; then |
382 |
if ! [ -f /var/lib/rpm-helper/systemd-migration/sendmail ]; then |
383 |
export SENDMAIL_SYSTEMD_MIGRATION=1 |
384 |
fi |
385 |
fi |
386 |
|
387 |
%_post_service sendmail |
388 |
|
389 |
if [ "$1" = "2" ] && [ "$SENDMAIL_SYSTEMD_MIGRATION" = "1" ]; then |
390 |
if grep '^DAEMON=yes$' %{_sysconfdir}/sysconfig/sendmail >/dev/null 2>&1; then |
391 |
# do nothing |
392 |
: |
393 |
else |
394 |
# disable daemons... |
395 |
systemctl disable sendmail.service |
396 |
systemctl disable sm-client.service |
397 |
systemctl stop sendmail.service |
398 |
systemctl stop sm-client.service |
399 |
fi |
400 |
|
401 |
chkconfig --del sendmail |
402 |
fi |
403 |
|
404 |
%preun |
405 |
%_preun_service sendmail |
406 |
if [ $1 = 0 ]; then |
407 |
%if %alternatives |
408 |
update-alternatives --remove sendmail-command %{_sbindir}/sendmail.sendmail |
409 |
%endif |
410 |
fi |
411 |
|
412 |
|
413 |
%triggerpostun -- sendmail < 8.10.0 |
414 |
/sbin/chkconfig --add sendmail |
415 |
|
416 |
%files |
417 |
%attr(0555,bin,bin) /usr/bin/vacation |
418 |
/usr/bin/hoststat |
419 |
/usr/bin/purgestat |
420 |
/usr/bin/makemap |
421 |
%attr(0555,bin,bin) /usr/sbin/makemap |
422 |
%attr(0555,bin,bin) /usr/sbin/editmap |
423 |
%attr(0555,bin,bin) /usr/sbin/mail.local |
424 |
%attr(0555,bin,bin) /usr/sbin/smrsh |
425 |
%attr(0555,bin,bin) /usr/sbin/mailstats |
426 |
%attr(0555,bin,bin) /usr/sbin/praliases |
427 |
%if %{alternatives} |
428 |
%attr(2555,root,mail)/usr/sbin/sendmail.sendmail |
429 |
%{sendmaildir}/sendmail.sendmail |
430 |
%else |
431 |
%attr(2555,root,mail) /usr/sbin/sendmail |
432 |
%attr(0555,bin,bin) /usr/bin/rmail |
433 |
%{sendmaildir}/sendmail |
434 |
%endif |
435 |
/usr/bin/rmail |
436 |
/usr/bin/newaliases |
437 |
/usr/bin/mailq |
438 |
%{_mandir}/man1/mailq.1.* |
439 |
%{_mandir}/man1/newaliases.1.* |
440 |
%{_mandir}/man1/vacation.1.* |
441 |
%{_mandir}/man5/aliases.5.* |
442 |
%{_mandir}/man8/editmap.8.* |
443 |
%{_mandir}/man8/mail.local.8.* |
444 |
%{_mandir}/man8/mailstats.8.* |
445 |
%{_mandir}/man8/makemap.8.* |
446 |
%{_mandir}/man8/praliases.8.* |
447 |
%{_mandir}/man8/rmail.8.* |
448 |
%{_mandir}/man8/sendmail.8.* |
449 |
%{_mandir}/man8/smrsh.8.* |
450 |
|
451 |
# XXX can't do noreplace here or new sendmail will not deliver. |
452 |
%dir %_sysconfdir/smrsh |
453 |
%dir %_sysconfdir/mail |
454 |
%attr(0755,root,mail) %dir %_sysconfdir/ssl/%{name} |
455 |
%attr(0600,root,mail) %config(noreplace) %_sysconfdir/ssl/%{name}/* |
456 |
|
457 |
%config(noreplace) %_sysconfdir/mail/Makefile |
458 |
%attr(0444,root,mail) %config(noreplace) %_sysconfdir/mail/sendmail.cf |
459 |
%attr(0444,root,mail) %config(noreplace) %_sysconfdir/mail/submit.cf |
460 |
%attr(0644,root,mail) %config(noreplace) %_sysconfdir/mail/sendmail.mc |
461 |
%attr(0644,root,mail) %config(noreplace) %_sysconfdir/mail/submit.mc |
462 |
%config(noreplace) %_sysconfdir/mail/local-host-names |
463 |
%config(noreplace) %_sysconfdir/aliases |
464 |
%attr(0644,root,root) %ghost %_sysconfdir/aliases.db |
465 |
%attr(0750,root,mail) %dir /var/spool/mqueue |
466 |
%attr(0770,mail,mail) %dir /var/spool/clientmqueue |
467 |
%attr(4555,root,mail) /var/log/statistics |
468 |
%attr(0644,root,root) %ghost %_sysconfdir/mail/virtusertable.db |
469 |
%attr(0644,root,root) %config(noreplace) %_sysconfdir/mail/virtusertable |
470 |
|
471 |
%attr(0644,root,root) %ghost %_sysconfdir/mail/access.db |
472 |
%attr(0644,root,root) %config(noreplace) %_sysconfdir/mail/access |
473 |
|
474 |
%attr(0644,root,root) %ghost %_sysconfdir/mail/domaintable.db |
475 |
%attr(0644,root,root) %config(noreplace) %_sysconfdir/mail/domaintable |
476 |
|
477 |
%attr(0644,root,root) %ghost %_sysconfdir/mail/mailertable.db |
478 |
%attr(0644,root,root) %config(noreplace) %_sysconfdir/mail/mailertable |
479 |
|
480 |
%attr(0644,bin,bin) %config(noreplace) %_sysconfdir/mail/helpfile |
481 |
%attr(0644,root,root) %config(noreplace) %_sysconfdir/mail/trusted-users |
482 |
|
483 |
%config(noreplace) %_sysconfdir/sysconfig/sendmail |
484 |
|
485 |
%{_unitdir}/sendmail.service |
486 |
%{_unitdir}/sm-client.service |
487 |
|
488 |
%config(noreplace) %{_libdir}/sasl2/Sendmail.conf |
489 |
%config(noreplace) %_sysconfdir/logrotate.d/statistics |
490 |
%config(noreplace) %_sysconfdir/pam.d/smtp |
491 |
|
492 |
%files cf |
493 |
/usr/share/sendmail-cf |
494 |
|
495 |
%files doc |
496 |
%doc contrib sendmail-docs%{_docdir}/sendmail |
497 |
|
498 |
%files devel |
499 |
%doc libsm/{*.html,README} sendmail-docs%{_docdir}/sendmail/{libmilter,README.libmilter} |
500 |
%dir %{_includedir}/libmilter |
501 |
%{_includedir}/libmilter/*.h |
502 |
%{_libdir}/lib*.a |