info: sendmail.spec -devel

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Pią, 11 Wrz 1998, 14:54:04 CEST


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 w 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 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