Changeset 401 for branches/client-1.6/src
- Timestamp:
- Jan 29, 2010, 1:51:25 PM (16 years ago)
- 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 9 9 # in bldlevel informations 10 10 # 11 VERSION = 1.6. beta111 VERSION = 1.6.0 12 12 BUILD = beta 13 SAMBA = ../../samba-3 .3.x13 SAMBA = ../../samba-33 14 14 TOOLKIT = u:/os2tk45 -
branches/client-1.6/src/Makefile.kmk
r297 r401 19 19 DLLS = ndpsmb 20 20 21 # required to get IPFC compiler to work correctly 22 export IPFC=$(TOOLKIT)\IPFC 23 21 24 ndpsmb_RCTOOL =OPENWATCOM 22 25 TOOL_OPENWATCOM_RCFLAGS += -i=$(TOOLKIT)/h … … 32 35 33 36 ndpsmb_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! 38 ndpsmb_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 35 41 ndpsmb_CFLAGS.debug = -g -O0 -DDEBUG_PRINTF 36 42 ndpsmb_LDFLAGS = -Zomf -Zno-fork -Zmap -Zbin-files … … 46 52 $(SAMBA)/source/lib/talloc \ 47 53 $(SAMBA)/source/librpc \ 48 $(SAMBA)/source/ lib/tdb/include \54 $(SAMBA)/source/tdb/include \ 49 55 $(GCC_INC) 50 56 … … 56 62 57 63 #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 64 OTHERS = $(PATH_BIN)/en/ndpsmb.hlp $(PATH_BIN)/readme.txt \ 65 $(PATH_BIN)/fr/ndpsmb.hlp $(PATH_BIN)/readme_fr.txt 66 OTHER_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 60 68 61 69 … … 63 71 INSTALLS = ndpsmb-docs 64 72 ndpsmb-docs_INST = bin/ 65 ndpsmb-docs_SOURCES = $(SAMBA)/COPYING=>COPYING ndpsmb.ndpinstpl.cmd73 ndpsmb-docs_SOURCES = $(SAMBA)/COPYING=>COPYING resources/ndpsmb.ndp resources/instpl.cmd 66 74 OTHER_CLEAN += $(PATH_BIN)/COPYING $(PATH_BIN)/ndpsmb.ndp $(PATH_BIN)/instpl.cmd 67 75 … … 69 77 # packaging stuffs 70 78 ifeq ($(BUILD_TYPE),debug) 71 PACKAGE_NAME = ndpsmb-$(subst .,_,$(VERSION))-$(BUILD)-debug .zip79 PACKAGE_NAME = ndpsmb-$(subst .,_,$(VERSION))-$(BUILD)-debug 72 80 else 73 PACKAGE_NAME = ndpsmb-$(subst .,_,$(VERSION))-$(BUILD) .zip81 PACKAGE_NAME = ndpsmb-$(subst .,_,$(VERSION))-$(BUILD) 74 82 endif 75 PACKING += $(PATH_ROOT)/dist/$(PACKAGE_NAME) 76 OTHER_CLEAN += $(PATH_ROOT)/dist/$(PACKAGE_NAME) 83 PACKING += $(PATH_ROOT)/dist/$(PACKAGE_NAME).zip 84 PACKING += $(PATH_ROOT)/dist/$(PACKAGE_NAME).wpi 85 OTHER_CLEAN += $(PATH_ROOT)/dist/$(PACKAGE_NAME).zip 86 OTHER_CLEAN += $(PATH_ROOT)/dist/$(PACKAGE_NAME).wpi 77 87 78 88 # now include standard code … … 90 100 @BldLevelInf0.cmd $(VERSION) $(BUILD) 91 101 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 121 version.h: Config.kmk version.h_ 122 $(SED) "s;_VERSION_;$(VERSION);g" version.h_ \ 123 | $(SED) "s;_WPIVERSION_;$(subst .,\\\,$(VERSION));g" \ 95 124 | $(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 105 126 106 127 # substitute macros in docs 107 $(PATH_BIN)/readme.txt: Config.kmk readme.txt108 $(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 \ 109 130 | $(SED) "s;_BUILD_;$(BUILD);g" \ 110 131 > $(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 111 137 112 138 # final: zip all files! 113 139 $(PATH_ROOT)/dist/$(PACKAGE_NAME): \ 114 140 $(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 117 145 $(QUIET)$(MKDIR) -p $(PATH_ROOT)/dist 118 146 $(QUIET)$(RM) -f $@ 119 147 $(QUIET)zip -9 -j $@ $(PATH_BIN)/* 120 148 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 207 207 {ND_PROP_STRING, 0, "MASTER", "WORKGROUP"}, 208 208 { 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"},212 209 { ND_PROP_ULONG, 0, "EASUPPORT", "1"}, 213 210 {ND_PROP_STRING, 0, NULL, NULL} … … 389 386 390 387 pRes->rootlevel = 0; 391 *pRes->logfile = 0;392 pRes->loglevel = 0;393 388 pRes->easupport = 1; 394 389 #ifdef HAVE_KRB5_H … … 474 469 } 475 470 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 495 471 t = 0; 496 472 rc = ph->fsphQueryUlongProperty (properties, "MASTERTYPE", &t); … … 520 496 } 521 497 } 522 523 #if 0524 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 else533 {534 pRes->memlen = t * 65536;535 }536 }537 #endif538 498 539 499 return rc; -
branches/client-1.6/src/rc/rc.dlg
r190 r401 30 30 WS_VISIBLE 31 31 ENTRYFIELD "", ENT_MASTER, 147, 33, 90, 8, ES_MARGIN 32 LTEXT "Memory buffer:", LBL_MEMLEN, 253, 135, 10, 10,33 DT_BOTTOM | NOT WS_VISIBLE34 CONTROL "", CMB_MEMLEN, 251, 98, 13, 11, WC_COMBOBOX,35 CBS_DROPDOWNLIST | WS_GROUP | WS_TABSTOP36 LTEXT "Logfile:", LBL_LOGFILE, 251, 124, 11, 10, DT_BOTTOM |37 NOT WS_VISIBLE38 ENTRYFIELD "", ENT_LOGFILE, 254, 112, 7, 8, ES_MARGIN | NOT39 WS_VISIBLE40 LTEXT "Loglevel:", LBL_LOGLEVEL, 251, 131, 13, 10,41 DT_BOTTOM | NOT WS_VISIBLE42 SPINBUTTON CMB_LOGLEVEL, 252, 12, 8, 35, SPBS_NUMERICONLY |43 SPBS_MASTER | SPBS_JUSTRIGHT | WS_GROUP | NOT44 WS_VISIBLE45 32 LTEXT "Supports EA", LBL_EASUPPORT, 195, 104, 52, 10, 46 33 DT_WORDBREAK -
branches/client-1.6/src/rc/rc.h
r186 r401 15 15 #define ENT_MASTER 1012 16 16 #define CMB_MASTER 1013 17 #define LBL_MEMLEN 101418 #define CMB_MEMLEN 101519 17 #define LBL_PROP 1016 20 #define LBL_LOGFILE 101721 #define ENT_LOGFILE 101822 #define LBL_LOGLEVEL 101923 #define CMB_LOGLEVEL 102024 18 #define LBL_EASUPPORT 1021 25 19 #define CHK_EASUPPORT 1022 -
branches/client-1.6/src/rc/rc.rc
r189 r401 34 34 "Help for command line utility:\r\n" 35 35 "\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" 37 37 "\r\n" 38 38 " workgroup - name of workgroup\r\n" … … 43 43 " master - name of master server or master workgroup\r\n" 44 44 " 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"48 45 " easupport - 0 to not support EA, 1 to support\r\n" 49 46 "\r\n" … … 103 100 RCDATA (DLG_ID + 7) 104 101 { 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 {140 102 CHK_EASUPPORT, PARMTYPE_INT, 0L, 1L, "easupport", "%d", 1L, 141 103 "0", … … 143 105 } 144 106 145 RCDATA (DLG_ID + 11)107 RCDATA (DLG_ID + 8) 146 108 { 147 109 ENT_SPASS, PARMTYPE_STRING, 1L, 255L, "spassword", "%s", "" 148 110 } 149 111 150 RCDATA (DLG_ID + 12)112 RCDATA (DLG_ID + 9) 151 113 { 152 114 1 -
branches/client-1.6/src/smbwrp.c
r297 r401 1759 1759 return 0; 1760 1760 } 1761
Note:
See TracChangeset
for help on using the changeset viewer.