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