1Name: mdpop3d
2Version: 0.97
3Release: 1
4Summary: Post Office Protocol v3 daemon for Maildirs
5Group: System/Daemons
6Source: ftp://ftp.corpit.ru/pub/mjt/%{name}-%{version}.tar.gz
7License: GPL
8BuildRoot: %{_tmppath}/%{name}-root
9Requires: pam /etc/pam.d/system-auth
10Packager: Michael Tokarev <mjt@corpit.ru>
11
12%description
13This is a simple and small POP3 daemon implementation designed for
14Maildir support.  It have direct support for authenticating regular
15unix users, has UIDL command support, can access maildirs in
16non-default location, and have support for external (pre-)authenticators.
17
18%changelog
19* Mon Feb 26 2001 Michael Tokarev <mjt@corpit.ru>
20- 0.97
21 - bug: my misinterpretation of rfc: top allows second arg to be zero,
22   mdpop3d refuses to accept numbers < 1
23 - do not log passwords in debug (-d) mode, reflect this in manpage
24 - some little reformatting (I use 100-chars line mode at home :)
25 - allow numbers (for msgno, linecount) to be greather (limit was 32768,
26  now it assumed to be according to bits in int type).
27
28* Tue Feb 06 2001 Michael Tokarev <mjt@corpit.ru>
29- 0.96
30 - bug: APOP implementation allows to use sniffed data to log in using USER/PASS.
31  corrected by disallowing password to start with "APOP ", maybe use other design
32  instead (e.g. set up seed in some pam_env item and a hash as a password)?
33 - added number of messages deleted in final log entry in additional to what's left.
34 - some more todo items... :)
35
36* Thu Jan 25 2001 Michael Tokarev <mjt@corpit.ru>
37- 0.95
38 - corrected problem with snprintf and bufsize < 0
39
40* Wed Jan 3 2001 Michael Tokarev <mjt@corpit.ru>
41- 0.94:
42 - PAM session management is in place.
43 - implemented rereading of username from PAM, as some module can change this.
44 - now allow $MAILDIR to be set inside PAM (command-line option still takes
45  precedence)
46 - Changed PAM code a bit to prevent possible (but very rare) accessing
47  removed data via conv.appdata_ptr (allocated on stack) in pam_end --
48  can pam_end call conversation function?!
49 - removed RFCs from distro - took more than 70% :)
50 - changed internal message structure (message list now contains pointers
51  to individual message descriptions, not descriptions themselfs) -- to
52  allow bigger message list
53 - used block memory allocator for message descriptions, to be more efficient
54  in memory allocation
55 - modified slightly new/ => cur/ moving code, it's more reliable now
56 - implemented -h (help) option
57 - changed copyright notice to be more GPL-like
58 - added `-c' option - commit maildir updates on timeout/lost connection,
59  to help with broken clients on slow dialup links.
60
61* Sun Dec 17 2000 Michael Tokarev <mjt@corpit.ru>
62- 0.93.  mdpop3d now uses error message from pam when
63  reporting "Login incorrect" condition.
64
65* Sun Dec 12 2000 Michael Tokarev <mjt@corpit.ru>
66- 0.92.  Implemented optional APOP command (need PAM module).
67
68* Sat Dec  9 2000 Michael Tokarev <mjt@corpit.ru>
69- 0.91.  Implemented CAPA command.
70
71* Wed Nov 29 2000 Michael Tokarev <mjt@corpit.ru>
72- some little tweaks; %{version}
73- first public v0.8
74
75* Sun Oct 29 2000 Michael Tokarev <mjt@corpit.ru>
76- initial release
77
78%prep
79%setup
80
81%build
82make CFLAGS="${RPM_OPT_FLAGS}" DEFS=-DUSE_PAM LIBS=-lpam OPTS=-DUSE_APOP
83
84%install
85rm -rf $RPM_BUILD_ROOT
86mkdir -p $RPM_BUILD_ROOT{%{_mandir}/man8,%{_sbindir},/etc/pam.d}
87cp %{name} $RPM_BUILD_ROOT%{_sbindir}/in.%{name}
88cp -p %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/in.%{name}.8
89ln -s in.%{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
90cp -p pop3.pamd $RPM_BUILD_ROOT/etc/pam.d/pop3
91
92%files
93%defattr(-,root,root)
94%{_sbindir}/*
95%{_mandir}/man8/*
96%config /etc/pam.d/pop3
97
98%clean
99rm -rf $RPM_BUILD_ROOT
100