1 |
# $Id: smeserver-tw-logonscript.spec,v 1.12 2009/12/01 02:24:41 chriscosta Exp $ |
# $Id: smeserver-tw-logonscript.spec,v 1.17 2011/03/06 15:28:44 slords Exp $ |
2 |
# Authority: chriscosta |
# Authority: chriscosta |
3 |
# Name: Christian Costa |
# Name: Christian Costa |
4 |
|
|
5 |
%define name smeserver-tw-logonscript |
%define name smeserver-tw-logonscript |
6 |
%define version 1.3 |
%define version 1.3 |
7 |
%define release 14 |
%define release 19 |
8 |
Summary: TechnologyWise Windows/Linux logon script for Samba |
Summary: TechnologyWise Windows/Linux logon script for Samba |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
22 |
Patch9: smeserver-tw-logonscript-1.3-signalEventPatch.patch |
Patch9: smeserver-tw-logonscript-1.3-signalEventPatch.patch |
23 |
Patch10: smeserver-tw-logonscript-1.3-signalEventPatch2.patch |
Patch10: smeserver-tw-logonscript-1.3-signalEventPatch2.patch |
24 |
Patch11: smeserver-tw-logonscript-1.3-pathDBSettings.patch |
Patch11: smeserver-tw-logonscript-1.3-pathDBSettings.patch |
25 |
|
Patch12: smeserver-tw-logonscript-1.3-newDBproperty1.patch |
26 |
|
Patch13: smeserver-tw-logonscript-1.3-newDBproperty2.patch |
27 |
|
Patch14: smeserver-tw-logonscript-1.3-newDBproperty3.patch |
28 |
|
Patch15: smeserver-tw-logonscript-1.3-dbNameChange.patch |
29 |
|
Patch16: smeserver-tw-logonscript-1.3-locale-2010-03-02.patch |
30 |
|
Patch17: smeserver-tw-logonscript-1.3-locale-2010-05-23.patch |
31 |
|
Patch18: smeserver-tw-logonscript-1.3-locale-2011-03-06.patch |
32 |
|
Patch19: smeserver-tw-logonscript-1.3-locale-2011-04-27.patch |
33 |
License: GNU GPL version 2 |
License: GNU GPL version 2 |
34 |
Group: Networking/Daemons |
Group: Networking/Daemons |
35 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
53 |
%patch9 -p1 |
%patch9 -p1 |
54 |
%patch10 -p1 |
%patch10 -p1 |
55 |
%patch11 -p1 |
%patch11 -p1 |
56 |
|
%patch12 -p1 |
57 |
|
%patch13 -p1 |
58 |
|
%patch14 -p1 |
59 |
|
%patch15 -p1 |
60 |
|
%patch16 -p1 |
61 |
|
%patch17 -p1 |
62 |
|
%patch18 -p1 |
63 |
|
%patch19 -p1 |
64 |
|
|
65 |
%build |
%build |
66 |
perl createlinks |
perl createlinks |
67 |
|
|
76 |
cd .. |
cd .. |
77 |
rm -rf %{name} |
rm -rf %{name} |
78 |
|
|
79 |
|
%files -f %{name}-%{version}-filelist |
80 |
|
%defattr(-,root,root) |
81 |
|
|
82 |
%pre |
%changelog |
83 |
UPDATE=$(/sbin/e-smith/db configuration get tw-logonscript) |
* Wed Apr 27 2011 SME Translation Server <translations@contribs.org> 1.3-19.sme |
84 |
|
- apply locale 2011-04-27 patch |
85 |
|
|
86 |
case $UPDATE in |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.3-18.sme |
87 |
0) |
- apply locale 2011-03-06 patch |
|
echo "tw-logonscript configuration db found, not touching anything" |
|
|
;; |
|
|
|
|
|
1) |
|
|
/sbin/e-smith/db configuration set tw-logonscript configuration |
|
|
/sbin/e-smith/db configuration setprop tw-logonscript MountPointsPath /mnt UserHomeMountPointName user_data |
|
|
;; |
|
|
esac |
|
88 |
|
|
89 |
%preun |
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 1.3-17.sme |
90 |
/sbin/e-smith/db configuration delete tw-logonscript |
- apply locale 2010-05-23 patch |
91 |
|
|
92 |
%files -f %{name}-%{version}-filelist |
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 1.3-16.sme |
93 |
%defattr(-,root,root) |
- apply locale 2010-03-02 patch |
94 |
|
|
95 |
|
* Thu Jan 28 2010 Christian Costa <christian@tw.co.nz> 1.3-15 |
96 |
|
- Removed %pre %preun from spec file |
97 |
|
- Added new files under etc/e-smith/db/configuration/defaults/twlogonscript/ |
98 |
|
- Change to the main script so that it will comply with the new db name |
99 |
|
|
|
%changelog |
|
100 |
* Wed Jan 27 2010 Christian Costa <christian@tw.co.nz> 1.3-14 |
* Wed Jan 27 2010 Christian Costa <christian@tw.co.nz> 1.3-14 |
101 |
- Created a new configuration database for tw-logonscript. Two properties MountPointsPath and UserHomeMountPointName have been added. |
- Created a new configuration database for tw-logonscript. Two properties MountPointsPath and UserHomeMountPointName have been added. |
102 |
- Changed the spec file to set the default properties automatically |
- Changed the spec file to set the default properties automatically |