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