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