Changeset 1019


Ignore:
Timestamp:
May 10, 2017, 11:53:58 AM (8 years ago)
Author:
Herwig Bauernfeind
Message:

GUITools: SSCC: Make server string OS/2 based systems

Location:
trunk/guitools/sscc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/sscc/sscc.vrp

    r1013 r1019  
    44MacroPath: VRM:U:\Develop\Samba\trunk\guitools\sscc
    55EXEPath:
    6 RunParameters: /install
     6RunParameters:
    77RunDirectory: U:\Develop\Samba\trunk\guitools\sscc
    8 VRXWindow: __VREMainWindow,1,2891,5637,5767,8000
    9 VRXWindow: __VRESectionListWindow,1,1518,13153,10431,3342
    10 VRXWindow: __VREToolsWindow,0,4031,11804,6992,1669
    11 VRXWindow: __VREWindListWindow,1,2096,13250,4710,3150
     8VRXWindow: __VREMainWindow,1,2867,4577,5767,8000
     9VRXWindow: __VRESectionListWindow,1,3156,14791,10431,4686
     10VRXWindow: __VREToolsWindow,0,4011,10744,6992,1669
     11VRXWindow: __VREWindListWindow,1,2072,13539,4710,3150
    1212UserFile: 1
    1313UserWindow: Main,1
     14UserWindow: Installer,1
     15UserWindow: RemoveConfig,1
  • trunk/guitools/sscc/sscc.vrx

    r1013 r1019  
    11891189return
    11901190
     1191
    11911192/*:VRX         _SmbConfCreateDefault
    11921193*/
     
    12711272    Migrate = (arg(1) = 1)
    12721273    if \Migrate then do /* when migrating these 4 lines are there already */
     1274        call lineout smbconf, '# Samba config file created using SSCC ver. 'word(VRGet("Main","Hinttext"),2)
     1275        call lineout smbconf, '# from 'value("USER",,'OS2ENVIRONMENT')'@'value("HOSTNAME",,'OS2ENVIRONMENT')
     1276        call lineout smbconf, '# Date: 'date()' 'time()
    12731277        section       = '[global]'
    12741278        call lineout smbconf, section
    12751279        call lineout smbconf, Indent||'workgroup = 'workgroup
    12761280        call lineout smbconf, Indent||'netbios name = 'value('HOSTNAME',,'OS2ENVIRONMENT')
    1277         call lineout smbconf, Indent||'server string = %h Samba Server for eCS (OS/2)'
    1278         call lineout smbconf, Indent||'comment = Samba Server for eCS (OS/2)'
     1281        call lineout smbconf, Indent||'server string = %h Samba Server for OS/2 based systems'
     1282        call lineout smbconf, Indent||'comment = Samba Server for OS/2 based systems'
    12791283    end
    12801284
     
    13151319    call lineout smbconf, Indent||'lm announce = Yes'
    13161320    call lineout smbconf, Indent||'wins support = Yes'
     1321    call lineout smbconf, '#'Indent||'Enable next line to overcome Ticket #282'
     1322    call lineout smbconf, '#'Indent||'nmbd bind explicit broadcast = No'
    13171323    call lineout smbconf, Indent||'wide links = No'
    13181324    ok = SysFileTree(samba.!printcap,exist.,'FO')
     
    13491355    call lineout smbconf, '[HOMES]'
    13501356    call lineout smbconf, Indent||"comment = Home directory"
    1351     smbhome = samba.!bin'\homes'
     1357    smbhome = ETC'\samba\homes'
    13521358    Home = strip(value('Home',,'OS2ENVIRONMENT'),'T','\')
    13531359    if Home <> '' then do
     
    14051411
    14061412    /* user scripts */
    1407     call lineout smbconf, ';'||Indent||'user scripts'
     1413    call lineout smbconf, '#'||Indent||'user scripts'
    14081414    call lineout smbconf, Indent||'add user script          = '||smbtools||'\usermod.cmd -a "%u"'
    14091415    call lineout smbconf, Indent||'delete user script       = '||smbtools||'\usermod.cmd -x "%u"'
     
    14131419
    14141420    /* group scripts */
    1415     call lineout smbconf, ';'||Indent||'group scripts'
     1421    call lineout smbconf, '#'||Indent||'group scripts'
    14161422    call lineout smbconf, Indent||'add group script              = '||smbtools||'\groupmod.cmd -a "%g"'
    14171423    call lineout smbconf, Indent||'delete group script           = '||smbtools||'\groupmod.cmd -x "%g"'
     
    14201426
    14211427    /* share scripts */
    1422     call lineout smbconf, ';'||Indent||'share scripts'
     1428    call lineout smbconf, '#'||Indent||'share scripts'
    14231429    call lineout smbconf, Indent||'add share command = '||smbtools||'\addshare.cmd'
    14241430    call lineout smbconf, Indent||'change share command = '||smbtools||'\changeshare.cmd'
     
    14261432
    14271433    /* other scripts */
    1428     call lineout smbconf, ';'||Indent||'other scripts'
     1434    call lineout smbconf, '#'||Indent||'other scripts'
    14291435    call lineout smbconf, Indent||'enumports command = '||smbtools||'\enumports.cmd'
    14301436    call lineout smbconf, Indent
     
    19241930return
    19251931
     1932/*:VRX         CB_NoRoot_Click
     1933*/
     1934CB_NoRoot_Click:
     1935    if VRGet("CB_NoRoot","set") then do
     1936        ok = VRset("EF_RootPassword","BackColor","PaleGray")
     1937        ok = VRset("EF_RootPassword_Repeat","BackColor","PaleGray")
     1938        ok = VRset("EF_RootPassword","Enabled", 0)
     1939        ok = VRset("EF_RootPassword_Repeat","Enabled", 0)
     1940    end
     1941    else do
     1942        ok = VRset("EF_RootPassword","BackColor","<default>")
     1943        ok = VRset("EF_RootPassword_Repeat","BackColor","<default>")
     1944        ok = VRset("EF_RootPassword","Enabled", 1)
     1945        ok = VRset("EF_RootPassword_Repeat","Enabled", 1)
     1946    end
     1947return
     1948
    19261949/*:VRX         CB_Null_passwords_Click
    19271950*/
     
    22642287return
    22652288
     2289/*:VRX         EF_RootPassword_Change
     2290*/
     2291EF_RootPassword_Change:
     2292    if length(VRGet("EF_RootPassword","Value")) < 5 then do
     2293        ok = VRSet("EF_RootPassword","ForeColor", "Red")
     2294    end
     2295    else ok = VRSet("EF_RootPassword","ForeColor", "<default>")
     2296return
     2297
    22662298/*:VRX         EF_SECURITY_Change
    22672299*/
     
    23562388    call _ShowMsg
    23572389    ok = SysSetObjectData("<sscc>","PARAMETERS=/config;")
    2358 say "SysSetObjectData ok="ok
     2390    say "SysSetObjectData ok="ok
    23592391    call Installer_Fini
    23602392return
     
    32073239       VRGet("Main","WindowState") = "Minimized" then ok = VRMethod("Main", "Restore")
    32083240
    3209     if samba.!testparmexe <> "" then do
    3210         address cmd samba.!testparmexe' -s 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm'
     3241    if samba.!testparmexe <> "" & Installmode = 0 then do
     3242        if datatype("log_level") <> "NUM" then log_level = 2
     3243        address cmd samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm'
    32113244        call _SmbConfCommitChanges
    32123245    end
     
    32243257return
    32253258
     3259    say samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm'
    32263260/*:VRX         RB_PDC_Click
    32273261*/
     
    32513285*/
    32523286RemoveConfig_Close:
     3287    ok = SysSetObjectData("<sscc>","PARAMETERS=/config;")
     3288    say "SysSetObjectData ok="ok
    32533289    call RemoveConfig_Fini
    32543290return
Note: See TracChangeset for help on using the changeset viewer.