python 2.7 rebuild [release 6.3.26-2mamba;Thu May 30 2013]

This commit is contained in:
Silvan Calarco 2024-01-05 22:15:01 +01:00
parent 1f5c32cb62
commit e9558c5210
4 changed files with 242 additions and 0 deletions

View File

@ -1,2 +1,5 @@
# fetchmail # fetchmail
Fetchmail is a mail-retrieval and forwarding utility; it fetches mail from remote mailservers and forwards it to your local (client) machines delivery system. You can then handle the retrieved mail using normal mail user agents such as mutt(1), elm(1) or Mail(1). The fetchmail utility can be run in a daemon mode to repeatedly poll one or more systems at a specified interval.
The fetchmail program can gather mail from servers supporting any of the common mail-retrieval protocols: POP2 (legacy, to be removed from future release), POP3, IMAP2bis, IMAP4, and IMAP4rev1. It can also use the ESMTP ETRN extension and ODMR. (The RFCs describing all these protocols are listed at the end of this manual page.)

18
fetchmail-fetchmailrc Normal file
View File

@ -0,0 +1,18 @@
# Configuration sample for fetchmail
#set postmaster "postmaster@example.org"
#set bouncemail
#set no spambounce
#set properties ""
#set daemon 60
#poll pop.example.org localdomains example.org:
# envelope 1 "Delivered-To"
# qvirtual "example-org-"
# user 'catchall@example.org' with password '<mypassword>'
# dropdelivered
# to * here
#poll pop.example.org with proto IMAP
# user 'myuser@example.org' there with password '<mypassword>'
# is '<your-username>' here

62
fetchmail-initscript Normal file
View File

@ -0,0 +1,62 @@
#! /bin/bash
#
# fetchmail Start/Stop the fetchmail service
# Copyright (c) 2007 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
# chkconfig: 2345 90 60
# description: fetchmail is a command line pop3/imap client daemon
#
# Source function library.
. /etc/init.d/functions
RETVAL=0
FETCHMAIL_CONFIGFILE=/etc/fetchmailrc
FETCHMAIL_PIDFILE=/var/run/fetchmail/fetchmail.pid
prog="fetchmail"
user="fetchmail"
start() {
echo -n $"Starting $prog: "
${prog} \
-m "/usr/sbin/sendmail -i -f %F -- %T" \
-L /var/log/fetchmail/fetchmail.log \
-f ${FETCHMAIL_CONFIGFILE} \
--pidfile ${FETCHMAIL_PIDFILE}
evaluate_retval
echo
}
stop() {
echo -n $"Stopping $prog: "
[ -e ${FETCHMAIL_PIDFILE} ] && {
PID=`head -n1 ${FETCHMAIL_PIDFILE}`
kill -9 $PID
RETVAL=$?
evaluate_retval
rm -f ${FETCHMAIL_PIDFILE}
echo
}
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?

159
fetchmail.spec Normal file
View File

@ -0,0 +1,159 @@
%define fetchmail_userid 65040
%define fetchmail_groupid 65040
%define vmail_groupid 64901
%define vmail_userid 64907
Name: fetchmail
Version: 6.3.26
Release: 2mamba
Summary: A mail-retrieval and forwarding utility
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://fetchmail.berlios.de/
Source: http://download.berlios.de/fetchmail/fetchmail-%{version}.tar.bz2
Source1: %{name}-initscript
Source2: %{name}-fetchmailrc
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libopenssl-devel
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
BuildRequires: maildrop >= 1.6.3
Requires: python-tk >= 2.4.3
Requires: maildrop >= 1.6.3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Fetchmail is a mail-retrieval and forwarding utility; it fetches mail from remote mailservers and forwards it to your local (client) machines delivery system. You can then handle the retrieved mail using normal mail user agents such as mutt(1), elm(1) or Mail(1). The fetchmail utility can be run in a daemon mode to repeatedly poll one or more systems at a specified interval.
The fetchmail program can gather mail from servers supporting any of the common mail-retrieval protocols: POP2 (legacy, to be removed from future release), POP3, IMAP2bis, IMAP4, and IMAP4rev1. It can also use the ESMTP ETRN extension and ODMR. (The RFCs describing all these protocols are listed at the end of this manual page.)
%prep
%setup -q
%build
%configure \
--with-ssl
%make
#sed -i "s|/lib/python.*/site-packages|/lib/site-python|" fetchmailconf
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
pythondir=%{python_sitearch} \
pyexecdir=%{python_sitelib}
install -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/fetchmail
install -D -m0640 %{SOURCE2} %{buildroot}%{_sysconfdir}/fetchmailrc
install -d %{buildroot}/var/log/fetchmail/
install -d %{buildroot}/var/run/fetchmail/
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
groupadd vmail -g %{vmail_groupid} 2>/dev/null
useradd -u %{vmail_userid} -c 'Virtual Mailboxes' -d /var/vmail -g vmail \
-s /bin/false vmail 2>/dev/null
exit 0
%preun
# erase
if [ $1 -eq 0 ]; then
[ -e /var/run/fetchmail/fetchmail.pid ] && %{_initrddir}/fetchmail stop
chkconfig --del fetchmail
fi
userdel fetchmail 2>/dev/null
groupdel fetchmail 2>/dev/null
exit 0
%files -f %{name}.lang
%defattr(-,root,root)
%{_initrddir}/fetchmail
%attr(0640,vmail,vmail) %config(noreplace) %{_sysconfdir}/fetchmailrc
%{_bindir}/fetchmail
%{_bindir}/fetchmailconf
%{python_sitearch}/fetchmailconf.py*
%attr(0750,vmail,vmail) %dir /var/log/fetchmail
%attr(0755,vmail,vmail) %dir /var/run/fetchmail
%{_mandir}/man1/fetchmail.1.gz
%{_mandir}/man1/fetchmailconf.1.gz
%doc COPYING
#NEWS README README.NTLM README.SSL TODO
%changelog
* Thu May 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3.26-2mamba
- python 2.7 rebuild
* Wed Apr 24 2013 Automatic Build System <autodist@mambasoft.it> 6.3.26-1mamba
- automatic version update by autodist
* Tue Mar 19 2013 Automatic Build System <autodist@mambasoft.it> 6.3.25-1mamba
- automatic version update by autodist
* Mon Dec 24 2012 Automatic Build System <autodist@mambasoft.it> 6.3.24-1mamba
- automatic version update by autodist
* Mon Dec 10 2012 Automatic Build System <autodist@mambasoft.it> 6.3.23-1mamba
- automatic version update by autodist
* Thu Aug 30 2012 Automatic Build System <autodist@mambasoft.it> 6.3.22-1mamba
- automatic version update by autodist
* Mon Apr 09 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3.21-2mamba
- configure for running as vmail user instead of fetchmail
- rebuilt with --with-ssl
* Mon Aug 22 2011 Automatic Build System <autodist@mambasoft.it> 6.3.21-1mamba
- automatic version update by autodist
* Mon Jun 06 2011 Automatic Build System <autodist@mambasoft.it> 6.3.20-1mamba
- automatic update by autodist
* Sat Dec 11 2010 Automatic Build System <autodist@mambasoft.it> 6.3.19-1mamba
- automatic update to 6.3.19 by autodist
* Sun Oct 10 2010 Automatic Build System <autodist@mambasoft.it> 6.3.18-1mamba
- automatic update to 6.3.18 by autodist
* Thu May 06 2010 Automatic Build System <autodist@mambasoft.it> 6.3.17-1mamba
- automatic update to 6.3.17 by autodist
* Wed Apr 07 2010 Automatic Build System <autodist@mambasoft.it> 6.3.16-1mamba
- automatic update to 6.3.16 by autodist
* Mon Mar 29 2010 Automatic Build System <autodist@mambasoft.it> 6.3.15-1mamba
- automatic update to 6.3.15 by autodist
* Fri Feb 05 2010 Automatic Build System <autodist@mambasoft.it> 6.3.14-1mamba
- automatic update to 6.3.14 by autodist
* Fri Oct 30 2009 Automatic Build System <autodist@mambasoft.it> 6.3.13-1mamba
- automatic update to 6.3.13 by autodist
* Tue Oct 06 2009 Automatic Build System <autodist@mambasoft.it> 6.3.12-1mamba
- automatic update to 6.3.12 by autodist
* Thu Aug 06 2009 Automatic Build System <autodist@mambasoft.it> 6.3.11-1mamba
- automatic update to 6.3.11 by autodist
* Fri Jul 03 2009 Automatic Build System <autodist@mambasoft.it> 6.3.10-1mamba
- automatic update to 6.3.10 by autodist
* Mon Nov 17 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3.9-1mamba
- automatic update to 6.3.9 by autodist
* Sun Apr 08 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3.8-1mamba
- update to version 6.3.8 by autospec
* Fri Mar 23 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3.7-2qilnx
- added initscript
- added support for fetchmail user and group (FIXME:run daemon with these privileges)
* Thu Mar 01 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3.7-1qilnx
- package created by autospec