Sendmail - Code Frozen ;)

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Pon, 31 Sie 1998, 09:29:49 CEST


Oto ostatnia weersja speca sendmaila, to jest ostatnia szansa aby
zglosic swoje zadania poprawek ...:

Name: sendmail
Version: 8.8.8
Release: 1d
Summary: sendmail mail transport agent
Copyright: BSD
Group: Networking/Daemons
Provides: smtpdaemon
Source0: ftp://ftp.inner.net/pub/ipv6/%{name}-%{version}+ipv6-1.tar.gz
Source1: sendmail.init
Patch:  sendmail.patch
Buildroot: /var/tmp/%{name}-%{version}-%{release}
Prereq: /sbin/chkconfig
Requires: inet6-apps >= 0.33  
Summary(de): sendmail-Mail-Übertragungsagent
Summary(fr): Agent de transport de courrier sendmail
Summary(pl): Sendmail - aplikacja do obsługi poczty elektronicznej
Summary(tr): Elektronik posta hizmetleri sunucusu

%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 dostaraczaniem 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 doc
Summary: sendmail documentation
Group: Daemons
Summary(de): Sendmail-Dokumentation 
Summary(fr): Documentation de sendmail
Summary(pl): Dokumentacja dla sendmaila
Summary(tr): sendmail belgeleri

%description doc
This package includes release notes, the sendmail FAQ, and a few
papers written about sendmail.  The papers are available in PostScript
and troff.

%description -l pl doc
Pakiet ten zawiera dokumentację oraz FAQ w formacie PostScript i troff.

%package cf
Summary: sendmail configuration files and m4 macros
Group: Daemons
Summary(de): sendmail-Konfigurationsdateien und m4-Makros 
Summary(fr): fichiers de configuration sendmail et macros m4
Summary(pl): Pliki konfiguracyjne dla sendmaila i makra m4 
Summary(tr): sendmail ayar dosyalarý ve makrolarý

%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.

%description -l de doc
Dieses Paket beinhaltet Release-Notes, die häufigsten Fragen und 
Antworten (FAQ) zu Sendmail sowie ein paar Artikel über Sendmail. 
Die letzteren sind sowohl in PostScript als auch in troff verfügbar. 

%description -l de cf
Dieses Paket enthält alle Konfigurationsdateien, die zum Erzeugen
der Sendmail.cf-Datei erforderlich sind, die mit dem Basis-
Sendmail-Paket geliefert wird. Sie werden darauf nicht verzichten
wollen, wenn Sie Ihre Sendmail-cf-Datei neu konfigurieren und bauen
wollen. Die Standard-Sendmail.cf.-Datei ist z.B. nicht für UUCP
konfiguriert. Wenn Sie also Post über UUCP versenden und empfangen
wollen, brauchen Sie es für eine Neukonfiguration.

%description -l de
Sendmail überträgt Mails zwischen Rechnern. Es implementiert
eine allgemeine Mail-Routing-Funktion über das Netzwerk mit 
Aliasing und Weiterleiten von Nachrichten, automatischem
Routing an Netzwerk-Gateways und flexible Konfiguration.
Wenn Sie E-Mails über das Internet senden und empfangen
möchten, brauchen Sie sendmail.

%description -l fr doc
Paquetage contenant les remarques sur la version, la FAQ sendmail et
quelques articles sur sendmail. Ces articles sont au format PostScript
et troff.

%description -l fr cf
Ce package contient tous les fichiers de configuration utilisés
pour générer le fichier sendmail.cf distribué avec le package de
base sendmail. Vous n'aurez besoin de ce package que pour 
reconfigurer et reconstruire votre fichier sendmail.cf. Par exemple
Le sendmail.cf par défaut n'est pas configuré pour UUCP. Si vous devez
recevoir des mails avec UUCP, vous aurez besoin de ce package pour
reconfigurer sendmail.

%description -l fr
Sendmail est un agent de transport de courrier, qui est le programme
transférent le courrier d'une machine ŕ l'autre. Sendmail implémente
une facilité générale de routage de courrier entre les réseaux, permet
l'\"aliasing\" et le \"forwarding\", un routage automatique sur les
passerelles du réseau, et une configuration flexible.

%description -l tr doc
Bu paket, sendmail ile ilgili çokça sorulan sorularý ve sendmail hakkýnda
yazýlmýţ makalelerin bir kýsmýný içermektedir.

%description -l tr cf
Bu paket, sendmail paketi ile dađýtýlan sendmail.cf dosyasýný oluţturmak
için kullanýlan tüm ayar dosyalarýný içerir. sendmail.cf dosyasýný baţtan
ayarlayýp kurmak için kullanýlýr.

%description -l tr
Sendmail, bir mektubu bir makineden diđerine taţýr. Pek çok davranýţý
ayarlanabilir. Internet üzerinden mektup almak veya göndermek istiyorsanýz
bu pakete gereksiniminiz olacaktýr.

%prep
%setup -q -n %{name}-%{version}

%patch0 -p0

%build
cd src
rm -f Makefile
make 
cd ..

cd mailstats
rm -f Makefile
make CFLAGS="$RPM_OPT_FLAGS -I../src -DNEWDB" -ldb LDFLAGS=-s mailstats
cd ..

cd rmail
rm -f Makefile
make CFLAGS="$RPM_OPT_FLAGS -I../src -DNEWDB" -ldb LDFLAGS=-s rmail
cd ..

cd mail.local
rm -f Makefile
make CFLAGS="$RPM_OPT_FLAGS -I../src -DNEWDB" -ldb LDFLAGS=-s mail.local
cd ..


cd makemap
# see if building against db1 is necessary
if [ -f /usr/lib/libdb1.so.2 ]; then
   cc -o makemap $RPM_OPT_FLAGS -I../src -DNEWDB -DNOT_SENDMAIL makemap.c ../src/safefile.c -ldb1
else
   cc -o makemap $RPM_OPT_FLAGS -I../src -DNEWDB -DNOT_SENDMAIL makemap.c ../src/safefile.c -ldb
fi
cd ..

cd praliases
rm -f Makefile
# see if building against db1 is necessary

if [ -f /usr/lib/libdb1.so.2 ]; then
   cc -I../src $RPM_OPT_FLAGS -DNEWDB -s -o praliases praliases.c -ldb1
else
   cc -I../src $RPM_OPT_FLAGS -DNEWDB -s -o praliases praliases.c -ldb
fi
cd ..

cd smrsh
cc -static -s -o smrsh -DCMDDIR=\"/etc/smrsh\" \
	-DPATH=\"/bin:/sbin:/usr/bin:/usr/sbin\" smrsh.c
cd ..

%install
cd src
mkdir -p $RPM_BUILD_ROOT/usr/{bin,sbin,libexec}
mkdir -p $RPM_BUILD_ROOT/usr/man/{man1,man3,man5}
mkdir -p $RPM_BUILD_ROOT/etc/mail
mkdir -p $RPM_BUILD_ROOT/etc/smrsh
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d 
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc0.d 
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc1.d 
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc2.d 
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc3.d 
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc4.d 
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc5.d 
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc6.d
mkdir -p $RPM_BUILD_ROOT/usr/bin 
mkdir -p $RPM_BUILD_ROOT/usr/lib 
mkdir -p $RPM_BUILD_ROOT/usr/man/man8 
mkdir -p $RPM_BUILD_ROOT/var/log 
mkdir -p $RPM_BUILD_ROOT/var/spool 
mkdir -p $RPM_BUILD_ROOT/usr/lib/sendmail-cf

cd ../cf/cf
m4 ../m4/cf.m4 ipv6-test.mc | sed s:"/etc/":"/etc/mail/":g | sed s:"/etc/mail/hosts":"/etc/hosts":g > $RPM_BUILD_ROOT/etc/mail/sendmail.cf 

cd -
echo "# sendmail.cw - include all aliases for your machine here." > $RPM_BUILD_ROOT/etc/mail/sendmail.cw

make install DESTDIR=$RPM_BUILD_ROOT/usr

cd $RPM_BUILD_DIR/sendmail-8.8.8

install -s -m711 mailstats/mailstats $RPM_BUILD_ROOT/usr/bin
install -s -m711 praliases/praliases $RPM_BUILD_ROOT/usr/bin

