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