Changeset 451
- Timestamp:
- May 25, 2010, 6:17:14 PM (15 years ago)
- Location:
- branches/guitools-1.0
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-1.0/install/changes
r409 r451 1 Version 1.0.0 13-03-2010 2 +Added: Use a more wizard-like style instead of 3 multiple message boxes. 4 +Added: Offer to remove and recreate also backend 5 database files. 6 +Added: Enhanced search routine for Apache 2.x 7 *Changed: Main_Resize works better 8 *Changed: Help button removed 9 *Changed: Installation process is organized in a 10 more logical order. 11 !Fixed: Do not allow to disable creation of "root" 12 account unless it already exists 13 !Fixed: Initiate notebook page load earlier (no more 14 crashes in certain situations) 15 !Fixed: Do not crash on almost empty smb.conf (created 16 by a client installation 17 !Fixed: Bug in NLV.VRS 2.0 18 Version 0.9.5 06-03-2010 19 +Added: SambaInit.VRS: _SambaInit() acts more 20 intelligently now 21 +Added: Recommend creation of an account for the 22 name stored in %USER% during installation 23 *Changed: Use NLV.VRS 2.0 instead of 1.0 1 24 Version 0.9.4 19-02-2010 2 25 +Added: User is forced to create a "root" account now, -
branches/guitools-1.0/install/sscc.vrp
r408 r451 3 3 MacroPath: VRM:U:\Develop\Samba\guitools-1.0\install 4 4 EXEPath: 5 RunParameters: 5 RunParameters: /install 6 6 RunDirectory: E:\Dev\REXX\VXREXX\Projects\Samba\install 7 7 VRXWindow: __VREMainWindow,1,2180,4481,891,7263 8 VRXWindow: __VRESectionListWindow,1,3011,1 2286,8974,31449 VRXWindow: __VREToolsWindow,1, 3211,10648,6995,16638 VRXWindow: __VRESectionListWindow,1,3011,10551,8974,4890 9 VRXWindow: __VREToolsWindow,1,2867,2361,6992,1665 10 10 VRXWindow: __VREWindListWindow,1,385,12286,2650,3150 11 11 UserFile: 1 … … 13 13 UserWindow: GB_Global_1,1 14 14 UserWindow: Installer,1 15 UserWindow: RemoveConfig,1 -
branches/guitools-1.0/install/sscc.vrx
r408 r451 93 93 #append U:\Develop\Samba\guitools-1.0\shared\inittempdir.vrs 94 94 #append U:\Develop\Samba\guitools-1.0\shared\sambainit.vrs 95 #append U:\Develop\Samba\guitools- 1.0\shared\nlv.vrs95 #append U:\Develop\Samba\guitools-2.0\shared\nlv.vrs 96 96 #append U:\Develop\Samba\guitools-1.0\shared\swat.vrs 97 97 */ … … 400 400 401 401 advanced.!bigicons = VRGetIni( "Options", "BigIcons", OurINI) 402 if advanced.!bigicons = "" then advanced.!bigicons = 0402 if advanced.!bigicons = "" then advanced.!bigicons = 1 403 403 404 404 /* Initialize several variables */ … … 418 418 CreatePDC = 0 /* only for installermode */ 419 419 420 421 422 420 FWidth = 32 423 421 424 IF advanced.!bigicons== 1 THEN say '_INIRead() done'422 IF options.!debug == 1 THEN say '_INIRead() done' 425 423 return 426 424 … … 477 475 */ 478 476 _LoadOtherFuncs: 479 ok = VRRedirectStdio('OFF') 477 if options.!Debug then ok = VRREdirectStdIO("ON") 478 else ok = VRREdirectStdIO("OFF") 480 479 481 480 call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs' … … 673 672 call _SmbConfBackup 674 673 if InstallMode then do 675 Msg.Text = NLVGetMessage(56, samba.!smbconf) 674 window = VRLoadSecondary( "RemoveConfig", "W" ) 675 end 676 end 677 678 if \VRFileExists(swatusers) & swatauth = 1 & InstallMode = 0 then do 679 Msg.Text = NLVGetMessage(115, swatusers) 680 Msg.Type = "W" 681 call _ShowMsg 682 end 683 IF options.!debug == 1 THEN say ' Does "'samba.!smbconf'" still exist? 'SmbConfExists' (1=Yes, 0=No)' 684 IF options.!debug == 1 THEN say ' Running in InstallMode = 'InstallMode' (1=Yes, 0=No)' 685 686 IF options.!debug == 1 THEN say '_SambaCheckComponents() done' 687 return 688 689 690 /* Msg.Text = NLVGetMessage(56, samba.!smbconf) 676 691 Msg.Type = "Q" 677 692 ok = _MsgYesNo() … … 679 694 ok = SysFileDelete(samba.!smbconf) 680 695 SmbConfExists = 0 696 Msg.Text = "Also reinitialize backend?" /* NLVGetMessage(56, samba.!smbconf) */ 697 Msg.Type = "Q" 698 ok = _MsgYesNo() 699 if ok = 1 then do 700 ok = SysFileTree(ETC"\samba\*.?db",xdb.,'FOS') 701 do I = 1 to xdb.0 702 ok = SysFileDelete(xdb.I) 703 if ok <> 0 then do 704 Msg.Text = "Error "ok" deleting "xdb.I"!" 705 Msg.Type = "W" 706 call _ShowMsg 707 end 708 end 709 end 681 710 end 682 711 else InstallMode = 0 683 end 684 end 685 686 if \VRFileExists(swatusers) & swatauth = 1 & InstallMode = 0 then do 687 Msg.Text = NLVGetMessage(115, swatusers) 688 Msg.Type = "W" 689 call _ShowMsg 690 end 691 IF options.!debug == 1 THEN say ' Does "'samba.!smbconf'" still exist? 'SmbConfExists' (1=Yes, 0=No)' 692 IF options.!debug == 1 THEN say ' Running in InstallMode = 'InstallMode' (1=Yes, 0=No)' 693 694 IF options.!debug == 1 THEN say '_SambaCheckComponents() done' 695 return 712 */ 696 713 /*:VRX _SambaGroupMapInst 697 714 */ … … 828 845 id = VRMessageStem( VRWindow(), "smbmsg.", VRGet("Main", "Caption") , "I", "Buttons.", buttons.1, buttons.1 ) 829 846 return 847 /*:VRX _SambaUserCreate 848 */ 849 _SambaUserCreate: 850 eCSUser = value("USER",,"OS2ENVIRONMENT") 851 if translate(eCSUser) <> "root" & translate(eCSUser) <> "guest" then do 852 Msg.Text = NLVGetMessage(75, eCSUser) 853 Msg.Type = "I" 854 call _ShowMsg 855 end 856 return 857 830 858 /*:VRX _SambaVersion 831 859 */ … … 1700 1728 return 1701 1729 1730 /*:VRX CB_RemoveSmbConf_Click 1731 */ 1732 CB_RemoveSmbConf_Click: 1733 ok = VRSet("CB_RemoveBackend", "Enabled", VRGet("CB_RemoveSmbConf","set")) 1734 if VRGet("CB_RemoveBackend", "Enabled") = 0 then ok = VRSet("CB_RemoveBackend", "Set", 0) 1735 return 1736 1702 1737 /*:VRX CB_Store_DOS_attributes_Click 1703 1738 */ … … 1741 1776 if PropHandle.0 = 0 then do 1742 1777 IF options.!debug == 1 THEN SAY 'CN_smbconf_Click() aborted, no handle' 1778 Ok = VRset("Main", "Painting", 1) 1743 1779 return 1744 1780 end … … 1761 1797 if Prophandle.1 = smbconf.!root | Prophandle.1 = smbconf.!dirs | Prophandle.1 = smbconf.!printers then do 1762 1798 IF options.!debug == 1 THEN SAY 'CN_smbconf_Click() aborted, got parent handle' 1799 Ok = VRset("Main", "Painting", 1) 1763 1800 return 1764 1801 end … … 1785 1822 ObjXPos = 1325 1786 1823 ObjDelta = 320 1787 if Page = 1 then ActiveGroupObj = VRGet("GB_"ActiveGroup"_1", "Self") 1824 if Page = 1 then do 1825 if \VRIsValidObject("GB_"ActiveGroup"_1") then do 1826 ActiveGroupObj = VRCreate("GB_Global", "Window", "Name", "GL_GLOBAL_"Page, "Height", 1500, "Width", 1500, "Visible", 0, "Font", "9.WarpSans") 1827 IF options.!debug == 1 THEN say ' Neues Fenster VRCreate = 'ok 1828 ok = VRLoad( "GB_Global", VRWindowPath(), "GL_GLOBAL_"Page ) 1829 IF options.!debug == 1 THEN say ' VRLoad = 'ok 1830 ok = VRMethod("GB_Global", "InsertPage", "GL_GLOBAL_"Page, "+"Page) 1831 IF options.!debug == 1 THEN say ' InsertPage = 'ok 1832 1833 /* ok = VRset("Main", "Painting", 1) 1834 Msg.Text = NLVGetMessage(114) 1835 Msg.Type = "I" 1836 call _ShowMsg 1837 return */ 1838 end 1839 ActiveGroupObj = VRGet("GB_"ActiveGroup"_1", "Self") 1840 end 1788 1841 end 1789 1842 else do 1843 if \VRIsValidObject("GB_"ActiveGroup) then do 1844 ok = VRset("Main", "Painting", 1) 1845 Msg.Text = NLVGetMessage(114) 1846 Msg.Type = "I" 1847 call _ShowMsg 1848 return 1849 end 1790 1850 ActiveGroupObj = "GB_"ActiveGroup 1791 1851 ok = VRSet("DT_"ActiveGroup,"Caption",sections.I) … … 1900 1960 end 1901 1961 end 1902 if upCurSection = "GLOBAL" & VRGet("EF_Netbios_name","Value") = "" then do 1903 ok = VRset("EF_NETBIOS_NAME","Value",Value("HOSTNAME",,"OS2ENVIRONMENT")) 1904 ok = VRFlush( , "EF_NETBIOS_NAME" ) 1905 end 1906 if upCurSection = "GLOBAL" & VRGet("EF_WorkGroup","Value") = "" then do 1907 ok = VRset("EF_WorkGroup","Value","WORKGROUP") 1908 ok = VRFlush( , "EF_WorkGroup" ) 1962 if upCurSection = "GLOBAL" then do 1963 if VRGet("EF_Netbios_name","Value") = "" then do 1964 ok = VRset("EF_NETBIOS_NAME","Value",Value("HOSTNAME",,"OS2ENVIRONMENT")) 1965 ok = VRFlush( , "EF_NETBIOS_NAME" ) 1966 end 1967 if VRGet("EF_WorkGroup","Value") = "" then do 1968 ok = VRset("EF_WorkGroup","Value","WORKGROUP") 1969 ok = VRFlush( , "EF_WorkGroup" ) 1970 end 1909 1971 end 1910 1972 … … 2102 2164 ok = VRSet("CB_NoRoot","Enabled", 0) 2103 2165 end 2166 if \VRFileExists(ETC'\samba\private\secrets.tdb') then do 2167 ok = VRSet("CB_NoRoot","Enabled", 0) 2168 end 2104 2169 UseTDBsam = 1 2105 2170 CreatePDC = 0 … … 2190 2255 2191 2256 call _FindHtpasswd 2257 call Main_Resize 2192 2258 call _SambaCheckComponents 2193 2259 call _SambaVersion … … 2271 2337 ok = VRSet("GB_Global", "Width", VRGet("GB_Shares", "Width")) 2272 2338 2273 Button.Top = VRGet("GB_SmbConfTree","height")+FWidth*2 2274 Button.Left = VRGet("GB_Shares","Left") 2275 Button.Width = VRGet("PB_Create","Width") 2276 2277 ok = VRSet("PB_Create", "Top", Button.Top) 2278 ok = VRSet("PB_Create", "Left", Button.Left) 2279 2280 ok = VRSet("PB_Reload", "Top", Button.Top) 2281 ok = VRSet("PB_Reload", "Left", Button.Left-2*FWidth-Button.Width) 2282 ok = VRSet("PB_Reload", "Width", Button.Width) 2283 2284 ok = VRSet("PB_Undo", "Top", Button.Top) 2285 ok = VRSet("PB_Undo", "Left", Button.Left+2*FWidth+Button.Width) 2286 ok = VRSet("PB_Undo", "Width", Button.Width) 2287 2288 ok = VRSet("PB_Cancel", "Top", Button.Top) 2289 ok = VRSet("PB_Cancel", "Left", Button.Left+4*FWidth+Button.Width*2) 2290 ok = VRSet("PB_Cancel", "Width", Button.Width) 2291 2292 ok = VRSet("PB_Help", "Top", Button.Top) 2293 ok = VRSet("PB_Help", "Left", Button.Left+6*FWidth+Button.Width*3) 2294 ok = VRSet("PB_Help", "Width", Button.Width) 2295 2296 drop Button. 2339 MButton.bTop = VRGet("GB_SmbConfTree","height")+FWidth*2 2340 MButton.bLeft = VRGet("GB_Shares","Left") 2341 MButton.bWidth = VRGet("PB_Create","Width") 2342 2343 if MButton.bTop < 1300 & MButton.bLeft < 1300 then do 2344 MButton.bTop = 4842 2345 MButton.bLeft = 3758 2346 MButton.bWidth = 1241 2347 FWidth = 32 2348 end 2349 2350 ok = VRSet("PB_Reload", "Top", MButton.bTop) 2351 ok = VRSet("PB_Reload", "Left", MButton.bLeft) 2352 ok = VRSet("PB_Reload", "Width", MButton.bWidth) 2353 2354 ok = VRSet("PB_Create", "Top", MButton.bTop) 2355 ok = VRSet("PB_Create", "Left", MButton.bLeft+1*FWidth+MButton.bWidth) 2356 ok = VRSet("PB_Reload", "Width", MButton.bWidth) 2357 2358 ok = VRSet("PB_Undo", "Top", MButton.bTop) 2359 ok = VRSet("PB_Undo", "Left", MButton.bLeft+2*FWidth+MButton.bWidth*2) 2360 ok = VRSet("PB_Undo", "Width", MButton.bWidth) 2361 2362 ok = VRSet("PB_Cancel", "Top", MButton.bTop) 2363 ok = VRSet("PB_Cancel", "Left", MButton.bLeft+3*FWidth+MButton.bWidth*3) 2364 ok = VRSet("PB_Cancel", "Width", MButton.bWidth) 2365 2366 /* ok = VRSet("PB_Help", "Top", MButton.bTop) 2367 ok = VRSet("PB_Help", "Left", MButton.bLeft+6*FWidth+MButton.bWidth*3) 2368 ok = VRSet("PB_Help", "Width", MButton.bWidth) */ 2369 2370 drop MButton.b 2297 2371 2298 2372 Top = VRGet("Main","Top") … … 2661 2735 if \_SambaRootPWCheck() then return 2662 2736 end 2737 2663 2738 call _SmbConfCreateDefault 2664 2739 ok = SysFileTree(smbconf,exist.,'FO') … … 2670 2745 end 2671 2746 call _SambaGuestCreate 2747 2748 call _SambaUserCreate 2749 ok = VRSet("Main", 'Pointer', 'WAIT' ) 2672 2750 call _SambaGroupMapInst 2673 2674 call Menu_File_ImportHosts_Click2751 ok = VRSet("Main", 'Pointer', '<default>' ) 2752 /* call Menu_File_ImportHosts_Click */ 2675 2753 2676 2754 call Installer_Close … … 2683 2761 if \_SambaRootPWCheck() then return 2684 2762 end 2763 2764 2685 2765 call _SmbConfMigratePeer 2686 2766 ok = SysFileTree(smbconf,exist.,'FO') … … 2692 2772 end 2693 2773 call _SambaGuestCreate 2774 2775 call _SambaUserCreate 2776 ok = VRSet("Main", 'Pointer', 'WAIT' ) 2694 2777 call _SambaGroupMapInst 2695 2696 call Menu_File_ImportHosts_Click 2778 ok = VRSet("Main", 'Pointer', '<default>' ) 2779 2780 /* call Menu_File_ImportHosts_Click */ 2697 2781 2698 2782 call Installer_Close … … 2724 2808 call beep 960, 1 2725 2809 address CMD samba.!smbcmd' reload' 2810 return 2811 2812 /*:VRX PB_RemoveContinue_Click 2813 */ 2814 PB_RemoveContinue_Click: 2815 2816 if VRGet("CB_RemoveSmbConf","set") then do 2817 ok = SysFileDelete(samba.!smbconf) 2818 SmbConfExists = 0 2819 Installmode = 1 2820 end 2821 else Installmode = 0 2822 2823 if VRGet("CB_RemoveBackend","set") then do 2824 ok = SysFileTree(ETC"\samba\*.?db",xdb.,'FOS') 2825 do I = 1 to xdb.0 2826 ok = SysFileDelete(xdb.I) 2827 if ok <> 0 then do 2828 Msg.Text = "Error "ok" deleting "xdb.I"!" 2829 Msg.Type = "W" 2830 call _ShowMsg 2831 end 2832 end 2833 end 2834 if VRGet("CB_RemoveLMHosts","set") then do 2835 call _LMHostsImport 2836 end 2837 2838 call RemoveConfig_Close 2726 2839 return 2727 2840 … … 2824 2937 return 2825 2938 2939 /*:VRX RemoveConfig_Close 2940 */ 2941 RemoveConfig_Close: 2942 call RemoveConfig_Fini 2943 return 2944 2945 /*:VRX RemoveConfig_Create 2946 */ 2947 RemoveConfig_Create: 2948 call RemoveConfig_Init 2949 CALL NLVSetText 'RemoveConfig', 'Caption', 90 2950 CALL NLVSetText 'PB_RemoveContinue', 'Caption', 14 2951 2952 ok = VRset("CB_RemoveSmbConf","Caption", NLVGetMessage(56, 'smb.conf')) 2953 ok = VRset("CB_RemoveBackend","Caption", NLVGetMessage(56, 'Backend')) 2954 ok = VRset("CB_RemoveLMHosts","Caption", NLVGetMessage(56, 'lmhosts')) 2955 2956 /* Check if ?db backend files exist */ 2957 ok = SysFileTree(ETC"\samba\*.?db",xdb.,'FOS') 2958 if xdb.0 = 0 then ok = VRset("CB_RemoveBackend","Enabled", 0) 2959 2960 /* Check if LMHOsts exists */ 2961 ok = VRset("CB_RemoveLMHosts","Enabled", VRFileExists(ETC'\samba\lmhosts')) 2962 return 2963 2964 /*:VRX RemoveConfig_Fini 2965 */ 2966 RemoveConfig_Fini: 2967 window = VRInfo( "Window" ) 2968 call VRDestroy window 2969 drop window 2970 return 2971 /*:VRX RemoveConfig_Init 2972 */ 2973 RemoveConfig_Init: 2974 window = VRInfo( "Object" ) 2975 if( \VRIsChildOf( window, "Notebook" ) ) then do 2976 call VRMethod window, "CenterWindow" 2977 call VRSet window, "Visible", 1 2978 call VRMethod window, "Activate" 2979 end 2980 drop window 2981 return 2982 2826 2983 /*:VRX TM_Installer_Trigger 2827 2984 */ -
branches/guitools-1.0/install/sscc_de.mkm
r344 r451 17 17 SSC0012I: ~Speichern 18 18 SSC0013I: Freigeben 19 SSC0014 ?:19 SSC0014I: Fortfahren 20 20 SSC0015?: 21 21 SSC0016?: … … 61 61 SSC0054I: Abbruch. 62 62 SSC0055I: kein Daemonmanagement mglich 63 SSC0056I: Aktuelle Datei "%1" lschen und eine neue erzeugen?63 SSC0056I: Aktuelles "%1" lschen und ein neues erzeugen 64 64 SSC0057I: Kein Passwort fr "%1" angegeben! 65 65 SSC0058I: Bitte Passwort fr "%1" wiederholen! … … 80 80 SSC0073I: Aktuelle Konfiguration 81 81 SSC0074I: Kleine Symbole 82 SSC0075 ?:82 SSC0075I: Es wird empfohlen spter auch fr Benutzer "%1" ein Konto anzulegen! 83 83 SSC0076?: 84 84 SSC0077?: -
branches/guitools-1.0/install/sscc_en.mkm
r344 r451 17 17 SSC0012I: ~Save 18 18 SSC0013I: Share 19 SSC0014 ?:19 SSC0014I: Continue 20 20 SSC0015?: 21 21 SSC0016?: … … 61 61 SSC0054I: aborting. 62 62 SSC0055I: unable to manage daemons 63 SSC0056I: Erase current "%1" and create a new one ?63 SSC0056I: Erase current "%1" and create a new one. 64 64 SSC0057I: No password for "%1" provided. 65 65 SSC0058I: Please repeat password for "%1". … … 80 80 SSC0073I: Current configuration 81 81 SSC0074I: Small icons 82 SSC0075 ?:82 SSC0075I: It is recommended to also create an account for user "%1" later! 83 83 SSC0076?: 84 84 SSC0077?: -
branches/guitools-1.0/install/sscc_es.mkm
r344 r451 17 17 SSC0012I: ~Guardar 18 18 SSC0013I: Compartir 19 SSC0014 ?:19 SSC0014I: Continuar 20 20 SSC0015?: 21 21 SSC0016?: … … 60 60 SSC0053I: No se puede localizar el componente de Samba "%1" 61 61 SSC0054I: Abortando... 62 SSC0055I: imposible administrar demonios63 SSC0056I: borrar actual "%1" y crear uno nuevo?62 SSC0055I: Imposible administrar demonios 63 SSC0056I: Borrar actual "%1" y crear uno nuevo. 64 64 SSC0057I: No se indic¢ contrase€a para "%1". 65 65 SSC0058I: Por favor, repita la contrase€a para "%1". … … 80 80 SSC0073I: Configuraci¢n actual 81 81 SSC0074I: Iconos peque€os 82 SSC0075 ?:82 SSC0075I: Se recomienda crear una cuenta de usuario para "%1" m s adelante! 83 83 SSC0076?: 84 84 SSC0077?: -
branches/guitools-1.0/install/sscc_fr.mkm
r344 r451 19 19 SSC0012I: ~Sauvegarder 20 20 SSC0013I: Partage 21 SSC0014 ?:21 SSC0014I: Continuer 22 22 SSC0015?: 23 23 SSC0016?: … … 66 66 SSC0054I: interruption. 67 67 SSC0055I: gestion impossible des 'dmons' 68 SSC0056I: Effacement de "%1" actuel et cration d'un nouveau ?68 SSC0056I: Effacement de "%1" actuel et cration d'un nouveau . 69 69 SSC0057I: Aucun mot de passe donn pour "%1" ! 70 70 SSC0058I: Veuillez retaper le mot de passe pour "%1" ! … … 86 86 SSC0073I: Configuration actuelle 87 87 SSC0074I: Icnes ~miniatures 88 SSC0075 ?:88 SSC0075I: Il est recommand de crer un compte utilisateur pour "%1" plus tard ! 89 89 SSC0076?: 90 90 SSC0077?: -
branches/guitools-1.0/install/sscc_sv.mkm
r344 r451 17 17 SSC0012I: ~Spara 18 18 SSC0013I: Dela ut 19 SSC0014 ?:19 SSC0014I: Fortstta 20 20 SSC0015?: 21 21 SSC0016?: … … 61 61 SSC0054I: avbryter. 62 62 SSC0055I: kan inte hantera vervakare 63 SSC0056I: Ta bort aktuell fil "%1" och erstt med en ny?63 SSC0056I: Ta bort aktuell "%1" och erstt med en ny. 64 64 SSC0057I: Inget lsenord har angivits fr "%1"! 65 65 SSC0058I: Upprepa lsenordet fr "%1"! … … 80 80 SSC0073I: Aktuella konfigurationen 81 81 SSC0074I: Sm ikoner 82 SSC0075 ?:82 SSC0075I: Det rekommenderas att skapa ett konto fr anvndaren "%1" senare! 83 83 SSC0076?: 84 84 SSC0077?: … … 97 97 SSC0089?: 98 98 SSC0090I: Installationslge 99 SSC0091I: Ange lsenord fr rot-kontot99 SSC0091I: Ange lsenord fr "root"-kontot 100 100 SSC0092I: Lsenord 101 101 SSC0093I: Upprepa -
branches/guitools-1.0/shared/sambainit.vrs
r408 r451 42 42 /* smbd.exe */ 43 43 samba.!smbd = "" 44 if samba.!smbd = "" then do /* USER\Samba\ServerPath */ 45 call charout , " Is Samba ServerPath stored in OS2.INI? " 46 samba.!bin = strip(VRGetIni( "Samba", "ServerPath2", "USER" ),'T','00'x) 47 if samba.!bin <> "" then do 48 say 'Yes, found "'samba.!bin'"' 49 if VRFileExists(samba.!bin"\smbd.exe") then do 50 samba.!smbd = samba.!bin"\smbd.exe" 51 say ' Found "'samba.!smbd'".' 52 end 53 end 54 else say 'No, possibly manual installation.' 55 end 56 if samba.!smbd = "" then do /* wellknown locations */ 57 WellKnown = SysBootdrive()"\ecs\system\samba;"SysBootdrive()"\samba" 58 Programs = value("PROGRAMS",,'OS2ENVIRONMENT') 59 if Programs <> "" then WellKnown = Wellknown';'Programs'\samba' 60 Tools = value("TOOLS",,'OS2ENVIRONMENT') 61 if Tools <> "" then WellKnown = Wellknown';'Tools'\samba' 62 call charout , " Are binaries in wellknown locations? " 63 ok = VRFindFile("smbd.exe",WellKnown) 64 if ok <> "" then say "Yes."; else say "No." 65 if ok <> "" then samba.!smbd = ok 66 drop Wellknown Tools Programs 67 end 44 68 if samba.!smbd = "" then do /* in current directory? */ 45 69 call charout , " Are binaries in current directory? " 46 70 ok = SysFileTree('.\smbd.exe', exist.,'FO') 47 say exist.0' (1 = Yes, 0 = No)'71 if exist.0 = 1 then say "Yes."; else say "No." 48 72 if exist.0 = 1 then samba.!smbd = exist.1 49 73 end … … 51 75 call charout , " Are binaries in parent directory? " 52 76 ok = SysFileTree('..\smbd.exe', exist.,'FO') 53 say exist.0' (1 = Yes, 0 = No)'77 if exist.0 = 1 then say "Yes."; else say "No." 54 78 if exist.0 = 1 then samba.!smbd = exist.1 55 79 end … … 57 81 call charout , " Are binaries in ..\BIN directory? " 58 82 ok = SysFileTree('..\bin\smbd.exe', exist.,'FO') 59 say exist.0' (1 = Yes, 0 = No)'83 if exist.0 = 1 then say "Yes."; else say "No." 60 84 if exist.0 = 1 then samba.!smbd = exist.1 61 85 end … … 73 97 if samba.!smbd = "" then call _ErrorBinaryNotFound 'Could not find smbd.exe!' 74 98 99 75 100 samba.!bin = VRParseFileName(samba.!smbd,'DP') 76 101 IF options.!debug == 1 THEN say ' Samba binaries = "'samba.!bin'"' 102 IF options.!debug == 1 THEN say ' Samba smbd.exe = "'samba.!smbd'"' 77 103 78 104 /* smb.cmd */ … … 299 325 300 326 /*:VRX */ 301 _SambaRunning: procedure expose running. pids. TempDir HaveWinbindd options. 327 _SambaRunning: procedure expose running. pids. TempDir HaveWinbindd options. samba. 302 328 IF options.!debug == 1 THEN say '_SambaRunning() started' 303 329 -
branches/guitools-1.0/shared/swat.vrs
r277 r451 15 15 end 16 16 end 17 if samba.!htpasswdexe = "" then do /* wellknown locations */ 18 WellKnown = SysBootdrive()"\ecs\system\apache2\bin;"SysBootdrive()"\apache2\bin" 19 Programs = value("PROGRAMS",,'OS2ENVIRONMENT') 20 if Programs <> "" then WellKnown = Wellknown';'Programs'\apache2\bin' 21 Tools = value("TOOLS",,'OS2ENVIRONMENT') 22 if Tools <> "" then WellKnown = Wellknown';'Tools'\apache2\bin' 23 call charout , " Are binaries in wellknown locations? " 24 ok = VRFindFile("htpasswdexe.exe",WellKnown) 25 if ok <> "" then say "Yes."; else say "No." 26 if ok <> "" then samba.!htpasswdexe = ok 27 drop Wellknown Tools Programs 28 end 29 17 30 if samba.!htpasswdexe = "" then do /* in current directory? */ 18 31 call charout , " Is htpasswd.exe in current directory? " 19 32 ok = SysFileTree('.\htpasswd.exe', exist.,'FO') 20 say exist.0' (1 = Yes, 0 = No)'33 if exist.0 = 1 then say "Yes."; else say "No." 21 34 if exist.0 = 1 then samba.!htpasswdexe = exist.1 22 35 end … … 24 37 call charout , " Is htpasswd.exe in parent directory? " 25 38 ok = SysFileTree('..\htpasswd.exe', exist.,'FO') 26 say exist.0' (1 = Yes, 0 = No)'39 if exist.0 = 1 then say "Yes."; else say "No." 27 40 if exist.0 = 1 then samba.!htpasswdexe = exist.1 28 41 end … … 30 43 call charout , " Is htpasswd.exe in ..\BIN directory? " 31 44 ok = SysFileTree('..\bin\htpasswd.exe', exist.,'FO') 32 say exist.0' (1 = Yes, 0 = No)'45 if exist.0 = 1 then say "Yes."; else say "No." 33 46 if exist.0 = 1 then samba.!htpasswdexe = exist.1 34 47 end … … 36 49 call charout , " Is htpasswd.exe in "SysBootDrive()"\apache2\bin path? " 37 50 ok = SysFileTree(SysBootDrive()'\apache2\bin\htpasswd.exe', exist.,'FO') 38 say exist.0' (1 = Yes, 0 = No)'51 if exist.0 = 1 then say "Yes."; else say "No." 39 52 if exist.0 = 1 then samba.!htpasswdexe = exist.1 40 53 end … … 42 55 call charout , " Is htpasswd.exe in ..\..\apache2\bin path? " 43 56 ok = SysFileTree('..\..\apache2\bin\htpasswd.exe', exist.,'FO') 44 say exist.0' (1 = Yes, 0 = No)'57 if exist.0 = 1 then say "Yes."; else say "No." 45 58 if exist.0 = 1 then samba.!htpasswdexe = exist.1 46 59 end -
branches/guitools-1.0/smbmon/changes
r302 r451 1 Version 0.9.26 2 WIP: Add findsmb functionality 1 Version 0.9.26 06-03-2010 (final 0.9.x release) 2 +Added: SambaInit.VRS: _SambaInit() acts more 3 intelligently now 4 *Changed: Use NLV.VRS 2.0 instead of 1.0 5 +WIP: Add findsmb functionality, deactivated 6 (will not be completed in the 0.9.x series) 3 7 Version 0.9.25 27-06-2009 4 8 +Added: Check free space on TMPDIR -
branches/guitools-1.0/smbmon/smbmon.vrp
r333 r451 7 7 VRXWindow: __VREMainWindow,1,2180,3710,940,8000 8 8 VRXWindow: __VRESectionListWindow,1,2650,12093,9359,3300 9 VRXWindow: __VREToolsWindow,1,2204,1590, 7501,16639 VRXWindow: __VREToolsWindow,1,2204,1590,6986,1661 10 10 VRXWindow: __VREWindListWindow,1,265,12093,2650,3150 11 11 UserFile: 1 -
branches/guitools-1.0/smbmon/smbmon.vrx
r302 r451 93 93 #append U:\Develop\Samba\guitools-1.0\shared\InitTempDir.VRS 94 94 #append U:\Develop\Samba\guitools-1.0\shared\SambaInit.vrs 95 #append U:\Develop\Samba\guitools- 1.0\shared\nlv.vrs95 #append U:\Develop\Samba\guitools-2.0\shared\nlv.vrs 96 96 */ 97 97 return -
branches/guitools-1.0/smbusers/changes
r409 r451 1 Version 0.9.8 14-03-2010 2 !Fixed: Bug in NLV.VRS 2.0 3 Version 0.9.7 06-03-2010 4 +Added: SambaInit.VRS: _SambaInit() is more 5 intelligent now 6 *Changed: Use NLV.VRS 2.0 instead of 1.0 1 7 Version 0.9.6 19-02-2010 2 8 !Fixed: Changing the password crashed smbusers.exe -
branches/guitools-1.0/smbusers/smbusers.VRP
r408 r451 3 3 MacroPath: VRM:U:\Develop\Samba\guitools-1.0\smbusers 4 4 EXEPath: 5 RunParameters: 5 RunParameters: --user=herwig%0k2m 6 6 RunDirectory: U:\Develop\Samba\guitools-1.0\smbusers 7 7 VRXWindow: __VREMainWindow,1,2180,3710,891,8000 8 VRXWindow: __VRESectionListWindow,1,2951, 11130,8949,33429 VRXWindow: __VREToolsWindow,1,2457,1012,69 86,16698 VRXWindow: __VRESectionListWindow,1,2951,9299,8949,5167 9 VRXWindow: __VREToolsWindow,1,2457,1012,6992,1669 10 10 VRXWindow: __VREWindListWindow,1,446,11130,2650,3150 11 11 UserFile: 1 12 12 UserWindow: Main,1 13 UserWindow: About,1 -
branches/guitools-1.0/smbusers/smbusers.VRX
r408 r451 91 91 __VXREXX____APPENDS__: 92 92 /* 93 #append U:\Develop\Samba\guitools- 1.0\shared\nlv.vrs93 #append U:\Develop\Samba\guitools-2.0\shared\nlv.vrs 94 94 #append U:\Develop\Samba\guitools-1.0\shared\inittempDir.vrs 95 95 #append U:\Develop\Samba\guitools-1.0\shared\sambainit.vrs … … 614 614 call rxfuncadd 'IniLoadFuncs', 'REXXINI', 'IniLoadFuncs' 615 615 call IniLoadFuncs 616 617 call RxFuncAdd 'PRLoadFuncs', 'PR1UTIL', 'PRLoadFuncs' 618 call PRLoadFuncs 616 619 617 620 /* Deal with DRCtrlxxx */ … … 1613 1616 /*:VRX _UserRecWriteBackToStems 1614 1617 */ 1615 _UserRecWriteBackToStems: 1618 _UserRecWriteBackToStems: 1619 if \VRIsValidObject( RH ) then return 1616 1620 Cur = VRMethod("CN_Users","GetFieldData", RH, NrFH) 1617 1621 Username.Cur = VRMethod("CN_Users","GetFieldData", RH, UsernameFH) … … 2119 2123 return 2120 2124 2125 /*:VRX CN_Users_Click 2126 */ 2127 CN_Users_Click: 2128 if VRInfo("Top") < 1325 & VRGet("CN_Users", "View") = "Detail" then return 2129 return 2130 2121 2131 /*:VRX CN_Users_ContextMenu 2122 2132 */ 2123 2133 CN_Users_ContextMenu: 2134 say VRInfo("top") 2124 2135 if VRInfo("Top") < 1325 & VRGet("CN_users", "View") = "Detail" then call _ColumnsMenu "CN_users" 2125 2136 else do … … 2136 2147 */ 2137 2148 CN_Users_DoubleClick: 2149 if VRInfo("Top") < 340 & VRGet("CN_Users", "View") = "Detail" then return 2138 2150 say 'CN_Users_DoubleClick() started' 2139 2151 RH = VRInfo("Record") … … 2146 2158 */ 2147 2159 CN_Users_EndEdit: 2160 if VRInfo("Top") < 340 & VRGet("CN_Users", "View") = "Detail" then do 2161 say VRInfo("Object") 2162 return 2163 end 2148 2164 call beep 880, 20 2149 2165 RH = VRInfo("Record") … … 3089 3105 3090 3106 call _SambaInit 3107 say "hier!" 3091 3108 if ErrorState then call _OnErrorDisable 3109 say "hier jetzt!" 3092 3110 if StartSamba then do 3093 3111 address cmd samba.!smbcmd' start' 3094 3112 end 3113 say "hier2!" 3095 3114 if \_SambaRunning() then do 3096 3115 Msg.Text = NLVGetMessage(107)
Note:
See TracChangeset
for help on using the changeset viewer.