1 |
# $Id: smeserver-audittools.spec,v 1.11 2009/11/07 18:01:35 snetram Exp $ |
2 |
|
3 |
Summary: SME Server auditing tools |
4 |
%define name smeserver-audittools |
5 |
Name: %{name} |
6 |
%define version 1.0.0 |
7 |
%define release 7 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: System Environment/Base |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
Patch0: smeserver-audittools-1.0.0-fix-yum-invocation.patch |
14 |
Patch1: smeserver-audittools-1.0.0-fix-dotted-usernames-and-groups.patch |
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildArchitectures: noarch |
17 |
Requires: e-smith-lib |
18 |
Requires: perl(RPM2) |
19 |
BuildRequires: e-smith-devtools |
20 |
|
21 |
%description |
22 |
Tools for consistency audits of SME Servers. Useful for determining local |
23 |
modifications prior to upgrades. |
24 |
|
25 |
%changelog |
26 |
* Sat Nov 7 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-7.sme |
27 |
- Fix regular expression to actually replace the colon with a dot [SME: 4913] |
28 |
|
29 |
* Sat Nov 7 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-6.sme |
30 |
- Undo changes made in 1.0.0-5 [SME: 4913] |
31 |
- Properly fix output for usernames and groups containing a dot [SME: 4913] |
32 |
|
33 |
* Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-5.sme |
34 |
- Remove comment lines from output of aliases [SME: 4913] |
35 |
|
36 |
* Thu Nov 5 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-4.sme |
37 |
- Remove the leading path for yum in newrpms [SME: 5566] |
38 |
|
39 |
* Sat Oct 24 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-3.sme |
40 |
- Revert changes made in [SME: 5416] |
41 |
|
42 |
* Sat Aug 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2.sme |
43 |
- Sort the output of the repositories audittool alphabetically [SME: 5416] |
44 |
|
45 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 1.0.0-1.sme |
46 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
47 |
|
48 |
* Thu Aug 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.0.2-7 |
49 |
- New tool repositories, lists status of configured repositories [SME: 4438] |
50 |
|
51 |
* Wed Jan 09 2008 Stephen Noble <support@dungog.net> 0.0.2-6 |
52 |
- New tool events, lists modified events [SME: 3419] |
53 |
|
54 |
* Sat Jun 16 2007 Stephen Noble <support@dungog.net> 0.0.2-5 |
55 |
- New tool newrpms, lists installed rpms not in standard repos [SME: 1206] |
56 |
|
57 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
58 |
- Clean up spec so package can be built by koji/plague |
59 |
|
60 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
61 |
- Update to new release naming. No functional changes. |
62 |
- Make Packager generic |
63 |
|
64 |
* Wed Apr 12 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.2-03 |
65 |
- Change status output for templates audit. In particular |
66 |
OK -> OWNED_BY_RPM. This means that custom templates will appear |
67 |
as "OWNED_BY_RPM, OVERRIDE" rather than "OK, OVERRIDE". template |
68 |
fragments should not be placed in templates-custom via RPMs [SME: 792] |
69 |
|
70 |
* Thu Mar 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.2-02 |
71 |
- Fix output from pseudonyms audit [SME: 792] |
72 |
- Display commands on stdout and warnings on stderr [SME: 792] |
73 |
- Complain about pseudonyms with @, but no domain [SME: 792] |
74 |
- Complain if virtualdomains pseudonym doesn't match accounts db [SME: 792] |
75 |
|
76 |
* Thu Mar 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.2-01 |
77 |
- Roll new tarball with patches to 0.0.1-10 [SME: 792] |
78 |
|
79 |
* Thu Mar 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-10 |
80 |
- Add pseudonyms audit [SME: 762] |
81 |
|
82 |
* Thu Mar 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-09 |
83 |
- Moved all tools into /sbin/e-smith/audittools to reduce clutter |
84 |
and make it easier to run all of them [SME: 762] |
85 |
|
86 |
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-08 |
87 |
- audit-users2domains - What email address have been used? [SME: 762] |
88 |
|
89 |
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-07 |
90 |
- Remove verbose option to rpm_status - not used [SME: 762] |
91 |
|
92 |
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-06 |
93 |
- Determine how many RPMs own a template and whether it has been |
94 |
modified since the install of the RPM [SME: 762] |
95 |
|
96 |
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-05 |
97 |
- Only display commands required for conversion from virtualdomains |
98 |
hacks to user@domain pseudonyms. These are audit tools - changing |
99 |
the system should be a separate task [SME: 762] |
100 |
|
101 |
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-04 |
102 |
- Examine custom templates: |
103 |
- Are they owned by an RPM? |
104 |
- Are they an override or an addition? |
105 |
- Examine templates |
106 |
- Are they owned by an RPM? |
107 |
- TODO: Have they been modified since the install? [SME: 762] |
108 |
|
109 |
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-03 |
110 |
- First cut at custom template audit [SME: 762] |
111 |
|
112 |
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-02 |
113 |
- Add dependency on perl(RPM2) [SME: 762] |
114 |
|
115 |
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-01 |
116 |
- Initial version [SME: 762] |
117 |
|
118 |
%prep |
119 |
%setup |
120 |
%patch0 -p1 |
121 |
%patch1 -p1 |
122 |
|
123 |
%build |
124 |
|
125 |
%pre |
126 |
|
127 |
%post |
128 |
|
129 |
%install |
130 |
rm -rf $RPM_BUILD_ROOT |
131 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
132 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
133 |
--file /sbin/e-smith/audittools/ 'attr(0554,root,root)' \ |
134 |
> %{name}-%{version}-%{release}-filelist |
135 |
|
136 |
%clean |
137 |
rm -rf $RPM_BUILD_ROOT |
138 |
|
139 |
%files -f %{name}-%{version}-%{release}-filelist |
140 |
%defattr(-,root,root) |