install -s -m711 rmail/rmail $RPM_BUILD_ROOT/usr/bin
install -m644 rmail/rmail.8 $RPM_BUILD_ROOT/usr/man/man8

install -s -m711 makemap/makemap $RPM_BUILD_ROOT/usr/bin
install -m644 makemap/makemap.8 $RPM_BUILD_ROOT/usr/man/man8

install -m711 smrsh/smrsh $RPM_BUILD_ROOT/usr/sbin
install -m644 smrsh/smrsh.8 $RPM_BUILD_ROOT/usr/man/man8

install -m711 mail.local/mail.local $RPM_BUILD_ROOT/usr/libexec
install -m644 mail.local/mail.local.8 $RPM_BUILD_ROOT/usr/man/man8

# install docs by hand
mkdir -p $RPM_BUILD_ROOT/usr/doc/sendmail
cp -ar FAQ KNOWNBUGS READ_ME README.ipv6 RELEASE_NOTES doc $RPM_BUILD_ROOT/usr/doc/sendmail
cp smrsh/README $RPM_BUILD_ROOT/usr/doc/sendmail/README.smrsh

# install the cf files
cd cf
cp -ar * $RPM_BUILD_ROOT/usr/lib/sendmail-cf
cd -

install -m644 $RPM_BUILD_DIR/sendmail-8.8.8/src/aliases $RPM_BUILD_ROOT/etc/mail/aliases

ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
install -d -m755 $RPM_BUILD_ROOT/var/spool/mqueue

install -m755 $RPM_SOURCE_DIR/sendmail.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc0.d/K30sendmail
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc1.d/K30sendmail
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S80sendmail
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S80sendmail
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc4.d/S80sendmail
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S80sendmail
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc6.d/K30sendmail

cd $RPM_BUILD_ROOT
strip usr/bin/mailstats usr/bin/praliases usr/bin/rmail usr/sbin/sendmail
strip usr/bin/makemap usr/libexec/mail.local

cd $RPM_BUILD_ROOT/usr/bin
ln -s ../sbin/sendmail mailq
ln -s ../sbin/sendmail hoststat
ln -s ../sbin/sendmail purgestat
ln -s ../sbin/sendmail newaliases

touch $RPM_BUILD_ROOT/etc/mail/aliases.db
touch $RPM_BUILD_ROOT/var/log/sendmail.st
chmod 644 $RPM_BUILD_ROOT/etc/mail/aliases.db
install -m 644 $RPM_BUILD_DIR/sendmail-8.8.8/src/sendmail.hf \
		$RPM_BUILD_ROOT/usr/lib
