1 |
# $Id: smeserver-lazy_admin_tools.spec,v 1.2 2010/03/06 16:27:29 slords Exp $ |
# $Id: smeserver-lazy_admin_tools.spec,v 1.6 2013/02/03 01:34:31 unnilennium Exp $ |
2 |
# Authority: unnilennium |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
# Name: Jean-Philippe Pialasse |
4 |
|
|
5 |
Summary: Lazy Admin's Tools is a set of scripts to automate admin tasks |
Summary: Lazy Admin's Tools is a set of scripts to automate admin tasks |
6 |
%define name smeserver-lazy_admin_tools |
%define name smeserver-lazy_admin_tools |
7 |
%define version 1.0 |
%define version 1.0 |
8 |
%define release 1%{?dist} |
%define release 5%{?dist} |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release} |
Release: %{release} |
17 |
Requires: e-smith-base |
Requires: e-smith-base |
18 |
Requires: SMEServer >= 8.0 |
Requires: SMEServer >= 8.0 |
19 |
Obsoletes: e-smith-lazy_admin_tools |
Obsoletes: e-smith-lazy_admin_tools |
20 |
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
21 |
|
Patch0: smeserver-lazy_admin_tools-1.0-patch0.patch |
22 |
|
Patch1: smeserver-lazy_admin_tools-1.0-patch1.patch |
23 |
|
Patch2: smeserver-lazy_admin_tools-1.0-patch2.patch |
24 |
|
Patch3: smeserver-lazy_admin_tools-1.0-patch3.patch |
25 |
|
|
26 |
|
|
27 |
%description |
%description |
28 |
The Lazy Administrator's Tools is a set of scripts designed to automate |
The Lazy Administrator's Tools is a set of scripts designed to automate |
38 |
* lat-pptp : activate or deactivate pptp access for individual users |
* lat-pptp : activate or deactivate pptp access for individual users |
39 |
* lat-dump : create input files for the above lat-tools, based on the |
* lat-dump : create input files for the above lat-tools, based on the |
40 |
configuration files of the SME servers. |
configuration files of the SME servers. |
41 |
|
* lat-shadow : add users' encrypted password in /etc/shadow file |
42 |
|
|
43 |
See man lat-tools for general help on the usage of the toolkit, or run the |
See man lat-tools for general help on the usage of the toolkit, or run the |
44 |
command with the --help switch to get specific help. |
command with the --help switch to get specific help. |
45 |
|
|
46 |
%changelog |
%changelog |
47 |
|
* Mon May 13 2013 JP PIALASSE tests@pialasse.com 1.0-5.sme |
48 |
|
- fixed lat-procmail [SME: 7139] |
49 |
|
- fixed removing user with home dir not in /home/e-smith/files/users/ [SME: 7162] |
50 |
|
- create basic SME pseudonyms using option -n for nicknames [SME: 7284] |
51 |
|
- patch3 |
52 |
|
* Sat Feb 02 2013 JP PIALASSE tests@pialasse.com 1.0-4.sme |
53 |
|
- fixed empty Gid property creation on user update bug [SME: 7192] |
54 |
|
- added lat-shadow binary [SME: 7137] |
55 |
|
- patch1 and patch2 |
56 |
|
* Sat Feb 02 2013 JP PIALASSE tests@pialasse.com 1.0-3.sme |
57 |
|
- fixed warning on empty group creation/update bug [SME: 7202] |
58 |
|
- fixed uid changed on user update bug [SME: 7196] |
59 |
|
- fixed warning on user creation/update bug [SME: 7192] |
60 |
|
- patch0 |
61 |
|
* Sat Feb 02 2013 JP PIALASSE tests@pialasse.com 1.0-2.sme |
62 |
|
- binary are not executable [SME: 7138] |
63 |
* Sat May 26 2012 JP PIALASSE tests@pialasse.com 1.0-1.sme |
* Sat May 26 2012 JP PIALASSE tests@pialasse.com 1.0-1.sme |
64 |
- Initial version |
- Initial version |
65 |
|
|
66 |
%prep |
%prep |
67 |
%setup |
%setup |
68 |
|
%patch0 -p1 |
69 |
|
%patch1 -p1 |
70 |
|
%patch2 -p1 |
71 |
|
|
72 |
%build |
%build |
73 |
|
|
75 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
76 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
77 |
rm -f e-smith-%{version}-filelist |
rm -f e-smith-%{version}-filelist |
78 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
79 |
|
--file '/usr/sbin/lat-domains' 'attr(755,root,root)' \ |
80 |
|
--file '/usr/sbin/lat-dump' 'attr(755,root,root)' \ |
81 |
|
--file /usr/sbin/lat-groups 'attr(755,root,root)' \ |
82 |
|
--file /usr/sbin/lat-hosts 'attr(755,root,root)' \ |
83 |
|
--file /usr/sbin/lat-ibays 'attr(755,root,root)' \ |
84 |
|
--file /usr/sbin/lat-pptp 'attr(755,root,root)' \ |
85 |
|
--file /usr/sbin/lat-procmail 'attr(755,root,root)' \ |
86 |
|
--file /usr/sbin/lat-pseudonyms 'attr(755,root,root)' \ |
87 |
|
--file /usr/sbin/lat-quota 'attr(755,root,root)' \ |
88 |
|
--file /usr/sbin/lat-restore 'attr(755,root,root)' \ |
89 |
|
--file /usr/sbin/lat-users 'attr(755,root,root)' \ |
90 |
|
--file /usr/sbin/lat-shadow 'attr(755,root,root)' \ |
91 |
|
> %{name}-%{version}-filelist |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
%clean |
%clean |
96 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |