16 Commits

Author SHA1 Message Date
a1252a08b4 automatic version update by autodist [release 6.4.28-1mamba;Sun Mar 06 2022] 2024-01-05 22:15:02 +01:00
4e28fe44ed automatic version update by autodist [release 6.4.27-1mamba;Thu Jan 27 2022] 2024-01-05 22:15:02 +01:00
8b741c73ad automatic version update by autodist [release 6.4.26-1mamba;Mon Dec 27 2021] 2024-01-05 22:15:02 +01:00
3869fdcf5f automatic version update by autodist [release 6.4.25-1mamba;Sat Dec 11 2021] 2024-01-05 22:15:02 +01:00
fecf7bf1f1 automatic version update by autodist [release 6.4.24-1mamba;Sun Nov 21 2021] 2024-01-05 22:15:02 +01:00
2d9fc1a693 automatic version update by autodist [release 6.4.23-1mamba;Sun Oct 31 2021] 2024-01-05 22:15:02 +01:00
bfd7658258 automatic version update by autodist [release 6.4.22-1mamba;Tue Sep 14 2021] 2024-01-05 22:15:02 +01:00
00cfad5ef4 update to 6.4.21 [release 6.4.21-1mamba;Sun Aug 15 2021] 2024-01-05 22:15:01 +01:00
9fb10ab1b2 automatic version update by autodist [release 6.4.19-1mamba;Wed Apr 28 2021] 2024-01-05 22:15:01 +01:00
099067a8df automatic version update by autodist [release 6.4.18-1mamba;Mon Mar 29 2021] 2024-01-05 22:15:01 +01:00
5df65e2cd8 automatic version update by autodist [release 6.4.17-1mamba;Mon Mar 08 2021] 2024-01-05 22:15:01 +01:00
2dd5f6bda8 automatic version update by autodist [release 6.4.16-1mamba;Tue Feb 09 2021] 2024-01-05 22:15:01 +01:00
7e1b60b4ff automatic version update by autodist [release 6.4.15-1mamba;Mon Jan 04 2021] 2024-01-05 22:15:01 +01:00
7c62495047 automatic version update by autodist [release 6.4.14-1mamba;Tue Dec 22 2020] 2024-01-05 22:15:01 +01:00
58b16789ab automatic update by autodist [release 6.4.8-1mamba;Sun Oct 04 2020] 2024-01-05 22:15:01 +01:00
3e398dfea9 update to 6.4.2 [release 6.4.2-1mamba;Sat Feb 22 2020] 2024-01-05 22:15:01 +01:00
4 changed files with 108 additions and 91 deletions

View File

@@ -1,62 +0,0 @@
#! /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 $?

1
fetchmail-tmpfiles.conf Normal file
View File

@@ -0,0 +1 @@
d /run/fetchmail 750 vmail vmail

11
fetchmail.service Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=Fetchmail
After=network.target
[Service]
User=fetchmail
ExecStart=/usr/bin/fetchmail -d 900 -f /etc/fetchmailrc
RestartSec=1
[Install]
WantedBy=multi-user.target

View File

@@ -2,40 +2,44 @@
%define fetchmail_groupid 65040 %define fetchmail_groupid 65040
%define vmail_groupid 64901 %define vmail_groupid 64901
%define vmail_userid 64907 %define vmail_userid 64907
%define majver %(echo %version | cut -d. -f1-2)
Name: fetchmail Name: fetchmail
Version: 6.3.26 Version: 6.4.28
Release: 2mamba Release: 1mamba
Summary: A mail-retrieval and forwarding utility Summary: A mail-retrieval and forwarding utility
Group: Applications/Networking Group: Applications/Networking
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://fetchmail.berlios.de/ URL: https://www.fetchmail.info/
Source: http://download.berlios.de/fetchmail/fetchmail-%{version}.tar.bz2 Source: https://sourceforge.net/projects/fetchmail/files/branch_%{majver}/fetchmail-%{version}.tar.xz
Source1: %{name}-initscript Source1: fetchmail.service
Source2: %{name}-fetchmailrc Source2: %{name}-fetchmailrc
Source3: fetchmail-tmpfiles.conf
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libopenssl-devel BuildRequires: libopenssl-devel
BuildRequires: libpython-devel BuildRequires: libpython3-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: maildrop >= 1.6.3 BuildRequires: maildrop >= 1.6.3
Requires: python-tk >= 2.4.3 Requires: python-tk >= 2.4.3
Requires: maildrop >= 1.6.3 Requires: maildrop >= 1.6.3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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.) 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.)
%debug_package
%prep %prep
%setup -q %setup -q
%build %build
%configure \ %configure \
--with-ssl --with-ssl \
PYTHON=%{__python3}
%make %make
#sed -i "s|/lib/python.*/site-packages|/lib/site-python|" fetchmailconf #sed -i "s|/lib/python.*/site-packages|/lib/site-python|" fetchmailconf
@@ -43,13 +47,14 @@ The fetchmail program can gather mail from servers supporting any of the common
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \ %makeinstall \
pythondir=%{python_sitearch} \ pythondir=%{python3_sitearch} \
pyexecdir=%{python_sitelib} pyexecdir=%{python3_sitelib}
install -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/fetchmail install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/fetchmail.service
install -D -m0640 %{SOURCE2} %{buildroot}%{_sysconfdir}/fetchmailrc install -D -m0640 %{SOURCE2} %{buildroot}%{_sysconfdir}/fetchmailrc
install -D -m0640 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/fetchmail.conf
install -d %{buildroot}/var/log/fetchmail/ install -d %{buildroot}/var/log/fetchmail/
install -d %{buildroot}/var/run/fetchmail/ install -d %{buildroot}/var/lock/fetchmail/
%find_lang %{name} %find_lang %{name}
@@ -57,36 +62,98 @@ install -d %{buildroot}/var/run/fetchmail/
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre %pre
groupadd vmail -g %{vmail_groupid} 2>/dev/null if [ $1 -ge 1 ]; then
useradd -u %{vmail_userid} -c 'Virtual Mailboxes' -d /var/vmail -g vmail \ groupadd vmail -g %{vmail_groupid} 2>/dev/null
-s /bin/false vmail 2>/dev/null useradd -u %{vmail_userid} -c 'Virtual Mailboxes' -d /var/vmail -g vmail \
exit 0 -s /bin/false vmail 2>/dev/null
fi
:
%preun %preun
# erase %systemd_preun fetchmail
if [ $1 -eq 0 ]; then :
[ -e /var/run/fetchmail/fetchmail.pid ] && %{_initrddir}/fetchmail stop
chkconfig --del fetchmail %post
fi %systemd_post fetchmail
userdel fetchmail 2>/dev/null :
groupdel fetchmail 2>/dev/null
exit 0 %postun
%systemd_postun fetchmail
:
%posttrans
# clean broken old sysv links
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
:
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%{_initrddir}/fetchmail %{_unitdir}/fetchmail.service
%attr(0640,vmail,vmail) %config(noreplace) %{_sysconfdir}/fetchmailrc %attr(0640,vmail,vmail) %config(noreplace) %{_sysconfdir}/fetchmailrc
%{_tmpfilesdir}/fetchmail.conf
%{_bindir}/fetchmail %{_bindir}/fetchmail
%{_bindir}/fetchmailconf %{_bindir}/fetchmailconf
%{python_sitearch}/fetchmailconf.py* %{python3_sitearch}/fetchmailconf.py*
%{python3_sitearch}/__pycache__/fetchmailconf.cpython*.py*
%attr(0750,vmail,vmail) %dir /var/lock/fetchmail
%attr(0750,vmail,vmail) %dir /var/log/fetchmail %attr(0750,vmail,vmail) %dir /var/log/fetchmail
%attr(0755,vmail,vmail) %dir /var/run/fetchmail %{_mandir}/man1/fetchmail.1*
%{_mandir}/man1/fetchmail.1.gz %{_mandir}/man1/fetchmailconf.1*
%{_mandir}/man1/fetchmailconf.1.gz
%doc COPYING %doc COPYING
#NEWS README README.NTLM README.SSL TODO #NEWS README README.NTLM README.SSL TODO
%changelog %changelog
* Sun Mar 06 2022 Automatic Build System <autodist@mambasoft.it> 6.4.28-1mamba
- automatic version update by autodist
* Thu Jan 27 2022 Automatic Build System <autodist@mambasoft.it> 6.4.27-1mamba
- automatic version update by autodist
* Mon Dec 27 2021 Automatic Build System <autodist@mambasoft.it> 6.4.26-1mamba
- automatic version update by autodist
* Sat Dec 11 2021 Automatic Build System <autodist@mambasoft.it> 6.4.25-1mamba
- automatic version update by autodist
* Sun Nov 21 2021 Automatic Build System <autodist@mambasoft.it> 6.4.24-1mamba
- automatic version update by autodist
* Sun Oct 31 2021 Automatic Build System <autodist@mambasoft.it> 6.4.23-1mamba
- automatic version update by autodist
* Tue Sep 14 2021 Automatic Build System <autodist@mambasoft.it> 6.4.22-1mamba
- automatic version update by autodist
* Sun Aug 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 6.4.21-1mamba
- update to 6.4.21
* Wed Apr 28 2021 Automatic Build System <autodist@mambasoft.it> 6.4.19-1mamba
- automatic version update by autodist
* Mon Mar 29 2021 Automatic Build System <autodist@mambasoft.it> 6.4.18-1mamba
- automatic version update by autodist
* Sun Mar 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 6.4.17-2mamba
- provide required dir /var/lock/fetchmail
* Mon Mar 08 2021 Automatic Build System <autodist@mambasoft.it> 6.4.17-1mamba
- automatic version update by autodist
* Tue Feb 09 2021 Automatic Build System <autodist@mambasoft.it> 6.4.16-1mamba
- automatic version update by autodist
* Mon Jan 04 2021 Automatic Build System <autodist@mambasoft.it> 6.4.15-1mamba
- automatic version update by autodist
* Tue Dec 22 2020 Automatic Build System <autodist@mambasoft.it> 6.4.14-1mamba
- automatic version update by autodist
* Sun Oct 04 2020 Automatic Build System <autodist@mambasoft.it> 6.4.8-1mamba
- automatic update by autodist
* Sat Feb 22 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 6.4.2-1mamba
- update to 6.4.2
* Thu May 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3.26-2mamba * Thu May 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3.26-2mamba
- python 2.7 rebuild - python 2.7 rebuild