Summary: Sendmail -- mail transport agent Summary(pl): Sendmail -- aplikacja do obsługi poczty elektronicznej Name: sendmail Version: 8.9.3 Release: 2 Copyright: distributable (similar to, but not quite BSD) Group: Daemons Group(pl): Serwery Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz Source1: site.Linux.m4 Source2: aliases Source3: %{name}.init Source4: site.Linux.ppc.m4 Source5: %{name}.sysconfig Patch0: %{name}-ipv6.patch Patch1: %{name}-dtelnet.patch Patch2: %{name}-path.patch Patch3: %{name}-rmail.patch Patch4: %{name}-pld.mc.patch Patch5: %{name}-redirect.patch Patch6: %{name}-smrsh.patch BuildRoot: /tmp/%{name}-%{version}-root URL: http://www.sendmail.org Prereq: /sbin/chkconfig Provides: smtpdaemon Obsoletes: zmail Obsoletes: qmail Obsoletes: smail %description Sendmail is a Mail Transport Agent, which is the program that moves mail from one machine to another. Sendmail implements a general internetwork mail routing facility, featuring aliasing and forwarding, automatic routing to network gateways, and flexible configuration. If you need the ability to send and receive mail via the internet you'll need sendmail. %description -l pl Sendmail jest programem umożliwiającym wymianę poczty elektronicznej między komputerami w sieci internet. Zajmuje się przekazywaniem poczty elektronicznej między bramkami pocztowymi i dostarczaniem przesyłek na konta docelowe. Bardzo dobrze obsługuje aliasy pocztowe a jego dodatkowym atutem jest prosta konfiguracja. Dzięki rozbudowanym możliwościom konfiguracyjnym jest w stanie dostarczać przesyłki za pośrednictwem protokołów: SMTP, ESMTP, UUCP, X.400 i innych. Jeżeli masz zamiar korzystać z poczty elektronicznej w sieci internet oraz 6bone to zainstaluj ten pakiet. %package cf Summary: Sendmail configuration files and m4 macros Summary(pl): Pliki konfiguracyjne oraz makra m4 dla sendmaila Group: Daemons Group(pl): Serwery Requires: %{name} = %{version} %description cf This package contains all the configuration files used to generate the sendmail.cf file distributed with the base sendmail package. You'll want this package if you need to reconfigure and rebuild your sendmail.cf file. For example, the default sendmail.cf is not configured for UUCP. If you need to send and receive mail over UUCP, you may need this package to help you reconfigure sendmail. %description -l pl cf Pakiet ten zawiera wszystkie pliki konfiguracyjne używane do gene- rowania pliku sendmail.cf, znajdującego się w pakiecie bazowym. Będziesz potrzebował tego pakietu jeżeli chcesz zmienić i przebudować konfigurację swojego sendmaila. Na przykład, standardowy plik konfigu- racyjny nie zawiera wspomagania dla poczty po UUCP. Jeżeli chcesz wy- syłać i odbierać pocztę po UUCP będziesz potrzebował tego pakietu. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %build ID="`id -u`" GID="`id -g`" OPT=$RPM_OPT_FLAGS cat %{SOURCE1} |sed s/gid/"$GID"/g | sort | sed s/id/"$ID"/g | sort | \ sed s/opt/"$OPT"/g > BuildTools/Site/site.Linux.m4 cd src ./makesendmail cd ../ make makemap mailstats praliases rmail make smrsh LDOPTS="-s -static" ( cd cf/cf /usr/bin/m4 pld.mc >> ./sendmail.cf ) %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/{mail,rc.d/init.d,sysconfig} install -d $RPM_BUILD_ROOT%{_prefix}/{bin,lib,sbin,share/sendmail-cf,libexec} install -d $RPM_BUILD_ROOT%{_datadir}/{man/man{1,5,8},misc} install -d $RPM_BUILD_ROOT/var/{run,spool/{mqueue,mail}} install %{SOURCE2} $RPM_BUILD_ROOT/etc/mail/aliases install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/sendmail touch $RPM_BUILD_ROOT/etc/mail/{sendmail.{ct,cw},relay-domains} for i in aliases access domaintable genericstable mailertable majordomo \ virtusertable do touch $RPM_BUILD_ROOT/etc/mail/$i{,.db} done install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT OPTIONS=force-install rmail for i in hoststat mailq newaliases purgestat do ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/bin/$i done ln -sf ../sbin/sendmail $RPM_BUILD_ROOT%{_libdir}/sendmail install cf/cf/sendmail.cf $RPM_BUILD_ROOT/etc/mail cp cf/* $RPM_BUILD_ROOT/usr/share/sendmail-cf/ -a mv $RPM_BUILD_ROOT/etc/mail/*.hf $RPM_BUILD_ROOT%{_datadir}/misc cp smrsh/README smrsh/SMRSH.txt gzip -9fn $RPM_BUILD_ROOT/usr/share/man/man[158]/* gzip -9fn README KNOWNBUGS RELEASE_NOTES smrsh/SMRSH.txt %post /sbin/chkconfig --add sendmail if [ -f /var/lock/subsys/sendmail ]; then /etc/rc.d/init.d/sendmail restart >&2 fi %preun if [ -e /var/lock/sybsys/sendmail ]; then /etc/rc.d/init.d/sendmail stop &>/dev/null fi if [ $1 = 0 ]; then /sbin/chkconfig --del sendmail fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc {README,KNOWNBUGS,RELEASE_NOTES}.gz %doc smrsh/SMRSH.txt.gz %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/mail/* %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/* %attr(755,root,root) /etc/rc.d/init.d/* %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_sbindir}/mailstats %attr(755,root,root) %{_sbindir}/makemap %attr(755,root,root) %{_sbindir}/praliases %attr(4711,root,root) %{_sbindir}/sendmail %attr(755,root,root) %{_libdir}/sendmail %attr(755,root,root) %{_sbindir}/smrsh %{_mandir}/man[158]/* %{_datadir}/misc/*.hf %ghost /var/run/sendmail.st %files cf %defattr(644,root,root,755) %dir %{_datadir}/sendmail-cf %attr(-,root,root) %{_datadir}/sendmail-cf/* %changelog * Fri Jan 22 1999 Wojtek Ślusarczyk [8.9.2-3d] - fixed group && owner ELF binaries, - fixed init script, - fixed %preun. * Sun Jan 17 1999 Wojtek Ślusarczyk [8.9.2-2d] - fixed sendmail.init script, - compressed man pages && documentation, by Michał Zalewski - added patch against DoS ;) - added %{name}-redirect.patch * Thu Sep 10 1998 Wojtek Ślusarczyk [8.9.1-1d] - updated to 8.9.1a && build for PLD Tornado, - build with IPv6 support (patches was prepared by John Kennedy ), - build with Detect-Telnet support, - removed subpackage doc. * Thu Jul 30 1998 Wojtek Slusarczyk [8.8.8-1d] - build against glibc-2.1, - updated to 8.8.8, - added IPv6 support, - translation modified for pl, - moved configfiles to /etc/mail, - changed permissions of all binaries to 711, - moved %changelog at the end of spec, - build from non root's account.