1 |
slords |
1.1 |
# $Id: e-smith-lazy_admin_tools.spec,v 1.1 2010/03/04 16:37:47 slords Exp $ |
2 |
|
|
# Authority: nocvs |
3 |
|
|
# Name: Michiel Blotwijk |
4 |
|
|
|
5 |
|
|
Summary: Lazy Admin's Tools is a set of scripts to automate admin tasks |
6 |
|
|
%define name smeserver-lazy_admin_tools |
7 |
|
|
%define version 0.9.1 |
8 |
slords |
1.2 |
%define release 2%{?dist} |
9 |
slords |
1.1 |
Name: %{name} |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %{release} |
12 |
|
|
Source: %{name}-%{version}.tar.gz |
13 |
|
|
Patch0: smeserver-lazy_admin_tools-0.9.1-2-userid_length-pptp_create.patch |
14 |
|
|
License: (c)2003-2004 Altiplano bvba, published under the GPL License |
15 |
|
|
Group: Networking/Tools |
16 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-buildroot |
17 |
|
|
BuildArchitectures: noarch |
18 |
|
|
Requires: e-smith-base |
19 |
|
|
Requires: SMEServer >= 7.0 |
20 |
|
|
Obsoletes: e-smith-lazy_admin_tools |
21 |
|
|
|
22 |
|
|
%description |
23 |
|
|
The Lazy Administrator's Tools is a set of scripts designed to automate |
24 |
|
|
batch tasks and jobs for E-Smith/SME servers. |
25 |
|
|
* lat-user : add/delete users |
26 |
|
|
* lat-group : add/delete groups |
27 |
|
|
* lat pseudonyms : add/delete e-mail pseudonyms for individual users |
28 |
|
|
* lat-ibays : add/delete ibays |
29 |
|
|
* lat-quota : set the disk quota for individual users |
30 |
|
|
* lat-domains : add domainnames the server |
31 |
|
|
* lat-hosts : add hostnames to the server |
32 |
|
|
* lat-procmail : activate or deactivate procmail for individual users |
33 |
|
|
* lat-pptp : activate or deactivate pptp access for individual users |
34 |
|
|
* lat-dump : create input files for the above lat-tools, based on the |
35 |
|
|
configuration files of the SME servers. |
36 |
|
|
|
37 |
|
|
See man lat-tools for general help on the usage of the toolkit, or run the |
38 |
|
|
command with the --help switch to get specific help. |
39 |
|
|
|
40 |
|
|
%changelog |
41 |
|
|
* Sun Oct 22 2006 John H. Bennett III <bennettj@johnbennettservices> 0.9.1-2 |
42 |
|
|
- Modified lat-users code so that userids can be created with up to 31 characters to match SME 7. |
43 |
|
|
- Modified lat-pptp code so that SME Server 7 is recogninzed and will set the correct DB entries. |
44 |
|
|
The other code needs to be removed. |
45 |
|
|
|
46 |
|
|
* Mon Aug 07 2006 John H. Bennett III <bennettj@johnbennettservices> 0.9.1-1 |
47 |
|
|
- renamed to smeserver-lazy_admin_tools to conform to SME Server 7.x contribs naming standards |
48 |
|
|
* Thu Feb 09 2006 John H. Bennett III <bennettj@thebennetthome.com> |
49 |
|
|
- 0.9.1 |
50 |
|
|
- Modified each lat- file and changed /home/e-smith/xxx to /home/e-smith/db/xxx |
51 |
|
|
so it would at least work on sme 7.0 |
52 |
|
|
- added a requires SMEServer >= 7.0 |
53 |
|
|
- Bumped version and re-rolled RPM |
54 |
|
|
|
55 |
|
|
* Thu Feb 12 2004 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
56 |
|
|
- 0.8.3 |
57 |
|
|
- On SME 5.x, lat-pptp did not turn on pptp. Fixed. |
58 |
|
|
- Corrected man pages for lat-ibays |
59 |
|
|
|
60 |
|
|
* Thu Jan 29 2004 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
61 |
|
|
- 0.8.2 |
62 |
|
|
- If host altiplano.be is not reachable, the ego meter causes problems. Fixed |
63 |
|
|
|
64 |
|
|
* Fri Jan 22 2004 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
65 |
|
|
- 0.8.1 |
66 |
|
|
- First stable release for SME 6.x. Backwards compatibility to 5.5/5.6 ensured. |
67 |
|
|
- A few minor cosmetic changes |
68 |
|
|
- Added the "egometer" to the rpm. See the %post section for details. |
69 |
|
|
|
70 |
|
|
* Thu Jan 8 2004 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
71 |
|
|
- 0.8.0beta-1 |
72 |
|
|
- Updated the toolkit for SME 6.x |
73 |
|
|
- Made lat-pptp compatible with both SME 5.x and SME 6.x |
74 |
|
|
- Added a warning message to lat-restore with yes/no option. |
75 |
|
|
|
76 |
|
|
* Thu Aug 12 2003 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
77 |
|
|
- 0.7.2-1 |
78 |
|
|
- Removed a silly bug from lat-pseudonyms that prevented it from doing anything. |
79 |
|
|
- The --no-admin in lat-groups didn't work properly. Fixed. |
80 |
|
|
- Only root can execute the lat-tools now. The manpages remain visible for |
81 |
|
|
everyone. |
82 |
|
|
|
83 |
|
|
* Mon Jun 23 2003 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
84 |
|
|
- 0.7.1-1 |
85 |
|
|
- You can now also remove users from a group, using the -r switch |
86 |
|
|
- You can now also create groups without 'admin' or 'www'. This avoids |
87 |
|
|
the SME limitation of 28 groups. |
88 |
|
|
- lat-users created passwords, whether you asked for it or not. Fixed. |
89 |
|
|
|
90 |
|
|
* Tue Jun 18 2003 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
91 |
|
|
- 0.7.0-1 |
92 |
|
|
- Added lat-dump. |
93 |
|
|
- lat-users, lat-ibays and lat-groups now also accept a uid/gid. Because of |
94 |
|
|
this, the order of the arguments in lat-groups had to be changed!! |
95 |
|
|
- In lat-ibays, 'public access' could not be defined as 'none'. Fixed. |
96 |
|
|
- lat-pseudonyms and lat-groups didn't accept admin as user. Fixed. |
97 |
|
|
- lat-domains didn't correctly link the domainnames to an i-bay. Fixed. |
98 |
|
|
- Packaged lazy-admin-tools as rpm (thanks to Trevor Ouellette). |
99 |
|
|
- Added man pages. |
100 |
|
|
|
101 |
|
|
* Sat May 31 2003 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
102 |
|
|
- 0.6.0-4 |
103 |
|
|
- The lat-tools now also check /etc/passwd and /etc/groups for used uid/gid's |
104 |
|
|
This prevents the tools from failing if useradd or groupadd has been used. |
105 |
|
|
|
106 |
|
|
* Wed May 28 2003 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
107 |
|
|
- 0.6.0-2 |
108 |
|
|
- Fixed bug in lat-groups, stopping it from adding more than one user. |
109 |
|
|
|
110 |
|
|
* Tue May 27 2003 Michiel Blotwijk <michiel.blotwijk@altiplano.be> |
111 |
|
|
- 0.6.0 |
112 |
|
|
- Original release |
113 |
|
|
|
114 |
|
|
%prep |
115 |
|
|
|
116 |
|
|
%setup |
117 |
|
|
%patch0 -p1 |
118 |
|
|
|
119 |
|
|
%build |
120 |
|
|
|
121 |
|
|
%install |
122 |
|
|
rm -rf $RPM_BUILD_ROOT |
123 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
124 |
|
|
rm -f e-smith-%{version}-filelist |
125 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
126 |
|
|
|
127 |
|
|
%clean |
128 |
|
|
rm -rf $RPM_BUILD_ROOT |
129 |
|
|
|
130 |
|
|
%files -f %{name}-%{version}-filelist |
131 |
|
|
%defattr(-,root,root) |
132 |
|
|
|