%define oldname gnu-pop3d %define name vm-pop3d %define version 1.1.6 %define release 2mdk Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Networking/Other Source0: ftp://ftp.nodomainname.net/pub/gnu-pop3d/current/%{name}-%{version}.tar.bz2 Source1: %{name}-xinetd.bz2 Patch0: %{name}-popbsmtp.patch.bz2 Summary: Virtualmail-pop3d, fork of gnu-pop3d URL: http://www.reedmedia.net/software/virtualmail-pop3d/ Prereq: rpm-helper Requires: xinetd Obsoletes: ids-pop3d %{oldname} Provides : ids-pop3d %{oldname} BuildRequires: pam-devel BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description The GNU POP3 server, or GNU POP. This is a small, fast, efficent POP3 server. It aims to be fully RFC compliant. Please read the file README.rpm in this packages doc directory for more information. %prep %setup -q %patch -p0 -b .popbsmtp %build %configure --enable-pam %make CFLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT %makeinstall install -D -m644 %{name}.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/%{name} #install -D -m755 %{name}.init $RPM_BUILD_ROOT%{_initrddir}/%{name} bzcat %{SOURCE1} > %{name}-xinetd; install -D -m644 %{name}-xinetd $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/%{name} %post %_post_service %{name} %preun %_preun_service %{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-,root,root) %doc README AUTHORS TODO INSTALL RFC* %{_sbindir}/* %{_mandir}/man8/* #%config %{_initrddir}/%{name} %config(noreplace) %{_sysconfdir}/xinetd.d/%{name} %config(noreplace) %{_sysconfdir}/pam.d/%{name} %changelog * Mon Aug 04 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.1.6-2mdk - rebuild - drop /sbin/chkconfig from PreReq * Sat Jan 25 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.1.6-1mdk - gnu-pop3d is no longer maintaned, vm-pop3d is a fork of gnu-pop3d - Use correct optimize flags - Cleanups - Updated Patch #0 - Run from xinetd instead of running as a daemon * Fri Jan 17 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-7mdk - rebuild * Thu Feb 14 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-6mdk - Patch to log IP for pop-before-smtp from Ryan (from Todd) * Thu Jul 19 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-5mdk - rebuild * Wed Jan 10 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-4mdk - rebuild * Fri Sep 01 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-3mdk - BM - macros * Thu Apr 27 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.9.8-2mdk - fix group * Wed Feb 16 2000 Lenny Cartier <lenny@mandrakesoft.com> - v0.9.8 - used srpm provided by Geoffrey Lee <snailtalk@linux-mandrake.com> * Wed Feb 04 2000 Geoffrey Lee <snailtalk@linux-mandrake.com> - forgot to handle bz2 last time... * Wed Feb 02 2000 Geoffrey Lee <snailtalk@linux-mandrake.com> - Rebuilt for Mandrake * Wed Mar 31 1999 Edgard Castro <castro@usmatrix.net> - Added support to Linux PAM library - Using a new init script - Major revamp on spec file - Discarding all symbols from the executable - Changed CFLAGS to use $RPM_OPT_FLAGS - Using chkconfig to create init entriess - Added default attributes when installing files