1 Summary: Sendmail -- mail transport agent
2 Summary(pl): Sendmail -- aplikacja do obs³ugi poczty elektronicznej
6 Copyright: distributable (similar to, but not quite BSD)
7 Group: Networking/Daemons
8 Group(pl): Sieciowe/Serwery
9 Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
10 Source1: site.Linux.m4
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 Patch7: %{name}-release.patch
23 URL: http://www.sendmail.org
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Prereq: /sbin/chkconfig
26 BuildRequires: glibc-static
35 Sendmail is a Mail Transport Agent, which is the program
36 that moves mail from one machine to another. Sendmail implements a
37 general internetwork mail routing facility, featuring aliasing and
38 forwarding, automatic routing to network gateways, and flexible
41 If you need the ability to send and receive mail via the internet
42 you'll need sendmail or another MTA.
45 Sendmail jest programem umo¿liwiaj±cym wymianê poczty elektronicznej
46 miêdzy komputerami w sieci internet. Zajmuje siê przekazywaniem poczty
47 elektronicznej miêdzy bramkami pocztowymi i dostarczaniem przesy³ek na
48 konta docelowe. Bardzo dobrze obs³uguje aliasy pocztowe a jego dodatkowym
49 atutem jest prosta konfiguracja. Dziêki rozbudowanym mo¿liwo¶ciom
50 konfiguracyjnym jest w stanie dostarczaæ przesy³ki za po¶rednictwem
51 protoko³ów: SMTP, ESMTP, UUCP, X.400 i innych.
53 Je¿eli masz zamiar korzystaæ z poczty elektronicznej w sieci internet
54 oraz 6bone to zainstaluj ten pakiet.
57 Summary: Sendmail configuration files and m4 macros
58 Summary(pl): Pliki konfiguracyjne oraz makra m4 dla sendmaila
61 Requires: %{name} = %{version}
64 This package contains all the configuration files used to generate
65 the sendmail.cf file distributed with the base sendmail package.
66 You'll want this package if you need to reconfigure and rebuild
67 your sendmail.cf file. For example, the default sendmail.cf is
68 not configured for UUCP. If you need to send and receive mail
69 over UUCP, you may need this package to help you reconfigure sendmail.
72 Pakiet ten zawiera wszystkie pliki konfiguracyjne u¿ywane do gene-
73 rowania pliku sendmail.cf, znajduj±cego siê w pakiecie bazowym.
74 Bêdziesz potrzebowa³ tego pakietu je¿eli chcesz zmieniæ i przebudowaæ
75 konfiguracjê swojego sendmaila. Na przyk³ad, standardowy plik konfigu-
76 racyjny nie zawiera wspomagania dla poczty po UUCP. Je¿eli chcesz wy-
77 sy³aæ i odbieraæ pocztê po UUCP bêdziesz potrzebowa³ tego pakietu.
95 cat %{SOURCE1} |sed s/gid/"$GID"/g | sort | sed s/id/"$ID"/g | sort | \
96 sed s/opt/"$OPT"/g > BuildTools/Site/site.Linux.m4
101 make makemap mailstats praliases rmail
102 make smrsh LDOPTS="-s -static"
105 /usr/bin/m4 pld.mc >> ./sendmail.cf
109 rm -rf $RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT/etc/{mail,rc.d/init.d,sysconfig}
112 install -d $RPM_BUILD_ROOT/usr/{bin,lib,sbin,share/sendmail-cf,libexec}
113 install -d $RPM_BUILD_ROOT/usr/share/{man/man{1,5,8},misc}
114 install -d $RPM_BUILD_ROOT/var/{run,spool/{mqueue,mail}}
116 install %{SOURCE2} $RPM_BUILD_ROOT/etc/mail/aliases
117 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
119 touch $RPM_BUILD_ROOT/etc/mail/{sendmail.{ct,cw},relay-domains}
121 for i in aliases access domaintable genericstable mailertable majordomo \
123 do touch $RPM_BUILD_ROOT/etc/mail/$i{,.db}
126 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
128 make DESTDIR=$RPM_BUILD_ROOT install
129 make DESTDIR=$RPM_BUILD_ROOT OPTIONS=force-install rmail
131 for i in hoststat mailq newaliases purgestat
132 do ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/bin/$i
134 ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
136 install cf/cf/sendmail.cf $RPM_BUILD_ROOT/etc/mail
138 cp cf/* $RPM_BUILD_ROOT/usr/share/sendmail-cf/ -a
140 mv $RPM_BUILD_ROOT/etc/mail/*.hf $RPM_BUILD_ROOT/usr/share/misc
142 cat $RPM_BUILD_ROOT/etc/mail/sendmail.cf |sed s/DZ8.9.3/DZLinux/g > \
143 $RPM_BUILD_ROOT/etc/mail/sendmail.cf.new
145 mv $RPM_BUILD_ROOT/etc/mail/sendmail.cf.new $RPM_BUILD_ROOT/etc/mail/sendmail.cf
147 cp smrsh/README smrsh/SMRSH.txt
149 gzip -9fn $RPM_BUILD_ROOT/usr/share/man/man[158]/*
150 gzip -9fn README KNOWNBUGS RELEASE_NOTES smrsh/SMRSH.txt
153 /sbin/chkconfig --add sendmail
154 if [ -f /var/lock/subsys/sendmail ]; then
155 /etc/rc.d/init.d/sendmail restart >&2
159 if [ -e /var/lock/sybsys/sendmail ]; then
160 /etc/rc.d/init.d/sendmail stop &>/dev/null
164 /sbin/chkconfig --del sendmail
168 rm -rf $RPM_BUILD_ROOT
171 %defattr(644,root,root,755)
172 %doc {README,KNOWNBUGS,RELEASE_NOTES}.gz
173 %doc smrsh/SMRSH.txt.gz
175 %attr(750,root,root) %dir /etc/mail
176 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/mail/*
177 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/*
178 %attr(754,root,root) /etc/rc.d/init.d/*
180 %attr(755,root,root) /usr/bin/*
182 %attr(755,root,root) /usr/sbin/mailstats
183 %attr(755,root,root) /usr/sbin/makemap
184 %attr(755,root,root) /usr/sbin/praliases
186 %attr(4711,root,root) /usr/sbin/sendmail
188 %attr(755,root,root) /usr/lib/sendmail
189 %attr(755,root,root) /usr/sbin/smrsh
191 /usr/share/man/man[158]/*
194 %ghost /var/run/sendmail.st
197 %defattr(644,root,root,755)
199 %dir /usr/share/sendmail-cf
200 %attr(-,root,root) /usr/share/sendmail-cf/*