-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnethserver-fetchmail.spec
110 lines (84 loc) · 3.92 KB
/
nethserver-fetchmail.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
%define fetchmail_home /var/lib/nethserver/fetchmail
Name: nethserver-fetchmail
Version: 1.1.6
Release: 1%{?dist}
Summary: NethServer fetchmail
Group: Networking/Daemons
License: GPLv2
URL: http://www.nethesis.it
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: nethserver-devtools
Requires: nethserver-mail-server > 1.8.2-1
Requires: fetchmail
%description
Fetchmail add-on for NethServer
%prep
%setup
%build
%{makedocs}
perl createlinks
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -not -name '*.orig' -print | cpio -dump $RPM_BUILD_ROOT)
%{genfilelist} $RPM_BUILD_ROOT \
--dir '/var/run/fetchmail' 'attr(0750,fetchmail,root)' \
--dir '%{fetchmail_home}' 'attr(0750,fetchmail,fetchmail)' \
> %{name}-%{version}-%{release}-filelist
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
%clean
rm -rf $RPM_BUILD_ROOT
%pre
if ! getent passwd fetchmail >/dev/null; then
# Add the "fetchmail" user
useradd -r -U -s /sbin/nologin -d %{fetchmail_home} -c "Fetchmail user" fetchmail
elif ! [ -d %{fetchmail_home} ]; then
# Stop any running instance:
service fetchmail status &>/dev/null && service fetchmail stop
# Create the primary group, if not exists:
groupadd -f -g `id -u fetchmail` -r fetchmail
# Fix the home dir path and move the existing DB to the new path:
usermod -m -d %{fetchmail_home} -g fetchmail fetchmail
mkdir -m 0750 %{fetchmail_home}
mv -n /var/run/fetchmail/.fetchids %{fetchmail_home}/.fetchids &>/dev/null
chown -Rf fetchmail.fetchmail %{fetchmail_home}
fi
exit 0
%files -f %{name}-%{version}-%{release}-filelist
%defattr(-,root,root)
%changelog
* Fri May 20 2016 Giacomo Sanchietti <[email protected]> - 1.1.6-1
- fetchmail delivery to AD users with capitalized names - Bug #3369 [NethServer]
* Tue Sep 29 2015 Davide Principi <[email protected]> - 1.1.5-1
- Make Italian language pack optional - Enhancement #3265 [NethServer]
* Fri Sep 18 2015 Giacomo Sanchietti <[email protected]> - 1.1.4-1
- Wrong column in Pop3 Connector view table - Bug #3259
* Tue Jul 28 2015 Giacomo Sanchietti <[email protected]> - 1.1.3-1
- Fetchmail: Add new column in Pop3 Connector view table - Enhancement #3231 [NethServer]
* Mon Jun 22 2015 Davide Principi <[email protected]> - 1.1.2-1
- Cannot change POP3 connector poll interval - Bug #3134 [NethServer]
* Fri Dec 12 2014 Davide Principi <[email protected]> - 1.1.1-2.ns6
- Route message to postfix, for alias expansion. Refs #2978
- Fix shown groups in POP3 connector page
- Partially reverts #2954
* Thu Dec 11 2014 Giacomo Sanchietti <[email protected]> - 1.1.1-1.ns6
- New fixes for - Enhancement #2954 [NethServer]
* Tue Dec 09 2014 Giacomo Sanchietti <[email protected]> - 1.1.0-1.ns6
- Fetchmail re-download all emails after reboot - Bug #2947 [NethServer]
- Fetchmail support for AD users - Enhancement #2924 [NethServer]
* Wed Oct 15 2014 Giacomo Sanchietti <[email protected]> - 1.0.5-1.ns6
- Fetchmail: change UI label - Enhancement #2863
* Thu Jul 03 2014 Giacomo Sanchietti <[email protected]> - 1.0.4-1.ns6
- Delivers to non-existing email addresses - Bug #2766
- Implement migration - Enhancement #2763
* Thu Jun 12 2014 Giacomo Sanchietti <[email protected]> - 1.0.4-1.ns6
- Implement migration - Enhancement #2763
* Mon Mar 10 2014 Davide Principi <[email protected]> - 1.0.3-1.ns6
- Warning after fetchmail installation - Bug #2677 [NethServer]
* Wed Feb 05 2014 Davide Principi <[email protected]> - 1.0.2-1.ns6
- Update all inline help documentation - Task #1780 [NethServer]
* Wed Oct 16 2013 Giacomo Sanchietti <[email protected]> - 1.0.1-1.ns6
- Allow email address as username for login #2183
- Db defaults: remove Runlevels prop #2067
* Tue Apr 30 2013 Giacomo Sanchietti <[email protected]> - 1.0.0-1.ns6
- First release #1745