Ignore:
Timestamp:
Jan 29, 2010, 1:51:25 PM (16 years ago)
Author:
Silvan Scherrer
Message:

added all remaining changes from 1.5.0 client

Location:
branches/client-1.6/src
Files:
12 added
4 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • branches/client-1.6/src/Config.km_

    r293 r401  
    99# in bldlevel informations
    1010#
    11 VERSION = 1.6.beta1
     11VERSION = 1.6.0
    1212BUILD   = beta
    13 SAMBA   = ../../samba-3.3.x
     13SAMBA   = ../../samba-33
    1414TOOLKIT = u:/os2tk45
  • branches/client-1.6/src/Makefile.kmk

    r297 r401  
    1919DLLS = ndpsmb
    2020
     21# required to get IPFC compiler to work correctly
     22export IPFC=$(TOOLKIT)\IPFC
     23
    2124ndpsmb_RCTOOL =OPENWATCOM
    2225TOOL_OPENWATCOM_RCFLAGS += -i=$(TOOLKIT)/h
     
    3235
    3336ndpsmb_CFLAGS = -Zomf
    34 ndpsmb_CFLAGS.release = -s -O3 -march=pentium -mcpu=pentium4
     37# YD -O2/O3 triggers stack variable alignment bug in gcc 4.3.2/4.4.0!
     38ndpsmb_CFLAGS.release = -g -O1 -march=pentium -mtune=pentium4
     39# SCS when building with gcc 3.3.5 use the below cflags
     40#ndpsmb_CFLAGS.release = -s -O3 -march=pentium -mcpu=pentium3
    3541ndpsmb_CFLAGS.debug = -g -O0 -DDEBUG_PRINTF
    3642ndpsmb_LDFLAGS = -Zomf -Zno-fork -Zmap -Zbin-files
     
    4652                $(SAMBA)/source/lib/talloc \
    4753                $(SAMBA)/source/librpc \
    48                 $(SAMBA)/source/lib/tdb/include \
     54                $(SAMBA)/source/tdb/include \
    4955                $(GCC_INC)
    5056
     
    5662
    5763#build other files (e.g. help)
    58 OTHERS = /rc/rc.ipf $(PATH_BIN)/ndpsmb.hlp $(PATH_BIN)/readme.txt
    59 OTHER_CLEAN = $(PATH_BIN)/ndpsmb.hlp $(PATH_BIN)/readme.txt
     64OTHERS = $(PATH_BIN)/en/ndpsmb.hlp $(PATH_BIN)/readme.txt \
     65         $(PATH_BIN)/fr/ndpsmb.hlp $(PATH_BIN)/readme_fr.txt
     66OTHER_CLEAN = $(PATH_BIN)/en/ndpsmb.hlp $(PATH_OBJ)/en/ndpsmb.ipf $(PATH_BIN)/readme.txt \
     67              $(PATH_BIN)/fr/ndpsmb.hlp $(PATH_OBJ)/fr/ndpsmb.ipf $(PATH_BIN)/readme_fr.txt
    6068
    6169
     
    6371INSTALLS = ndpsmb-docs
    6472ndpsmb-docs_INST = bin/
    65 ndpsmb-docs_SOURCES = $(SAMBA)/COPYING=>COPYING ndpsmb.ndp instpl.cmd
     73ndpsmb-docs_SOURCES = $(SAMBA)/COPYING=>COPYING resources/ndpsmb.ndp resources/instpl.cmd
    6674OTHER_CLEAN += $(PATH_BIN)/COPYING $(PATH_BIN)/ndpsmb.ndp $(PATH_BIN)/instpl.cmd
    6775
     
    6977# packaging stuffs
    7078ifeq ($(BUILD_TYPE),debug)
    71   PACKAGE_NAME = ndpsmb-$(subst .,_,$(VERSION))-$(BUILD)-debug.zip
     79  PACKAGE_NAME = ndpsmb-$(subst .,_,$(VERSION))-$(BUILD)-debug
    7280else
    73   PACKAGE_NAME = ndpsmb-$(subst .,_,$(VERSION))-$(BUILD).zip
     81  PACKAGE_NAME = ndpsmb-$(subst .,_,$(VERSION))-$(BUILD)
    7482endif
    75 PACKING += $(PATH_ROOT)/dist/$(PACKAGE_NAME)
    76 OTHER_CLEAN += $(PATH_ROOT)/dist/$(PACKAGE_NAME)
     83PACKING += $(PATH_ROOT)/dist/$(PACKAGE_NAME).zip
     84PACKING += $(PATH_ROOT)/dist/$(PACKAGE_NAME).wpi
     85OTHER_CLEAN += $(PATH_ROOT)/dist/$(PACKAGE_NAME).zip
     86OTHER_CLEAN += $(PATH_ROOT)/dist/$(PACKAGE_NAME).wpi
    7787
    7888# now include standard code
     
    90100        @BldLevelInf0.cmd $(VERSION) $(BUILD)
    91101
    92 # substitute macros in ipf file
    93 /rc/rc.ipf: Config.kmk ./rc/rc.ipf
    94         $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" ./rc/rc.ipf \
     102# compile help file
     103$(PATH_BIN)/en/ndpsmb.hlp: ./help/ndpsmb.ipf version.h Config.kmk
     104        -@mkdir $(PATH_OBJ)
     105        -@mkdir $(PATH_OBJ)\en
     106        @ppwizard.cmd ./help/ndpsmb.ipf /Pack:N /output:$(PATH_OBJ)/en/ndpsmb.ipf /other /WarningsRc:0
     107        -@mkdir $(PATH_BIN)
     108        -@mkdir $(PATH_BIN)\en
     109        $(TOOLKIT)\bin\ipfc.exe $(PATH_OBJ)/en/ndpsmb.ipf $(PATH_BIN)/en/ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850
     110
     111$(PATH_BIN)/fr/ndpsmb.hlp: ./help/ndpsmb_fr.ipf version.h Config.kmk
     112        -@mkdir $(PATH_OBJ)
     113        -@mkdir $(PATH_OBJ)\fr
     114        @ppwizard.cmd ./help/ndpsmb_fr.ipf /Pack:N /output:$(PATH_OBJ)/fr/ndpsmb.ipf /other /WarningsRc:0
     115        -@mkdir $(PATH_BIN)
     116        -@mkdir $(PATH_BIN)\fr
     117        $(TOOLKIT)\bin\ipfc.exe $(PATH_OBJ)/fr/ndpsmb.ipf $(PATH_BIN)/fr/ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850
     118
     119
     120# substitute macros in version.h
     121version.h: Config.kmk version.h_
     122        $(SED) "s;_VERSION_;$(VERSION);g" version.h_ \
     123                | $(SED) "s;_WPIVERSION_;$(subst .,\\\,$(VERSION));g" \
    95124                | $(SED) "s;_BUILD_;$(BUILD);g" \
    96                 > rc.ipf
    97 
    98 # compile help file
    99 $(PATH_BIN)/ndpsmb.hlp: rc.ipf ./rc/rc.h ./H/hmacros.h config.kmk
    100         -gcc -E -I./h -I./rc -x c rc.ipf > rc.i
    101         -@mkdir $(PATH_BIN)
    102         $(TOOLKIT)\bin\ipfc.exe rc.i $(PATH_BIN)/ndpsmb.hlp /COUNTRY=001 /CODEPAGE=850
    103         rm rc.i
    104         rm rc.ipf
     125                > version.h
    105126
    106127# substitute macros in docs
    107 $(PATH_BIN)/readme.txt: Config.kmk readme.txt
    108         $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" readme.txt \
     128$(PATH_BIN)/readme.txt: Config.kmk ./help/readme.txt
     129        $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" ./help/readme.txt \
    109130                | $(SED) "s;_BUILD_;$(BUILD);g" \
    110131                > $(PATH_BIN)/readme.txt
     132
     133$(PATH_BIN)/readme_fr.txt: Config.kmk ./help/readme_fr.txt
     134        $(QUIET)$(SED) "s;_VERSION_;$(VERSION);g" ./help/readme_fr.txt \
     135                | $(SED) "s;_BUILD_;$(BUILD);g" \
     136                > $(PATH_BIN)/readme_fr.txt
    111137
    112138# final: zip all files!
    113139$(PATH_ROOT)/dist/$(PACKAGE_NAME): \
    114140                $(PATH_BIN)/ndpsmb.dll \
    115                 $(PATH_BIN)/ndpsmb.hlp \
    116                 $(PATH_BIN)/readme.txt
     141                $(PATH_BIN)/en/ndpsmb.hlp \
     142                $(PATH_BIN)/fr/ndpsmb.hlp \
     143                $(PATH_BIN)/readme.txt \
     144                $(PATH_BIN)/readme_fr.txt
    117145        $(QUIET)$(MKDIR) -p $(PATH_ROOT)/dist                             
    118146        $(QUIET)$(RM) -f $@
    119147        $(QUIET)zip -9 -j $@ $(PATH_BIN)/*
    120148
     149# final2: wpi all files!
     150$(PATH_ROOT)/dist/$(PACKAGE_NAME).wpi: \
     151                ./resources/ndpsmb.wis_ \
     152                $(PATH_BIN)/ndpsmb.dll \
     153                $(PATH_BIN)/en/ndpsmb.hlp \
     154                $(PATH_BIN)/fr/ndpsmb.hlp \
     155                $(PATH_BIN)/readme.txt \
     156                $(PATH_BIN)/readme_fr.txt
     157        $(QUIET)$(MKDIR) -p $(PATH_ROOT)/dist                             
     158        $(QUIET)$(RM) -f $@
     159        @ppwizard.cmd resources/ndpsmb.wis_ /Pack:N /output:$(PATH_OBJ)/ndpsmb.wis /other /WarningsRc:0
     160        $(QUIET)$(REDIRECT) -C $(PATH_BIN)/en -- runwic.cmd $(subst /,\\,$@) -a 2 -r "*"
     161        $(QUIET)$(REDIRECT) -C $(PATH_BIN) -- runwic.cmd $(subst /,\\,$@) -s $(subst /,\\,$(PATH_OBJ))\\ndpsmb.wis -a 1 "*"
  • branches/client-1.6/src/ndpsmb.c

    r189 r401  
    207207        {ND_PROP_STRING, 0, "MASTER", "WORKGROUP"},
    208208        { ND_PROP_ULONG, 0, "MASTERTYPE", "1"},
    209         { ND_PROP_ULONG, 0, "MEMLEN", "2"},
    210         {ND_PROP_STRING, 0, "LOGFILE", ""},
    211         { ND_PROP_ULONG, 0, "LOGLEVEL", "0"},
    212209        { ND_PROP_ULONG, 0, "EASUPPORT", "1"},
    213210        {ND_PROP_STRING, 0, NULL, NULL}
     
    389386
    390387        pRes->rootlevel = 0;
    391         *pRes->logfile = 0;
    392         pRes->loglevel = 0;
    393388        pRes->easupport = 1;
    394389#ifdef HAVE_KRB5_H
     
    474469        }
    475470
    476         t = 0, q = NULL;
    477         rc = ph->fsphQueryStringProperty (properties, "LOGFILE", &q, &t);
    478         if (!rc && t && *q)
    479         {
    480                 StrNCpy(pRes->logfile, q, sizeof(pRes->logfile) - 1);
    481         }
    482 
    483         t = 0;
    484         rc = ph->fsphQueryUlongProperty (properties, "LOGLEVEL", &t);
    485         if (!rc)
    486         {
    487                 if (t > 9)
    488                 {
    489                         t = 9;
    490                         rc = ERROR_INVALID_PARAMETER;
    491                 }
    492                 pRes->loglevel = t;
    493         }
    494 
    495471        t = 0;
    496472        rc = ph->fsphQueryUlongProperty (properties, "MASTERTYPE", &t);
     
    520496                }
    521497        }
    522 
    523 #if 0
    524         t = 0;
    525         rc = ph->fsphQueryUlongProperty (properties, "MEMLEN", &t);
    526         if (!rc)
    527         {
    528                 if (t <= (pRes->easupport ? 1 : 0) || t > 10)
    529                 {
    530                         rc = ERROR_INVALID_PARAMETER;
    531                 }
    532                 else
    533                 {
    534                         pRes->memlen = t * 65536;
    535                 }
    536         }
    537 #endif
    538498
    539499        return rc;
  • branches/client-1.6/src/rc/rc.dlg

    r190 r401  
    3030                        WS_VISIBLE
    3131        ENTRYFIELD      "", ENT_MASTER, 147, 33, 90, 8, ES_MARGIN
    32         LTEXT           "Memory buffer:", LBL_MEMLEN, 253, 135, 10, 10,
    33                         DT_BOTTOM | NOT WS_VISIBLE
    34         CONTROL         "", CMB_MEMLEN, 251, 98, 13, 11, WC_COMBOBOX,
    35                         CBS_DROPDOWNLIST | WS_GROUP | WS_TABSTOP
    36         LTEXT           "Logfile:", LBL_LOGFILE, 251, 124, 11, 10, DT_BOTTOM |
    37                         NOT WS_VISIBLE
    38         ENTRYFIELD      "", ENT_LOGFILE, 254, 112, 7, 8, ES_MARGIN | NOT
    39                         WS_VISIBLE
    40         LTEXT           "Loglevel:", LBL_LOGLEVEL, 251, 131, 13, 10,
    41                         DT_BOTTOM | NOT WS_VISIBLE
    42         SPINBUTTON      CMB_LOGLEVEL, 252, 12, 8, 35, SPBS_NUMERICONLY |
    43                         SPBS_MASTER | SPBS_JUSTRIGHT | WS_GROUP | NOT
    44                         WS_VISIBLE
    4532        LTEXT           "Supports EA", LBL_EASUPPORT, 195, 104, 52, 10,
    4633                        DT_WORDBREAK
  • branches/client-1.6/src/rc/rc.h

    r186 r401  
    1515#define ENT_MASTER                  1012
    1616#define CMB_MASTER                  1013
    17 #define LBL_MEMLEN                  1014
    18 #define CMB_MEMLEN                  1015
    1917#define LBL_PROP                    1016
    20 #define LBL_LOGFILE                 1017
    21 #define ENT_LOGFILE                 1018
    22 #define LBL_LOGLEVEL                1019
    23 #define CMB_LOGLEVEL                1020
    2418#define LBL_EASUPPORT               1021
    2519#define CHK_EASUPPORT               1022
  • branches/client-1.6/src/rc/rc.rc

    r189 r401  
    3434   "Help for command line utility:\r\n"
    3535   "\r\n"
    36    "nd mount smbfs s:\\mountpoint ;workgroup=...;server=...;share=...;user=...;password=...;master=...;mastertype=...;memlen=...;logfile=...;loglevel=...;easupport=...\r\n"
     36   "nd mount smbfs s:\\mountpoint ;workgroup=...;server=...;share=...;user=...;password=...;master=...;mastertype=...;easupport=...\r\n"
    3737   "\r\n"
    3838   "    workgroup - name of workgroup\r\n"
     
    4343   "    master - name of master server or master workgroup\r\n"
    4444   "    mastertype - 0 if 'master' is the name of master server, 1 if 'master' is the name of master workgroup\r\n"
    45    "    memlen - the size of shared memory buffer allocated for every NDFS connection in size of 64k blocks\r\n"
    46    "    logfile - file to log records from smbcd.exe. Used only if smbcd.exe is run by ndpsmb.dll plugin, not manually\r\n"
    47    "    loglevel - level of logging (0-9) for smbcd.exe. Used only if smbcd.exe is run by ndpsmb.dll plugin, not manually\r\n"
    4845   "    easupport - 0 to not support EA, 1 to support\r\n"
    4946   "\r\n"
     
    103100RCDATA (DLG_ID + 7)
    104101{
    105     CMB_MEMLEN, PARMTYPE_INT, 1L, 10L, "memlen", "%d", 2L,
    106     "64k",
    107     "128k",
    108     "192k",
    109     "256k",
    110     "320k",
    111     "384k",
    112     "448k",
    113     "512k",
    114     "576k",
    115     "640k"
    116 }
    117 
    118 RCDATA (DLG_ID + 8)
    119 {
    120     ENT_LOGFILE, PARMTYPE_STRING, 1L, 256L, "logfile", "%s", ""
    121 }
    122 
    123 RCDATA (DLG_ID + 9)
    124 {
    125     CMB_LOGLEVEL, PARMTYPE_INT, 0L, 9L, "loglevel", "%d", 0L,
    126     "0",
    127     "1",
    128     "2",
    129     "3",
    130     "4",
    131     "5",
    132     "6",
    133     "7",
    134     "8",
    135     "9"
    136 }
    137 
    138 RCDATA (DLG_ID + 10)
    139 {
    140102    CHK_EASUPPORT, PARMTYPE_INT, 0L, 1L, "easupport", "%d", 1L,
    141103    "0",
     
    143105}
    144106   
    145 RCDATA (DLG_ID + 11)
     107RCDATA (DLG_ID + 8)
    146108{
    147109    ENT_SPASS, PARMTYPE_STRING, 1L, 255L, "spassword", "%s", ""
    148110}
    149111
    150 RCDATA (DLG_ID + 12)
     112RCDATA (DLG_ID + 9)
    151113{
    152114    1
  • branches/client-1.6/src/smbwrp.c

    r297 r401  
    17591759        return 0;
    17601760}
     1761
Note: See TracChangeset for help on using the changeset viewer.