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