]> git.pld-linux.org Git - packages/sendmail.git/blob - sendmail.spec
3a8c24ea3f819f308a4094b28d94a155ebf7f2b7
[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.3
5 Release:        2
6 Copyright:      distributable (similar to, but not quite BSD)
7 Group:          Daemons
8 Group(pl):      Serwery
9 Source0:        ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
10 Source1:        site.Linux.m4
11 Source2:        aliases
12 Source3:        %{name}.init
13 Source4:        site.Linux.ppc.m4
14 Source5:        %{name}.sysconfig
15 Patch0:         %{name}-ipv6.patch
16 Patch1:         %{name}-dtelnet.patch
17 Patch2:         %{name}-path.patch
18 Patch3:         %{name}-rmail.patch
19 Patch4:         %{name}-pld.mc.patch
20 Patch5:         %{name}-redirect.patch
21 Patch6:         %{name}-smrsh.patch
22 BuildRoot:      /tmp/%{name}-%{version}-root
23 URL:            http://www.sendmail.org
24 Prereq:         /sbin/chkconfig
25 Provides:       smtpdaemon
26 Obsoletes:      zmail
27 Obsoletes:      qmail
28 Obsoletes:      smail
29
30 %description 
31 Sendmail is a Mail Transport Agent, which is the program
32 that moves mail from one machine to another.  Sendmail implements a
33 general internetwork mail routing facility, featuring aliasing and
34 forwarding, automatic routing to network gateways, and flexible
35 configuration.
36
37 If you need the ability to send and receive mail via the internet
38 you'll need sendmail.
39
40 %description -l pl
41 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
42 miêdzy komputerami w sieci internet. Zajmuje siê przekazywaniem poczty
43 elektronicznej miêdzy bramkami pocztowymi i dostarczaniem przesy³ek na 
44 konta docelowe. Bardzo dobrze obs³uguje aliasy pocztowe a jego dodatkowym 
45 atutem jest prosta konfiguracja. Dziêki rozbudowanym mo¿liwo¶ciom 
46 konfiguracyjnym jest w stanie dostarczaæ przesy³ki za po¶rednictwem 
47 protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
48
49 Je¿eli masz zamiar korzystaæ z poczty elektronicznej w sieci internet
50 oraz 6bone to zainstaluj ten pakiet.
51
52 %package        cf
53 Summary:        Sendmail configuration files and m4 macros
54 Summary(pl):    Pliki konfiguracyjne oraz makra m4 dla sendmaila
55 Group:          Daemons
56 Group(pl):      Serwery
57 Requires:       %{name} = %{version}
58
59 %description cf
60 This package contains all the configuration files used to generate
61 the sendmail.cf file distributed with the base sendmail package.
62 You'll want this package if you need to reconfigure and rebuild
63 your sendmail.cf file.  For example, the default sendmail.cf is
64 not configured for UUCP.  If you need to send and receive mail
65 over UUCP, you may need this package to help you reconfigure sendmail.
66
67 %description -l pl cf
68 Pakiet ten zawiera wszystkie pliki konfiguracyjne u¿ywane do gene-
69 rowania pliku sendmail.cf, znajduj±cego siê w pakiecie bazowym.
70 Bêdziesz potrzebowa³ tego pakietu je¿eli chcesz zmieniæ i przebudowaæ
71 konfiguracjê swojego sendmaila. Na przyk³ad, standardowy plik konfigu-
72 racyjny nie zawiera wspomagania dla poczty po UUCP. Je¿eli chcesz wy-
73 sy³aæ i odbieraæ pocztê po UUCP bêdziesz potrzebowa³ tego pakietu.
74
75 %prep
76 %setup -q
77 %patch0 -p1
78 %patch1 -p1
79 %patch2 -p1
80 %patch3 -p1
81 %patch4 -p1
82 %patch5 -p1
83 %patch6 -p1
84
85 %build
86 ID="`id -u`"
87 GID="`id -g`"
88 OPT=$RPM_OPT_FLAGS
89
90 cat %{SOURCE1} |sed s/gid/"$GID"/g | sort | sed s/id/"$ID"/g | sort | \
91 sed s/opt/"$OPT"/g > BuildTools/Site/site.Linux.m4
92
93 cd src
94 ./makesendmail
95 cd ../
96 make makemap mailstats praliases rmail 
97 make smrsh LDOPTS="-s -static" 
98 (
99 cd cf/cf
100 /usr/bin/m4 pld.mc >> ./sendmail.cf
101 )
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 install -d $RPM_BUILD_ROOT/etc/{mail,rc.d/init.d,sysconfig}
107 install -d $RPM_BUILD_ROOT%{_prefix}/{bin,lib,sbin,share/sendmail-cf,libexec}
108 install -d $RPM_BUILD_ROOT%{_datadir}/{man/man{1,5,8},misc}
109 install -d $RPM_BUILD_ROOT/var/{run,spool/{mqueue,mail}}
110
111 install %{SOURCE2} $RPM_BUILD_ROOT/etc/mail/aliases
112 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
113
114 touch $RPM_BUILD_ROOT/etc/mail/{sendmail.{ct,cw},relay-domains}
115
116 for i in aliases access domaintable genericstable mailertable majordomo \
117 virtusertable
118 do touch $RPM_BUILD_ROOT/etc/mail/$i{,.db}
119 done
120
121 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
122
123 make DESTDIR=$RPM_BUILD_ROOT install
124 make DESTDIR=$RPM_BUILD_ROOT OPTIONS=force-install rmail 
125
126 for i in hoststat mailq newaliases purgestat
127         do ln -sf ../sbin/sendmail  $RPM_BUILD_ROOT/usr/bin/$i
128 done
129 ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail
130
131 install cf/cf/sendmail.cf $RPM_BUILD_ROOT/etc/mail
132
133 cp cf/* $RPM_BUILD_ROOT/usr/share/sendmail-cf/ -a
134
135 mv $RPM_BUILD_ROOT/etc/mail/*.hf $RPM_BUILD_ROOT%{_datadir}/misc
136
137 cp smrsh/README smrsh/SMRSH.txt
138
139 gzip -9fn $RPM_BUILD_ROOT/usr/share/man/man[158]/*
140 gzip -9fn README KNOWNBUGS RELEASE_NOTES smrsh/SMRSH.txt
141
142 %post
143 /sbin/chkconfig --add sendmail
144 if [ -f /var/lock/subsys/sendmail ]; then
145     /etc/rc.d/init.d/sendmail restart >&2
146 fi
147
148 %preun
149 if [ -e /var/lock/sybsys/sendmail ]; then
150     /etc/rc.d/init.d/sendmail stop &>/dev/null
151 fi
152
153 if [ $1 = 0 ]; then
154    /sbin/chkconfig --del sendmail
155 fi
156
157 %clean
158 rm -rf $RPM_BUILD_ROOT
159
160 %files
161 %defattr(644,root,root,755)
162 %doc {README,KNOWNBUGS,RELEASE_NOTES}.gz 
163 %doc smrsh/SMRSH.txt.gz
164
165 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/mail/*
166 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/*
167 %attr(755,root,root) /etc/rc.d/init.d/*
168
169 %attr(755,root,root) %{_bindir}/*
170
171 %attr(755,root,root) %{_sbindir}/mailstats
172 %attr(755,root,root) %{_sbindir}/makemap
173 %attr(755,root,root) %{_sbindir}/praliases
174
175 %attr(4711,root,root) %{_sbindir}/sendmail
176
177 %attr(755,root,root) %{_libdir}/sendmail
178 %attr(755,root,root) %{_sbindir}/smrsh
179
180 %{_mandir}/man[158]/*
181 %{_datadir}/misc/*.hf
182
183 %ghost /var/run/sendmail.st
184
185 %files cf
186 %defattr(644,root,root,755)
187
188 %dir %{_datadir}/sendmail-cf
189 %attr(-,root,root) %{_datadir}/sendmail-cf/*
190
191 %changelog
192 * Fri Jan 22 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
193   [8.9.2-3d]
194 - fixed group && owner ELF binaries,
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.
This page took 0.180485 seconds and 3 git commands to generate.