Changeset 128 in Main
- Timestamp:
- Sep 23, 2024, 7:19:19 PM (8 weeks ago)
- Location:
- trunk
- Files:
-
- 3 added
- 2 deleted
- 9 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r121 r128 11 11 .PHONY: all format clean ./Server ./Common ./Module ./Manpage get-version 12 12 13 all: ./Server ./Module ./Manpage 13 all: ./Server ./Module ./Manpage ./Tool/genconf ./Tool/itworks 14 14 15 ./ Server/option: ./Server/option.c16 cc -o $@ ./ Server/option.c15 ./Tool/option: ./Tool/option.c 16 cc -o $@ ./Tool/option.c 17 17 18 ./Server:: ./Common ./Server/option 19 $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Server/option objs ../`" EXTLIBS="`./Server/option libs ../`" EXTCFLAGS="`./Server/option cflags ../`" EXTLDFLAGS="`./Server/option ldflags ../`" 18 ./Tool/genconf: ./Tool/genconf.c 19 cc -o $@ ./Tool/genconf.c 20 21 ./Server:: ./Common ./Tool/option 22 $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Tool/option objs ../`" EXTLIBS="`./Tool/option libs ../`" EXTCFLAGS="`./Tool/option cflags ../`" EXTLDFLAGS="`./Tool/option ldflags ../`" 20 23 21 24 ./Module:: ./Common … … 28 31 $(MAKE) -C $@ $(FLAGS) 29 32 30 install: all 31 mkdir -p $(PREFIX)/bin $(PREFIX)/lib/tewi $(PREFIX)/share/man/man5 $(PREFIX)/etc 32 if [ ! -e $(PREFIX)/etc/tewi.conf ]; then cp example.conf $(PREFIX)/etc/tewi.conf ; fi 33 install: all ./Tool/genconf ./Tool/itworks 34 mkdir -p $(PREFIX)/bin $(PREFIX)/lib/tewi $(PREFIX)/share/man/man5 $(PREFIX)/etc $(PREFIX)/www 35 if [ ! -e $(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) > $(PREFIX)/etc/tewi.conf || ( rm $(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi 36 if [ ! -e $(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(PREFIX)/www/index.html || ( rm $(PREFIX)/www/index.html ; exit 1 ) ) ; fi 37 if [ ! -e $(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(PREFIX)/www/ || ( rm $(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi 33 38 cp ./Server/tewi $(PREFIX)/bin/ 34 39 cp ./Module/*.so $(PREFIX)/lib/tewi/ … … 46 51 $(MAKE) -C ./Common $(FLAGS) clean 47 52 $(MAKE) -C ./Manpage $(FLAGS) clean 48 rm -f ./ Server/option53 rm -f ./Tool/option ./Tool/genconf -
trunk/Server/Makefile
r75 r128 16 16 $(CC) $(CFLAGS) $(EXTCFLAGS) -c -o $@ $< 17 17 18 tewi.res: tewi.rc tewi.ico18 tewi.res: tewi.rc ../Binary/tewi.ico 19 19 $(WINDRES) tewi.rc -O coff -o $@ 20 20 -
trunk/Server/config.c
r127 r128 90 90 config.extension = NULL; 91 91 config.server_root = cm_strdup(PREFIX); 92 config.server_admin = cm_strdup(SERVER_ADMIN); 92 93 gethostname(config.hostname, 1024); 94 chdir(config.server_root); 93 95 } 94 96 … … 247 249 free(config.server_root); 248 250 config.server_root = cm_strdup(r[1]); 251 } 252 } else if(cm_strcaseequ(r[0], "ServerAdmin")) { 253 if(r[1] == NULL) { 254 cm_log("Config", "Missing email at line %d", ln); 255 stop = 1; 256 } else { 257 free(config.server_admin); 258 config.server_admin = cm_strdup(r[1]); 249 259 } 250 260 } else if(cm_strcaseequ(r[0], "DocumentRoot")) { -
trunk/Server/install.nsi
r78 r128 13 13 OutFile "install.exe" 14 14 InstallDir "C:\Tewi" 15 Icon " tewi-install.ico"15 Icon "../Binary/tewi-install.ico" 16 16 LicenseData ../LICENSE 17 17 … … 43 43 SetOutPath "$INSTDIR\etc" 44 44 SetOverWrite off 45 File /oname=tewi.conf "../ example-win.conf"45 File /oname=tewi.conf "../generated.conf" 46 46 SetOutPath "$INSTDIR\www" 47 47 File /oname=index.html "../itworks.html" 48 File /oname=pbtewi.gif "../Binary/pbtewi.gif" 48 49 SetOutPath "$INSTDIR\www\icons" 49 50 File "../Icons/*.png" -
trunk/Server/tewi.rc
r52 r128 3 3 #include "../config.h" 4 4 5 id ICON ". /tewi.ico"5 id ICON "../Binary/tewi.ico" 6 6 VS_VERSION_INFO VERSIONINFO 7 7 FILEVERSION 1,0,0,0 -
trunk/Server/tw_config.h
r123 r128 82 82 int module_count; 83 83 int vhost_count; 84 char* server_admin; 84 85 char* server_root; 85 86 char* extension; -
trunk/Server/tw_version.h
r124 r128 4 4 #define __TW_VERSION_H__ 5 5 6 #define TW_VERSION "1.0 3A\0"6 #define TW_VERSION "1.04\0" 7 7 8 8 const char* tw_get_version(void); -
trunk/config.h.tmpl
r118 r128 3 3 #ifndef __CONFIG_H__ 4 4 #define __CONFIG_H__ 5 6 #define SERVER_ADMIN "webmaster@domain" 5 7 6 8 #undef NO_SSL -
trunk/installer.sh
r80 r128 5 5 rm -f tewi-service.exe 6 6 rm -f tewi.exe 7 rm -f generated.conf 8 rm -f itworks.html 7 9 mv config.h.bak config.h 8 10 exit 1 … … 22 24 cp Server/tewi.exe tewi-service.exe 23 25 cd Server 26 ../Tool/genconf > ../generated.conf 27 ../Tool/itworks > ../itworks.html 24 28 makensis -DVERSION=$VERSION install.nsi 25 29 cp install.exe ../install-nossl.exe … … 36 40 cp Server/tewi.exe tewi-service.exe 37 41 cd Server 42 ../Tool/genconf > ../generated.conf 43 ../Tool/itworks > ../itworks.html 38 44 makensis -DVERSION=$VERSION install.nsi 39 45 cp install.exe ../install-ssl.exe 40 46 rm -f tewi.exe tewi-service.exe 41 47 cd .. 48 49 rm itworks.html 50 rm generated.conf
Note:
See TracChangeset
for help on using the changeset viewer.