info: sendmail.spec -devel
Wojtek Slusarczyk
wojtek at SHADOW.EU.ORG
Fri Sep 11 14:54:04 CEST 1998
Hej,
Wymeczylem wlasnie sendmaila-8.9.1, nowe extrasy to
detekcja lobuzow laczacych sie przez telnet, oraz ipv6 niezalezne
od biblioteki libinet6 Metz'a ;)
Przejzyjcie (kto sie zna) site.Linux.m4 i sendmail.cf ...
Summary: sendmail mail transport agent
Summary(pl): Sendmail - aplikacja do obs³ugi poczty elektronicznej
Name: sendmail
Version: 8.9.1
Release: 1d
Copyright: distributable (similar to, but not quite BSD)
Group: Networking/Daemons
Provides: smtpdaemon
Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
Source1: site.Linux.m4
Source2: aliases
Source3: pld.mc
Source4: sendmail.init
Source5: site.Linux.ppc.m4
Source6: sendmail.cf
Patch: sendmail.patch.gz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
URL: http://www.sendmail.org
Prereq: /sbin/chkconfig
%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 cf
Summary: sendmail configuration files and m4 macros
Summary(pl): Pliki konfiguracyjne oraz makra m4 dla sendmaila
Group: Daemons
%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
%patch -p1
ID="`whoami`"
GID="`groups | awk '{print $1 }'`"
cat $RPM_SOURCE_DIR/site.Linux.m4 |sed s/gid/"$GID"/g | sort | sed s/id/"$ID"/g > BuildTools/Site/site.Linux.m4
install -m444 $RPM_SOURCE_DIR/site.Linux.ppc.m4 BuildTools/Site
install -m444 $RPM_SOURCE_DIR/pld.mc cf/cf
%build
make src makemap mail.local mailstats praliases rmail
make smrsh LDOPTS="-s -static"
(
cd cf/cf
/usr/bin/m4 pld.mc >> ./sendmail.cf
)
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT/{,etc/{,mail,rc.d/{,init.d,rc{0,1,2,3,4,5,6}.d}},usr/{,bin,sbin,lib/{,sendmail-cf},libexec,man/{,man{1,5,8}}},var/{,run,spool/{,mqueue,mail}}}
install -m644 $RPM_SOURCE_DIR/aliases $RPM_BUILD_ROOT/etc/mail/aliases
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 -m700 $RPM_SOURCE_DIR/sendmail.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
for i in 3 4 5
do
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/S80sendmail
done
for i in 0 1 2 6
do
ln -sf ../init.d/sendmail $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K30sendmail
done
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT OPTIONS=force-install rmail mail.local
for i in hoststat mailq newaliases purgestat
do ln -sf ../sbin/sendmail $RPM_BUILD_ROOT/usr/bin/$i
done
ln -sf /usr/sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
install -m644 $RPM_SOURCE_DIR/sendmail.cf $RPM_BUILD_ROOT/etc/mail/sendmail.cf
cp cf/* $RPM_BUILD_ROOT/usr/lib/sendmail-cf/ -a
strip $RPM_BUILD_ROOT/usr/{bin/*,sbin/*,libexec/*} || :
cp smrsh/README smrsh/SMRSH.txt
%post
/sbin/chkconfig --add sendmail
%postun
if [ $1 = 0 ]; then
/sbin/chkconfig --del sendmail
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644, root, root, 755)
%doc FAQ README KNOWNBUGS RELEASE_NOTES doc/* smrsh/SMRSH.txt
%attr(0711, root, mail) /usr/bin/hoststat
%attr(0711, root, mail) /usr/bin/mailq
%attr(0711, root, mail) /usr/bin/newaliases
%attr(0711, root, mail) /usr/bin/purgestat
%attr(0711, bin, bin) /usr/bin/rmail
%attr(0711, bin, bin) /usr/sbin/mailstats
%attr(0711, bin, bin) /usr/sbin/makemap
%attr(0711, bin, bin) /usr/sbin/praliases
%attr(0711, root, mail) /usr/sbin/sendmail
%attr(0711, root, mail) /usr/lib/sendmail
%attr(0711, root, mail) /usr/libexec/mail.local
%attr(0711, bin, bin) /usr/libexec/smrsh
%attr(0644, root, man) /usr/man/man1/*
%attr(0644, root, man) /usr/man/man5/*
%attr(0644, root, man) /usr/man/man8/*
/var/run/sendmail.st
%dir %attr(0750, root, mail) /var/spool/mqueue
%attr(0700, root, root) %config %verify(not size mtime md5) /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/K30sendmail
%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(0644, root, root, 755)
/usr/lib/sendmail-cf/*
%config /etc/mail/sendmail.cf
%config /etc/mail/aliases
%ghost /etc/mail/aliases.db
%config /etc/mail/majordomo
%ghost /etc/mail/majordomo.db
%config /etc/mail/sendmail.cw
%config /etc/mail/sendmail.hf
%config(missingok) /etc/mail/sendmail.ct
%config(missingok) /etc/mail/access
%ghost /etc/mail/access.db
%config(missingok) /etc/mail/domaintable
%ghost /etc/mail/domaintable.db
%config(missingok) /etc/mail/mailertable
%ghost /etc/mail/mailertable.db
%config(missingok) /etc/mail/relay-domains
%config(missingok) /etc/mail/virtusertable
%ghost /etc/mail/virtusertable.db
%changelog
* Thu Sep 10 1998 Wojtek Slusarczyk <wojtek at shadow.eu.org>
[8.9.1-1d]
- updated to 8.9.1,
- build with IPv6 support,
- build with Telnet-detect support,
- removed subpackage doc.
* Thu Jul 30 1998 Wojtek Slusarczyk <wojtek at 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 at redhat.com>
- translations modified for de, fr, tr
* Sat May 02 1998 Cristian Gafton <gafton at redhat.com>
- enhanced initscripts
* Fri May 01 1998 Cristian Gafton <gafton at redhat.com>
- added a rmail patch
* Wed Oct 29 1997 Donnie Barnes <djb at 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 at redhat.com>
- added support for db1 on SPARC
* Thu Oct 16 1997 Donnie Barnes <djb at 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 at 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 at redhat.com>
- made aliases.db a ghost
* Tue Sep 23 1997 Donnie Barnes <djb at redhat.com>
- fixed preuninstall script to handle aliases.db on upgrades properly
* Mon Sep 15 1997 Donnie Barnes <djb at redhat.com>
- fixed post-install output and changed /var/spool/mqueue to 755
* Thu Sep 11 1997 Donnie Barnes <djb at redhat.com>
- fixed /usr/lib/sendmail-cf paths
* Tue Sep 09 1997 Donnie Barnes <djb at 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 at redhat.com>
- marked initscript symlinks as missingok
- run newalises after creating /var/spool/mqueue
* Thu Jun 12 1997 Erik Troan <ewt at redhat.com>
- built against glibc, udated release to -6 (skipped -5!)
* Tue Apr 01 1997 Erik Troan <ewt at redhat.com>
- Added -nsl on the Alpha (for glibc to provide NIS functions).
* Mon Mar 03 1997 Erik Troan <ewt at redhat.com>
- Added nis support.
Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu
More information about the pld-devel-pl
mailing list