]> git.pld-linux.org Git - packages/sendmail.git/blob - sendmail.spec
- fixed group && owner of ELF bineries,
[packages/sendmail.git] / sendmail.spec
1 Summary:        Sendmail -- mail transport agent
2 Summary(pl):    Sendmail -- aplikacja do obs³ugi poczty elektronicznej
3 Name:           sendmail
4 Version:        8.9.2
5 Release:        3d
6 Copyright:      distributable (similar to, but not quite BSD)
7 Group:          Networking/Daemons
8 Group(pl):      Sieci/Demony
9 Provides:       smtpdaemon
10 Source0:        ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
11 Source1:        site.Linux.m4
12 Source2:        aliases
13 Source3:        %{name}.init
14 Source4:        site.Linux.ppc.m4
15 Patch0:         %{name}-ip6.patch
16 Patch1:         %{name}-telnet.patch
17 Patch2:         %{name}-path.patch
18 Patch3:         %{name}-rmail.patch
19 Patch4:         %{name}-pld.mc.patch
20 Patch5:         %{name}-DoS.patch
21 Patch6:         %{name}-redirect.patch
22 BuildRoot:      /tmp/%{name}-%{version}-root
23 URL:            http://www.sendmail.org
24 Prereq:         /sbin/chkconfig
25 Obsoletes:      zmail
26 Obsoletes:      qmail
27 Obsoletes:      smail
28
29 %description 
30 Sendmail is a Mail Transport Agent, which is the program
31 that moves mail from one machine to another.  Sendmail implements a
32 general internetwork mail routing facility, featuring aliasing and
33 forwarding, automatic routing to network gateways, and flexible
34 configuration.
35
36 If you need the ability to send and receive mail via the internet
37 you'll need sendmail.
38
39 %description -l pl
40 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
41 miêdzy komputerami w sieci internet. Zajmuje siê przekazywaniem poczty
42 elektronicznej miêdzy bramkami pocztowymi i dostarczaniem przesy³ek na 
43 konta docelowe. Bardzo dobrze obs³uguje aliasy pocztowe a jego dodatkowym 
44 atutem jest prosta konfiguracja. Dziêki rozbudowanym mo¿liwo¶ciom 
45 konfiguracyjnym jest w stanie dostarczaæ przesy³ki za po¶rednictwem 
46 protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
47
48 Je¿eli masz zamiar korzystaæ z poczty elektronicznej w sieci internet
49 oraz 6bone to zainstaluj ten pakiet.
50
51 %package        cf
52 Summary:        Sendmail configuration files and m4 macros
53 Summary(pl):    Pliki konfiguracyjne oraz makra m4 dla sendmaila
54 Group:          Daemons
55 Group(pl):      Demony
56 Requires:       %{name} = %{version}
57
58 %description cf
59 This package contains all the configuration files used to generate
60 the sendmail.cf file distributed with the base sendmail package.
61 You'll want this package if you need to reconfigure and rebuild
62 your sendmail.cf file.  For example, the default sendmail.cf is
63 not configured for UUCP.  If you need to send and receive mail
64 over UUCP, you may need this package to help you reconfigure sendmail.
65
66 %description -l pl cf
67 Pakiet ten zawiera wszystkie pliki konfiguracyjne u¿ywane do gene-
68 rowania pliku sendmail.cf, znajduj±cego siê w pakiecie bazowym.
69 Bêdziesz potrzebowa³ tego pakietu je¿eli chcesz zmieniæ i przebudowaæ
70 konfiguracjê swojego sendmaila. Na przyk³ad, standardowy plik konfigu-
71 racyjny nie zawiera wspomagania dla poczty po UUCP. Je¿eli chcesz wy-
72 sy³aæ i odbieraæ pocztê po UUCP bêdziesz potrzebowa³ tego pakietu.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79 %patch3 -p1
80 %patch4 -p1
81 %patch5 -p1
82 %patch6 -p1
83
84 ID="`id -u`"
85 GID="`id -g`"
86 OPT=$RPM_OPT_FLAGS
87
88 cat %{SOURCE1} |sed s/gid/"$GID"/g | sort | sed s/id/"$ID"/g | sort | \
89 sed s/opt/"$OPT"/g > BuildTools/Site/site.Linux.m4
90
91 %build
92 cd src
93 ./makesendmail
94 cd ../
95 make makemap mail.local mailstats praliases rmail 
96 make smrsh LDOPTS="-s -static" 
97 (
98 cd cf/cf
99 /usr/bin/m4 pld.mc >> ./sendmail.cf
100 )
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 install -d $RPM_BUILD_ROOT/etc/{mail,rc.d/init.d}
106 install -d $RPM_BUILD_ROOT/usr/{bin,sbin,lib/sendmail-cf,libexec}
107 install -d $RPM_BUILD_ROOT/usr/man/man{1,5,8}
108 install -d $RPM_BUILD_ROOT/var/{run,spool/{mqueue,mail}}
109
110 install %{SOURCE2} $RPM_BUILD_ROOT/etc/mail/aliases
111 touch $RPM_BUILD_ROOT/etc/mail/{sendmail.{ct,cw},relay-domains}
112
113 for i in aliases access domaintable genericstable mailertable majordomo \
114 virtusertable
115 do touch $RPM_BUILD_ROOT/etc/mail/$i{,.db}
116 done
117
118 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
119
120 make DESTDIR=$RPM_BUILD_ROOT install
121 make DESTDIR=$RPM_BUILD_ROOT OPTIONS=force-install rmail mail.local
122
123 for i in hoststat mailq newaliases purgestat
124         do ln -sf ../sbin/sendmail  $RPM_BUILD_ROOT/usr/bin/$i
125 done
126 ln -sf /usr/sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
127
128 install cf/cf/sendmail.cf $RPM_BUILD_ROOT/etc/mail
129
130 cp cf/* $RPM_BUILD_ROOT/usr/lib/sendmail-cf/ -a
131
132 cp smrsh/README smrsh/SMRSH.txt
133
134 bzip2 -9 $RPM_BUILD_ROOT/usr/man/{man1/*,man5/*,man8/*}
135 bzip2 -9 README KNOWNBUGS RELEASE_NOTES smrsh/SMRSH.txt
136
137 %post
138 /sbin/chkconfig --add sendmail
139
140 %preun
141 if [ -e /var/lock/sybsys/sendmail ]; then
142     /etc/rc.d/init.d/sendmail stop || :
143 fi
144
145 if [ $1 = 0 ]; then
146    /sbin/chkconfig --del sendmail
147 fi
148
149 %clean
150 rm -rf $RPM_BUILD_ROOT
151
152 %files
153 %defattr(644,root,root,755)
154 %doc README.bz2 KNOWNBUGS.bz2 RELEASE_NOTES.bz2 smrsh/SMRSH.txt.bz2
155
156 %attr(711,root,root) /usr/bin/hoststat
157 %attr(711,root,root) /usr/bin/mailq
158 %attr(711,root,root) /usr/bin/newaliases
159 %attr(711,root,root) /usr/bin/purgestat
160 %attr(755,root,root) /usr/bin/rmail
161
162 %attr(755,root,root) /usr/sbin/mailstats
163 %attr(755,root,root) /usr/sbin/makemap
164 %attr(755,root,root) /usr/sbin/praliases
165
166 %attr(4711,root,root) /usr/sbin/sendmail
167
168 %attr(711,root,root) /usr/lib/sendmail
169 %attr(755,root,root) /usr/libexec/mail.local
170 %attr(755,root,root) /usr/libexec/smrsh
171
172 %attr(644,root, man) /usr/man/man[158]/*
173
174 %attr(640,root,root) %config %verify(not size mtime md5) /var/run/sendmail.st
175
176 %attr(750,root,mail) %dir /var/spool/mqueue
177
178 %attr(700,root,root) %config %verify(not size mtime md5) /etc/rc.d/init.d/*
179
180 %files cf
181 %defattr(644,root,root,755)
182
183 %dir /usr/lib/sendmail-cf
184 /usr/lib/sendmail-cf/*
185
186 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/mail/*
187
188 %changelog
189 * Fri Jan 22 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
190 [8.9.2-3d]
191 - fixed group && owner ELF bineries,
192 - fixed init script,
193 - fixed %preun.
194
195 * Sun Jan 17 1999 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
196 [8.9.2-2d]
197 - fixed sendmail.init script,
198 - compressed man pages && documentation,
199   by Micha³ Zalewski <lcamtuf@ids.pl>
200 - added patch against DoS ;)
201 - added %{name}-redirect.patch
202
203 * Thu Sep 10 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
204 [8.9.1-1d]
205 - updated to 8.9.1a && build for PLD Tornado,
206 - build with IPv6 support
207   (patches was prepared by John Kennedy <jk@csuchico.edu>),
208 - build with Detect-Telnet support,
209 - removed subpackage doc.
210
211 * Thu Jul 30 1998 Wojtek Slusarczyk <wojtek@shadow.eu.org>
212 [8.8.8-1d]
213 - build against glibc-2.1,
214 - updated to 8.8.8,
215 - added IPv6 support,
216 - translation modified for pl,
217 - moved configfiles to /etc/mail,
218 - changed permissions of all binaries to 711,
219 - moved %changelog at the end of spec,
220 - build from non root's account.
221
222 * Tue May 05 1998 Prospector System <bugs@redhat.com>
223
224 - translations modified for de, fr, tr
225
226 * Sat May 02 1998 Cristian Gafton <gafton@redhat.com>
227 - enhanced initscripts
228
229 * Fri May 01 1998 Cristian Gafton <gafton@redhat.com>
230 - added a rmail patch
231
232 * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
233 - argh!  Fixed some of the db1 handling that had to be added for glibc 2.1
234
235 * Fri Oct 24 1997 Donnie Barnes <djb@redhat.com>
236 - added support for db1 on SPARC
237
238 * Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
239 - added chkconfig support
240 - various spec file cleanups
241 - changed group to Networking/Daemons (from Daemons).  Sure, it runs on
242   non networked systems, but who really *needs* it then?
243
244 * Wed Oct 08 1997 Donnie Barnes <djb@redhat.com>
245 - made /etc/mail/deny.db a ghost
246 - removed preun that used to remove deny.db (ghost handles that now)
247 - NOTE: upgrading from the sendmail packages in 4.8, 4.8.1, and possibly
248   4.9 (all Red Hat betas between 4.2 and 5.0) could cause problems.  You
249   may need to do a makemap in /etc/mail and a newaliases after upgrading
250   from those packages.  Upgrading from 4.2 or prior should be fine.
251
252 * Mon Oct 06 1997 Erik Troan <ewt@redhat.com>
253 - made aliases.db a ghost
254
255 * Tue Sep 23 1997 Donnie Barnes <djb@redhat.com>
256 - fixed preuninstall script to handle aliases.db on upgrades properly
257
258 * Mon Sep 15 1997 Donnie Barnes <djb@redhat.com>
259 - fixed post-install output and changed /var/spool/mqueue to 755
260
261 * Thu Sep 11 1997 Donnie Barnes <djb@redhat.com>
262 - fixed /usr/lib/sendmail-cf paths
263
264 * Tue Sep 09 1997 Donnie Barnes <djb@redhat.com>
265 - updated to 8.8.7
266 - added some spam filtration
267 - combined some makefile patches
268 - added BuildRoot support
269
270 * Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
271 - marked initscript symlinks as missingok
272 - run newalises after creating /var/spool/mqueue
273
274 * Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
275 - built against glibc, udated release to -6 (skipped -5!)
276
277 * Tue Apr 01 1997 Erik Troan <ewt@redhat.com>
278 - Added -nsl on the Alpha (for glibc to provide NIS functions).
279
280 * Mon Mar 03 1997 Erik Troan <ewt@redhat.com>
281 - Added nis support.
282         
This page took 0.062441 seconds and 4 git commands to generate.