strip $RPM_BUILD_ROOT/usr/sbin/* || :
strip $RPM_BUILD_ROOT/usr/bin/* || :
strip $RPM_BUILD_ROOT/usr/libexec/* || :

%clean
rm -rf $RPM_BUILD_ROOT

%post
/usr/bin/newaliases > /dev/null
cd /etc/mail
#/usr/bin/makemap hash deny < deny > /dev/null
/sbin/chkconfig --add sendmail

if ! [ -f /proc/net/if_inet6 ]; then
    echo -e "\a Brak wspomagania dla IPv6 - sendmail nie bedzie pracował!"
fi

%postun
if [ $1 = 0 ]; then
   /sbin/chkconfig --del sendmail
fi

%files
%defattr(-, root, mail)
%attr(0711, root, mail) /usr/bin/mailstats
%attr(0711, root, mail) /usr/bin/praliases
%attr(0711, root, mail) /usr/bin/hoststat
%attr(0711, root, mail) /usr/bin/purgestat
%attr(0711, root, mail) /usr/bin/rmail
%attr(0711, root, mail) /usr/bin/makemap
%attr(0711, root, mail) /usr/sbin/sendmail
%attr(0711, root, mail) /usr/bin/newaliases
%attr(0711, root, mail) /usr/bin/mailq
%attr(0711, root, mail) /usr/sbin/smrsh
%attr(0711, root, mail) /usr/lib/sendmail
%attr(0711, root, mail) /usr/libexec/mail.local
/usr/man/man8/rmail.8
/usr/man/man8/makemap.8
/usr/man/man8/sendmail.8
/usr/man/man8/mail.local.8
/usr/man/man5/aliases.5
/usr/man/man1/newaliases.1
/usr/man/man1/mailq.1
/var/log/sendmail.st
/usr/lib/sendmail.hf
%dir /etc/mail
%config %verify(not size mtime md5) /etc/mail/sendmail.cf
%config %verify(not size mtime md5) /etc/mail/sendmail.cw
%config(noreplace) /etc/mail/aliases
%attr(0640, root, mail) %ghost /etc/mail/aliases.db
%attr(0755, root, mail) %dir /var/spool/mqueue
%dir /etc/smrsh

%attr(0700, root, root) %config /etc/rc.d/init.d/sendmail
%config(missingok) /etc/rc.d/rc0.d/K30sendmail
%config(missingok) /etc/rc.d/rc1.d/K30sendmail
%config(missingok) /etc/rc.d/rc2.d/S80sendmail
%config(missingok) /etc/rc.d/rc3.d/S80sendmail
%config(missingok) /etc/rc.d/rc4.d/S80sendmail
%config(missingok) /etc/rc.d/rc5.d/S80sendmail
%config(missingok) /etc/rc.d/rc6.d/K30sendmail

%files cf
%defattr(-, root, root)
/usr/lib/sendmail-cf

%files doc
%defattr(-, root, root)
/usr/doc/sendmail

%changelog

* Thu Jul 30 1998 Wojtek Slusarczyk <wojtek w shadow.eu.org>
[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 0711,
- moved %changelog at the end of spec,
- build from non root's account.

* Tue May 05 1998 Prospector System <bugs w redhat.com>

- translations modified for de, fr, tr

* Sat May 02 1998 Cristian Gafton <gafton w redhat.com>
- enhanced initscripts

* Fri May 01 1998 Cristian Gafton <gafton w redhat.com>
- added a rmail patch

* Wed Oct 29 1997 Donnie Barnes <djb w redhat.com>
- argh!  Fixed some of the db1 handling that had to be added for glibc 2.1

* Fri Oct 24 1997 Donnie Barnes <djb w redhat.com>
- added support for db1 on SPARC

* Thu Oct 16 1997 Donnie Barnes <djb w redhat.com>
- added chkconfig support
- various spec file cleanups
- changed group to Networking/Daemons (from Daemons).  Sure, it runs on
  non networked systems, but who really *needs* it then?

* Wed Oct 08 1997 Donnie Barnes <djb w redhat.com>
- made /etc/mail/deny.db a ghost
- removed preun that used to remove deny.db (ghost handles that now)
- NOTE: upgrading from the sendmail packages in 4.8, 4.8.1, and possibly
  4.9 (all Red Hat betas between 4.2 and 5.0) could cause problems.  You
  may need to do a makemap in /etc/mail and a newaliases after upgrading
  from those packages.  Upgrading from 4.2 or prior should be fine.

* Mon Oct 06 1997 Erik Troan <ewt w redhat.com>
- made aliases.db a ghost

* Tue Sep 23 1997 Donnie Barnes <djb w redhat.com>
- fixed preuninstall script to handle aliases.db on upgrades properly

* Mon Sep 15 1997 Donnie Barnes <djb w redhat.com>
- fixed post-install output and changed /var/spool/mqueue to 755

* Thu Sep 11 1997 Donnie Barnes <djb w redhat.com>
- fixed /usr/lib/sendmail-cf paths

* Tue Sep 09 1997 Donnie Barnes <djb w redhat.com>
- updated to 8.8.7
- added some spam filtration
- combined some makefile patches
- added BuildRoot support

* Wed Sep 03 1997 Erik Troan <ewt w redhat.com>
- marked initscript symlinks as missingok
- run newalises after creating /var/spool/mqueue

* Thu Jun 12 1997 Erik Troan <ewt w redhat.com>
- built against glibc, udated release to -6 (skipped -5!)

* Tue Apr 01 1997 Erik Troan <ewt w redhat.com>
- Added -nsl on the Alpha (for glibc to provide NIS functions).

* Mon Mar 03 1997 Erik Troan <ewt w redhat.com>
- Added nis support.
        



Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu



Więcej informacji o liście dyskusyjnej pld-devel-pl