]> git.pld-linux.org Git - packages/sendmail.git/blob - sendmail.spec
- merged from removed sendmail2.spec.
[packages/sendmail.git] / sendmail.spec
1 Summary:        A widely used Mail Transport Agent (MTA).
2 Summary(pl):    Sendmail -- aplikacja do obs³ugi poczty elektronicznej
3 Name:           sendmail
4 Version:        8.10.1
5 Release:        1
6 License:        BSD
7 Group:          System Environment/Daemons
8 Group(pl):      Sieciowe/Serwery
9 Provides:       smtpdaemon
10 Source0:        ftp://ftp.cs.berkeley.edu/ucb/sendmail/%{name}.%{version}.tar.gz
11 Source1:        sendmail.init
12 Source2:        http://www.informatik.uni-kiel.de/%7Eca/email/rules/check.tar
13 Source3:        aliases
14 Source4:        sendmail.sysconfig
15 Source5:        sendmail-8.9.3-etc-mail-Makefile
16 Source6:        sendmail-redhat.mc
17 Patch0:         sendmail-8.10.0-redhat.patch
18 Patch1:         sendmail-8.10.0-makemapman.patch
19 Patch2:         sendmail-8.10.0-smrsh-paths.patch
20 Patch3:         sendmail-8.8.7-rmail.patch
21 #Patch4:        sendmail-8.10.0-aliasesDoS.patch
22 #Patch5:        sendmail-8.10.0-movefiles.patch
23 #Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Prereq:         /sbin/chkconfig
26 Provides:       smtpdaemon
27 Obsoletes:      smtpdaemon
28 Obsoletes:      zmail
29 Obsoletes:      qmail
30 Obsoletes:      smail
31
32
33 %description
34 The Sendmail program is a very widely used Mail Transport Agent (MTA).
35 MTAs send mail from one machine to another. Sendmail is not a client
36 program, which you use to read your e-mail. Sendmail is a
37 behind-the-scenes program which actually moves your e-mail over
38 networks or the Internet to where you want it to go.
39
40 If you ever need to reconfigure Sendmail, you'll also need to have the
41 sendmail.cf package installed. If you need documentation on Sendmail,
42 you can install the sendmail-doc package.
43
44
45 %description -l pl
46 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
47 miêdzy komputerami w sieci internet. Zajmuje siê przekazywaniem poczty
48 elektronicznej miêdzy bramkami pocztowymi i dostarczaniem przesy³ek na
49 konta docelowe. Bardzo dobrze obs³uguje aliasy pocztowe a jego
50 dodatkowym atutem jest prosta konfiguracja. Dziêki rozbudowanym
51 mo¿liwo¶ciom konfiguracyjnym jest w stanie dostarczaæ przesy³ki za
52 po¶rednictwem protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
53
54 Je¿eli masz zamiar korzystaæ z poczty elektronicznej w sieci internet
55 oraz 6bone to zainstaluj ten pakiet
56
57 %package doc
58 Summary:        Documentation about the Sendmail Mail Transport Agent program.
59 Summary(pl):    Dokumentacja do Sendmaila.
60 Group(pl):      Serwery
61 Group:          Documentation
62 ######          /home/lukasz/rpm/groups: no such file
63
64 %description doc
65 The sendmail-doc package contains documentation about the Sendmail
66 Mail Transport Agent (MTA) program, including release notes, the
67 Sendmail FAQ and a few papers written about Sendmail. The papers are
68 provided in PostScript(TM) and troff formats.
69
70 Install the sendmail-doc package if you need documentation about
71 Sendmail.
72
73 %description -l pl
74 Ten pakiet zawiera dokumentacjê do programu Sendmail Mail Transport
75 Agent (MTA). Dokumentacja zwawiera informacje o zmianach w bie¿±cej
76 wersji, FAQ - najczêsciej zadawane pytania. Dokumentacja dostêpna jest
77 w formacie PostScript(TM) oraz troff. Je¿eli potrzebujesz dokumntacji
78 - zainstaluj ten pakiet.
79
80 %package cf
81 Summary:        The files needed to reconfigure Sendmail.
82 Summary(pl):    Pliki konfiguracyjne oraz makra m4 dla sendmaila
83 Group:          System Environment/Daemons
84 ######          /home/lukasz/rpm/groups: no such file
85 Group(pl):      Serwery
86 Requires:       %{name} = %{version}
87
88
89 %description cf
90 This package includes the configuration files which you'd need to
91 generate the sendmail.cf file distributed with the sendmail package.
92 You'll need the sendmail-cf package if you ever need to reconfigure
93 and rebuild your sendmail.cf file. For example, the default
94 sendmail.cf file is not configured for UUCP. If someday you needed to
95 send and receive mail over UUCP, you'd need to install the sendmail-cf
96 package to help you reconfigure Sendmail.
97
98 Install the sendmail-cf package if you need to reconfigure your
99 sendmail.cf file.
100
101 %description -l pl cf
102 Pakiet ten zawiera wszystkie pliki konfiguracyjne u¿ywane do gene-
103 rowania pliku sendmail.cf, znajduj±cego siê w pakiecie bazowym.
104 Bêdziesz potrzebowa³ tego pakietu je¿eli chcesz zmieniæ i przebudowaæ
105 konfiguracjê swojego sendmaila. Na przyk³ad, standardowy plik konfigu-
106 racyjny nie zawiera wspomagania dla poczty po UUCP. Je¿eli chcesz wy-
107 sy³aæ i odbieraæ pocztê po UUCP bêdziesz potrzebowa³ tego pakietu.
108
109 %prep
110 %setup -q
111 %patch0 -p1 -b .redhat
112 %patch1 -p1 -b .makemapman
113 %patch2 -p1 -b .smrsh
114 %patch3 -p1 -b .rmail
115 #%patch4 -p1 -b .aliases
116 #%patch5 -p1 -b .movestuff
117
118 # XXX REVERTING
119 #tar xf $RPM_SOURCE_DIR/check.tar -C cf
120 #chown root.root cf/hack/* cf/README.check
121
122
123 sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/redhat.mc
124
125 %build
126 export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -DUSE_VENDOR_CF_PATH=1"
127
128 cd sendmail
129 sh Build -f ../redhat.config.m4
130 cd ..
131
132 cd mailstats
133 sh Build -f ../redhat.config.m4
134 cd ..
135
136 cd rmail
137 sh Build -f ../redhat.config.m4
138 cd ..
139
140 cd makemap
141 sh Build -f ../redhat.config.m4
142 cd ..
143
144 cd praliases
145 sh Build -f ../redhat.config.m4
146 cd ..
147
148 cd smrsh
149 sh Build -f ../redhat.config.m4
150 cd ..
151
152 cd cf/cf
153 m4 redhat.mc > redhat.cf
154
155 %install
156 rm -rf $RPM_BUILD_ROOT
157 install -d $RPM_BUILD_ROOT
158
159 cd $RPM_BUILD_ROOT
160 install -d etc/rc.d/init.d etc/rc.d/rc{0,1,2,3,4,5,6}.d etc/sysconfig
161 install -d usr/bin usr/lib usr/man/man{1,5,8} usr/sbin var/log var/spool usr/lib/sendmail-cf
162 cd -
163
164 OBJDIR=obj.$(uname -s).$(uname -r).$(arch)
165
166 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
167  install -C $OBJDIR/sendmail
168 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
169  install -C $OBJDIR/mailstats
170 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
171  install -C $OBJDIR/praliases
172 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
173  force-install -C $OBJDIR/rmail
174 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
175  install -C $OBJDIR/makemap
176 ln -sf ../sbin/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
177 make DESTDIR=$RPM_BUILD_ROOT SBINOWN=`id -nu` UBINOWN=`id -nu` SBINGRP=`id -ng` UBINGRP=`id -ng` MANOWN=`id -nu` MANGRP=`id -ng` \
178  install -C $OBJDIR/smrsh
179
180 # install docs by hand
181 install -d $RPM_BUILD_ROOT%{_prefix}/doc/sendmail
182 cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc $RPM_BUILD_ROOT%{_prefix}/doc/sendmail
183 cp smrsh/README $RPM_BUILD_ROOT%{_prefix}/doc/sendmail/README.smrsh
184 cp cf/README $RPM_BUILD_ROOT%{_prefix}/doc/sendmail/README.cf
185
186 # install the cf files
187 cd cf
188 cp -ar * $RPM_BUILD_ROOT%{_libdir}/sendmail-cf
189 cd -
190
191 install -d $RPM_BUILD_ROOT/etc/mail
192
193
194 install cf/cf/redhat.cf $RPM_BUILD_ROOT/etc/sendmail.cf
195 sed -e 's|@@PATH@@|%{_libdir}/sendmail-cf|' < %{SOURCE6} > $RPM_BUILD_ROOT/etc/mail/sendmail.mc
196 echo "# local-host-names - include all aliases for your machine here." > $RPM_BUILD_ROOT/etc/mail/local-host-names
197
198 ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail
199 install -d -m755 $RPM_BUILD_ROOT/var/spool/mqueue
200
201 # dangling symlinks
202 for f in hoststat mailq newaliases purgestat
203   do
204     ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
205   done
206 install -d $RPM_BUILD_ROOT/etc/smrsh
207
208 cat <<EOF > $RPM_BUILD_ROOT/etc/mail/access
209 # Check the %{_prefix}/doc/sendmail-%{version}/README.cf file for a description
210 # of the format of this file. (search for access_db in that file)
211 # The %{_prefix}/doc/sendmail-%{version}/README.cf is part of the sendmail-doc
212 # package.
213 #
214 # by default we allow relaying from localhost...
215 localhost.localdomain           RELAY
216 localhost                       RELAY
217 127.0.0.1                       RELAY
218
219 EOF
220 for map in virtusertable access domaintable mailertable
221   do
222     touch $RPM_BUILD_ROOT/etc/mail/${map}
223     makemap hash $RPM_BUILD_ROOT/etc/mail/${map}.db < $RPM_BUILD_ROOT/etc/mail/${map}
224   done
225 install %{SOURCE3} $RPM_BUILD_ROOT/etc/aliases
226 makemap hash $RPM_BUILD_ROOT/etc/aliases.db < %{SOURCE3}
227
228 install %SOURCE4 $RPM_BUILD_ROOT/etc/sysconfig/sendmail
229 install -m755 %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
230
231 install %{SOURCE5} $RPM_BUILD_ROOT/etc/mail/Makefile
232
233 chmod u+w $RPM_BUILD_ROOT%{_sbindir}/{mailstats,praliases}
234 chmod u+w $RPM_BUILD_ROOT%{_bindir}/rmail
235
236 strip $RPM_BUILD_ROOT%{_sbindir}/{mailstats,praliases,sendmail}
237 strip $RPM_BUILD_ROOT%{_bindir}/rmail
238
239 %clean
240 rm -rf $RPM_BUILD_ROOT
241
242 %post
243 #
244 # Convert old format to new
245 #
246 if [ -f /etc/mail/deny ] ; then
247     cat /etc/mail/deny | \
248         awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \
249                   {print $1" REJECT"}' >> /etc/mail/access
250     cp /etc/mail/deny /etc/mail/deny.rpmorig
251 fi
252 for oldfile in relay_allow ip_allow name_allow ; do
253     if [ -f /etc/mail/$oldfile ] ; then
254         cat /etc/mail/$oldfile | \
255                 awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \
256              { print $1\" RELAY\" }" >> /etc/mail/access
257         cp /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
258      fi
259 done
260
261 #
262 # Oops, these files moved
263 #
264 if [ -f /etc/sendmail.cw ] ; then
265     cat /etc/sendmail.cw  | \
266       awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \
267            { print $1 }' >> /etc/mail/local-host-names
268     cp /etc/sendmail.cw /etc/sendmail.cw.rpmorig
269 fi
270 #
271 # Rebuild maps (next reboot will rebuild also)
272 #
273 { /usr/bin/newaliases
274   for map in virtusertable access domaintable mailertable
275   do
276     if [ -f /etc/mail/${map} ] ; then
277       /usr/bin/makemap hash /etc/mail/${map} < /etc/mail/${map}
278       sleep 1
279     fi
280   done
281 } > /dev/null 2>&1
282
283 /sbin/chkconfig --add sendmail
284
285 %preun
286 if [ $1 = 0 ]; then
287    /sbin/chkconfig --del sendmail
288 fi
289
290 # removal of compatibility links
291 %triggerpostun -- sendmail < 8.10.1
292 /sbin/chkconfig --add sendmail
293
294 %files
295 %defattr(644,root,root,755)
296 %attr(755,root,root) %{_sbindir}/mailstats
297 %attr(755,root,root) %{_sbindir}/praliases
298 %attr(755,root,root) %{_bindir}/hoststat
299 %attr(755,root,root) %{_bindir}/purgestat
300 %attr(755,root,root) %{_bindir}/rmail
301 %attr(755,root,root) %{_bindir}/makemap
302 %attr(755,root,root) %{_sbindir}/makemap
303 %attr(755,root,root) %{_sbindir}/sendmail
304 %attr(755,root,root) %{_bindir}/newaliases
305 %attr(755,root,root) %{_bindir}/mailq
306 %attr(755,root,root) %{_sbindir}/smrsh
307 %{_libdir}/sendmail
308
309 %{_mandir}/man8/rmail.8*
310 %{_mandir}/man8/praliases.8*
311 %{_mandir}/man8/mailstats.8*
312 %{_mandir}/man8/makemap.8*
313 %{_mandir}/man8/sendmail.8*
314 %{_mandir}/man5/aliases.5*
315 %{_mandir}/man1/newaliases.1*
316 %{_mandir}/man1/mailq.1*
317
318 /var/log/statistics
319 # XXX can't do noreplace here or new sendmail will not deliver.
320 %config                         /etc/sendmail.cf
321 %attr(0644,root,root) %config   /etc/mail/sendmail.mc
322 %config(noreplace)              /etc/mail/local-host-names
323 %config(noreplace)              /etc/aliases
324 %attr(0644,root,mail) %ghost    /etc/aliases.db
325 %attr(0755,root,mail) %dir      /var/spool/mqueue
326 %dir /etc/smrsh
327 %dir /etc/mail
328
329 %config /etc/mail/Makefile
330 %attr(0644,root,root) %ghost                    /etc/mail/virtusertable.db
331 %attr(0644,root,root) %config(noreplace)        /etc/mail/virtusertable
332
333 %attr(0644,root,root) %ghost                    /etc/mail/access.db
334 %attr(0644,root,root) %config(noreplace)        /etc/mail/access
335
336 %attr(0644,root,root) %ghost                    /etc/mail/domaintable.db
337 %attr(0644,root,root) %config(noreplace)        /etc/mail/domaintable
338
339 %attr(0644,root,root) %ghost                    /etc/mail/mailertable.db
340 %attr(0644,root,root) %config(noreplace)        /etc/mail/mailertable
341
342 %attr(0644,root,root) %config(noreplace)        /etc/mail/helpfile
343
344 %config /etc/sysconfig/sendmail
345
346 %config /etc/rc.d/init.d/sendmail
347
348 %files cf
349 %defattr(644,root,root,755)
350 %{_libdir}/sendmail-cf
351
352 %files doc
353 %defattr(644,root,root,755)
354 %{_prefix}/doc/sendmail
355
356 * Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com>
357 - fixed virtusertable patch
358 - make smrsh look into /etc/smrsh
359
360 * Mon Mar 29 1999 Jeff Johnson <jbj@redhat.com>
361 - remove noreplace attr from sednmail.cf.
362
363 * Thu Mar 25 1999 Cristian Gafton <gafton@redhat.com>
364 - provide a more sane /etc/mail/access default config file
365 - use makemap to initializa the empty databases, not touch
366 - added a small, but helpful /etc/mail/Makefile
367
368 * Mon Mar 22 1999 Jeff Johnson <jbj@redhat.com>
369 - correxct dangling symlinks.
370 - check for map file existence in %post.
371
372 * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
373 - auto rebuild in the new build environment (release 3)
374 * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
375 - improved 8.9.3 config from Mike McHenry <mmchen@minn.net>
376
377 * Tue Mar 16 1999 Cristian Gafton <gafton@redhat.com>
378 - version 8.9.3
379
380 * Tue Dec 29 1998 Cristian Gafton <gafton@redhat.com>
381 - build for 6.0
382 - use the libdb1 stuff correctly
383
384 * Mon Sep 21 1998 Michael K. Johnson <johnsonm@redhat.com>
385 - Allow empty QUEUE in /etc/sysconfig/sendmail for those who
386   want to run sendmail in daemon mode without processing the
387   queue regularly.
388
389 * Thu Sep 17 1998 Michael K. Johnson <johnsonm@redhat.com>
390 - /etc/sysconfig/sendmail
391
392 * Fri Aug 28 1998 Jeff Johnson <jbj@redhat.com>
393 - recompile statically linked binary for 5.2/sparc
394
395 * Tue May 05 1998 Prospector System <bugs@redhat.com>
396 - translations modified for de, fr, tr
397 * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
398 - enhanced initscripts
399
400 * Fri May 01 1998 Cristian Gafton <gafton@redhat.com>
401 - added a rmail patch
402
403 * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
404 - argh!  Fixed some of the db1 handling that had to be added for glibc 2.1
405
406 * Fri Oct 24 1997 Donnie Barnes <djb@redhat.com>
407 - added support for db1 on SPARC
408
409 * Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
410 - added chkconfig support
411 - various spec file cleanups
412 - changed group to Networking/Daemons (from Daemons).  Sure, it runs on
413   non networked systems, but who really *needs* it then?
414
415 * Wed Oct 08 1997 Donnie Barnes <djb@redhat.com>
416 - made /etc/mail/deny.db a ghost
417 - removed preun that used to remove deny.db (ghost handles that now)
418 - NOTE: upgrading from the sendmail packages in 4.8, 4.8.1, and possibly
419   4.9 (all Red Hat betas between 4.2 and 5.0) could cause problems.  You
420   may need to do a makemap in /etc/mail and a newaliases after upgrading
421   from those packages.  Upgrading from 4.2 or prior should be fine.
422
423 * Mon Oct 06 1997 Erik Troan <ewt@redhat.com>
424 - made aliases.db a ghost
425
426 * Tue Sep 23 1997 Donnie Barnes <djb@redhat.com>
427 - fixed preuninstall script to handle aliases.db on upgrades properly
428
429 * Mon Sep 15 1997 Donnie Barnes <djb@redhat.com>
430 - fixed post-install output and changed /var/spool/mqueue to 755
431
432 * Thu Sep 11 1997 Donnie Barnes <djb@redhat.com>
433 - fixed /usr/lib/sendmail-cf paths
434
435 * Tue Sep 09 1997 Donnie Barnes <djb@redhat.com>
436 - updated to 8.8.7
437 - added some spam filtration
438 - combined some makefile patches
439 - added BuildRoot support
440
441 * Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
442 - marked initscript symlinks as missingok
443 - run newalises after creating /var/spool/mqueue
444 * Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
445 - built against glibc, udated release to -6 (skipped -5!)
446
447 * Tue Apr 01 1997 Erik Troan <ewt@redhat.com>
448 - Added -nsl on the Alpha (for glibc to provide NIS functions).
449
450 * Mon Mar 03 1997 Erik Troan <ewt@redhat.com>
451 - Added nis support.
This page took 0.058622 seconds and 4 git commands to generate.