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