55 Source3: rc.dovecot |
55 Source3: rc.dovecot |
56 Source4: dovecot.conf |
56 Source4: dovecot.conf |
57 Patch0: dovecot.patch |
57 Patch0: dovecot.patch |
58 |
58 |
59 # build information |
59 # build information |
60 Prefix: %{l_prefix} |
60 BuildPreReq: OpenPKG, openpkg >= 20100101, pkgconfig |
61 BuildRoot: %{l_buildroot} |
61 PreReq: OpenPKG, openpkg >= 20100101, MTA, x509 |
62 BuildPreReq: OpenPKG, openpkg >= 20060823 |
|
63 PreReq: OpenPKG, openpkg >= 20060823, MTA, x509 |
|
64 BuildPreReq: libiconv, openssl, zlib, bzip2 |
62 BuildPreReq: libiconv, openssl, zlib, bzip2 |
65 PreReq: libiconv, openssl, zlib, bzip2 |
63 PreReq: libiconv, openssl, zlib, bzip2 |
66 %if "%{with_fsl}" == "yes" |
64 %if "%{with_fsl}" == "yes" |
67 BuildPreReq: fsl |
65 BuildPreReq: fsl |
68 PreReq: fsl |
66 PreReq: fsl |
89 %endif |
87 %endif |
90 %if "%{with_sqlite}" == "yes" |
88 %if "%{with_sqlite}" == "yes" |
91 BuildPreReq: sqlite |
89 BuildPreReq: sqlite |
92 PreReq: sqlite |
90 PreReq: sqlite |
93 %endif |
91 %endif |
94 AutoReq: no |
|
95 AutoReqProv: no |
|
96 |
92 |
97 %description |
93 %description |
98 Dovecot is an Open Source IMAP and POP3 server, written with |
94 Dovecot is an Open Source IMAP and POP3 server, written with |
99 security primarily in mind. Dovecot is an excellent choice for both |
95 security primarily in mind. Dovecot is an excellent choice for both |
100 small and large installations. It's fast, simple to set up, requires |
96 small and large installations. It's fast, simple to set up, requires |
125 -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;g' \ |
121 -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;g' \ |
126 src/config/all-settings.c \ |
122 src/config/all-settings.c \ |
127 src/lib-lda/lda-settings.c |
123 src/lib-lda/lda-settings.c |
128 cppflags="%{l_cppflags}" |
124 cppflags="%{l_cppflags}" |
129 ldflags="%{l_ldflags} %{l_fsl_ldflags}" |
125 ldflags="%{l_ldflags} %{l_fsl_ldflags}" |
130 libs="%{l_fsl_libs}" |
126 libs="%{l_fsl_libs} `%{l_prefix}/bin/pkg-config --libs-only-l openssl`" |
131 sql_drivers="" |
127 sql_drivers="" |
132 %if "%{with_ldap}" == "yes" |
128 %if "%{with_ldap}" == "yes" |
133 libs="$libs -llber -lssl -lcrypto" |
129 ldflags="$ldflags `%{l_prefix}/bin/pkg-config --libs-only-L openldap`" |
|
130 libs="$libs `%{l_prefix}/bin/pkg-config --libs-only-l openldap`" |
134 %endif |
131 %endif |
135 %if "%{with_mysql}" == "yes" |
132 %if "%{with_mysql}" == "yes" |
136 cppflags="$cppflags %{l_cppflags mysql}" |
133 cppflags="$cppflags %{l_cppflags mysql}" |
137 ldflags="$ldflags %{l_ldflags mysql}" |
134 ldflags="$ldflags %{l_ldflags mysql}" |
138 %endif |
135 %endif |
139 %if "%{with_pgsql}" == "yes" |
136 %if "%{with_pgsql}" == "yes" |
140 libs="$libs -lssl -lcrypto -lcrypt" |
137 libs="$libs `%{l_prefix}/bin/pg_config --libs" |
141 %endif |
138 %endif |
142 sql_drivers=`echo "$sql_drivers" | sed 's;^,;;'` |
139 sql_drivers=`echo "$sql_drivers" | sed 's;^,;;'` |
143 CC="%{l_cc}" \ |
140 CC="%{l_cc}" \ |
144 CFLAGS="%{l_cflags -O}" \ |
141 CFLAGS="%{l_cflags -O}" \ |
145 CPPFLAGS="$cppflags" \ |
142 CPPFLAGS="$cppflags" \ |
280 '%dir %attr(0750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/dovecot/run/login' |
274 '%dir %attr(0750,%{l_susr},%{l_mgrp}) %{l_prefix}/var/dovecot/run/login' |
281 |
275 |
282 %files -f files |
276 %files -f files |
283 |
277 |
284 %clean |
278 %clean |
285 rm -rf $RPM_BUILD_ROOT |
|
286 |
279 |
287 %post |
280 %post |
288 # after upgrade, restart service |
281 # after upgrade, restart service |
289 [ $1 -eq 2 ] || exit 0 |
282 [ $1 -eq 2 ] || exit 0 |
290 eval `%{l_rc} dovecot status 2>/dev/null` |
283 eval `%{l_rc} dovecot status 2>/dev/null` |