1 |
mweinber |
1.8 |
# $Id: smeserver-dirty-tools.spec,v 1.7 2008/11/25 16:20:21 slords Exp $ |
2 |
slords |
1.5 |
# Authority: mweinber |
3 |
|
|
# Name: Michael Weinberger |
4 |
|
|
|
5 |
slords |
1.1 |
Summary: A collection of "dirty" scripts for the experienced administrator |
6 |
|
|
%define realname smeserver-dirty-tools |
7 |
|
|
Name: %{realname} |
8 |
|
|
%define version 0.0.9 |
9 |
|
|
Version: %{version} |
10 |
mweinber |
1.8 |
%define release 3 |
11 |
slords |
1.2 |
Release: %{release}%{?dist} |
12 |
slords |
1.1 |
License: GNU GPL (GNU General Public License) |
13 |
|
|
Group: Administration |
14 |
|
|
Source: %{realname}-%{version}.tar.gz |
15 |
|
|
BuildRoot: /var/tmp/%{realname}-%{version}-buildroot/ |
16 |
|
|
BuildArch: noarch |
17 |
|
|
Requires: smeserver-release >= 7 |
18 |
mweinber |
1.4 |
Requires: perl-esmith-PasswordTools |
19 |
mweinber |
1.3 |
Patch0: smeserver-dirty-tools-0.0.9-bug_4001.patch |
20 |
mweinber |
1.4 |
Patch1: smeserver-dirty-tools-0.0.9-usePasswordTools.patch |
21 |
mweinber |
1.8 |
Patch2: smeserver-dirty-tools-0.0.9-ldap.patch |
22 |
slords |
1.1 |
AutoReq: no |
23 |
|
|
|
24 |
|
|
%description |
25 |
|
|
See http://wiki.contribs.org/Dirty_Tools for full documentation |
26 |
|
|
|
27 |
|
|
|
28 |
|
|
%changelog |
29 |
mweinber |
1.8 |
* Thu Jan 29 2009 Michael Weinberger 0.0.9-3 |
30 |
|
|
Bug 4962 fix |
31 |
mweinber |
1.4 |
* Sat Mar 01 2008 Michael Weinberger 0.0.9-2 |
32 |
|
|
use perl-esmith-PasswordTools |
33 |
mweinber |
1.3 |
* Sat Mar 01 2008 Michael Weinberger 0.0.9-1 |
34 |
|
|
Bug 4001 fix |
35 |
slords |
1.1 |
* Tue Sep 11 2007 Michael Weinberger |
36 |
|
|
Version 0.0.9 |
37 |
|
|
dt-data-copy |
38 |
|
|
* Wed Aug 22 2007 Michael Weinberger |
39 |
|
|
Version 0.0.8 |
40 |
|
|
fixed dt-passowrds-sync: PasswordSet prop for ibays |
41 |
|
|
* Tue Aug 21 2007 Michael Weinberger |
42 |
|
|
Version 0.0.7 |
43 |
|
|
fixed dt-passowrds-sync: smbpasswd-sync: also sync flags and lct. |
44 |
|
|
fixed dt-lock-account: dont unlock (new) account without a password set: Print a error. |
45 |
|
|
Set PasswordSet property onyl if both shadow password and smb password are set |
46 |
|
|
* Sun Aug 19 2007 Michael Weinberger |
47 |
|
|
Version 0.0.6 |
48 |
|
|
dt-lock-account |
49 |
|
|
* Thu Aug 16 2007 Michael Weinberger |
50 |
|
|
Version 0.0.5 |
51 |
|
|
dt-pw-generate |
52 |
|
|
* Sun Aug 12 2007 Michael Weinberger |
53 |
|
|
Version 0.0.4 |
54 |
|
|
dt-dovecot-indexfiles-delete added |
55 |
|
|
dt-datasync renamed to dt-data-sync |
56 |
|
|
* Fri Aug 10 2007 Michael Weinberger |
57 |
|
|
Schleife in dt-password-sync mit 0 beginnen |
58 |
|
|
* Wed Aug 01 2007 Michael Weinberger |
59 |
|
|
- initial release 0.0.1 |
60 |
|
|
|
61 |
|
|
%prep |
62 |
|
|
%setup -q -n %{realname}-%{version} |
63 |
mweinber |
1.3 |
%patch0 -p1 |
64 |
mweinber |
1.4 |
%patch1 -p1 |
65 |
mweinber |
1.8 |
%patch2 -p1 |
66 |
slords |
1.1 |
|
67 |
|
|
%build |
68 |
|
|
|
69 |
|
|
%install |
70 |
|
|
rm -rf $RPM_BUILD_ROOT |
71 |
|
|
rm -f %{name}-%{version}-filelist |
72 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
73 |
|
|
|
74 |
|
|
rm -f %{name}-%{version}-filelist |
75 |
|
|
|
76 |
|
|
find $RPM_BUILD_ROOT -depth -type f -print |\ |
77 |
|
|
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
78 |
|
|
-e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\ |
79 |
|
|
>> %{name}-%{version}-filelist |
80 |
|
|
find $RPM_BUILD_ROOT -depth -type l -print |\ |
81 |
|
|
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
82 |
|
|
|
83 |
|
|
%clean |
84 |
|
|
rm -rf $RPM_BUILD_ROOT |
85 |
|
|
|
86 |
|
|
%files -f %{name}-%{version}-filelist |
87 |
|
|
%defattr(-,root,root) |