1 |
slords |
1.1 |
Summary: SME Server auditing tools |
2 |
|
|
%define name smeserver-audittools |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 0.0.2 |
5 |
|
|
%define release 4 |
6 |
|
|
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
|
|
License: GPL |
9 |
|
|
Group: System Environment/Base |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
|
|
Patch0: smeserver-audittools-0.0.2-pseudonymscommands.patch |
12 |
|
|
Patch1: smeserver-audittools-0.0.2-printwarn.patch |
13 |
|
|
Patch2: smeserver-audittools-0.0.2-pseudonymwithoutdomain.patch |
14 |
|
|
Patch3: smeserver-audittools-0.0.2-virtualdomains2pseudonyms.patch |
15 |
|
|
Patch4: smeserver-audittools-0.0.2-RenameFlags.patch |
16 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
|
|
BuildArchitectures: noarch |
18 |
|
|
Requires: e-smith-lib |
19 |
|
|
Requires: perl(RPM2) |
20 |
|
|
BuildRequires: e-smith-devtools |
21 |
|
|
|
22 |
|
|
%description |
23 |
|
|
Tools for consistency audits of SME Servers. Useful for determining local |
24 |
|
|
modifications prior to upgrades. |
25 |
|
|
|
26 |
|
|
%changelog |
27 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
28 |
|
|
- Clean up spec so package can be built by koji/plague |
29 |
|
|
|
30 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
31 |
|
|
- Update to new release naming. No functional changes. |
32 |
|
|
- Make Packager generic |
33 |
|
|
|
34 |
|
|
* Wed Apr 12 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.2-03 |
35 |
|
|
- Change status output for templates audit. In particular |
36 |
|
|
OK -> OWNED_BY_RPM. This means that custom templates will appear |
37 |
|
|
as "OWNED_BY_RPM, OVERRIDE" rather than "OK, OVERRIDE". template |
38 |
|
|
fragments should not be placed in templates-custom via RPMs [SME: 792] |
39 |
|
|
|
40 |
|
|
* Thu Mar 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.2-02 |
41 |
|
|
- Fix output from pseudonyms audit [SME: 792] |
42 |
|
|
- Display commands on stdout and warnings on stderr [SME: 792] |
43 |
|
|
- Complain about pseudonyms with @, but no domain [SME: 792] |
44 |
|
|
- Complain if virtualdomains pseudonym doesn't match accounts db [SME: 792] |
45 |
|
|
|
46 |
|
|
* Thu Mar 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.2-01 |
47 |
|
|
- Roll new tarball with patches to 0.0.1-10 [SME: 792] |
48 |
|
|
|
49 |
|
|
* Thu Mar 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-10 |
50 |
|
|
- Add pseudonyms audit [SME: 762] |
51 |
|
|
|
52 |
|
|
* Thu Mar 30 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-09 |
53 |
|
|
- Moved all tools into /sbin/e-smith/audittools to reduce clutter |
54 |
|
|
and make it easier to run all of them [SME: 762] |
55 |
|
|
|
56 |
|
|
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-08 |
57 |
|
|
- audit-users2domains - What email address have been used? [SME: 762] |
58 |
|
|
|
59 |
|
|
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-07 |
60 |
|
|
- Remove verbose option to rpm_status - not used [SME: 762] |
61 |
|
|
|
62 |
|
|
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-06 |
63 |
|
|
- Determine how many RPMs own a template and whether it has been |
64 |
|
|
modified since the install of the RPM [SME: 762] |
65 |
|
|
|
66 |
|
|
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-05 |
67 |
|
|
- Only display commands required for conversion from virtualdomains |
68 |
|
|
hacks to user@domain pseudonyms. These are audit tools - changing |
69 |
|
|
the system should be a separate task [SME: 762] |
70 |
|
|
|
71 |
|
|
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-04 |
72 |
|
|
- Examine custom templates: |
73 |
|
|
- Are they owned by an RPM? |
74 |
|
|
- Are they an override or an addition? |
75 |
|
|
- Examine templates |
76 |
|
|
- Are they owned by an RPM? |
77 |
|
|
- TODO: Have they been modified since the install? [SME: 762] |
78 |
|
|
|
79 |
|
|
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-03 |
80 |
|
|
- First cut at custom template audit [SME: 762] |
81 |
|
|
|
82 |
|
|
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-02 |
83 |
|
|
- Add dependency on perl(RPM2) [SME: 762] |
84 |
|
|
|
85 |
|
|
* Thu Mar 23 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-01 |
86 |
|
|
- Initial version [SME: 762] |
87 |
|
|
|
88 |
|
|
%prep |
89 |
|
|
%setup |
90 |
|
|
%patch0 -p1 |
91 |
|
|
%patch1 -p1 |
92 |
|
|
%patch2 -p1 |
93 |
|
|
%patch3 -p1 |
94 |
|
|
%patch4 -p1 |
95 |
|
|
|
96 |
|
|
%build |
97 |
|
|
|
98 |
|
|
%pre |
99 |
|
|
|
100 |
|
|
%post |
101 |
|
|
|
102 |
|
|
%install |
103 |
|
|
rm -rf $RPM_BUILD_ROOT |
104 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
105 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
106 |
|
|
--file /sbin/e-smith/audittools/ 'attr(0554,root,root)' \ |
107 |
|
|
> %{name}-%{version}-%{release}-filelist |
108 |
|
|
|
109 |
|
|
%clean |
110 |
|
|
rm -rf $RPM_BUILD_ROOT |
111 |
|
|
|
112 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
113 |
|
|
%defattr(-,root,root) |