Add exapmles of systemd service file and config file
This commit is contained in:
parent
a83dcf985a
commit
68b31b7b09
11
fetchmail.service
Normal file
11
fetchmail.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=A remote-mail retrieval utility
|
||||||
|
After=local-fs.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=mail
|
||||||
|
ExecStart=/usr/bin/fetchmail -d 300 --fetchmailrc /etc/fetchmailrc.example
|
||||||
|
RestartSec=1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -1,9 +1,13 @@
|
|||||||
Summary: A remote mail retrieval and forwarding utility
|
Summary: A remote mail retrieval and forwarding utility
|
||||||
Name: fetchmail
|
Name: fetchmail
|
||||||
Version: 6.3.26
|
Version: 6.3.26
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
||||||
Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz.asc
|
Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz.asc
|
||||||
|
# systemd service file
|
||||||
|
Source2: fetchmail.service
|
||||||
|
# example configuration file
|
||||||
|
Source3: fetchmailrc.example
|
||||||
URL: http://www.fetchmail.info/
|
URL: http://www.fetchmail.info/
|
||||||
# For a breakdown of the licensing, see COPYING
|
# For a breakdown of the licensing, see COPYING
|
||||||
License: GPL+ and Public Domain
|
License: GPL+ and Public Domain
|
||||||
@ -34,6 +38,14 @@ make
|
|||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
# install example systemd unit
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
||||||
|
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/fetchmail.service
|
||||||
|
|
||||||
|
# install example config file
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
||||||
|
install -p -m 600 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc.example
|
||||||
|
|
||||||
# remove fetchmailconf stuff
|
# remove fetchmailconf stuff
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/fetchmailconf*
|
rm -f $RPM_BUILD_ROOT%{_bindir}/fetchmailconf*
|
||||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1*
|
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1*
|
||||||
@ -45,8 +57,13 @@ rm -f $RPM_BUILD_ROOT%{python_sitelib}/fetchmailconf.py*
|
|||||||
%doc COPYING FAQ FEATURES NEWS NOTES README README.SSL TODO
|
%doc COPYING FAQ FEATURES NEWS NOTES README README.SSL TODO
|
||||||
%{_bindir}/fetchmail
|
%{_bindir}/fetchmail
|
||||||
%{_mandir}/man1/fetchmail.1*
|
%{_mandir}/man1/fetchmail.1*
|
||||||
|
%{_unitdir}/fetchmail.service
|
||||||
|
%config(noreplace) %attr(0600, mail, mail) %{_sysconfdir}/fetchmailrc.example
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 14 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.3.26-7
|
||||||
|
- Add exapmles of systemd service file and config file
|
||||||
|
|
||||||
* Mon Jul 13 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.3.26-6
|
* Mon Jul 13 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.3.26-6
|
||||||
- Fix fetchmail FTBFS in rawhide
|
- Fix fetchmail FTBFS in rawhide
|
||||||
Resolves: #1239500
|
Resolves: #1239500
|
||||||
|
2
fetchmailrc.example
Normal file
2
fetchmailrc.example
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#poll pop.domain.com proto pop3
|
||||||
|
# user 'user1' there with password 'secret' is user1 here
|
Loading…
Reference in New Issue
Block a user