1 |
slords |
1.6 |
# $Id: smeserver-dirty-tools.spec,v 1.5 2008/04/02 15:03:57 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.4 |
%define release 2 |
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 |
slords |
1.1 |
AutoReq: no |
22 |
|
|
|
23 |
|
|
%description |
24 |
|
|
See http://wiki.contribs.org/Dirty_Tools for full documentation |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
%changelog |
28 |
mweinber |
1.4 |
* Sat Mar 01 2008 Michael Weinberger 0.0.9-2 |
29 |
|
|
use perl-esmith-PasswordTools |
30 |
mweinber |
1.3 |
* Sat Mar 01 2008 Michael Weinberger 0.0.9-1 |
31 |
|
|
Bug 4001 fix |
32 |
slords |
1.1 |
* Tue Sep 11 2007 Michael Weinberger |
33 |
|
|
Version 0.0.9 |
34 |
|
|
dt-data-copy |
35 |
|
|
* Wed Aug 22 2007 Michael Weinberger |
36 |
|
|
Version 0.0.8 |
37 |
|
|
fixed dt-passowrds-sync: PasswordSet prop for ibays |
38 |
|
|
* Tue Aug 21 2007 Michael Weinberger |
39 |
|
|
Version 0.0.7 |
40 |
|
|
fixed dt-passowrds-sync: smbpasswd-sync: also sync flags and lct. |
41 |
|
|
fixed dt-lock-account: dont unlock (new) account without a password set: Print a error. |
42 |
|
|
Set PasswordSet property onyl if both shadow password and smb password are set |
43 |
|
|
* Sun Aug 19 2007 Michael Weinberger |
44 |
|
|
Version 0.0.6 |
45 |
|
|
dt-lock-account |
46 |
|
|
* Thu Aug 16 2007 Michael Weinberger |
47 |
|
|
Version 0.0.5 |
48 |
|
|
dt-pw-generate |
49 |
|
|
* Sun Aug 12 2007 Michael Weinberger |
50 |
|
|
Version 0.0.4 |
51 |
|
|
dt-dovecot-indexfiles-delete added |
52 |
|
|
dt-datasync renamed to dt-data-sync |
53 |
|
|
* Fri Aug 10 2007 Michael Weinberger |
54 |
|
|
Schleife in dt-password-sync mit 0 beginnen |
55 |
|
|
* Wed Aug 01 2007 Michael Weinberger |
56 |
|
|
- initial release 0.0.1 |
57 |
|
|
|
58 |
|
|
%prep |
59 |
|
|
%setup -q -n %{realname}-%{version} |
60 |
mweinber |
1.3 |
%patch0 -p1 |
61 |
mweinber |
1.4 |
%patch1 -p1 |
62 |
slords |
1.1 |
|
63 |
|
|
%build |
64 |
|
|
|
65 |
|
|
%install |
66 |
|
|
rm -rf $RPM_BUILD_ROOT |
67 |
|
|
rm -f %{name}-%{version}-filelist |
68 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
69 |
|
|
|
70 |
|
|
rm -f %{name}-%{version}-filelist |
71 |
|
|
|
72 |
|
|
find $RPM_BUILD_ROOT -depth -type f -print |\ |
73 |
|
|
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
74 |
|
|
-e "s@^/sbin/e-smith/@%attr(0750,root,root) &@"\ |
75 |
|
|
>> %{name}-%{version}-filelist |
76 |
|
|
find $RPM_BUILD_ROOT -depth -type l -print |\ |
77 |
|
|
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
78 |
|
|
|
79 |
|
|
%clean |
80 |
|
|
rm -rf $RPM_BUILD_ROOT |
81 |
|
|
|
82 |
|
|
%files -f %{name}-%{version}-filelist |
83 |
|
|
%defattr(-,root,root) |