]> git.pld-linux.org Git - packages/postfix.git/blame - postfix.spec
- release 4 (by relup.sh)
[packages/postfix.git] / postfix.spec
CommitLineData
c41ca9c7 1#
6c202c7c 2# Conditional build:
a675fe53 3%bcond_without ldap # without LDAP map module
4%bcond_without mysql # without MySQL map module
5%bcond_without pgsql # without PostgreSQL map module
a3d5ff4f 6%bcond_without sqlite # without SQLite map module
a675fe53 7%bcond_without sasl # without SMTP AUTH support
8%bcond_without ssl # without SSL/TLS support
d2e5a200 9%bcond_without cdb # without cdb map support
3980332c 10%if "%{pld_release}" == "th"
afeeeec7 11%bcond_without vda # without VDA patch
3980332c
ER
12%else
13%bcond_with vda # with VDA patch
a90612af 14%endif
91c5f300 15%bcond_with hir # with Beeth's header_if_reject patch
b21ac01c 16%bcond_with tcp # with unofficial tcp: lookup table
3980332c
ER
17%if "%{pld_release}" == "ac"
18%bcond_with epoll # enable epoll for 2.6 kernels
628e466c
ER
19# there didn't exist x86_64 2.4 kernel in PLD, so can safely enable epoll
20%ifarch %{x8664}
21%define with_epoll 1
22%endif
3980332c 23%else
8b457b1c 24%bcond_without epoll # disable epoll for 2.4 kernels
3980332c 25%endif
628e466c 26
7d6d2dd3 27%define vda_ver v11-2.9.1
aed7eb18 28Summary: Postfix Mail Transport Agent
2fb1717c
ER
29Summary(cs.UTF-8): Postfix - program pro přepravu pošty (MTA)
30Summary(es.UTF-8): Postfix - Un MTA (Mail Transport Agent) de alto desempeño
31Summary(fr.UTF-8): Agent de transport de courrier Postfix
32Summary(pl.UTF-8): Serwer SMTP Postfix
33Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho
34Summary(sk.UTF-8): Agent prenosu pošty Postfix
aed7eb18 35Name: postfix
8b724c22 36Version: 2.9.4
3d163753 37Release: 4
9e330f14 38Epoch: 2
4e46d0a4 39License: distributable
cc9ed2a2 40Group: Networking/Daemons/SMTP
9e330f14 41Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
8b724c22 42# Source0-md5: 230bc3c00c051946eccd850058d75f6c
a6206693 43Source1: %{name}.aliases
44Source2: %{name}.cron
45Source3: %{name}.init
efbd5023
JB
46Source4: %{name}.sysconfig
47Source5: %{name}.sasl
48Source6: %{name}.pamd
a9621843 49Source7: http://vda.sourceforge.net/VDA/%{name}-vda-%{vda_ver}.patch
7d6d2dd3 50# Source7-md5: a54a21428de5eeae91b4bb670976e37a
afeeeec7 51Source8: %{name}-bounce.cf.pl
53387d60
TP
52# http://postfix.state-of-mind.de/bounce-templates/bounce.de-DE.cf
53Source9: %{name}-bounce.cf.de
614bf87e 54Source10: %{name}.monitrc
d5588fd1 55Source11: %{name}-vda-bigquota.patch
ca9e223e
JR
56#Source11: http://vda.sourceforge.net/VDA/%{name}-%{vda_ver}-vda-ng-bigquota.patch.gz
57# -ource11-md5: d46103195b43ec5784ea2c166b238f71
68eb54cd 58Source12: %{name}.service
39f13daf
TO
59Patch0: %{name}-config.patch
60Patch1: %{name}-conf_msg.patch
61Patch2: %{name}-dynamicmaps.patch
8a65cb50 62Patch3: %{name}-master.cf_cyrus.patch
d9d74ec2 63# from http://akson.sgh.waw.pl/~chopin/unix/postfix-2.1.5-header_if_reject.diff
8a65cb50 64Patch4: %{name}-header_if_reject.patch
9af56e83
JR
65Patch5: %{name}-ident.patch
66Patch6: %{name}-lib64.patch
67Patch7: %{name}-conf.patch
68Patch8: %{name}-dictname.patch
69Patch9: %{name}-make-jN.patch
1df88c62 70Patch10: %{name}-link.patch
a3d5ff4f 71Patch11: %{name}-scache_clnt.patch
7003f448 72URL: http://www.postfix.org/
a675fe53 73%{?with_sasl:BuildRequires: cyrus-sasl-devel}
f5be0c4f 74BuildRequires: db-devel
435fe1e7
JB
75# getifaddrs() with IPv6 support
76BuildRequires: glibc-devel >= 6:2.3.4
a675fe53 77%{?with_mysql:BuildRequires: mysql-devel}
3daed3d7 78%{?with_ldap:BuildRequires: openldap-devel >= 2.0.12}
31bc8b8b 79%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7l}
9e330f14 80BuildRequires: pcre-devel
26166c26 81BuildRequires: perl-base
a675fe53 82%{?with_pgsql:BuildRequires: postgresql-devel}
a90612af 83BuildRequires: rpm >= 4.4.9-56
68eb54cd 84BuildRequires: rpmbuild(macros) >= 1.644
cc227ab6 85BuildRequires: sed >= 4.0
a3d5ff4f 86%{?with_sqlite:BuildRequires: sqlite3-devel}
a675fe53 87%{?with_cdb:BuildRequires: tinycdb-devel}
cc227ab6 88%{?with_mysql:BuildRequires: zlib-devel}
6c202c7c 89Requires(post): /bin/hostname
04eda2b3
ER
90Requires(post,postun): /sbin/ldconfig
91Requires(post,preun): /sbin/chkconfig
92Requires(postun): /usr/sbin/groupdel
93Requires(postun): /usr/sbin/userdel
36d09b56 94Requires(pre): /bin/id
95Requires(pre): /usr/bin/getgid
96Requires(pre): /usr/sbin/groupadd
97Requires(pre): /usr/sbin/useradd
6193959a 98Requires: /sbin/chkconfig
760324a9
PG
99Requires: diffutils
100Requires: findutils
04eda2b3
ER
101Requires: rc-scripts
102Requires: sed
760324a9 103%{?with_cdb:Requires:tinycdb}
68eb54cd 104Requires: systemd-units >= 38
6383ad40 105Suggests: cyrus-sasl-saslauthd
36d09b56 106Provides: group(postfix)
6c202c7c 107Provides: smtpdaemon
36d09b56 108Provides: user(postfix)
760324a9 109Obsoletes: smtpdaemon
1b5a7762 110BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0effd84f
AM
111
112%description
9d1e23e4 113Postfix is attempt to provide an alternative to the widely-used
114Sendmail program. Postfix attempts to be fast, easy to administer, and
115hopefully secure, while at the same time being sendmail compatible
5e7152ef 116enough to not upset your users. This version has IPv6 support.
07119450 117
23264879 118%description -l es.UTF-8
d6c39c23 119Postfix es una alternativa para el mundialmente utilizado sendmail. Si
23264879 120desea tener un servidor SMTP *rápido*, debe instalar este paquete.
d6c39c23 121
23264879
JR
122%description -l fr.UTF-8
123Postfix (voir http://www.postfix.org/) se veut une alternative à
07119450 124sendmail, responsable de l'acheminement de 70% des courriers
23264879
JR
125électroniques sur Internet. IBM en a suppotré le développement, mais
126ne contrôle pas son évolution. Le but est d'installer Postfix sur le
127plus grand nombre de systèmes possible. Dans cette optique, il a été
128écrit pour être totalement sous le contrôle de l'utilisateur.
07119450 129
23264879 130%description -l it.UTF-8
9e330f14 131Postfix (http://www.postfix.org/) e' un'alternativa al programma
07119450 132sendmail utilizzato per la gestione del 70 per cento della posta
133Internet.
134
135Seppur IBM supporti lo sviluppo di Postfix, non controlla la sua
136evoluzione.
137
138Consultate la pagine web http://www.moongroup.com/how-to.phtml nella
139quale troverete le indicazioni per una corretta installazione e
140configurazione di questo programma.
141
23264879
JR
142%description -l pl.UTF-8
143Postfix jest próbą dostarczenia alternatywnego MTA w stosunku do
144szeroko używanego sendmaila. Postfix w zamierzeniu ma być szybki,
145łatwy w administrowaniu, bezpieczny oraz ma być na tyle kompatybilny z
146sendmailem by nie denerwować użytkowników. Ta wersja obsługuje IPv6.
07119450 147
23264879
JR
148%description -l pt_BR.UTF-8
149O Postfix é uma alternativa para o mundialmente utilizado sendmail. Se
150você deseja um servidor SMTP *rápido*, instale este pacote.
d6c39c23 151
23264879
JR
152%description -l sk.UTF-8
153Postfix (pozri http://www.postfix.org/) má za cieľ byť alternatívou k
154široko rozšírenému programu sendmail, zodpovednému za 70% všetkej
155elektronickej pošty doručenej na Internete.
07119450 156
23264879
JR
157Aj keď IBM podporovala vývoj Postfixu, zdržiava sa vplyvu na jeho
158vývoj. Cieľom je inštalácia Postfixu na čo najväčšom počte systémov.
159Do tohoto momentu je softvér poskytovaný bez ovplyvňovania, takže sa
160môže vyvíjať podľa jeho používateľov.
07119450 161
23264879
JR
162Určite si prečítajte http://www.moongroup.com/how-to.phtml, kde sú
163popísané kroky potrebné pred a po inštalácii Postfixu.
07119450 164
9e330f14 165%package devel
166Summary: Postfix loadable modules development package
2fb1717c 167Summary(pl.UTF-8): Pakiet dla programistów ładowanych modułów do postfiksa
9e330f14 168Group: Development/Libraries
68087f44 169Requires: %{name} = %{epoch}:%{version}-%{release}
9e330f14 170
171%description devel
172Header files to build additional map types for Postfix.
173
23264879
JR
174%description devel -l pl.UTF-8
175Pliki nagłówkowe do tworzenia dodatkowych typów map dla Postfiksa.
9e330f14 176
177%package dict-ldap
178Summary: LDAP map support for Postfix
2fb1717c 179Summary(pl.UTF-8): Obsługa map LDAP dla Postfiksa
cc9ed2a2 180Group: Networking/Daemons/SMTP
68087f44 181Requires: %{name} = %{epoch}:%{version}-%{release}
1dc0bd4f 182Requires: openldap >= 2.3.6
9e330f14 183
184%description dict-ldap
185This package provides support for LDAP maps in Postfix.
186
23264879
JR
187%description dict-ldap -l pl.UTF-8
188Ten pakiet dodaje obsługę map LDAP do Postfiksa.
9e330f14 189
190%package dict-mysql
191Summary: MySQL map support for Postfix
2fb1717c 192Summary(pl.UTF-8): Obsługa map MySQL dla Postfiksa
cc9ed2a2 193Group: Networking/Daemons/SMTP
68087f44 194Requires: %{name} = %{epoch}:%{version}-%{release}
9e330f14 195
196%description dict-mysql
197This package provides support for MySQL maps in Postfix.
198
23264879
JR
199%description dict-mysql -l pl.UTF-8
200Ten pakiet dodaje obsługę map MySQL do Postfiksa.
9e330f14 201
9e330f14 202%package dict-pcre
203Summary: PCRE map support for Postfix
2fb1717c 204Summary(pl.UTF-8): Obsługa map PCRE dla Postfiksa
cc9ed2a2 205Group: Networking/Daemons/SMTP
68087f44 206Requires: %{name} = %{epoch}:%{version}-%{release}
9e330f14 207
208%description dict-pcre
209This package provides support for PCRE maps in Postfix.
210
23264879
JR
211%description dict-pcre -l pl.UTF-8
212Ten pakiet dodaje obsługę map PCRE do Postfiksa.
0effd84f 213
8016f71d
JB
214%package dict-pgsql
215Summary: PostgreSQL map support for Postfix
2fb1717c 216Summary(pl.UTF-8): Obsługa map PostgreSQL dla Postfiksa
cc9ed2a2 217Group: Networking/Daemons/SMTP
68087f44 218Requires: %{name} = %{epoch}:%{version}-%{release}
8016f71d
JB
219
220%description dict-pgsql
221This package provides support for PostgreSQL maps in Postfix.
222
23264879
JR
223%description dict-pgsql -l pl.UTF-8
224Ten pakiet dodaje obsługę map PostgreSQL do Postfiksa.
8016f71d 225
a3d5ff4f 226%package dict-sqlite
227Summary: SQLite map support for Postfix
228Summary(pl.UTF-8): Obsługa map SQLite dla Postfiksa
229Group: Networking/Daemons/SMTP
230Requires: %{name} = %{epoch}:%{version}-%{release}
231
232%description dict-sqlite
233This package provides support for SQLite maps in Postfix.
234
235%description dict-sqlite -l pl.UTF-8
236Ten pakiet dodaje obsługę map SQLite do Postfiksa.
237
fad0c92b
ER
238%package qshape
239Summary: qshape - Print Postfix queue domain and age distribution
a5051c15 240Summary(pl.UTF-8): qshape - wypisywanie rozkładu domen i wieku z kolejki Postfiksa
cc9ed2a2 241Group: Networking/Daemons/SMTP
fad0c92b
ER
242Requires: %{name} = %{epoch}:%{version}-%{release}
243
244%description qshape
245The qshape program helps the administrator understand the Postfix
246queue message distribution in time and by sender domain or recipient
247domain. The program needs read access to the queue directories and
248queue files, so it must run as the superuser or the mail_owner
249specified in main.cf (typically postfix).
250
a5051c15
JB
251%description qshape -l pl.UTF-8
252Program qshape pomaga administratorowi zrozumieć rozkład kolejki
253wiadomości Postfiksa w czasie i w zależności od domeny nadawcy lub
254adresata. Program wymaga prawa odczytu do katalogów kolejki i plików
255kolejki, więc musi być uruchamiany przez superużytkownika lub
256użytkownika mail_owner podanego w main.cf (zwykle nazywającego się
257postfix).
258
614bf87e 259%package -n monit-rc-%{name}
eb700fe9
JB
260Summary: monit support for Postfix
261Summary(pl.UTF-8): Wsparcie monita dla Postfiksa
262Group: Applications/System
d3dab295 263Requires: %{name} = %{epoch}:%{version}-%{release}
eb700fe9 264Requires: monit
614bf87e
PG
265
266%description -n monit-rc-%{name}
267monitrc file for monitoring Postfix.
268
269%description -n monit-rc-%{name} -l pl.UTF-8
270Plik monitrc do monitorowania serwera Postfix.
271
0effd84f 272%prep
8a65cb50 273%setup -q
c5367ef6
JR
274%if %{with vda}
275cat %{SOURCE7} | %{__patch} -p1 -s
276cat %{SOURCE11} | %{__patch} -p1 -s
277%endif
87c7eadd
JR
278
279find -type f | xargs sed -i -e 's|/etc/postfix|/etc/mail|g'
280
54206e36 281%patch0 -p1
cc227ab6 282%patch1 -p0
759823fd 283%patch2 -p1
8a65cb50
JB
284%patch3 -p1
285%{?with_hir:%patch4 -p0}
9af56e83 286%patch5 -p1
cc227ab6 287sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt.c
99356d6f 288%if "%{_lib}" == "lib64"
9af56e83 289%patch6 -p1
d9d74ec2 290%endif
9af56e83 291%patch7 -p1
8961886a
JR
292%patch8 -p1
293%patch9 -p1
1df88c62 294%patch10 -p1
a3d5ff4f 295%patch11 -p1
0effd84f 296
b21ac01c 297%if %{with tcp}
298sed -i 's/ifdef SNAPSHOT/if 1/' src/util/dict_open.c
299%endif
300
0effd84f 301%build
bbb4eec1 302%{__make} -f Makefile.init makefiles
303%{__make} tidy
8eb680c0 304CC="%{__cc}"
305export CC
bbb4eec1 306%{__make} \
435fe1e7 307 DEBUG="" \
32e74bf0 308 OPT="%{rpmcflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64" \
a675fe53 309 %{!?with_ldap:LDAPSO=""} \
310 %{!?with_mysql:MYSQLSO=""} \
311 %{!?with_pgsql:PGSQLSO=""} \
e247883f 312 CCARGS="%{!?with_epoll:-DNO_EPOLL} %{?with_ldap:-DHAS_LDAP} -DHAS_PCRE %{?with_sasl:-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl} %{?with_mysql:-DHAS_MYSQL -I/usr/include/mysql} %{?with_pgsql:-DHAS_PGSQL} %{?with_ssl:-DUSE_TLS} -DMAX_DYNAMIC_MAPS %{?with_cdb:-DHAS_CDB}" \
8eb680c0 313 AUXLIBS="-ldb -lresolv %{?with_sasl:-lsasl} %{?with_ssl:-lssl -lcrypto} %{?with_cdb:-lcdb} -lpcre"
0effd84f
AM
314
315%install
316rm -rf $RPM_BUILD_ROOT
614bf87e 317install -d $RPM_BUILD_ROOT/etc/{cron.daily,rc.d/init.d,sysconfig,pam.d,security,monit} \
1bf3b45d 318 $RPM_BUILD_ROOT%{_sysconfdir}/{mail,sasl} \
996fb42e
JB
319 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/postfix,/usr/lib}\
320 $RPM_BUILD_ROOT{%{_includedir}/postfix,%{_mandir}} \
1dc0bd4f 321 $RPM_BUILD_ROOT%{_var}/spool/postfix/{active,corrupt,deferred,maildrop,private,saved,bounce,defer,incoming,pid,public} \
68eb54cd
JK
322 $RPM_BUILD_ROOT%{_var}/lib/postfix \
323 $RPM_BUILD_ROOT%{systemdunitdir}
324
8e60c101 325%{__rm} html/Makefile.in conf/{LICENSE,main.cf.default}
38f90f82 326
2c6fe3cc
ER
327install -p bin/* $RPM_BUILD_ROOT%{_sbindir}
328install -p libexec/* $RPM_BUILD_ROOT%{_libdir}/postfix
f52f40b7
JB
329ln $RPM_BUILD_ROOT%{_libdir}/postfix/smtp $RPM_BUILD_ROOT%{_libdir}/postfix/lmtp
330ln $RPM_BUILD_ROOT%{_libdir}/postfix/qmgr $RPM_BUILD_ROOT%{_libdir}/postfix/nqmgr
2c6fe3cc 331cp -a conf/* $RPM_BUILD_ROOT%{_sysconfdir}/mail
7ffb4b69
JK
332sed -e's,^daemon_directory = .*,daemon_directory = %{_libdir}/postfix,' \
333 conf/main.cf > $RPM_BUILD_ROOT%{_sysconfdir}/mail/main.cf
7003f448 334
9e330f14 335for f in dns global master util ; do
2c6fe3cc 336 cp -a lib/lib${f}.a $RPM_BUILD_ROOT%{_libdir}/libpostfix-${f}.so.1
9e330f14 337 ln -sf lib${f}.so.1 $RPM_BUILD_ROOT%{_libdir}/libpostfix-${f}.so
338done
2c6fe3cc
ER
339install -p lib/dict*.so $RPM_BUILD_ROOT%{_libdir}/postfix
340cp -a include/*.h $RPM_BUILD_ROOT%{_includedir}/postfix
9e330f14 341
996fb42e 342cp -a man/man* $RPM_BUILD_ROOT%{_mandir}
8d5f7ded 343
2c6fe3cc
ER
344cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mail/aliases
345install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/postfix
1bf3b45d 346install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/postfix
2c6fe3cc
ER
347cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/postfix
348cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/sasl/smtpd.conf
349cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/smtp
350cp -a %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/mail/bounce.cf.pl
351cp -a %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mail/bounce.cf.de
352cp -a %{SOURCE10} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
68eb54cd 353cp -a %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
2c6fe3cc
ER
354install -p auxiliary/rmail/rmail $RPM_BUILD_ROOT%{_bindir}/rmail
355install -p auxiliary/qshape/qshape.pl $RPM_BUILD_ROOT%{_bindir}/qshape
8d5f7ded 356
cc227ab6 357ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/mailq
358ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/newaliases
359ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
8d5f7ded 360
9d5846cd 361touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/\
a6206693 362 {aliases,access,canonical,relocated,transport,virtual}{,.db}
0effd84f 363
876f5025
JR
364touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp
365
6c202c7c 366> $RPM_BUILD_ROOT/var/spool/postfix/.nofinger
0effd84f 367
8e60c101 368%{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/mail/makedefs.out
369%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/mail/TLS_LICENSE
bf21c84b 370
8e60c101 371%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/mail/{postfix-files,postfix-script,post-install}
f64b2d39 372
ce5ea51e
JB
373%clean
374rm -rf $RPM_BUILD_ROOT
375
0effd84f 376%pre
38ee7751
ER
377%groupadd -g 62 postfix
378%groupadd -g 63 maildrop
379%useradd -u 62 -d /var/spool/postfix -s /bin/false -c "Postfix User" -g postfix postfix
92df9354 380
0effd84f 381%post
9e330f14 382/sbin/ldconfig
cc227ab6 383if ! grep -q "^postmaster:" %{_sysconfdir}/mail/aliases; then
3980332c
ER
384 echo "Adding Entry for postmaster in %{_sysconfdir}/mail/aliases" >&2
385 echo "postmaster: root" >>%{_sysconfdir}/mail/aliases
0effd84f 386fi
49e87d62
TP
387if [ "$1" = "1" ]; then
388 # only on installation, not upgrade; set sane defaults
389 # postfix expects gethostname() to return FQDN, which is obviously wrong
390 if ! grep -qE "^my(domain|hostname)" %{_sysconfdir}/mail/main.cf; then
aede23fa 391 domain=$(/bin/hostname -d 2>/dev/null)
d4128a22 392 [ -n "$domain" -a "$domain" != 'localdomain' ] && \
aede23fa 393 postconf -e mydomain="$domain"
49e87d62
TP
394 fi
395else
3980332c 396 %{_sbindir}/postfix upgrade-configuration
13f4eff0
AF
397fi
398
3a2ee9d6 399%{_bindir}/newaliases
c9643bf8 400/sbin/chkconfig --add postfix
3980332c 401%service postfix restart "Postfix Daemon"
68eb54cd 402%systemd_post
0effd84f 403
0effd84f 404%preun
c9643bf8 405if [ "$1" = "0" ]; then
88cb24db 406 %service postfix stop
c9643bf8 407 /sbin/chkconfig --del postfix
408fi
68eb54cd 409%systemd_preun
0effd84f 410
9d5846cd 411%postun
9e330f14 412/sbin/ldconfig
413if [ "$1" = "0" ]; then
36d09b56 414 %groupremove maildrop
415 %userremove postfix
416 %groupremove postfix
c9643bf8 417fi
68eb54cd 418%systemd_postun
9d5846cd 419
0effd84f
AM
420%files
421%defattr(644,root,root,755)
1dc0bd4f 422%doc html COMPATIBILITY HISTORY LICENSE RELEASE_NOTES* TLS_*
bd7c0cf3 423%doc README_FILES/*README
bf21c84b 424%doc examples/smtpd-policy
0c1674c9 425%dir %{_sysconfdir}/mail
9a9b0b98
JB
426%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/access
427%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/aliases
afeeeec7 428%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/bounce.cf.default
3e10f279
ER
429%lang(de) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/bounce.cf.de
430%lang(pl) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/bounce.cf.pl
9a9b0b98
JB
431%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/canonical
432%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/generic
9a9b0b98
JB
433#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/regexp_table
434%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/relocated
435%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/transport
436%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/virtual
437%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/header_checks
3ccfe138 438#%ghost %{_sysconfdir}/mail/*.db
9a9b0b98
JB
439%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/dynamicmaps.cf
440%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/main.cf
441%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/master.cf
b60ffb26 442%{_sysconfdir}/mail/postfix-wrapper
443%{_sysconfdir}/mail/postmulti-script
1bf3b45d 444%attr(740,root,root) /etc/cron.daily/postfix
445%attr(754,root,root) /etc/rc.d/init.d/postfix
9a9b0b98 446%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postfix
04eda2b3 447%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp
876f5025 448%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.smtp
9a9b0b98 449%{?with_sasl:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/smtpd.conf}
9e330f14 450%attr(755,root,root) %{_libdir}/libpostfix-*.so.*
573c93c6
JB
451%attr(755,root,root) %{_bindir}/mailq
452%attr(755,root,root) %{_bindir}/newaliases
fad0c92b 453%attr(755,root,root) %{_bindir}/rmail
9d5846cd 454%attr(755,root,root) %{_sbindir}/s*
9e330f14 455%attr(755,root,root) %{_sbindir}/postfix
6694854c
GS
456%attr(755,root,root) %{_sbindir}/postalias
457%attr(755,root,root) %{_sbindir}/postkick
9d5846cd
AM
458%attr(755,root,root) %{_sbindir}/postl*
459%attr(755,root,root) %{_sbindir}/postc*
460%attr(755,root,root) %{_sbindir}/postmap
b60ffb26 461%attr(755,root,root) %{_sbindir}/postmulti
9e330f14 462%attr(2755,root,maildrop) %{_sbindir}/postqueue
9d5846cd
AM
463%attr(755,root,root) %{_sbindir}/postsuper
464%attr(2755,root,maildrop) %{_sbindir}/postdrop
8a65cb50 465%attr(755,root,root) %{_sbindir}/qmqp-sink
9e330f14 466%attr(755,root,root) %{_sbindir}/qmqp-source
09055bff 467%attr(755,root,root) /usr/lib/sendmail
9e330f14 468%dir %{_libdir}/postfix
98693d0a 469%attr(755,root,root) %{_libdir}/postfix/[!d]*
8a65cb50 470%attr(755,root,root) %{_libdir}/postfix/discard
ce1e2926 471%attr(755,root,root) %{_libdir}/postfix/dnsblog
9d5846cd 472%attr(755,root,root) %dir %{_var}/spool/postfix
150a0aa3
JB
473%attr(700,postfix,root) %dir %{_var}/spool/postfix/active
474%attr(700,postfix,root) %dir %{_var}/spool/postfix/bounce
475%attr(700,postfix,root) %dir %{_var}/spool/postfix/corrupt
476%attr(700,postfix,root) %dir %{_var}/spool/postfix/defer
477%attr(700,postfix,root) %dir %{_var}/spool/postfix/deferred
478%attr(700,postfix,root) %dir %{_var}/spool/postfix/incoming
9d5846cd 479%attr(1730,postfix,maildrop) %dir %{_var}/spool/postfix/maildrop
150a0aa3
JB
480%attr(755,postfix,root) %dir %{_var}/spool/postfix/pid
481%attr(700,postfix,root) %dir %{_var}/spool/postfix/private
482%attr(710,postfix,maildrop) %dir %{_var}/spool/postfix/public
483%attr(700,postfix,root) %dir %{_var}/spool/postfix/saved
484%attr(644,postfix,root) %{_var}/spool/postfix/.nofinger
1dc0bd4f 485%attr(700,postfix,root) %{_var}/lib/postfix
996fb42e
JB
486%{_mandir}/man1/mailq.1*
487%{_mandir}/man1/newaliases.1*
488%{_mandir}/man1/post*.1*
489%{_mandir}/man1/qmqp-*.1*
490%{_mandir}/man1/sendmail.1*
491%{_mandir}/man1/smtp-*.1*
492%{_mandir}/man5/access.5*
493%{_mandir}/man5/aliases.5*
494%{_mandir}/man5/body_checks.5*
495%{_mandir}/man5/bounce.5*
496%{_mandir}/man5/canonical.5*
497%{_mandir}/man5/cidr_table.5*
498%{_mandir}/man5/generic.5*
499%{_mandir}/man5/header_checks.5*
500%{_mandir}/man5/master.5*
4b9e8171 501%{_mandir}/man5/memcache_table.5*
996fb42e
JB
502%{_mandir}/man5/nisplus_table.5*
503%{_mandir}/man5/postconf.5*
b60ffb26 504%{_mandir}/man5/postfix-wrapper.5*
996fb42e
JB
505%{_mandir}/man5/regexp_table.5*
506%{_mandir}/man5/relocated.5*
507%{_mandir}/man5/tcp_table.5*
508%{_mandir}/man5/transport.5*
509%{_mandir}/man5/virtual.5*
510%{_mandir}/man8/*.8*
68eb54cd 511%{systemdunitdir}/%{name}.service
9e330f14 512
513%files devel
514%defattr(644,root,root,755)
515%attr(755,root,root) %{_libdir}/libpostfix-*.so
516%{_includedir}/postfix
517
a675fe53 518%if %{with ldap}
9e330f14 519%files dict-ldap
520%defattr(644,root,root,755)
521%attr(755,root,root) %{_libdir}/postfix/dict_ldap.so
996fb42e 522%{_mandir}/man5/ldap_table.5*
a853cfe3 523%endif
9e330f14 524
a675fe53 525%if %{with mysql}
9e330f14 526%files dict-mysql
527%defattr(644,root,root,755)
528%attr(755,root,root) %{_libdir}/postfix/dict_mysql.so
996fb42e 529%{_mandir}/man5/mysql_table.5*
8acc733a 530%endif
9e330f14 531
532%files dict-pcre
533%defattr(644,root,root,755)
534%attr(755,root,root) %{_libdir}/postfix/dict_pcre.so
996fb42e
JB
535#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/pcre_table
536%{_mandir}/man5/pcre_table.5*
8016f71d 537
a675fe53 538%if %{with pgsql}
8016f71d
JB
539%files dict-pgsql
540%defattr(644,root,root,755)
541%attr(755,root,root) %{_libdir}/postfix/dict_pgsql.so
996fb42e 542%{_mandir}/man5/pgsql_table.5*
a853cfe3 543%endif
fad0c92b 544
a3d5ff4f 545%if %{with sqlite}
546%files dict-sqlite
547%defattr(644,root,root,755)
548%attr(755,root,root) %{_libdir}/postfix/dict_sqlite.so
549%{_mandir}/man5/sqlite_table.5*
550%endif
551
fad0c92b
ER
552%files qshape
553%defattr(644,root,root,755)
554%attr(755,root,root) %{_bindir}/qshape
996fb42e 555%{_mandir}/man1/qshape.1*
614bf87e
PG
556
557%files -n monit-rc-%{name}
558%defattr(644,root,root,755)
559%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
This page took 0.168371 seconds and 4 git commands to generate.