forked from pool/fetchmail
339 lines
11 KiB
RPMSpec
339 lines
11 KiB
RPMSpec
#
|
|
# spec file for package fetchmail (Version 6.3.5)
|
|
#
|
|
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: fetchmail
|
|
BuildRequires: dante-devel ed krb5-devel openssl-devel opie postfix procmail python-devel rsaref
|
|
License: Other License(s), see package
|
|
Group: Productivity/Networking/Email/Utilities
|
|
Autoreqprov: on
|
|
Version: 6.3.5
|
|
Release: 4
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source1: %{name}.init
|
|
Source2: %{name}.logrotate
|
|
Source3: sysconfig.%{name}
|
|
Patch: fm635-daemon-logfile.patch
|
|
%if %suse_version > 800
|
|
PreReq: %insserv_prereq %fillup_prereq coreutils
|
|
%endif
|
|
URL: http://fetchmail.berlios.de/
|
|
Icon: fetchmail.xpm
|
|
Requires: smtp_daemon
|
|
Provides: fetchml pop:/usr/bin/fetchmail
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: Full-Featured POP and IMAP Mail Retrieval Daemon
|
|
Obsoletes: fetchml
|
|
|
|
%description
|
|
Fetchmail is a robust and well-documented remote mail retrieval and
|
|
forwarding utility intended to be used over on-demand TCP/IP links
|
|
(such as SLIP or PPP connections).
|
|
|
|
Fetchmail retrieves mail from remote mail servers and forwards it to
|
|
your local machine's delivery system, so it can be read by normal mail
|
|
user agents, such as mutt, elm, pine, (x)emacs/gnus, or mailx.
|
|
|
|
fetchmailconf, an interactive GUI configurator suitable for end-users,
|
|
is included in the fetchmailconf package.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Eric S. Raymond <esr@snark.thyrsus.com>
|
|
Matthias Andree <matthias.andree@gmx.de>
|
|
Carl E. Harris <ceharris@mal.com>
|
|
George M. Sipe <gsipe@pobox.com>
|
|
Sunil Shetye <shetye@bombay.retortsoft.com>
|
|
|
|
%package -n fetchmailconf
|
|
Summary: Fetchmail Configuration Utility
|
|
Group: Productivity/Networking/Email/Utilities
|
|
Requires: fetchmail = %{version} python python-tk
|
|
Provides: fetchmcf fetchml:/usr/bin/fetchmailconf
|
|
Obsoletes: fetchmcf
|
|
|
|
%description -n fetchmailconf
|
|
A GUI configuration utility for generating fetchmail configuration
|
|
files (.fetchmailrc).
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Eric S. Raymond <esr@snark.thyrsus.com>
|
|
Matthias Andree <matthias.andree@gmx.de>
|
|
Carl E. Harris <ceharris@mal.com>
|
|
George M. Sipe <gsipe@pobox.com>
|
|
Sunil Shetye <shetye@bombay.retortsoft.com>
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch
|
|
%{?suse_update_config}
|
|
cp -a %{S:1} %{S:2} %{S:3} .
|
|
|
|
%build
|
|
aclocal -I m4 -I m4-local
|
|
autoconf
|
|
automake -acf
|
|
if [ -f /usr/%_lib/libkrb5.so ] ; then
|
|
GSS="--with-gssapi"
|
|
else
|
|
GSS=""
|
|
fi
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
./configure --prefix=/usr \
|
|
--enable-POP2 \
|
|
--enable-RPA \
|
|
--enable-NTLM \
|
|
--enable-SDPS \
|
|
--enable-opie \
|
|
--mandir=%{_mandir} \
|
|
--infodir=%{_infodir} \
|
|
--sysconfdir=/etc \
|
|
--sharedstatedir=/var \
|
|
--with-socks \
|
|
$GSS \
|
|
--with-ssl=/usr
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
|
|
ln -sf fetchmail.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/fetchmailconf.1.gz
|
|
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
|
|
cp fetchmail.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/fetchmail
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
cp fetchmail.init $RPM_BUILD_ROOT/etc/init.d/fetchmail
|
|
chmod +x $RPM_BUILD_ROOT/etc/init.d/fetchmail
|
|
ln -s ../etc/init.d/fetchmail $RPM_BUILD_ROOT/sbin/rcfetchmail
|
|
touch $RPM_BUILD_ROOT/etc/fetchmailrc
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
cp sysconfig.%{name} $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
mkdir -p $RPM_BUILD_ROOT/var/log
|
|
touch $RPM_BUILD_ROOT/var/log/fetchmail
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/fetchmail
|
|
|
|
%pre
|
|
usr/sbin/useradd -r -o -g daemon -s /bin/false \
|
|
-c "mail retrieval daemon" -d /var/lib/fetchmail fetchmail 2>/dev/null || :
|
|
|
|
%post
|
|
%{fillup_and_insserv}
|
|
# Ensure that all files are readable by fetchmail with non-root UID.
|
|
touch var/log/fetchmail
|
|
chown fetchmail var/log/fetchmail
|
|
if test -f etc/fetchmailrc ; then
|
|
chown fetchmail etc/fetchmailrc
|
|
fi
|
|
chmod 0600 var/log/fetchmail
|
|
|
|
%postun
|
|
%{insserv_cleanup}
|
|
if [ $1 == 0 ]; then
|
|
rm -rf var/lib/fetchmail
|
|
fi
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc COPYING FAQ FEATURES NEWS NOTES OLDNEWS README README.NTLM README.SSL TODO contrib *.html *.txt *.pdf
|
|
%doc %{_mandir}/man1/fetchmail.1.gz
|
|
/usr/bin/fetchmail
|
|
/usr/share/locale/*/LC_MESSAGES/fetchmail.mo
|
|
/etc/logrotate.d/fetchmail
|
|
/etc/init.d/fetchmail
|
|
%ghost %config(noreplace) %attr (0600, fetchmail, root) /etc/fetchmailrc
|
|
/sbin/rcfetchmail
|
|
/var/adm/fillup-templates/sysconfig.%{name}
|
|
%ghost %attr (0600, fetchmail, root) /var/log/fetchmail
|
|
%dir %attr (0700, fetchmail, root) /var/lib/fetchmail
|
|
|
|
%files -n fetchmailconf
|
|
%defattr(-, root, root)
|
|
/usr/bin/fetchmailconf
|
|
/usr/%_lib/python*/site-packages/fetchmailconf.*
|
|
%doc %{_mandir}/man1/fetchmailconf.1.gz
|
|
|
|
%changelog -n fetchmail
|
|
* Wed Oct 25 2006 - sbrabec@suse.cz
|
|
- Fixed problems caused by calling daemon as non-root (#207305).
|
|
* Mon Oct 23 2006 - sbrabec@suse.cz
|
|
- Updated to version 6.3.5:
|
|
* Bug fixes.
|
|
* Translation updates.
|
|
* Logging behavior changes.
|
|
* fetchmail now supports foo@example.org=bar user mappings for
|
|
multidrop boxes.
|
|
* Bouncing improvements.
|
|
* Improved IMAP and SDPS behavior.
|
|
* See NEWS for deprecated features and major incompatible change
|
|
advance warnings.
|
|
* Sat Oct 21 2006 - schwab@suse.de
|
|
- Run automake.
|
|
* Thu Jun 01 2006 - sbrabec@suse.cz
|
|
- By default run as non-root user fetchmail (159764#c1).
|
|
- Implemented "oneshot" in the init script (159764#c8).
|
|
* Mon Apr 03 2006 - sbrabec@suse.cz
|
|
- Backported fixes for two crashes (159764#c9, 159764#c10).
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Mon Jan 23 2006 - sbrabec@suse.cz
|
|
- Updated to version 6.3.2 (fixes CVE-2006-0321).
|
|
* Tue Jan 10 2006 - sbrabec@suse.cz
|
|
- Updated to version 6.3.1 (fixes #140475).
|
|
* Mon Dec 05 2005 - sbrabec@suse.cz
|
|
- Updated to version 6.3.0 (fixes #131232).
|
|
* Wed Jul 27 2005 - sbrabec@suse.cz
|
|
- Updated to version 6.2.5.2 (#97555).
|
|
* Mon Apr 25 2005 - sbrabec@suse.cz
|
|
- Prevent lost mails with NULL envelope (#80331).
|
|
* Thu Feb 03 2005 - ro@suse.de
|
|
- fix build on older distributions
|
|
* Wed Jan 19 2005 - sbrabec@suse.cz
|
|
- Turned on GSSAPI, SOCKS and RSAREF support.
|
|
- Fixed implicit declaration and random result warnings.
|
|
* Fri Sep 24 2004 - sbrabec@suse.cz
|
|
- Added more sysconfig options for init script.
|
|
* Thu Sep 16 2004 - aj@suse.de
|
|
- Remove wrong definition.
|
|
* Tue Aug 31 2004 - sbrabec@suse.cz
|
|
- Added sendmail to Required-Start/Stop (#44500).
|
|
* Wed May 05 2004 - sbrabec@suse.cz
|
|
- Added sysconfig variable for polling interval (#39777).
|
|
- Init script adapted to conform latest LSB.
|
|
* Tue Apr 27 2004 - ro@suse.de
|
|
- fix missing return value in pop2.c
|
|
* Tue Mar 30 2004 - sbrabec@suse.cz
|
|
- Added /etc/fetchmailrc to file list.
|
|
* Thu Mar 25 2004 - mmj@suse.de
|
|
- Add postfix to # neededforbuild
|
|
* Wed Mar 10 2004 - sbrabec@suse.cz
|
|
- Set fetchsizelimit for APOP and RPOP (bug #35555).
|
|
http://lists.ccil.org/pipermail/fetchmail-friends/2003-October/003958.html
|
|
* Wed Feb 04 2004 - sbrabec@suse.cz
|
|
- Updated to version 6.2.5.
|
|
* Sat Jan 10 2004 - adrian@suse.de
|
|
- add %%defattr
|
|
* Thu Oct 23 2003 - kukuk@suse.de
|
|
- Remove wrong requires
|
|
* Thu Aug 07 2003 - sbrabec@suse.cz
|
|
- Updated to version 6.2.3.
|
|
* Tue May 20 2003 - mmj@suse.de
|
|
- Fix typo
|
|
* Wed Mar 26 2003 - sbrabec@suse.cz
|
|
- Updated to version 6.2.2.
|
|
- Created startup script.
|
|
* Thu Jan 16 2003 - sbrabec@suse.cz
|
|
- Updated to version 6.2.1.
|
|
* Fri Dec 13 2002 - mmj@suse.de
|
|
- Update to 6.2.0 which has security fix for rfc822.c and some
|
|
translations plus an SMTP timeout patch
|
|
* Tue Dec 10 2002 - sbrabec@suse.cz
|
|
- Updated to version 6.1.3.
|
|
* Wed Nov 20 2002 - sbrabec@suse.cz
|
|
- Spec file cleanup (bug #21912).
|
|
* Thu Oct 24 2002 - sbrabec@suse.cz
|
|
- Update to version 6.1.1.
|
|
* Tue Oct 01 2002 - sbrabec@suse.cz
|
|
- Removed --with-included-gettext and re-enabled NLS.
|
|
- OPIE/OTP fixes.
|
|
- Spec file cleanup.
|
|
* Fri Sep 27 2002 - mmj@suse.de
|
|
- Update to 6.1.0 including since 5.9.13:
|
|
o Support for STARTTLS over IMAP
|
|
o Cleanups and bugfixes
|
|
o Translation update
|
|
o Fix for potential remote vulnerability in multidrop mode,
|
|
which according to the author is an important security fix.
|
|
* Mon Jul 29 2002 - jreuter@suse.de
|
|
- more spec file cleanup
|
|
* Mon Jul 29 2002 - jreuter@suse.de
|
|
- added /etc/logrotate.d/fetchmail (Bugzilla #17279)
|
|
- spec file cleanup
|
|
* Fri Jul 19 2002 - jreuter@suse.de
|
|
- removed /usr/share/locale/*/LC_MESSAGES/fetchmail.mo from file list
|
|
* Wed Jul 17 2002 - jreuter@suse.de
|
|
- updated to version 5.9.13
|
|
- disabled NLS support because it doesn't compile and esr is about
|
|
to remove it anyway
|
|
- complete changelog: http://tuxedo.org/~esr/fetchmail/NEWS
|
|
* Sat Mar 23 2002 - kukuk@suse.de
|
|
- Fix fetchmailconf (wrong python widget destroy calls) [Bug #15391]
|
|
* Mon Sep 17 2001 - bjacke@suse.de
|
|
- minor fixes in README.SUSE
|
|
* Thu Aug 16 2001 - bjacke@suse.de
|
|
- update to 5.9.0
|
|
* Thu Jul 12 2001 - bjacke@suse.de
|
|
- update to 5.8.14
|
|
* Fri Jun 15 2001 - bjacke@suse.de
|
|
- patch to prevent buffer overflow due to long headers
|
|
* Tue Apr 03 2001 - bjacke@suse.de
|
|
- update to 5.8.0
|
|
* Thu Mar 22 2001 - ro@suse.de
|
|
- added split-aliases as provides
|
|
* Wed Feb 14 2001 - bjacke@suse.de
|
|
- updated to 5.6.5 (fixes #6245)
|
|
- fix fetchmailconf nospambounce problem
|
|
- enable RPA protocol
|
|
* Fri Jan 05 2001 - bjacke@suse.de
|
|
- disabled IPv6 support for the time being to fix bug #5111
|
|
* Wed Dec 20 2000 - garloff@suse.de
|
|
- pass --enable-NTLM to configure in order to enable M$ Exchange
|
|
compatible auth proto
|
|
- explicitly specify the directories with --mandir etc ...
|
|
- Use DESTDIR= instead of prefix to pass RPM_BUILD_ROOT
|
|
- add %%{?suse_update_config}
|
|
* Mon Dec 18 2000 - bjacke@suse.de
|
|
- some spec file fixes
|
|
* Mon Dec 18 2000 - ro@suse.de
|
|
- Fix requires for fetchmailconf (again)
|
|
* Mon Dec 18 2000 - bjacke@suse.de
|
|
- merged ssl stuff from fetchmailssl to fetchmail package
|
|
* Wed Nov 29 2000 - bjacke@suse.de
|
|
- updated to 5.6.0
|
|
- adjust README to new boot concept
|
|
* Fri Nov 10 2000 - bjacke@suse.de
|
|
- updated to version 5.5.5
|
|
- switched to long names
|
|
- added README.SuSE
|
|
* Sun Sep 03 2000 - bjacke@suse.de
|
|
- update to fetchmail-5.5.1
|
|
* Tue May 23 2000 - bk@suse.de
|
|
- moved fetchmailconf man page to subpackage fetchmcf
|
|
* Mon May 15 2000 - bk@suse.de
|
|
- update to fetchmail-5.4.0, new major version.
|
|
* Wed Mar 01 2000 - werner@suse.de
|
|
- Fix config.guess selection
|
|
* Thu Feb 24 2000 - dipa@suse.de
|
|
- update to fetchmail-5.3. update to fetchmail-5.3.00
|
|
* Tue Feb 15 2000 - bk@suse.de
|
|
- update to fetchmail-5.2.8, that's the code freeze release for 5.3.0
|
|
* Tue Feb 08 2000 - bk@suse.de
|
|
- update to fetchmail-5.2.7, Eric's changelog to 5.2.6 is very small:
|
|
* Updated FAQ and
|
|
* Updated es.po.
|
|
* Disable mail notification on server unreachable. This turned out to
|
|
be a very bad idea.
|
|
* Tue Feb 01 2000 - ro@suse.de
|
|
- specfile typo
|
|
* Tue Feb 01 2000 - ro@suse.de
|
|
- create man directory
|
|
* Mon Jan 31 2000 - bk@suse.de
|
|
- restarted spec from package-provided spec, subpackages fetchmcf (fetchmailconf)
|
|
* Wed Oct 20 1999 - bk@suse.de
|
|
- split-off from pop, update to 5.1.2
|