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