]>
Commit | Line | Data |
---|---|---|
c8a16646 | 1 | Summary: Courier-IMAP 0.18 IMAP server |
2 | Name: courier-imap | |
810a1c68 | 3 | Version: 0.22 |
c8a16646 | 4 | Release: 1 |
5 | Copyright: GPL | |
6 | Group: Applications/Mail | |
55311f1f | 7 | Source0: http://www.inter7.com/courierimap/%{name}-%{version}.tar.gz |
8 | Source1: %{name}.initd | |
9 | Source2: %{name}.pamd | |
10 | Source3: %{name}.sysconfig | |
c8a16646 | 11 | URL: http://www.inter7.com/courierimap/ |
12 | BuildRoot: /tmp/%{name}-%{version}-root | |
55311f1f | 13 | Provides: imapdaemon |
14 | Obsoletes: imapdaemon | |
15 | ||
00f6b10b | 16 | %define _libexecdir /usr/lib/courier-imap |
f727c71b | 17 | |
18 | %description | |
19 | Courier-IMAP is an IMAP server for Maildir mailboxes. | |
20 | ||
21 | %prep | |
c8a16646 | 22 | %setup -q |
f727c71b | 23 | %build |
55311f1f | 24 | LDFLAGS="-s"; export LDFLAGS |
25 | %configure \ | |
26 | --with-authvchkpw | |
f727c71b | 27 | make |
f727c71b | 28 | |
55311f1f | 29 | %install |
f727c71b | 30 | rm -rf $RPM_BUILD_ROOT |
55311f1f | 31 | install -d $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d,security,sysconfig} |
f727c71b | 32 | |
55311f1f | 33 | make install DESTDIR=$RPM_BUILD_ROOT |
f727c71b | 34 | |
55311f1f | 35 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap |
36 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/imap | |
37 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/courier-imap | |
f727c71b | 38 | |
55311f1f | 39 | mv imap/README README.imap |
40 | mv maildir/README.maildirquota.txt README.maildirquota | |
41 | ||
00f6b10b | 42 | rm -rf $RPM_BUILD_ROOT%{_mandir}/man8/{authcram,authpam,authpwd,authshadow,authuserdb,authvchkpw,pw2userdb,vchkpw2userdb}.8 |
55311f1f | 43 | |
44 | echo ".so authlib.8" >>$RPM_BUILD_ROOT%{_mandir}/man8/authcram.8 | |
45 | echo ".so authlib.8" >>$RPM_BUILD_ROOT%{_mandir}/man8/authpam.8 | |
46 | echo ".so authlib.8" >>$RPM_BUILD_ROOT%{_mandir}/man8/authpwd.8 | |
47 | echo ".so authlib.8" >>$RPM_BUILD_ROOT%{_mandir}/man8/authshadow.8 | |
48 | echo ".so authlib.8" >>$RPM_BUILD_ROOT%{_mandir}/man8/authuserdb.8 | |
49 | echo ".so authlib.8" >>$RPM_BUILD_ROOT%{_mandir}/man8/authvchkpw.8 | |
00f6b10b | 50 | echo ".so makeuserdb.8" >>$RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8 |
51 | echo ".so makeuserdb.8" >>$RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8 | |
55311f1f | 52 | |
53 | gzip -9nf $RPM_BUILD_ROOT%{_mandir}/*/* README* imap/BUGS AUTHORS COPYING | |
54 | ||
55 | touch $RPM_BUILD_ROOT/etc/security/blacklist.courier-imap | |
f727c71b | 56 | |
57 | %post | |
58 | /sbin/chkconfig --add courier-imap | |
59 | ||
55311f1f | 60 | if [ -f /var/lock/subsys/courier-imap ]; then |
61 | /etc/rc.d/init.d/courier-imap restart >&2 | |
62 | else | |
63 | echo "Run \"/etc/rc.d/init.d/courier-imap start\" to start courier-imap daemon." | |
64 | fi | |
f727c71b | 65 | |
55311f1f | 66 | %preun |
67 | if [ "$1" = "0" ]; then | |
7ff18212 | 68 | if [ -f /var/lock/subsys/courier-imap ]; then |
69 | /etc/rc.d/init.d/courier-imap stop >&2 | |
70 | fi | |
f727c71b | 71 | /sbin/chkconfig --del courier-imap |
72 | fi | |
73 | ||
55311f1f | 74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
f727c71b | 76 | |
55311f1f | 77 | %files |
c8a16646 | 78 | %defattr(644,root,root,755) |
55311f1f | 79 | %doc {AUTHORS,COPYING,imap/BUGS,README,README.imap,README.maildirquota}.gz |
80 | %attr(640,root,root) %config /etc/pam.d/imap | |
81 | %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/security/blacklist.courier-imap | |
82 | %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/courier-imap | |
83 | %attr(754,root,root) /etc/rc.d/init.d/courier-imap | |
00f6b10b | 84 | %dir %{_libexecdir} |
85 | %dir %{_libexecdir}/authlib | |
55311f1f | 86 | %attr(755,root,root) %{_bindir}/* |
00f6b10b | 87 | %attr(755,root,root) %{_sbindir}/* |
88 | %attr(755,root,root) %{_libexecdir}/authlib/* | |
89 | %attr(755,root,root) %{_libexecdir}/couriertcpd | |
90 | %attr(755,root,root) %{_libexecdir}/deliverquota | |
91 | %attr(755,root,root) %{_libexecdir}/logger | |
92 | %attr(755,root,root) %{_libexecdir}/makedatprog | |
55311f1f | 93 | %{_mandir}/*/* |