]> git.pld-linux.org Git - packages/dovecot.git/blame - dovecot.spec
- HEAD merge:
[packages/dovecot.git] / dovecot.spec
CommitLineData
6865becd
JB
1#
2# Conditional build:
f4230487
JB
3%bcond_without ldap # without LDAP auth
4%bcond_without mysql # without MySQL auth
5%bcond_without pgsql # without PostgreSQL auth
b60b3e8a 6%bcond_without sqlite # without SQLite3 auth
f4230487 7%bcond_without sasl # without SASL auth
6865becd 8#
b8f6d56a 9Summary: IMAP and POP3 server written with security primarily in mind
7ad305a6 10Summary(pl.UTF-8): Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie
b8f6d56a 11Name: dovecot
5fb533fd 12Version: 1.0.10
e4a0e211
ER
13Release: 3
14License: MIT (libraries), LGPL v2.1 (the rest)
b8f6d56a 15Group: Networking/Daemons
5fb533fd 16Source0: http://dovecot.org/releases/1.0/%{name}-%{version}.tar.gz
17# Source0-md5: c050fa2a7dae8984d432595e3e8183e1
8d47df47
TO
18Source1: %{name}.pamd
19Source2: %{name}.init
20Source3: %{name}.sysconfig
21Patch0: %{name}-config.patch
5fb533fd 22#Patch1: %{name}-dspam-plugin.patch
027cb77c 23URL: http://dovecot.org/
0928494a
JB
24BuildRequires: autoconf
25BuildRequires: automake
f4230487 26%{?with_sasl:BuildRequires: cyrus-sasl-devel >= 2.0}
b7e03084 27BuildRequires: gettext-devel
5fb533fd 28#BuildRequires: krb5-devel
0928494a 29BuildRequires: libtool
f4230487 30%{?with_mysql:BuildRequires: mysql-devel}
5fb533fd 31%{?with_ldap:BuildRequires: openldap-devel >= 2.3.3}
6ceb4d17 32BuildRequires: openssl-devel >= 0.9.7d
6865becd 33BuildRequires: pam-devel
b7e03084 34BuildRequires: pkgconfig
f4230487 35%{?with_pgsql:BuildRequires: postgresql-devel}
930a78ad 36BuildRequires: sed >= 4.0
a0260ad9 37%{?with_sqlite:BuildRequires: sqlite3-devel}
8d47df47 38Requires(post,preun): /sbin/chkconfig
c1df1ed1
KK
39Requires(postun): /usr/sbin/groupdel
40Requires(postun): /usr/sbin/userdel
41Requires(pre): /bin/id
42Requires(pre): /usr/bin/getgid
43Requires(pre): /usr/sbin/groupadd
44Requires(pre): /usr/sbin/useradd
50c4e802 45Requires: pam >= 0.79.0
c1df1ed1
KK
46Provides: group(dovecot)
47Provides: user(dovecot)
8d47df47 48Provides: imapdaemon
b8f6d56a
JB
49BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51%description
52Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems,
53written with security primarily in mind. Although it's written with C,
54it uses several coding techniques to avoid most of the common
55pitfalls.
56
57Dovecot can work with standard mbox and maildir formats and it's fully
58compatible with UW-IMAP and Courier IMAP servers as well as mail
59clients accessing the mailboxes directly. It's also planned to support
60storing mails in SQL databases.
61
62Dovecot is easy to set up and doesn't require special maintenance.
63Only thing you need is to get the authentication working properly - if
64your users are in /etc/passwd there's hardly anything you have to do.
65
66Dovecot should be pretty fast, mostly because of index files that
67Dovecot maintains; instead of having to scan through all the data in
8d47df47
TO
68mailbox, Dovecot can get most of the wanted information from index
69with little effort.
b8f6d56a
JB
70
71Status:
ddfebb5d 72- should be quite ready for use with normal IMAP clients
3fcc147b
KK
73- complete IMAP4rev1 and POP3 support
74- supports THREAD, SORT and IDLE extensions, required by many IMAP
75 webmails
76- complete TLS/SSL support
ddfebb5d 77- IPv6 ready
78- shared mailboxes aren't yet supported
3fcc147b
KK
79- Maildir++ quota is supported, bad hard filesystem quota can be
80 problematic
b8f6d56a 81
db6f7644
JR
82%description -l pl.UTF-8
83Dovecot to serwer IMAP i POP3 dla systemów linuksowych/uniksowych,
84pisany głównie z myślą o bezpieczeństwie. Chociaż jest pisany w C,
85używa kilku technik kodowania zapobiegających większości popularnych
86pułapek.
0928494a 87
db6f7644
JR
88Dovecot może działać ze standardowymi formatami mbox i maildir, jest
89całkowicie kompatybilny z serwerami UW-IMAP i Courier IMAP, a także z
90klientami pocztowymi bezpośrednio dostającymi się do skrzynek.
91Planowana jest także obsługa przechowywania listów w bazach SQL.
0928494a 92
db6f7644
JR
93Dovecot jest łatwy do skonfigurowania i nie wymaga specjalnego
94nadzoru. Wystarczy tylko doprowadzić do działania uwierzytelnianie -
95jeśli użytkownicy są w /etc/passwd, to właściwie nie trzeba nic
96zmieniać.
0928494a 97
db6f7644 98Dovecot powinien być w miarę szybki, głównie z powodu plików
0928494a 99indeksowych utrzymywanych przez serwer; zamiast potrzeby skanowania
db6f7644
JR
100wszystkich danych w skrzynce, Dovecot może małym kosztem uzyskać
101większość potrzebnych informacji z indeksu.
0928494a
JB
102
103Stan:
db6f7644
JR
104- powinien być gotowy do użycia ze zwykłymi klientami IMAP
105- pełna obsługa IMAP4rev1 i POP3
106- obsługa rozszerzeń THREAD, SORT i IDLE, wymaganych przez wiele
3fcc147b 107 webmaili IMAP
db6f7644
JR
108- obsługa IPv6
109- pełna obsługa TLS/SSL
110- quota Maildir++ jest obsługiwana, ale twarda quota na systemach
111 plików może być problematyczna
0928494a 112
5fb533fd 113%package devel
e4a0e211
ER
114Summary: Development package for dovecot plugins
115Summary(pl.UTF-8): Pakiet programistyczny do tworzenia wtyczek dla dovecota
5fb533fd 116Group: Development/Libraries
e4a0e211 117# doesn't require base
5fb533fd 118
119%description devel
e4a0e211
ER
120Development package for dovecot plugins.
121
122%description devel -l pl.UTF-8
123Pakiet programistyczny do tworzenia wtyczek dla dovecota.
5fb533fd 124
b8f6d56a
JB
125%prep
126%setup -q
8d47df47 127%patch0 -p1
5fb533fd 128
3fcc147b 129%{__sed} -i 's,/usr/lib/dovecot,%{_libdir}/dovecot,g' dovecot-example.conf
b8f6d56a
JB
130
131%build
06cf0ac5 132touch config.rpath
b8f6d56a
JB
133%{__libtoolize}
134%{__aclocal}
135%{__autoconf}
136%{__autoheader}
137%{__automake}
6865becd 138%configure \
e4a0e211 139 --disable-static \
6865becd 140 %{?debug:--enable-debug} \
e4a0e211 141 --enable-header-install \
f4230487
JB
142 %{?with_ldap:--with-ldap} \
143 %{?with_mysql:--with-mysql} \
144 %{?with_pgsql:--with-pgsql} \
145 %{?with_sasl:--with-cyrus-sasl2} \
a0260ad9 146 %{?with_sqlite:--with-sqlite} \
e7291b43 147 --with-gssapi \
6865becd 148 --with-ssl=openssl \
c19c6ee3
AM
149 --with-ssl-dir=/var/lib/openssl \
150 --sysconfdir=/etc/%{name}
b8f6d56a
JB
151
152%{__make}
153
154%install
155rm -rf $RPM_BUILD_ROOT
8d47df47 156install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,sysconfig,security}
e7291b43
KK
157install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}
158install -d $RPM_BUILD_ROOT{/var/lib/dovecot,/var/run/dovecot/login}
b8f6d56a
JB
159
160%{__make} install \
442c32c1 161 moduledir=%{_libdir}/%{name}/plugins \
b8f6d56a
JB
162 DESTDIR=$RPM_BUILD_ROOT
163
c19c6ee3 164mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{dovecot-example.conf,dovecot.conf}
b8f6d56a 165
8d47df47
TO
166install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/%{name}
167install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
168install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
169
170touch $RPM_BUILD_ROOT/etc/security/blacklist.imap
171
e4a0e211 172rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins{,/imap}/*.la
5fb533fd 173
e4a0e211
ER
174# devel
175for dir in lib lib-imap lib-mail lib-storage; do
176 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/src/$dir
177 install -p -m644 src/$dir/*.a $RPM_BUILD_ROOT%{_libdir}/%{name}-devel/src/$dir
5fb533fd 178done
e4a0e211 179mv $RPM_BUILD_ROOT%{_libdir}/%{name}/dovecot-config $RPM_BUILD_ROOT%{_libdir}/%{name}-devel
5fb533fd 180
e4a0e211 181rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}/wiki
5fb533fd 182
b8f6d56a
JB
183%clean
184rm -rf $RPM_BUILD_ROOT
185
c1df1ed1
KK
186%pre
187%groupadd -g 172 dovecot
188%useradd -u 172 -d /usr/share/empty -s /bin/false -c "Dovecot server" -g dovecot dovecot
189
8d47df47
TO
190%post
191/sbin/chkconfig --add dovecot
192if [ -f /var/lock/subsys/dovecot ]; then
193 /etc/rc.d/init.d/dovecot restart >&2
194else
195 echo "Run \"/etc/rc.d/init.d/dovecot start\" to start dovecot daemon."
196fi
197
198%preun
199if [ "$1" = "0" ]; then
200 if [ -f /var/lock/subsys/dovecot ]; then
201 /etc/rc.d/init.d/dovecot stop >&2
202 fi
203 /sbin/chkconfig --del dovecot
204fi
205
c1df1ed1
KK
206%postun
207if [ "$1" = "0" ]; then
208 %userremove dovecot
209 %groupremove dovecot
210fi
211
b8f6d56a
JB
212%files
213%defattr(644,root,root,755)
214# COPYING contains some notes, not actual LGPL text
caf88cd1 215%doc AUTHORS COPYING ChangeLog NEWS README TODO doc/*.txt doc/*.c*f doc/wiki/*.txt
8d47df47 216%attr(755,root,root) %{_sbindir}/%{name}
442c32c1 217%attr(755,root,root) %{_sbindir}/%{name}pw
c19c6ee3
AM
218%attr(750,root,root) %dir %{_sysconfdir}/%{name}
219%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
c5c6a170 220%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{name}
221%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.imap
222%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
8d47df47 223%attr(754,root,root) /etc/rc.d/init.d/%{name}
e4a0e211 224%dir %{_libdir}/%{name}
5fb533fd 225%attr(755,root,root) %{_libdir}/%{name}/checkpassword-reply
226%attr(755,root,root) %{_libdir}/%{name}/deliver
227%attr(755,root,root) %{_libdir}/%{name}/dict
228%attr(755,root,root) %{_libdir}/%{name}/dovecot-auth
229%attr(755,root,root) %{_libdir}/%{name}/gdbhelper
230%attr(755,root,root) %{_libdir}/%{name}/idxview
231%attr(755,root,root) %{_libdir}/%{name}/imap
232%attr(755,root,root) %{_libdir}/%{name}/imap-login
233%attr(755,root,root) %{_libdir}/%{name}/logview
234%attr(755,root,root) %{_libdir}/%{name}/pop3
235%attr(755,root,root) %{_libdir}/%{name}/pop3-login
236%attr(755,root,root) %{_libdir}/%{name}/rawlog
237%attr(755,root,root) %{_libdir}/%{name}/ssl-build-param
e4a0e211 238%dir %{_libdir}/%{name}/plugins
5fb533fd 239%attr(755,root,root) %{_libdir}/%{name}/plugins/*.so
240%dir %{_libdir}/%{name}/plugins/imap
241%attr(755,root,root)%{_libdir}/%{name}/plugins/imap/*.so
242%dir %{_libdir}/%{name}/plugins/lda
243%attr(755,root,root) %{_libdir}/%{name}/plugins/lda/*.so
244%dir %{_libdir}/%{name}/plugins/pop3
245%attr(755,root,root) %{_libdir}/%{name}/plugins/pop3/*.so
e7291b43 246%dir /var/lib/dovecot
c1df1ed1
KK
247%dir /var/run/dovecot
248%attr(750,root,dovecot) %dir /var/run/dovecot/login
5fb533fd 249
250%files devel
251%defattr(644,root,root,755)
e4a0e211 252%{_libdir}/%{name}-devel
5fb533fd 253%{_includedir}/%{name}
This page took 0.058026 seconds and 4 git commands to generate.