--- rpms/smeserver-tw-logonscript/contribs7/smeserver-tw-logonscript.spec 2009/10/27 17:43:52 1.6 +++ rpms/smeserver-tw-logonscript/contribs7/smeserver-tw-logonscript.spec 2010/01/27 03:42:49 1.13 @@ -1,10 +1,10 @@ -# $Id: smeserver-tw-logonscript.spec,v 1.5 2009/10/21 17:48:54 vip-ire Exp $ +# $Id: smeserver-tw-logonscript.spec,v 1.12 2009/12/01 02:24:41 chriscosta Exp $ # Authority: chriscosta # Name: Christian Costa %define name smeserver-tw-logonscript %define version 1.3 -%define release 7 +%define release 14 Summary: TechnologyWise Windows/Linux logon script for Samba Name: %{name} Version: %{version} @@ -13,6 +13,15 @@ Source: smeserver-tw-logonscript-%{versi Patch0: smeserver-tw-logonscript-1.3-removeblank.patch Patch1: smeserver-tw-logonscript-1.3-locale-2009-10-21.patch Patch2: smeserver-tw-logonscript-1.3-locale-2009-10-27.patch +Patch3: smeserver-tw-logonscript-1.3-PamMountOptsFix-HomeNameChange.patch +Patch4: smeserver-tw-logonscript-1.3-SecurityFixBatchEdit.patch +Patch5: smeserver-tw-logonscript-1.3-en_us_patch1.patch +Patch6: smeserver-tw-logonscript-1.3-functionsPrintGroupTable.patch +Patch7: smeserver-tw-logonscript-1.3-panelPrintGroupTable.patch +Patch8: smeserver-tw-logonscript-1.3-TemplateWarningFix.patch +Patch9: smeserver-tw-logonscript-1.3-signalEventPatch.patch +Patch10: smeserver-tw-logonscript-1.3-signalEventPatch2.patch +Patch11: smeserver-tw-logonscript-1.3-pathDBSettings.patch License: GNU GPL version 2 Group: Networking/Daemons BuildArchitectures: noarch @@ -27,7 +36,15 @@ TechnologyWise Windows/Linux logon scrip %patch0 -p1 %patch1 -p1 %patch2 -p1 - +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +%patch10 -p1 +%patch11 -p1 %build perl createlinks @@ -42,10 +59,53 @@ rm -f %{name}-%{version}-filelist cd .. rm -rf %{name} + +%pre +UPDATE=$(/sbin/e-smith/db configuration get tw-logonscript) + +case $UPDATE in + 0) + 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 + +%preun + /sbin/e-smith/db configuration delete tw-logonscript + %files -f %{name}-%{version}-filelist %defattr(-,root,root) %changelog +* Wed Jan 27 2010 Christian Costa 1.3-14 +- Created a new configuration database for tw-logonscript. Two properties MountPointsPath and UserHomeMountPointName have been added. +- Changed the spec file to set the default properties automatically + +* Tue Dec 1 2009 Christian Costa 1.3-13 +- Changed event name on createlinks to bootstrap-console-save instead of post-upgrade. + +* Tue Dec 1 2009 Christian Costa 1.3-12 +- Changed the createlinks script to correctly set up the templates to expand so that netlogon.bat will be expanded with workgroup-update and post-upgrade + +* Thu Nov 19 2009 Christian Costa 1.3-11 +- Changes to the netlogon.bat template. If no drive letters were associate to I-bays it generated errors. Also defaulted the home drive to H: in case none is set. +- Added two missing files to the workgroup-update and post-upgrade events. + +* Mon Nov 16 2009 Christian Costa 1.3-10 +- Changes to the SME Server panel. Now it displays a list with all groups that allows custom group batch files to be edited/created for all groups not only the ones associated with i-bays. +- Added a new lexicon to the en_us file + +* Wed Nov 4 2009 Christian Costa 1.3-9 +- Fixed a security problem that would allow the creation of arbitrary files on the system. + +* Thu Oct 29 2009 Christian Costa 1.3-8 +- Added additional pam_mount options to the .pam_mount.xml generation routine +- Changed the user's home dir mount point name from home to win_home + * Tue Oct 27 2009 SME Translation Server 1.3-7.sme - apply locale 2009-10-27 patch @@ -54,29 +114,71 @@ rm -rf %{name} - cleanup changelog to be more readable * Tue Oct 20 2009 Christian Costa 1.3-5 +<<<<<<< smeserver-tw-logonscript.spec +Added e-smith-devtools as a build requirement + +======= - Added e-smith-devtools as a build requirement +>>>>>>> 1.6 * Tue Oct 20 2009 Christian Costa 1.3-04 +<<<<<<< smeserver-tw-logonscript.spec +Removed a blank space from the source code for testing purposes + +======= - Removed a blank space from the source code for testing purposes +>>>>>>> 1.6 * Thu Oct 8 2009 Christian Costa +<<<<<<< smeserver-tw-logonscript.spec +Added localisation support +Added server-manager embedded custom group batch file editing +Fixed a bug with user custom scripts that were being executed more than once + +======= - Added localisation support - Added server-manager embedded custom group batch file editing - Fixed a bug with user custom scripts that were being executed more than once +>>>>>>> 1.6 * Thu Sep 3 2009 Christian Costa +<<<<<<< smeserver-tw-logonscript.spec +New specs file, new version number + +======= - New specs file, new version number +>>>>>>> 1.6 * Mon Aug 10 2009 Christian Costa +<<<<<<< smeserver-tw-logonscript.spec +Branched out from the 61netlogonshare custom script and added a new db property for smb called LogonScript + +======= - Branched out from the 61netlogonshare custom script and added a new db property for smb called LogonScript +>>>>>>> 1.6 * Wed Jul 8 2009 Christian Costa +<<<<<<< smeserver-tw-logonscript.spec +Added .pam_mount.conf.xml generation for Linux clients using libpam-mount. + +======= - Added .pam_mount.conf.xml generation for Linux clients using libpam-mount. +>>>>>>> 1.6 * Wed Jul 29 2008 Christian Costa +<<<<<<< smeserver-tw-logonscript.spec +Added a feature that maps the drive if all users are allowed to read an I-bay. +Extended the drive letter range from F to Z. + +======= - Added a feature that maps the drive if all users are allowed to read an I-bay. - Extended the drive letter range from F to Z. +>>>>>>> 1.6 * Wed Jul 9 2008 Christian Costa +<<<<<<< smeserver-tw-logonscript.spec +Added the server-manager web interface to the package. +======= - Added the server-manager web interface to the package. +>>>>>>> 1.6