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