Compare commits
10 Commits
6.3.26-2ma
...
6.4.22-1ma
Author | SHA1 | Date | |
---|---|---|---|
bfd7658258 | |||
00cfad5ef4 | |||
9fb10ab1b2 | |||
099067a8df | |||
5df65e2cd8 | |||
2dd5f6bda8 | |||
7e1b60b4ff | |||
7c62495047 | |||
58b16789ab | |||
3e398dfea9 |
@@ -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
1
fetchmail-tmpfiles.conf
Normal file
@@ -0,0 +1 @@
|
||||
d /run/fetchmail 750 vmail vmail
|
11
fetchmail.service
Normal file
11
fetchmail.service
Normal 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
|
106
fetchmail.spec
106
fetchmail.spec
@@ -2,40 +2,43 @@
|
||||
%define fetchmail_groupid 65040
|
||||
%define vmail_groupid 64901
|
||||
%define vmail_userid 64907
|
||||
%define majver %(echo %version | cut -d. -f1-2)
|
||||
|
||||
Name: fetchmail
|
||||
Version: 6.3.26
|
||||
Release: 2mamba
|
||||
Version: 6.4.22
|
||||
Release: 1mamba
|
||||
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
|
||||
URL: https://www.fetchmail.info/
|
||||
Source: https://sourceforge.net/projects/fetchmail/files/branch_%{majver}/fetchmail-%{version}.tar.xz
|
||||
Source1: fetchmail.service
|
||||
Source2: %{name}-fetchmailrc
|
||||
Source3: fetchmail-tmpfiles.conf
|
||||
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) machine’s 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.)
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--with-ssl
|
||||
--with-ssl \
|
||||
PYTHON=%{__python3}
|
||||
|
||||
%make
|
||||
#sed -i "s|/lib/python.*/site-packages|/lib/site-python|" fetchmailconf
|
||||
@@ -43,13 +46,14 @@ The fetchmail program can gather mail from servers supporting any of the common
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall \
|
||||
pythondir=%{python_sitearch} \
|
||||
pyexecdir=%{python_sitelib}
|
||||
pythondir=%{python3_sitearch} \
|
||||
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 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/fetchmail.conf
|
||||
install -d %{buildroot}/var/log/fetchmail/
|
||||
install -d %{buildroot}/var/run/fetchmail/
|
||||
install -d %{buildroot}/var/lock/fetchmail/
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
@@ -57,36 +61,80 @@ install -d %{buildroot}/var/run/fetchmail/
|
||||
[ "%{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
|
||||
if [ $1 -ge 1 ]; then
|
||||
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
|
||||
fi
|
||||
:
|
||||
|
||||
%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
|
||||
%systemd_preun fetchmail
|
||||
:
|
||||
|
||||
%post
|
||||
%systemd_post fetchmail
|
||||
:
|
||||
|
||||
%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
|
||||
%defattr(-,root,root)
|
||||
%{_initrddir}/fetchmail
|
||||
%{_unitdir}/fetchmail.service
|
||||
%attr(0640,vmail,vmail) %config(noreplace) %{_sysconfdir}/fetchmailrc
|
||||
%{_tmpfilesdir}/fetchmail.conf
|
||||
%{_bindir}/fetchmail
|
||||
%{_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(0755,vmail,vmail) %dir /var/run/fetchmail
|
||||
%{_mandir}/man1/fetchmail.1.gz
|
||||
%{_mandir}/man1/fetchmailconf.1.gz
|
||||
%{_mandir}/man1/fetchmail.1*
|
||||
%{_mandir}/man1/fetchmailconf.1*
|
||||
%doc COPYING
|
||||
#NEWS README README.NTLM README.SSL TODO
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
- python 2.7 rebuild
|
||||
|
||||
|
Reference in New Issue
Block a user