1 |
Summary: Expire and archive user accounts |
2 |
Name: smeserver-expire-accounts |
3 |
Version: 0.1.8 |
4 |
Release: 2 |
5 |
License: MIT |
6 |
Group: Applications/System |
7 |
Source: %{name}-%{version}.tar.gz |
8 |
|
9 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
10 |
BuildArchitectures: noarch |
11 |
BuildRequires: e-smith-devtools |
12 |
BuildRequires: gettext |
13 |
|
14 |
Requires: e-smith-base >= 5.2.0 |
15 |
Requires: qmail |
16 |
Requires: qmail-autoresponder |
17 |
Requires: perl(DateTime) |
18 |
Requires: xz |
19 |
Requires: /bin/tar |
20 |
|
21 |
%description |
22 |
With this, you can set an expiration date for user accounts |
23 |
|
24 |
%prep |
25 |
%setup -q -n %{name}-%{version} |
26 |
|
27 |
%build |
28 |
perl createlinks |
29 |
/sbin/e-smith/generate-lexicons |
30 |
%{__mkdir_p} root/etc/e-smith/events/%{name}-update |
31 |
%{__mkdir_p} root/home/e-smith/files/archives/users |
32 |
%if 0%{?rhel} <= 5 |
33 |
%{__mkdir_p} root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/ |
34 |
mv root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/expireaccounts.pm \ |
35 |
root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/ |
36 |
%endif |
37 |
|
38 |
%install |
39 |
/bin/rm -rf $RPM_BUILD_ROOT |
40 |
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
41 |
/bin/rm -f %{name}-%{version}-filelist |
42 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
43 |
--dir /home/e-smith/files/archives 'attr(0750,root,root)' \ |
44 |
> %{name}-%{version}-filelist |
45 |
|
46 |
%clean |
47 |
rm -rf $RPM_BUILD_ROOT |
48 |
|
49 |
%files -f %{name}-%{version}-filelist |
50 |
%defattr(-,root,root) |
51 |
|
52 |
%pre |
53 |
|
54 |
%post |
55 |
|
56 |
%preun |
57 |
|
58 |
%changelog |
59 |
* Tue Aug 02 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.8-2.sme |
60 |
- import to contribs 10 [SME: 12135] |
61 |
|
62 |
* Thu Jul 15 2021 Daniel Berteaud <daniel@firewall-services.com> 0.1.8-1 |
63 |
- Typo (daniel@firewall-services.com) |
64 |
|
65 |
* Mon Mar 08 2021 Daniel Berteaud <daniel@firewall-services.com> 0.1.7-1 |
66 |
- new package built with tito |
67 |
|
68 |
* Mon Mar 8 2021 Daniel Berteaud <daniel@firewall-services.com> - 0.1.7-1.sme |
69 |
- Suspend email delivery during archiving |
70 |
- Licence is MIT |
71 |
- Rebuild using tito |
72 |
|
73 |
* Mon May 30 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.6-1.sme |
74 |
- Fix a typo in en-us locale label for DESC_WARN_USER |
75 |
|
76 |
* Wed May 11 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.5-1.sme |
77 |
- Use xz as default compression format |
78 |
|
79 |
* Tue Apr 12 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.4-1.sme |
80 |
- Accept current day as a future date |
81 |
- Requires xz |
82 |
|
83 |
* Tue Apr 12 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.3-1.sme |
84 |
- Add tar in the archives extension |
85 |
|
86 |
* Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.2-1.sme |
87 |
- Only list expired accounts in the inactive accounts table |
88 |
|
89 |
* Mon Apr 4 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.1-1.sme |
90 |
- Fix permissions on /home/e-smith/files/archives |
91 |
|
92 |
* Wed Mar 30 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1.sme |
93 |
- Initial release |