- updated to 8.14.7
[packages/sendmail.git] / sendmail.spec
CommitLineData
e7f443ca 1# TODO:
b0d90d5e
PG
2# - make sid-milter support:
3# http://sourceforge.net/projects/sid-milter/
4# http://www.sendmail.net/
380f4f9a 5# - http://blue-labs.org/clue/bluelabs.patch-8.12.3 has been updated upstream
1782298e 6# - move compilation from install to build section, fix re-entrancy of install
6a8e33fc 7# - add tests bcond and/or disable tests tha fail on (AC-)builders
27e830f8
JB
8#
9# Conditional build:
cd0a03f5
JB
10%bcond_without ldap # without LDAP support
11%bcond_without tls # without TLS (SSL) support
cd0a03f5 12%bcond_with pgsql # with PostgreSQL support (bluelabs)
a67bd7a2 13
3c3d8557 14Summary: A widely used Mail Transport Agent (MTA)
2eecc50c
ER
15Summary(de.UTF-8): sendmail-Mail-Übertragungsagent
16Summary(es.UTF-8): Sendmail - agente de transporte de mail
17Summary(fr.UTF-8): Agent de transport de courrier sendmail
18Summary(ko.UTF-8): SMTP_AUTH와 TLS를 지원하는 Mail 전송 프로그램(MTA)
19Summary(pl.UTF-8): Sendmail - serwer poczty elektronicznej
20Summary(pt_BR.UTF-8): Sendmail - agente de transporte de mail
21Summary(ru.UTF-8): Почтовый транспортный агент sendmail
22Summary(tr.UTF-8): Elektronik posta hizmetleri sunucusu
23Summary(uk.UTF-8): Поштовий транспортний агент sendmail
991115b7 24Name: sendmail
f14e3699
JB
25Version: 8.14.7
26Release: 1
51736bde 27License: BSD
6daff80a 28Group: Networking/Daemons/SMTP
70870392 29Source0: ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
f14e3699 30# Source0-md5: 348eedfab0ed00931f2df94e78f22c43
fba6af7e 31Source1: %{name}.init
a9ffb5f1 32Source2: %{name}.sysconfig
33585a8c 33Source3: %{name}.aliases
a9ffb5f1
JB
34# From http://doc.phpauction.org/sendmail/examples/
35Source4: %{name}-examples.tar.bz2
58f0209c 36# Source4-md5: d00d817cd456a947a7fc6c04072a7d68
fba6af7e
JB
37Source5: %{name}-etc-mail-Makefile
38Source6: %{name}.mc
39Source7: %{name}-config.m4
5e4bbbe3 40Source8: %{name}.sasl
f09d9a92
ŁJM
41Source9: %{name}.access
42Source10: %{name}.mailertable
43Source11: %{name}.virtusertable
44Source12: %{name}.domaintable
33585a8c 45Source13: %{name}-smtp.pamd
7ca6cd05 46Patch0: %{name}-makemapman.patch
47Patch1: %{name}-smrsh-paths.patch
48Patch2: %{name}-rmail.patch
49Patch3: %{name}-os-paths.patch
50Patch4: %{name}-m4path.patch
969b7703 51Patch5: %{name}-redirect.patch
52Patch6: %{name}-hprescan-dos.patch
f14e3699
JB
53Patch7: %{name}-db.patch
54# originally from http://blue-labs.org/clue/bluelabs.patch-8.12.3
55Patch8: bluelabs.patch-8.12.3
8085d6ae 56URL: http://www.sendmail.org/
215fd019 57BuildRequires: cyrus-sasl-devel
d8b83358 58BuildRequires: db-devel >= 4.1.25
f14e3699
JB
59# man or man-db
60BuildRequires: man-db
5ac997f0 61%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
9e4e8601 62%{?with_tls:BuildRequires: openssl-devel >= 0.9.7d}
cd0a03f5 63%{?with_pgsql:BuildRequires: postgresql-devel}
9f232097 64BuildRequires: rpmbuild(macros) >= 1.310
6a8e33fc 65BuildRequires: sed >= 4.0
5c74aed0 66%ifarch sparc
67BuildRequires: sparc32
68%endif
72d0cb54
TP
69Requires(post): awk
70Requires(post): textutils
d8b83358 71Requires(post,preun): /sbin/chkconfig
1a0572f7 72Requires(post,preun): rc-scripts >= 0.4.0.20
a3d8aa7d
TP
73Requires(postun): /usr/sbin/groupdel
74Requires(postun): /usr/sbin/userdel
1a0572f7
ER
75Requires(pre): /bin/id
76Requires(pre): /usr/bin/getgid
77Requires(pre): /usr/sbin/groupadd
78Requires(pre): /usr/sbin/useradd
36363284 79Requires: db >= 4.1.25
caf50190 80Requires: m4
03b96e7e 81Requires: pam >= 0.79.0
1a0572f7 82Requires: procmail
48fb4f19 83Provides: group(smmsp)
25e2a595 84Provides: smtpdaemon
48fb4f19 85Provides: user(smmsp)
b2c4584b 86Obsoletes: sendmail-cf
87Obsoletes: sendmail-doc
1e16136c 88Obsoletes: smtpdaemon
48fb4f19 89BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
991115b7 90
5e4bbbe3 91%define _sysconfdir /etc/mail
56f7302f 92%define specflags -fPIC
5e4bbbe3 93
51736bde 94%description
95The Sendmail program is a very widely used Mail Transport Agent (MTA).
96MTAs send mail from one machine to another. Sendmail is not a client
97program, which you use to read your e-mail. Sendmail is a
98behind-the-scenes program which actually moves your e-mail over
99networks or the Internet to where you want it to go.
100
96bbf540
JR
101%description -l de.UTF-8
102Sendmail überträgt Mails zwischen Rechnern. Es implementiert eine
103allgemeine Mail-Routing-Funktion über das Netzwerk mit Aliasing und
c9b67936 104Weiterleiten von Nachrichten, automatischem Routing an
96bbf540
JR
105Netzwerk-Gateways und flexible Konfiguration. Wenn Sie E-Mails über
106das Internet senden und empfangen möchten, brauchen Sie sendmail.
107
108%description -l es.UTF-8
109sendmail es un agente de transporte de correo electrónico, que mueve
110mensajes entre máquinas. Implementa facilidades de internetwork y
111rutado, caracterizando cambio de nombres (aliases) y envío a nuevas
112direcciones ( forwarding ), rutado automático para gateways de la red
113y configuración flexible. Necesitarás del sendmail si deseas enviar y
114recibir mensajes a través de la Internet.
115
116%description -l fr.UTF-8
c9b67936 117Sendmail est un agent de transport de courrier, qui est le programme
96bbf540
JR
118transférent le courrier d'une machine à l'autre. Sendmail implémente
119une facilité générale de routage de courrier entre les réseaux, permet
6a8e33fc 120l'"aliasing" et le "forwarding", un routage automatique sur les
96bbf540
JR
121passerelles du réseau, et une configuration flexible.
122
123%description -l ko.UTF-8
124Sendamil은 매우 널리 사용되는 Mail 전송 프로그램이다(MTA). Mail 전송
125프로그램들(MTA)은 어떠한 machine에서 다른 machine으로 메일을 보내며
126Sendmail은 e-mail을 읽기위해 사용하는 client program은 아니다.
127Sendamil은 원하는 곳으로 Internet이나 Network를 통해 e-mail을 보내는
128역할을 하는 backgrond에서 작업을 하는 프로그램이다.
129
130%description -l pl.UTF-8
131Sendmail jest programem umożliwiającym wymianę poczty elektronicznej
132między komputerami w sieci (MTA). Zajmuje się przekazywaniem poczty
133elektronicznej między bramkami pocztowymi i dostarczaniem przesyłek na
134konta docelowe. Bardzo dobrze obsługuje aliasy pocztowe a jego
135dodatkowym atutem jest prosta konfiguracja. Dzięki rozbudowanym
136możliwościom konfiguracyjnym jest w stanie dostarczać przesyłki za
137pośrednictwem protokołów: SMTP, ESMTP, UUCP, X.400 i innych.
138
139%description -l pt_BR.UTF-8
140O sendmail é um agente de transporte de correio eletrônico, que move
141mensagens entre máquinas. Ele implementa facilidades de internetwork e
f48800c7 142roteamento, caracterizando troca de nomes (aliases) e remessa a novos
96bbf540
JR
143endereços ( forwarding ), roteamento automático para gateways da rede
144e configuração flexível.
145
146%description -l ru.UTF-8
147Sendmail - это Mail Transport Agent, программа пересылающая почту с
148машины на машину. Sendmail предоставляет стандартные средства
149межсетевой маршрутизации почты, aliasing, forwarding, автоматическую
150маршрутизацию для сетевых шлюзов и гибкий механизм конфигурации.
151
152%description -l tr.UTF-8
153Sendmail, bir mektubu bir makineden diğerine taşır. Pek çok davranışı
154ayarlanabilir. Internet üzerinden mektup almak veya göndermek
155istiyorsanız bu pakete gereksiniminiz olacaktır.
156
157%description -l uk.UTF-8
158Sendmail - це Mail Transport Agent, програма що пересилає пошту з
159машини на машину. Sendmail надає стандартні засоби міжмережевої
160маршрутизації пошти, aliasing, forwarding, автоматичну маршрутизацію
161для мережевих шлюзів та гнучкий механізм маршрутизації.
969b7703 162
541fcdae 163%package -n libmilter-devel
19aabebb 164Summary: Header files and static libmilter library
2eecc50c 165Summary(pl.UTF-8): Pliki nagłówkowe i statyczna biblioteka libmilter
06fc71d5 166Group: Development/Libraries
c2bc0e13 167Provides: sendmail-devel
168Obsoletes: sendmail-devel
06fc71d5 169
541fcdae 170%description -n libmilter-devel
19aabebb
JB
171Header files and static libmilter library.
172
96bbf540
JR
173%description -n libmilter-devel -l pl.UTF-8
174Pliki nagłówkowe i statyczna biblioteka libmilter.
06fc71d5 175
991115b7 176%prep
177%setup -q
f3b90650 178%patch0 -p1
ca3ee627 179%patch1 -p1
cf62cbce
JB
180%patch2 -p1
181%patch3 -p1
182%patch4 -p1
183%patch5 -p1
184%patch6 -p1
f14e3699
JB
185%patch7 -p1
186%{?with_pgsql:%patch8 -p1}
991115b7 187
c3fb8dbb 188sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/pld.mc
991115b7 189
a67bd7a2 190cp -p %{SOURCE7} config.m4
0fa3694b 191
7f0a903d
ER
192# Ac-specific hack:
193# It's problem with _simultanous_ building when builders are on the same
194# machine. These are anonymous SHM tests (AFAIR) which must fail when called
195# simultanously...
196#
197# send on builders requests only for some arch - it won't fail.
198#- blues
66675973 199%ifarch i386 i586 athlon
7f0a903d 200%{__sed} -i -e 's/^\(smtest.*t-shm\)/dnl \1/' libsm/Makefile.m4
5ea6c1bb 201%{__sed} -i -e 's/^\(smtest.*t-sem\)/dnl \1/' libsm/Makefile.m4
0d2f4853
JB
202%endif
203
51736bde 204%build
969b7703 205echo "define(\`confCC', \`%{__cc}')" >> config.m4
325f3945 206%ifarch sparc sparc64
74f91cbf 207echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DSM_CONF_SEM=0 -DNETINET6')" >> config.m4
208%else
969b7703 209echo "define(\`confOPTIMIZE', \`%{rpmcflags} -DUSE_VENDOR_CF_PATH=1 -DNETINET6')" >> config.m4
74f91cbf 210%endif
668af1c9 211echo "APPENDDEF(\`confINCDIRS', \`-I/usr/include/sasl')" >> config.m4
9f232097 212echo "define(\`confLIBSEARCHPATH', \`/%{_lib} %{_prefix}/%{_lib}')" >> config.m4
84372654 213echo "define(\`confLIBSEARCH', \`db resolv')" >> config.m4
cd0a03f5 214%if 0%{!?debug:1}
aef0455c 215echo "define(\`confLDOPTS', \`-s')" >> config.m4
27e830f8 216%endif
cd0a03f5 217%if %{with ldap}
aef0455c
JB
218echo "APPENDDEF(\`confMAPDEF', \`-DLDAPMAP')" >> config.m4
219echo "APPENDDEF(\`confLIBS', \`-lldap -llber')" >> config.m4
220%endif
cd0a03f5 221%if %{with pgsql}
00791ae1 222echo "APPENDDEF(\`confENVDEF', \`-DSASL')" >> config.m4
223echo "APPENDDEF(\`confMAPDEF', \`-DPGSQLMAP')" >> config.m4
224echo "APPENDDEF(\`confLIBS', \`-lpq -lresolv')" >> config.m4
225echo "APPENDDEF(\`confLIBS', \`-lsasl -lcrypto')" >> config.m4
226%endif
cd0a03f5 227%if %{with tls}
aef0455c 228echo "APPENDDEF(\`confENVDEF', \`-DSTARTTLS')" >> config.m4
969490ba 229echo "APPENDDEF(\`confENVDEF', \`-D_FFR_DEAL_WITH_ERROR_SSL')" >> config.m4
aef0455c 230echo "APPENDDEF(\`confLIBS', \`-lssl -lcrypto')" >> config.m4
58f0209c 231echo "APPENDDEF(\`confENVDEF', \`-D_FFR_SMTP_SSL')" >> config.m4
27e830f8
JB
232%endif
233
58f0209c 234echo "APPENDDEF(\`confENVDEF', \`-DMILTER')" >> config.m4
235
5c74aed0 236%ifarch sparc
237%define Build sparc32 sh Build
238%else
239%define Build sh Build
240%endif
241
242cd sendmail && %{Build} -f ../config.m4
243cd ../mailstats && %{Build} -f ../config.m4
244cd ../rmail && %{Build} -f ../config.m4
245cd ../makemap && %{Build} -f ../config.m4
246cd ../praliases && %{Build} -f ../config.m4
247cd ../smrsh && %{Build} -f ../config.m4
248cd ../libmilter && %{Build} -f ../config.m4
21bd6be8 249cd ../cf/cf
c3fb8dbb 250m4 pld.mc > pld.cf
991115b7 251
51736bde 252%install
253rm -rf $RPM_BUILD_ROOT
2ad9de37 254install -d $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \
e93be470 255 $RPM_BUILD_ROOT/etc/{rc.d/init.d,pam.d,monit,sysconfig,sasl,smrsh,security} \
868c95f8 256 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},/usr/lib} \
a6d88ee0 257 $RPM_BUILD_ROOT{%{_datadir}/sendmail-cf,%{_libdir}} \
2ad9de37
PG
258 $RPM_BUILD_ROOT/var/{log,spool/mqueue} \
259 $RPM_BUILD_ROOT{%{_sysconfdir},%{_includedir}}
51736bde 260
325f3945 261OBJDIR=obj.$(uname -s).$(uname -r).$(\
262%ifarch sparc
263sparc32 \
264%endif
265uname -m)
51736bde 266
215fd019
JB
267IDNU=`id -nu`
268IDNG=`id -ng`
269SMINSTOPT="DESTDIR=$RPM_BUILD_ROOT SBINOWN=$IDNU SBINGRP=$IDNG \
f3b90650 270 UBINOWN=$IDNU UBINGRP=$IDNG MANOWN=$IDNU MANGRP=$IDNG \
21bd6be8 271 CFOWN=$IDNU CFGRP=$IDNG MSPQOWN=$IDNU GBINGRP=$IDNG GBINOWN=$IDNU \
06fc71d5 272 BINOWN=$IDNU BINGRP=$IDNG LIBOWN=$IDNU LIBGRP=$IDNG INCOWN=$IDNU INCGRP=$IDNG"
273
cd6ea0c9
PG
274%{__make} -C $OBJDIR/sendmail install \
275 $SMINSTOPT
276%{__make} -C $OBJDIR/mailstats install \
277 $SMINSTOPT
278%{__make} -C $OBJDIR/praliases install \
279 $SMINSTOPT
280%{__make} -C $OBJDIR/rmail force-install \
281 $SMINSTOPT
282%{__make} -C $OBJDIR/makemap install \
283 $SMINSTOPT
284%{__make} -C $OBJDIR/smrsh install \
285 $SMINSTOPT
06fc71d5 286%{__make} -C $OBJDIR/libmilter install \
485ff0c7
JB
287 $SMINSTOPT \
288 LIBDIR=%{_libdir}
51736bde 289
cd6ea0c9 290ln -sf %{_sbindir}/makemap $RPM_BUILD_ROOT%{_bindir}/makemap
1afe6f39 291
51736bde 292# install the cf files
293cd cf
a67bd7a2
ER
294rm -f cf/{Build,Makefile}
295rm -f feature/*~ feature/*.orig
32b7d288 296cp -a * $RPM_BUILD_ROOT%{_datadir}/sendmail-cf
51736bde 297cd -
298
93476486 299# sendmail.{cf,mc}
a67bd7a2 300cp -p cf/cf/pld.cf $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf
a6d88ee0 301sed -e 's|@@PATH@@|%{_datadir}/sendmail-cf|' < %{SOURCE6} \
5e4bbbe3 302 > $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.mc
93476486 303
cd0a03f5 304%if %{with pgsql}
a67bd7a2 305cp -p bluelabs.mc $RPM_BUILD_ROOT%{_sysconfdir}/bluelabs.mc
00791ae1 306%endif
307
93476486 308# submit.mc (submit.cf is installed automatically)
a67bd7a2 309cp -p cf/cf/submit.mc $RPM_BUILD_ROOT%{_sysconfdir}
93476486 310
215fd019 311echo "# local-host-names - include all aliases for your machine here." \
5e4bbbe3 312 > $RPM_BUILD_ROOT%{_sysconfdir}/local-host-names
51736bde 313
868c95f8 314ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
51736bde 315
316# dangling symlinks
9f232097
ER
317for f in hoststat mailq newaliases purgestat; do
318 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/${f}
215fd019 319done
51736bde 320
1782298e 321for map in virtusertable access domaintable mailertable; do
5e4bbbe3 322 touch $RPM_BUILD_ROOT%{_sysconfdir}/${map}
b9ffc414 323 $RPM_BUILD_ROOT%{_sbindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
5e4bbbe3 324 $RPM_BUILD_ROOT%{_sysconfdir}/${map}.db < $RPM_BUILD_ROOT%{_sysconfdir}/${map}
215fd019 325done
51736bde 326
5e4bbbe3 327install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/aliases
b9ffc414 328$RPM_BUILD_ROOT%{_sbindir}/makemap -C $RPM_BUILD_ROOT%{_sysconfdir}/sendmail.cf hash \
5e4bbbe3 329 $RPM_BUILD_ROOT%{_sysconfdir}/aliases.db < %{SOURCE3}
51736bde 330
a67bd7a2
ER
331cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/sendmail
332install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sendmail
333cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/Makefile
334cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/sasl/Sendmail.conf
335cp -p %{SOURCE13} $RPM_BUILD_ROOT/etc/pam.d/smtp
336cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/access
337cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mailertable
338cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/virtusertable
339cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/domaintable
991115b7 340
34729a6b
JR
341touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp
342
93476486
JB
343mv -f smrsh/README README.smrsh
344mv -f cf/README README.cf
345mv -f doc/op/op.me .
2a5b1ce8 346
a9ffb5f1 347bzip2 -dc %{SOURCE4} | tar xf -
b2c4584b 348
f14e3699
JB
349%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf{,/cf}/README
350# foreign systems
351%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/cs-{hpux*,osf1,solaris*,sunos*,ultrix*}.mc
352%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/generic-{bsd*,hpux*,mpeix,nextstep*,osf1,solaris,sunos*,ultrix*}.{cf,mc}
353%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/s2k-{osf1,ultrix*}.mc
354%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/ostype/{a-ux,aix*,altos,amdahl-uts,bsd*,darwin,dgux,domainos,dragonfly,dynix*,freebsd*,gnu,hpux*,irix*,isc*,maxion,mklinux,mpeix,nextstep,openbsd,osf1,powerux,ptx2,qnx,riscos*,sco*,sinix,solaris*,sunos*,svr4,ultrix*,unicos*,unixware*,unknown,uxpds}.m4
355# foreign machines
356%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/{chez.cs,huginn.cs,knecht,mail.cs,mail.eecs,mailspool.cs,python.cs,ucbarpa,ucbvax,vangogh.cs}.mc
357%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/domain/{Berkeley.EDU,CS.Berkeley.EDU,EECS.Berkeley.EDU,S2K.Berkeley.EDU,berkeley-only}.m4
358%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/hack/cssubdomain.m4
359# precompiled files
360%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/cf/*.cf
361# MIB (package as mibs-*?)
362%{__rm} $RPM_BUILD_ROOT%{_datadir}/sendmail-cf/sendmail.schema
363
a7c38e21
ER
364# for perl-Sendmail-Milter
365install $OBJDIR/libsm/libsm.a $OBJDIR/libsmutil/libsmutil.a \
366 $RPM_BUILD_ROOT%{_libdir}
367
51736bde 368%clean
59d8b10c 369rm -rf $RPM_BUILD_ROOT
991115b7 370
93476486 371%pre
b1eedafd
ER
372%groupadd -g 25 smmsp
373%useradd -u 25 -d /var/spool/clientqueue -s /bin/false -c "Sendmail Message Submission Program" -g smmsp smmsp
93476486 374
991115b7 375%post
3a9160c0 376umask 022
51736bde 377#
378# Convert old format to new
379#
380if [ -f /etc/mail/deny ] ; then
c9b67936 381 cat /etc/mail/deny | \
382 awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \
383 {print $1" REJECT"}' >> /etc/mail/access
f8807059 384 mv -f /etc/mail/deny /etc/mail/deny.rpmorig
d8cea423 385fi
51736bde 386for oldfile in relay_allow ip_allow name_allow ; do
c9b67936 387 if [ -f /etc/mail/$oldfile ] ; then
388 cat /etc/mail/$oldfile | \
389 awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \
390 { print $1\" RELAY\" }" >> /etc/mail/access
f8807059 391 mv -f /etc/mail/$oldfile /etc/mail/$oldfile.rpmorig
c9b67936 392 fi
51736bde 393done
991115b7 394
51736bde 395#
396# Oops, these files moved
397#
398if [ -f /etc/sendmail.cw ] ; then
1cfcd94c 399 cat /etc/sendmail.cw | \
c9b67936 400 awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \
401 { print $1 }' >> /etc/mail/local-host-names
f8807059 402 mv -f /etc/sendmail.cw /etc/sendmail.cw.rpmorig
991115b7 403fi
51736bde 404#
405# Rebuild maps (next reboot will rebuild also)
406#
407{ /usr/bin/newaliases
c9b67936 408 for map in virtusertable access domaintable mailertable; do
409 if [ -f /etc/mail/${map} ] ; then
410 /usr/bin/makemap hash /etc/mail/${map} < /etc/mail/${map}
411 sleep 1
412 fi
413 done
51736bde 414} > /dev/null 2>&1
991115b7 415
4426b811 416/sbin/chkconfig --add sendmail
d8b83358 417%service sendmail restart "sendmail daemon"
51736bde 418
419%preun
4426b811 420if [ "$1" = "0" ]; then
d8b83358 421 %service sendmail stop
4426b811 422 /sbin/chkconfig --del sendmail
423fi
991115b7 424
93476486
JB
425%postun
426if [ "$1" = "0" ]; then
48fb4f19 427 %userremove smmsp
428 %groupremove smmsp
93476486
JB
429fi
430
51736bde 431# removal of compatibility links
432%triggerpostun -- sendmail < 8.10.1
433/sbin/chkconfig --add sendmail
991115b7 434
435%files
436%defattr(644,root,root,755)
feeec710 437%doc FAQ KNOWNBUGS README* op.me RELEASE_NOTES examples/
51736bde 438%attr(755,root,root) %{_sbindir}/mailstats
439%attr(755,root,root) %{_sbindir}/praliases
440%attr(755,root,root) %{_bindir}/hoststat
441%attr(755,root,root) %{_bindir}/purgestat
442%attr(755,root,root) %{_bindir}/rmail
443%attr(755,root,root) %{_bindir}/makemap
444%attr(755,root,root) %{_sbindir}/makemap
93476486 445%attr(2755,root,smmsp) %{_sbindir}/sendmail
51736bde 446%attr(755,root,root) %{_bindir}/newaliases
447%attr(755,root,root) %{_bindir}/mailq
448%attr(755,root,root) %{_sbindir}/smrsh
868c95f8 449/usr/lib/sendmail
51736bde 450
b89cc167
JB
451%{_mandir}/man1/mailq.1*
452%{_mandir}/man1/newaliases.1*
453%{_mandir}/man5/aliases.5*
51736bde 454%{_mandir}/man8/mailstats.8*
455%{_mandir}/man8/makemap.8*
b89cc167
JB
456%{_mandir}/man8/praliases.8*
457%{_mandir}/man8/rmail.8*
51736bde 458%{_mandir}/man8/sendmail.8*
b89cc167 459%{_mandir}/man8/smrsh.8*
51736bde 460
1cfcd94c
TP
461%dir /etc/smrsh
462%dir %{_sysconfdir}
51736bde 463/var/log/statistics
1a0572f7
ER
464%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sendmail.cf
465%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sendmail.mc
466%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/submit.cf
467%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/submit.mc
468%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/local-host-names
469%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/aliases
cd0a03f5 470%{?with_pgsql:%{_sysconfdir}/bluelabs.mc}
a9ffb5f1
JB
471%attr(644,root,mail) %ghost %{_sysconfdir}/aliases.db
472%attr(770,root,smmsp) %dir /var/spool/clientmqueue
473%attr(750,root,mail) %dir /var/spool/mqueue
5e4bbbe3 474
475%config %{_sysconfdir}/Makefile
1a0572f7 476%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/access
5e4bbbe3 477%ghost %{_sysconfdir}/access.db
1a0572f7 478%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/domaintable
5e4bbbe3 479%ghost %{_sysconfdir}/domaintable.db
1a0572f7 480%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mailertable
5e4bbbe3 481%ghost %{_sysconfdir}/mailertable.db
1a0572f7 482%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/virtusertable
1cfcd94c 483%ghost %{_sysconfdir}/virtusertable.db
5e4bbbe3 484%config(noreplace) %{_sysconfdir}/helpfile
51736bde 485
3c3d8557 486%attr(754,root,root) /etc/rc.d/init.d/sendmail
1a0572f7
ER
487%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sendmail
488%config(noreplace) %verify(not md5 mtime size) /etc/sasl/Sendmail.conf
489%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp
34729a6b 490%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.smtp
991115b7 491
a6d88ee0 492%dir %{_datadir}/sendmail-cf
493%dir %{_datadir}/sendmail-cf/cf
f14e3699
JB
494%{_datadir}/sendmail-cf/cf/clientproto.mc
495%{_datadir}/sendmail-cf/cf/cyrusproto.mc
496%{_datadir}/sendmail-cf/cf/generic-linux.mc
a6d88ee0 497%{_datadir}/sendmail-cf/cf/pld.mc
f14e3699
JB
498%{_datadir}/sendmail-cf/cf/submit.mc
499%{_datadir}/sendmail-cf/cf/tcpproto.mc
500%{_datadir}/sendmail-cf/cf/uucpproto.mc
501%dir %{_datadir}/sendmail-cf/domain
502%{_datadir}/sendmail-cf/domain/generic.m4
a6d88ee0 503%{_datadir}/sendmail-cf/feature
504%{_datadir}/sendmail-cf/m4
505%{_datadir}/sendmail-cf/mailer
506%dir %{_datadir}/sendmail-cf/ostype
507%{_datadir}/sendmail-cf/ostype/linux.m4
508%dir %{_datadir}/sendmail-cf/sh
509%{_datadir}/sendmail-cf/sh/makeinfo.sh
510%{_datadir}/sendmail-cf/siteconfig
06fc71d5 511
541fcdae 512%files -n libmilter-devel
19aabebb 513%defattr(644,root,root,755)
06fc71d5 514%{_libdir}/libmilter.a
a7c38e21
ER
515%{_libdir}/libsm.a
516%{_libdir}/libsmutil.a
19aabebb 517%{_includedir}/libmilter
This page took 0.273078 seconds and 4 git commands to generate.