2007-01-16 00:12:14 +01:00
|
|
|
#
|
2011-06-06 16:30:41 +02:00
|
|
|
# spec file for package fetchmail
|
2007-01-16 00:12:14 +01:00
|
|
|
#
|
2012-07-04 11:07:32 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:12:14 +01:00
|
|
|
#
|
2008-08-23 00:22:38 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:12:14 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-07-04 11:07:32 +02:00
|
|
|
|
2007-01-16 00:12:14 +01:00
|
|
|
Name: fetchmail
|
2011-12-02 20:02:08 +01:00
|
|
|
BuildRequires: automake
|
2011-06-06 16:30:41 +02:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: opie
|
|
|
|
BuildRequires: postfix
|
|
|
|
BuildRequires: procmail
|
|
|
|
BuildRequires: pwdutils
|
|
|
|
BuildRequires: python-devel
|
2008-11-17 16:48:38 +01:00
|
|
|
%if 0%{?suse_version} > 1000
|
|
|
|
%define with_krb5 1
|
|
|
|
%endif
|
|
|
|
%if 0%{?with_krb5}
|
2008-10-06 17:33:50 +02:00
|
|
|
BuildRequires: krb5-devel
|
|
|
|
%endif
|
2012-12-20 11:21:30 +01:00
|
|
|
Version: 6.3.23
|
2011-12-02 20:02:08 +01:00
|
|
|
Release: 0
|
2011-06-06 16:30:41 +02:00
|
|
|
Summary: Full-Featured POP and IMAP Mail Retrieval Daemon
|
2012-07-04 11:07:32 +02:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:12:14 +01:00
|
|
|
Group: Productivity/Networking/Email/Utilities
|
2012-07-04 11:07:32 +02:00
|
|
|
Url: http://fetchmail.berlios.de/
|
Accepting request 133601 from home:vitezslav_cizek:branches:server:mail
- update to 6.3.22
# SECURITY FIXES
* CVE-2012-3482 (bnc#775988)
* CVE-2011-3389
# BUG FIX
* The Server certificate: message in verbose mode now appears on stdout like the
remainder of the output. Reported by Henry Jensen, to fix Debian Bug #639807.
* The GSSAPI-related autoconf code now matches gssapi.c better, and uses
a different check to look for GSS_C_NT_HOSTBASED_SERVICE.
This fixes the GSSAPI-enabled build on NetBSD 6 Beta.
# CHANGES
* The security and errata notices fetchmail-{EN,SA}-20??-??.txt are now
under the more relaxed CC BY-ND 3.0 license (the noncommercial clause
was dropped). The Creative Commons address was updated.
* The Python-related Makefile.am parts were simplified to avoid an automake
1.11.X bug around noinst_PYTHON, Automake Bug #10995.
* Configuring fetchmail without SSL now triggers a configure warning,
and asks the user to consider running configure --with-ssl.
# WORKAROUNDS
* Some servers, notably Zimbra, return A1234 987 FETCH () in response to
a header request, in the face of message corruption. fetchmail now treats
these as temporary errors. Report and Patch by Mikulas Patocka, Red Hat.
* Some servers, notably Microsoft Exchange, return "A0009 OK FETCH completed."
without any header in response to a header request for meeting reminder
messages (with a "meeting.ics" attachment). fetchmail now treats these as
transient errors. Report by John Connett, Patch by Sunil Shetye.
OBS-URL: https://build.opensuse.org/request/show/133601
OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=42
2012-09-18 20:01:54 +02:00
|
|
|
# The fetchmail-{EN,SA}-*.txt security advisories
|
|
|
|
# were relicensed to CC BY-ND 3.0, so there's no need
|
|
|
|
# to repack the tarball without them anymore (bnc#713698)
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2007-01-16 00:12:14 +01:00
|
|
|
Source1: %{name}.init
|
|
|
|
Source2: %{name}.logrotate
|
|
|
|
Source3: sysconfig.%{name}
|
2009-08-10 17:49:38 +02:00
|
|
|
Patch0: fetchmail-6.3.8-smtp_errors.patch
|
2011-06-06 16:30:41 +02:00
|
|
|
PreReq: %fillup_prereq
|
|
|
|
PreReq: %insserv_prereq
|
|
|
|
PreReq: coreutils
|
|
|
|
PreReq: pwdutils
|
|
|
|
Requires: logrotate
|
2012-07-04 11:07:32 +02:00
|
|
|
Suggests: smtp_daemon
|
2007-01-16 00:12:14 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-06-06 16:30:41 +02:00
|
|
|
Icon: fetchmail.xpm
|
2007-01-16 00:12:14 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package -n fetchmailconf
|
|
|
|
Summary: Fetchmail Configuration Utility
|
2012-07-04 11:07:32 +02:00
|
|
|
Group: Productivity/Networking/Email/Utilities
|
2011-06-06 16:30:41 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: python-tk
|
2007-01-16 00:12:14 +01:00
|
|
|
|
|
|
|
%description -n fetchmailconf
|
|
|
|
A GUI configuration utility for generating fetchmail configuration
|
|
|
|
files (.fetchmailrc).
|
|
|
|
|
|
|
|
%prep
|
2011-08-30 11:54:56 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2009-08-10 17:49:38 +02:00
|
|
|
%patch0 -p1
|
Accepting request 133601 from home:vitezslav_cizek:branches:server:mail
- update to 6.3.22
# SECURITY FIXES
* CVE-2012-3482 (bnc#775988)
* CVE-2011-3389
# BUG FIX
* The Server certificate: message in verbose mode now appears on stdout like the
remainder of the output. Reported by Henry Jensen, to fix Debian Bug #639807.
* The GSSAPI-related autoconf code now matches gssapi.c better, and uses
a different check to look for GSS_C_NT_HOSTBASED_SERVICE.
This fixes the GSSAPI-enabled build on NetBSD 6 Beta.
# CHANGES
* The security and errata notices fetchmail-{EN,SA}-20??-??.txt are now
under the more relaxed CC BY-ND 3.0 license (the noncommercial clause
was dropped). The Creative Commons address was updated.
* The Python-related Makefile.am parts were simplified to avoid an automake
1.11.X bug around noinst_PYTHON, Automake Bug #10995.
* Configuring fetchmail without SSL now triggers a configure warning,
and asks the user to consider running configure --with-ssl.
# WORKAROUNDS
* Some servers, notably Zimbra, return A1234 987 FETCH () in response to
a header request, in the face of message corruption. fetchmail now treats
these as temporary errors. Report and Patch by Mikulas Patocka, Red Hat.
* Some servers, notably Microsoft Exchange, return "A0009 OK FETCH completed."
without any header in response to a header request for meeting reminder
messages (with a "meeting.ics" attachment). fetchmail now treats these as
transient errors. Report by John Connett, Patch by Sunil Shetye.
OBS-URL: https://build.opensuse.org/request/show/133601
OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=42
2012-09-18 20:01:54 +02:00
|
|
|
cp -a %{SOURCE1} %{SOURCE2} %{SOURCE3} .
|
2007-01-16 00:12:14 +01:00
|
|
|
|
|
|
|
%build
|
2011-06-06 16:30:41 +02:00
|
|
|
%if 0%{?suse_version} > 1010
|
|
|
|
ACLOCAL="aclocal -I m4 -I m4-local" autoreconf -f -i
|
2008-08-23 00:22:38 +02:00
|
|
|
%endif
|
2011-06-06 16:30:41 +02:00
|
|
|
if [ -f /usr/%{_lib}/libkrb5.so ] ; then
|
2007-01-16 00:12:14 +01:00
|
|
|
GSS="--with-gssapi"
|
|
|
|
else
|
|
|
|
GSS=""
|
|
|
|
fi
|
2007-01-25 17:56:01 +01:00
|
|
|
%configure\
|
|
|
|
--enable-POP2\
|
|
|
|
--enable-RPA\
|
|
|
|
--enable-NTLM\
|
|
|
|
--enable-SDPS\
|
|
|
|
--enable-opie\
|
2008-11-17 16:48:38 +01:00
|
|
|
%if 0%{?with_krb5}
|
2008-06-23 21:41:41 +02:00
|
|
|
--with-kerberos5\
|
2007-01-25 17:56:01 +01:00
|
|
|
$GSS\
|
2008-10-06 17:33:50 +02:00
|
|
|
%endif
|
2007-01-16 00:12:14 +01:00
|
|
|
--with-ssl=/usr
|
2011-06-06 16:30:41 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:12:14 +01:00
|
|
|
|
|
|
|
%install
|
2011-06-06 16:30:41 +02:00
|
|
|
%make_install
|
|
|
|
ln -sf fetchmail.1.gz %{buildroot}/%{_mandir}/man1/fetchmailconf.1.gz
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
|
|
|
|
cp fetchmail.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/fetchmail
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/init.d
|
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
cp fetchmail.init %{buildroot}%{_initddir}/fetchmail
|
|
|
|
chmod +x %{buildroot}%{_initddir}/fetchmail
|
|
|
|
ln -s ../etc/init.d/fetchmail %{buildroot}/sbin/rcfetchmail
|
|
|
|
touch %{buildroot}%{_sysconfdir}/fetchmailrc
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
|
|
cp sysconfig.%{name} %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/log
|
|
|
|
touch %{buildroot}%{_localstatedir}/log/fetchmail
|
|
|
|
mkdir -p %{buildroot}%{_localstatedir}/lib/fetchmail
|
2007-01-25 17:56:01 +01:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:12:14 +01:00
|
|
|
|
|
|
|
%pre
|
2012-11-13 14:10:18 +01:00
|
|
|
usr/sbin/useradd -r -g daemon -s /bin/false \
|
2007-01-16 00:12:14 +01:00
|
|
|
-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
|
|
|
|
chmod 0600 var/log/fetchmail
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{insserv_cleanup}
|
|
|
|
if [ $1 == 0 ]; then
|
|
|
|
rm -rf var/lib/fetchmail
|
|
|
|
fi
|
|
|
|
|
2007-01-25 17:56:01 +01:00
|
|
|
%files -f %{name}.lang
|
2007-01-16 00:12:14 +01:00
|
|
|
%defattr(-, root, root)
|
2007-01-25 17:56:01 +01:00
|
|
|
%{_bindir}/fetchmail
|
2011-06-06 16:30:41 +02:00
|
|
|
%dir %attr(0700, fetchmail, root) %{_localstatedir}/lib/fetchmail
|
|
|
|
%ghost %attr(0600, fetchmail, root) %{_localstatedir}/log/fetchmail
|
2007-01-16 00:12:14 +01:00
|
|
|
%doc %{_mandir}/man1/fetchmail.1.gz
|
2011-06-06 16:30:41 +02:00
|
|
|
%doc COPYING FAQ FEATURES NEWS NOTES OLDNEWS README README.NTLM README.SSL README.SSL-SERVER TODO contrib *.html *.txt *.pdf
|
|
|
|
%ghost %config(noreplace) %attr(0600, fetchmail, root) %{_sysconfdir}/fetchmailrc
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/fetchmail
|
|
|
|
%{_sysconfdir}/init.d/fetchmail
|
2007-01-16 00:12:14 +01:00
|
|
|
/sbin/rcfetchmail
|
2011-06-06 16:30:41 +02:00
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
2007-01-16 00:12:14 +01:00
|
|
|
|
|
|
|
%files -n fetchmailconf
|
|
|
|
%defattr(-, root, root)
|
2007-01-25 17:56:01 +01:00
|
|
|
%{_bindir}/fetchmailconf
|
2007-01-16 00:12:14 +01:00
|
|
|
%doc %{_mandir}/man1/fetchmailconf.1.gz
|
2009-08-10 17:49:38 +02:00
|
|
|
%{python_sitelib}/fetchmailconf.*
|
2007-11-29 00:01:50 +01:00
|
|
|
|
2007-03-30 02:33:07 +02:00
|
|
|
%changelog
|