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