]> TLD Linux GIT Repositories - packages/postfix.git/blob - postfix.spec
- updated to 3.8.1, dropped duplicate trigger, rediffed patch 1
[packages/postfix.git] / postfix.spec
1 #
2 # Conditional build:
3 %bcond_without  ldap    # without LDAP map module
4 %bcond_without  mysql   # without MySQL map module
5 %bcond_without  pgsql   # without PostgreSQL map module
6 %bcond_without  sqlite  # without SQLite map module
7 %bcond_without  sasl    # without SMTP AUTH support
8 %bcond_without  ssl     # without SSL/TLS support
9 %bcond_without  cdb     # without cdb map support
10 %bcond_without  lmdb    # lmdb map suppor
11 %bcond_without  epoll   # disable epoll for 2.4 kernels
12
13 Summary:        Postfix Mail Transport Agent
14 Summary(cs.UTF-8):      Postfix - program pro přepravu pošty (MTA)
15 Summary(es.UTF-8):      Postfix - Un MTA (Mail Transport Agent) de alto desempeño
16 Summary(fr.UTF-8):      Agent de transport de courrier Postfix
17 Summary(pl.UTF-8):      Serwer SMTP Postfix
18 Summary(pt_BR.UTF-8):   Postfix - Um MTA (Mail Transport Agent) de alto desempenho
19 Summary(sk.UTF-8):      Agent prenosu pošty Postfix
20 Name:           postfix
21 Version:        3.8.1
22 Release:        1
23 Epoch:          2
24 License:        distributable
25 Group:          Networking/Daemons/SMTP
26 Source0:        ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
27 # Source0-md5:  956d0baca1259189c80a9311ef4daaa1
28 Source1:        %{name}.aliases
29 Source2:        %{name}.cron
30 Source3:        %{name}.init
31 Source4:        %{name}.sysconfig
32 Source5:        %{name}.sasl
33 Source6:        %{name}.pamd
34 Source7:        %{name}-bounce.cf.pl
35 # http://postfix.state-of-mind.de/bounce-templates/bounce.de-DE.cf
36 Source8:        %{name}-bounce.cf.de
37 Source9:        %{name}.monitrc
38 # -ource11-md5: d46103195b43ec5784ea2c166b238f71
39 Patch0:         %{name}-config.patch
40 Patch1:         %{name}-conf_msg.patch
41 Patch2:         %{name}-master.cf_cyrus.patch
42 Patch3:         %{name}-conf.patch
43 Patch4:         %{name}-link.patch
44 Patch5:         %{name}-scache_clnt.patch
45 URL:            http://www.postfix.org/
46 %{?with_sasl:BuildRequires:     cyrus-sasl-devel}
47 BuildRequires:  db-devel
48 # getifaddrs() with IPv6 support
49 BuildRequires:  glibc-devel >= 6:2.3.4
50 BuildRequires:  libnsl-devel >= 1.3.0
51 %{?with_mysql:BuildRequires:    mysql-devel}
52 %{?with_ldap:BuildRequires:     openldap-devel >= 2.0.12}
53 %{?with_ssl:BuildRequires:      openssl-devel >= 0.9.7l}
54 BuildRequires:  pcre-devel
55 BuildRequires:  perl-base
56 %{?with_pgsql:BuildRequires:    postgresql-devel}
57 BuildRequires:  rpm >= 4.4.9-56
58 BuildRequires:  rpmbuild(macros) >= 1.644
59 BuildRequires:  sed >= 4.0
60 %{?with_sqlite:BuildRequires:   sqlite3-devel}
61 %{?with_cdb:BuildRequires:      tinycdb-devel}
62 %{?with_mysql:BuildRequires:    zlib-devel}
63 Requires(post): /bin/hostname
64 Requires(post,postun):  /sbin/ldconfig
65 Requires(post,preun):   /sbin/chkconfig
66 Requires(postun):       /usr/sbin/groupdel
67 Requires(postun):       /usr/sbin/userdel
68 Requires(pre):  /bin/id
69 Requires(pre):  /usr/bin/getgid
70 Requires(pre):  /usr/sbin/groupadd
71 Requires(pre):  /usr/sbin/useradd
72 Requires:       /sbin/chkconfig
73 Requires:       diffutils
74 Requires:       findutils
75 Requires:       rc-scripts
76 Requires:       sed
77 %{?with_cdb:Requires:tinycdb}
78 Suggests:       cyrus-sasl-saslauthd
79 Provides:       group(postfix)
80 Provides:       smtpdaemon
81 Provides:       user(postfix)
82 Obsoletes:      smtpdaemon
83 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84
85 %description
86 Postfix is attempt to provide an alternative to the widely-used
87 Sendmail program. Postfix attempts to be fast, easy to administer, and
88 hopefully secure, while at the same time being sendmail compatible
89 enough to not upset your users. This version has IPv6 support.
90
91 %description -l es.UTF-8
92 Postfix es una alternativa para el mundialmente utilizado sendmail. Si
93 desea tener un servidor SMTP *rápido*, debe instalar este paquete.
94
95 %description -l fr.UTF-8
96 Postfix (voir http://www.postfix.org/) se veut une alternative à
97 sendmail, responsable de l'acheminement de 70% des courriers
98 électroniques sur Internet. IBM en a suppotré le développement, mais
99 ne contrôle pas son évolution. Le but est d'installer Postfix sur le
100 plus grand nombre de systèmes possible. Dans cette optique, il a été
101 écrit pour être totalement sous le contrôle de l'utilisateur.
102
103 %description -l it.UTF-8
104 Postfix (http://www.postfix.org/) e' un'alternativa al programma
105 sendmail utilizzato per la gestione del 70 per cento della posta
106 Internet.
107
108 Seppur IBM supporti lo sviluppo di Postfix, non controlla la sua
109 evoluzione.
110
111 Consultate la pagine web http://www.moongroup.com/how-to.phtml nella
112 quale troverete le indicazioni per una corretta installazione e
113 configurazione di questo programma.
114
115 %description -l pl.UTF-8
116 Postfix jest próbą dostarczenia alternatywnego MTA w stosunku do
117 szeroko używanego sendmaila. Postfix w zamierzeniu ma być szybki,
118 łatwy w administrowaniu, bezpieczny oraz ma być na tyle kompatybilny z
119 sendmailem by nie denerwować użytkowników. Ta wersja obsługuje IPv6.
120
121 %description -l pt_BR.UTF-8
122 O Postfix é uma alternativa para o mundialmente utilizado sendmail. Se
123 você deseja um servidor SMTP *rápido*, instale este pacote.
124
125 %description -l sk.UTF-8
126 Postfix (pozri http://www.postfix.org/) má za cieľ byť alternatívou k
127 široko rozšírenému programu sendmail, zodpovednému za 70% všetkej
128 elektronickej pošty doručenej na Internete.
129
130 Aj keď IBM podporovala vývoj Postfixu, zdržiava sa vplyvu na jeho
131 vývoj. Cieľom je inštalácia Postfixu na čo najväčšom počte systémov.
132 Do tohoto momentu je softvér poskytovaný bez ovplyvňovania, takže sa
133 môže vyvíjať podľa jeho používateľov.
134
135 Určite si prečítajte http://www.moongroup.com/how-to.phtml, kde sú
136 popísané kroky potrebné pred a po inštalácii Postfixu.
137
138 %package devel
139 Summary:        Postfix loadable modules development package
140 Summary(pl.UTF-8):      Pakiet dla programistów ładowanych modułów do postfiksa
141 Group:          Development/Libraries
142 Requires:       %{name} = %{epoch}:%{version}-%{release}
143
144 %description devel
145 Header files to build additional map types for Postfix.
146
147 %description devel -l pl.UTF-8
148 Pliki nagłówkowe do tworzenia dodatkowych typów map dla Postfiksa.
149
150 %package dict-cdb
151 Summary:        CDB map support for Postfix
152 Summary(pl.UTF-8):      Obsługa map CDB dla Postfiksa
153 Group:          Networking/Daemons/SMTP
154 Requires:       %{name} = %{epoch}:%{version}-%{release}
155
156 %description dict-cdb
157 This package provides support for CDB maps in Postfix.
158
159 %description dict-cdb -l pl.UTF-8
160 Ten pakiet dodaje obsługę map CDB do Postfiksa.
161
162 %package dict-ldap
163 Summary:        LDAP map support for Postfix
164 Summary(pl.UTF-8):      Obsługa map LDAP dla Postfiksa
165 Group:          Networking/Daemons/SMTP
166 Requires:       %{name} = %{epoch}:%{version}-%{release}
167 Requires:       openldap >= 2.3.6
168
169 %description dict-ldap
170 This package provides support for LDAP maps in Postfix.
171
172 %description dict-ldap -l pl.UTF-8
173 Ten pakiet dodaje obsługę map LDAP do Postfiksa.
174
175 %package dict-lmdb
176 Summary:        LMDB map support for Postfix
177 Summary(pl.UTF-8):      Obsługa map LMDB dla Postfiksa
178 Group:          Networking/Daemons/SMTP
179 Requires:       %{name} = %{epoch}:%{version}-%{release}
180
181 %description dict-lmdb
182 This package provides support for LMDB maps in Postfix.
183
184 %description dict-lmdb -l pl.UTF-8
185 Ten pakiet dodaje obsługę map LMDB do Postfiksa.
186
187 %package dict-mysql
188 Summary:        MySQL map support for Postfix
189 Summary(pl.UTF-8):      Obsługa map MySQL dla Postfiksa
190 Group:          Networking/Daemons/SMTP
191 Requires:       %{name} = %{epoch}:%{version}-%{release}
192
193 %description dict-mysql
194 This package provides support for MySQL maps in Postfix.
195
196 %description dict-mysql -l pl.UTF-8
197 Ten pakiet dodaje obsługę map MySQL do Postfiksa.
198
199 %package dict-pcre
200 Summary:        PCRE map support for Postfix
201 Summary(pl.UTF-8):      Obsługa map PCRE dla Postfiksa
202 Group:          Networking/Daemons/SMTP
203 Requires:       %{name} = %{epoch}:%{version}-%{release}
204
205 %description dict-pcre
206 This package provides support for PCRE maps in Postfix.
207
208 %description dict-pcre -l pl.UTF-8
209 Ten pakiet dodaje obsługę map PCRE do Postfiksa.
210
211 %package dict-pgsql
212 Summary:        PostgreSQL map support for Postfix
213 Summary(pl.UTF-8):      Obsługa map PostgreSQL dla Postfiksa
214 Group:          Networking/Daemons/SMTP
215 Requires:       %{name} = %{epoch}:%{version}-%{release}
216
217 %description dict-pgsql
218 This package provides support for PostgreSQL maps in Postfix.
219
220 %description dict-pgsql -l pl.UTF-8
221 Ten pakiet dodaje obsługę map PostgreSQL do Postfiksa.
222
223 %package dict-sqlite
224 Summary:        SQLite map support for Postfix
225 Summary(pl.UTF-8):      Obsługa map SQLite dla Postfiksa
226 Group:          Networking/Daemons/SMTP
227 Requires:       %{name} = %{epoch}:%{version}-%{release}
228
229 %description dict-sqlite
230 This package provides support for SQLite maps in Postfix.
231
232 %description dict-sqlite -l pl.UTF-8
233 Ten pakiet dodaje obsługę map SQLite do Postfiksa.
234
235 %package qshape
236 Summary:        qshape - Print Postfix queue domain and age distribution
237 Summary(pl.UTF-8):      qshape - wypisywanie rozkładu domen i wieku z kolejki Postfiksa
238 Group:          Networking/Daemons/SMTP
239 Requires:       %{name} = %{epoch}:%{version}-%{release}
240
241 %description qshape
242 The qshape program helps the administrator understand the Postfix
243 queue message distribution in time and by sender domain or recipient
244 domain. The program needs read access to the queue directories and
245 queue files, so it must run as the superuser or the mail_owner
246 specified in main.cf (typically postfix).
247
248 %description qshape -l pl.UTF-8
249 Program qshape pomaga administratorowi zrozumieć rozkład kolejki
250 wiadomości Postfiksa w czasie i w zależności od domeny nadawcy lub
251 adresata. Program wymaga prawa odczytu do katalogów kolejki i plików
252 kolejki, więc musi być uruchamiany przez superużytkownika lub
253 użytkownika mail_owner podanego w main.cf (zwykle nazywającego się
254 postfix).
255
256 %package -n monit-rc-%{name}
257 Summary:        monit support for Postfix
258 Summary(pl.UTF-8):      Wsparcie monita dla Postfiksa
259 Group:          Applications/System
260 Requires:       %{name} = %{epoch}:%{version}-%{release}
261 Requires:       monit
262
263 %description -n monit-rc-%{name}
264 monitrc file for monitoring Postfix.
265
266 %description -n monit-rc-%{name} -l pl.UTF-8
267 Plik monitrc do monitorowania serwera Postfix.
268
269 %prep
270 %setup -q
271 %patch0 -p1
272 %patch1 -p1
273 %patch2 -p1
274 sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt.c
275 %patch3 -p1
276 %patch4 -p1
277 %patch5 -p1
278
279 %build
280 # export, as the same variables must be passed both to 'make makefiles' and 'make'
281 export 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} %{?with_sqlite:-DHAS_SQLITE} %{?with_lmdb:-DHAS_LMDB} -LHAS_SDBM"
282 export AUXLIBS="%{rpmldflags} -lsasl -lssl -lcrypto"
283 export AUXLIBS_CDB="%{?with_cdb:-lcdb}"
284 export AUXLIBS_LDAP="%{?with_ldap:-lldap -llber}"
285 export AUXLIBS_LMDB="%{?with_lmdb:-llmdb}"
286 export AUXLIBS_MYSQL="%{?with_mysql:-lmysqlclient}"
287 export AUXLIBS_PCRE="-lpcre"
288 export AUXLIBS_PGSQL="%{?with_pgsql:-lpq}"
289 export AUXLIBS_SQLITE="%{?with_sqlite:-lsqlite3}"
290
291 export CC="%{__cc}"
292 %{__make} makefiles \
293     shared=yes \
294     dynamicmaps=yes \
295     daemon_directory="%{_libdir}/postfix/sbin" \
296     shlib_directory="%{_libdir}/postfix" \
297     manpage_directory="%{_mandir}"
298
299 %{__make} -j1 \
300     DEBUG="" \
301     OPT="%{rpmcflags} %{rpmcppflags} -D_FILE_OFFSET_BITS=64"
302
303 %install
304 rm -rf $RPM_BUILD_ROOT
305 install -d $RPM_BUILD_ROOT/etc/{cron.daily,rc.d/init.d,sysconfig,pam.d,security,monit} \
306         $RPM_BUILD_ROOT%{_sysconfdir}/{postfix,sasl} \
307         $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/postfix/sbin,/usr/lib}\
308         $RPM_BUILD_ROOT{%{_includedir}/postfix,%{_mandir}} \
309         $RPM_BUILD_ROOT%{_var}/spool/postfix/{active,corrupt,deferred,maildrop,private,saved,bounce,defer,incoming,pid,public} \
310         $RPM_BUILD_ROOT%{_var}/lib/postfix
311
312 %{__make} non-interactive-package \
313         install_root=$RPM_BUILD_ROOT
314
315 cp -a include/*.h $RPM_BUILD_ROOT%{_includedir}/postfix
316
317 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/postfix/aliases
318 install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/postfix
319 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/postfix
320 cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/postfix
321 cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/sasl/smtpd.conf
322 cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/smtp
323 cp -a %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/postfix/bounce.cf.pl
324 cp -a %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/postfix/bounce.cf.de
325 cp -a %{SOURCE9} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
326 install -p auxiliary/rmail/rmail $RPM_BUILD_ROOT%{_bindir}/rmail
327 install -p auxiliary/qshape/qshape.pl $RPM_BUILD_ROOT%{_bindir}/qshape
328 install -p man/man1/qshape.1 $RPM_BUILD_ROOT%{_mandir}/man1
329
330 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/mailq
331 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT%{_bindir}/newaliases
332 ln -sf %{_sbindir}/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail
333
334 touch $RPM_BUILD_ROOT%{_sysconfdir}/postfix/\
335         {aliases,access,canonical,relocated,transport,virtual}{,.db}
336
337 touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp
338
339 > $RPM_BUILD_ROOT/var/spool/postfix/.nofinger
340
341 %{__rm} -rf $RPM_BUILD_ROOT%{_sysconfdir}/postfix/{makedefs.out,main.cf.default}
342 %{__rm} -f $RPM_BUILD_ROOT%{_sysconfdir}/postfix/{,TLS_}LICENSE
343
344 %clean
345 rm -rf $RPM_BUILD_ROOT
346
347 %pre
348 %groupadd -g 62 postfix
349 %groupadd -g 63 maildrop
350 %useradd -u 62 -d /var/spool/postfix -s /bin/false -c "Postfix User" -g postfix postfix
351
352 %post
353 /sbin/ldconfig
354 if ! grep -q "^postmaster:" %{_sysconfdir}/postfix/aliases; then
355         echo "Adding Entry for postmaster in %{_sysconfdir}/postfix/aliases" >&2
356         echo "postmaster: root" >>%{_sysconfdir}/postfix/aliases
357 fi
358 if [ "$1" = "1" ]; then
359         # only on installation, not upgrade; set sane defaults
360         # postfix expects gethostname() to return FQDN, which is obviously wrong
361         if ! grep -qE "^my(domain|hostname)" %{_sysconfdir}/postfix/main.cf; then
362                 domain=$(/bin/hostname -d 2>/dev/null)
363                 [ -n "$domain" -a "$domain" != 'localdomain' ] && \
364                         postconf -e mydomain="$domain"
365         fi
366 else
367         %{_sbindir}/postfix upgrade-configuration
368 fi
369
370 %{_bindir}/newaliases
371 /sbin/chkconfig --add postfix
372 %service postfix restart "Postfix Daemon"
373
374 %preun
375 if [ "$1" = "0" ]; then
376         %service postfix stop
377         /sbin/chkconfig --del postfix
378 fi
379
380 %postun
381 /sbin/ldconfig
382 if [ "$1" = "0" ]; then
383         %groupremove maildrop
384         %userremove postfix
385         %groupremove postfix
386 fi
387
388 %triggerun -- %{name} < 2:3.8.0-1
389 if [ $1 -le 1 ]; then
390         exit 0
391 fi
392 [ -f "/etc/postfix/main.cf" ] && sed -i -e 's,^daemon_directory = .*,daemon_directory = %{_libdir}/postfix/sbin,' /etc/postfix/main.cf 2>/dev/null || :
393
394 %triggerpostun -- %{name} < 2:3.8.0-1
395 echo
396 echo "Warning! Option daemon_directory in file /etc/postfix/main.cf was set to"
397 echo "path %{_libdir}/postfix/sbin."
398 echo
399
400 %files
401 %defattr(644,root,root,755)
402 %doc html COMPATIBILITY HISTORY LICENSE RELEASE_NOTES* TLS_*
403 %doc README_FILES/*README
404 %doc examples/smtpd-policy
405 %dir %{_sysconfdir}/postfix
406 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/access
407 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/aliases
408 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/bounce.cf.default
409 %lang(de) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/bounce.cf.de
410 %lang(pl) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/bounce.cf.pl
411 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/canonical
412 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/generic
413 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/regexp_table
414 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/relocated
415 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/transport
416 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/virtual
417 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/header_checks
418 #%ghost %{_sysconfdir}/postfix/*.db
419 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/dynamicmaps.cf
420 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/main.cf
421 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/main.cf.proto
422 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/master.cf
423 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/postfix/master.cf.proto
424 %{_sysconfdir}/postfix/postfix-files
425 %attr(740,root,root) /etc/cron.daily/postfix
426 %attr(754,root,root) /etc/rc.d/init.d/postfix
427 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/postfix
428 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/smtp
429 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.smtp
430 %{?with_sasl:%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sasl/smtpd.conf}
431 %attr(755,root,root) %{_bindir}/mailq
432 %attr(755,root,root) %{_bindir}/newaliases
433 %attr(755,root,root) %{_bindir}/rmail
434 %attr(755,root,root) %{_sbindir}/postalias
435 %attr(755,root,root) %{_sbindir}/postcat
436 %attr(755,root,root) %{_sbindir}/postconf
437 %attr(2755,root,maildrop) %{_sbindir}/postdrop
438 %attr(755,root,root) %{_sbindir}/postfix
439 %attr(755,root,root) %{_sbindir}/postkick
440 %attr(755,root,root) %{_sbindir}/postlock
441 %attr(755,root,root) %{_sbindir}/postlog
442 %attr(755,root,root) %{_sbindir}/postmap
443 %attr(755,root,root) %{_sbindir}/postmulti
444 %attr(2755,root,maildrop) %{_sbindir}/postqueue
445 %attr(755,root,root) %{_sbindir}/postsuper
446 %attr(755,root,root) %{_sbindir}/sendmail
447 %attr(755,root,root) /usr/lib/sendmail
448 %dir %{_libdir}/postfix
449 %attr(755,root,root) %{_libdir}/postfix/libpostfix-dns.so
450 %attr(755,root,root) %{_libdir}/postfix/libpostfix-global.so
451 %attr(755,root,root) %{_libdir}/postfix/libpostfix-master.so
452 %attr(755,root,root) %{_libdir}/postfix/libpostfix-tls.so
453 %attr(755,root,root) %{_libdir}/postfix/libpostfix-util.so
454 %dir %{_libdir}/postfix/sbin
455 %attr(755,root,root) %{_libdir}/postfix/sbin/anvil
456 %attr(755,root,root) %{_libdir}/postfix/sbin/bounce
457 %attr(755,root,root) %{_libdir}/postfix/sbin/cleanup
458 %attr(755,root,root) %{_libdir}/postfix/sbin/discard
459 %attr(755,root,root) %{_libdir}/postfix/sbin/dnsblog
460 %attr(755,root,root) %{_libdir}/postfix/sbin/error
461 %attr(755,root,root) %{_libdir}/postfix/sbin/flush
462 %attr(755,root,root) %{_libdir}/postfix/sbin/lmtp
463 %attr(755,root,root) %{_libdir}/postfix/sbin/local
464 %attr(755,root,root) %{_libdir}/postfix/sbin/master
465 %attr(755,root,root) %{_libdir}/postfix/sbin/nqmgr
466 %attr(755,root,root) %{_libdir}/postfix/sbin/oqmgr
467 %attr(755,root,root) %{_libdir}/postfix/sbin/pickup
468 %attr(755,root,root) %{_libdir}/postfix/sbin/pipe
469 %attr(755,root,root) %{_libdir}/postfix/sbin/postfix-script
470 %attr(755,root,root) %{_libdir}/postfix/sbin/postfix-tls-script
471 %attr(755,root,root) %{_libdir}/postfix/sbin/postfix-wrapper
472 %attr(755,root,root) %{_libdir}/postfix/sbin/post-install
473 %attr(755,root,root) %{_libdir}/postfix/sbin/postlogd
474 %attr(755,root,root) %{_libdir}/postfix/sbin/postmulti-script
475 %attr(755,root,root) %{_libdir}/postfix/sbin/postscreen
476 %attr(755,root,root) %{_libdir}/postfix/sbin/proxymap
477 %attr(755,root,root) %{_libdir}/postfix/sbin/qmgr
478 %attr(755,root,root) %{_libdir}/postfix/sbin/qmqpd
479 %attr(755,root,root) %{_libdir}/postfix/sbin/scache
480 %attr(755,root,root) %{_libdir}/postfix/sbin/showq
481 %attr(755,root,root) %{_libdir}/postfix/sbin/smtp
482 %attr(755,root,root) %{_libdir}/postfix/sbin/smtpd
483 %attr(755,root,root) %{_libdir}/postfix/sbin/spawn
484 %attr(755,root,root) %{_libdir}/postfix/sbin/tlsmgr
485 %attr(755,root,root) %{_libdir}/postfix/sbin/tlsproxy
486 %attr(755,root,root) %{_libdir}/postfix/sbin/trivial-rewrite
487 %attr(755,root,root) %{_libdir}/postfix/sbin/verify
488 %attr(755,root,root) %{_libdir}/postfix/sbin/virtual
489 %attr(755,root,root) %dir %{_var}/spool/postfix
490 %attr(700,postfix,root) %dir %{_var}/spool/postfix/active
491 %attr(700,postfix,root) %dir %{_var}/spool/postfix/bounce
492 %attr(700,postfix,root) %dir %{_var}/spool/postfix/corrupt
493 %attr(700,postfix,root) %dir %{_var}/spool/postfix/defer
494 %attr(700,postfix,root) %dir %{_var}/spool/postfix/deferred
495 %attr(700,postfix,root) %dir %{_var}/spool/postfix/incoming
496 %attr(1730,postfix,maildrop) %dir %{_var}/spool/postfix/maildrop
497 %attr(755,root,root) %dir %{_var}/spool/postfix/pid
498 %attr(700,postfix,root) %dir %{_var}/spool/postfix/private
499 %attr(710,postfix,maildrop) %dir %{_var}/spool/postfix/public
500 %attr(700,postfix,root) %dir %{_var}/spool/postfix/saved
501 %attr(644,postfix,root) %{_var}/spool/postfix/.nofinger
502 %attr(700,postfix,root) %{_var}/lib/postfix
503 %{_mandir}/man1/mailq.1*
504 %{_mandir}/man1/newaliases.1*
505 %{_mandir}/man1/post*.1*
506 %{_mandir}/man1/sendmail.1*
507 %{_mandir}/man5/access.5*
508 %{_mandir}/man5/aliases.5*
509 %{_mandir}/man5/body_checks.5*
510 %{_mandir}/man5/bounce.5*
511 %{_mandir}/man5/canonical.5*
512 %{_mandir}/man5/cidr_table.5*
513 %{_mandir}/man5/generic.5*
514 %{_mandir}/man5/header_checks.5*
515 %{_mandir}/man5/lmdb_table.5*
516 %{_mandir}/man5/master.5*
517 %{_mandir}/man5/memcache_table.5*
518 %{_mandir}/man5/nisplus_table.5*
519 %{_mandir}/man5/postconf.5*
520 %{_mandir}/man5/postfix-wrapper.5*
521 %{_mandir}/man5/regexp_table.5*
522 %{_mandir}/man5/relocated.5*
523 %{_mandir}/man5/socketmap_table.5*
524 %{_mandir}/man5/tcp_table.5*
525 %{_mandir}/man5/transport.5*
526 %{_mandir}/man5/virtual.5*
527 %{_mandir}/man8/*.8*
528
529 %files devel
530 %defattr(644,root,root,755)
531 %{_includedir}/postfix
532
533 %if %{with cdb}
534 %files dict-cdb
535 %attr(755,root,root) %{_libdir}/postfix/postfix-cdb.so
536 %endif
537
538 %if %{with ldap}
539 %files dict-ldap
540 %defattr(644,root,root,755)
541 %attr(755,root,root) %{_libdir}/postfix/postfix-ldap.so
542 %{_mandir}/man5/ldap_table.5*
543 %endif
544
545 %if %{with lmdb}
546 %files dict-lmdb
547 %defattr(644,root,root,755)
548 %attr(755,root,root) %{_libdir}/postfix/postfix-lmdb.so
549 %{_mandir}/man5/lmdb_table.5*
550 %endif
551
552 %if %{with mysql}
553 %files dict-mysql
554 %defattr(644,root,root,755)
555 %attr(755,root,root) %{_libdir}/postfix/postfix-mysql.so
556 %{_mandir}/man5/mysql_table.5*
557 %endif
558
559 %files dict-pcre
560 %defattr(644,root,root,755)
561 %attr(755,root,root) %{_libdir}/postfix/postfix-pcre.so
562 %{_mandir}/man5/pcre_table.5*
563
564 %if %{with pgsql}
565 %files dict-pgsql
566 %defattr(644,root,root,755)
567 %attr(755,root,root) %{_libdir}/postfix/postfix-pgsql.so
568 %{_mandir}/man5/pgsql_table.5*
569 %endif
570
571 %if %{with sqlite}
572 %files dict-sqlite
573 %defattr(644,root,root,755)
574 %attr(755,root,root) %{_libdir}/postfix/postfix-sqlite.so
575 %{_mandir}/man5/sqlite_table.5*
576 %endif
577
578 %files qshape
579 %defattr(644,root,root,755)
580 %attr(755,root,root) %{_bindir}/qshape
581 %{_mandir}/man1/qshape.1*
582
583 %files -n monit-rc-%{name}
584 %defattr(644,root,root,755)
585 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc