mirror of
https://github.com/yacy/yacy_search_server.git
synced 2026-10-25 05:54:15 +00:00
small sanitary fixes
- exclude unix shell scripts in NSIS windows install archive - replace link to env/grafics/yacy.gif to yacy.png (build.nsi) - remove unused code lines (Blacklist_p, Response, WordReferenceVars) - type & xhtml (RankingSolr_p.html)
This commit is contained in:
1 parent
f301336adf
commit
276e63401e
10 files changed
+2312
-2320
No files matched your search
@@ -1,426 +1,426 @@
|
||||
;yacy.nsi
|
||||
; ----------------------------------------
|
||||
;(C) 2004-2006 by Alexander Schier
|
||||
;(C) 2008-2010 by David Wieditz
|
||||
;(C) 2011- by Rene Kluge
|
||||
/*----------------------------------------
|
||||
MANUALS
|
||||
http://nsis.sourceforge.net/Docs/
|
||||
http://nsis.sourceforge.net/Docs/Modern%20UI%202/Readme.html
|
||||
----------------------------------------
|
||||
COMMAND LINE OPTIONS (case sensitive):
|
||||
/S - silent install/uninstall
|
||||
/D="C:\yacy" - installation folder
|
||||
----------------------------------------*/
|
||||
|
||||
; ----------------------------------------
|
||||
; MODERN UI
|
||||
|
||||
!include MUI2.nsh
|
||||
!include x64.nsh
|
||||
!include FileFunc.nsh
|
||||
!include WinVer.nsh
|
||||
|
||||
; ----------------------------------------
|
||||
; GENERAL
|
||||
|
||||
VIProductVersion "@REPL_VERSION@.0.0"
|
||||
VIAddVersionKey "ProductName" "YaCy"
|
||||
VIAddVersionKey "LegalCopyright" "YaCy"
|
||||
VIAddVersionKey "FileVersion" "@REPL_VERSION@"
|
||||
VIAddVersionKey "FileDescription" "YaCy"
|
||||
VIAddVersionKey "OriginalFilename" "yacy_v@REPL_VERSION@_@REPL_DATE@_@REPL_REVISION_NR@.exe"
|
||||
|
||||
Name "YaCy @REPL_VERSION@"
|
||||
OutFile "RELEASE\WINDOWS\yacy_v@REPL_VERSION@_@REPL_DATE@_@REPL_REVISION_NR@.exe"
|
||||
|
||||
;default installation folder
|
||||
InstallDir "$PROFILE\YaCy"
|
||||
InstallDirRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "UninstallString"
|
||||
|
||||
;recommend free space in GB for YaCy
|
||||
!define RecommendSpace "4"
|
||||
|
||||
; commands for firewall config, see http://support.microsoft.com/kb/947709/en-us
|
||||
!define WinXPAddFwRulePort 'netsh firewall add allowedprogram name="YaCy" program="%SystemRoot%\System32\javaw.exe"'
|
||||
!define WinXPDelFwRulePort 'netsh firewall del allowedprogram program="%SystemRoot%\System32\javaw.exe"'
|
||||
!define WinVistaAddFwRulePort 'netsh advfirewall firewall add rule name="YaCy" program="%SystemRoot%\System32\javaw.exe" dir=in action=allow'
|
||||
!define WinVistaDelFwRulePort 'netsh advfirewall firewall del rule name="YaCy"'
|
||||
var WinAddFwRulePort
|
||||
var WinDelFwRulePort
|
||||
|
||||
;requested execution level on Vista / 7
|
||||
RequestExecutionLevel admin
|
||||
|
||||
SetCompressor /SOLID LZMA
|
||||
!insertmacro MUI_RESERVEFILE_LANGDLL ;loads faster
|
||||
|
||||
; ----------------------------------------
|
||||
; JAVA VERSION
|
||||
; http://www.java.com/de/download/manual.jsp BundleId +1 / +2
|
||||
; User-Agent to see the 64bit link: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0)
|
||||
|
||||
; at least we need Java 6
|
||||
!define JRE_VERSION6 "1.6"
|
||||
|
||||
; download link Oracle Java 7 Update 4
|
||||
; 32 bit
|
||||
!define JRE_32 "http://javadl.sun.com/webapps/download/AutoDL?BundleId=63691"
|
||||
; 64 bit
|
||||
!define JRE_64 "http://javadl.sun.com/webapps/download/AutoDL?BundleId=63692"
|
||||
|
||||
;!define JRE_32 "http://yacy.berlios.de/download.php?what=jre&version=32&yacyrevnr=@REPL_REVISION_NR@"
|
||||
;!define JRE_64 "http://yacy.berlios.de/download.php?what=jre&version=64&yacyrevnr=@REPL_REVISION_NR@"
|
||||
|
||||
; ----------------------------------------
|
||||
; GENERAL APPEARANCE
|
||||
|
||||
;BrandingText "yacy.net"
|
||||
|
||||
!define MUI_ICON "RELEASE\MAIN\addon\YaCy.ico"
|
||||
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"
|
||||
|
||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "RELEASE\MAIN\addon\installer\network.bmp"
|
||||
|
||||
!define MUI_HEADERIMAGE
|
||||
!define MUI_HEADERIMAGE_BITMAP "RELEASE\MAIN\addon\installer\logo.bmp"
|
||||
!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
|
||||
|
||||
!define MUI_ABORTWARNING ;display warning before aborting installation
|
||||
|
||||
; ----------------------------------------
|
||||
; INSTALLER PAGES
|
||||
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
|
||||
!insertmacro MUI_PAGE_LICENSE gpl.txt
|
||||
|
||||
!define MUI_COMPONENTSPAGE_NODESC
|
||||
!insertmacro MUI_PAGE_COMPONENTS
|
||||
ComponentText "YaCy v@REPL_VERSION@ (Build @REPL_DATE@)"
|
||||
|
||||
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE CheckDriveSpace
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
|
||||
!define MUI_PAGE_CUSTOMFUNCTION_SHOW SHOW_PageFinish_custom
|
||||
!define MUI_FINISHPAGE_SHOWREADME http://www.yacy-websuche.de/wiki/index.php/InstallerFinished
|
||||
!define MUI_FINISHPAGE_SHOWREADME_TEXT $(finishPage)
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
; ----------------------------------------
|
||||
; UNINSTALLER PAGES
|
||||
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
|
||||
; ----------------------------------------
|
||||
; LANGUAGES
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
!insertmacro MUI_LANGUAGE "French"
|
||||
!insertmacro MUI_LANGUAGE "German"
|
||||
|
||||
LangString stillRunning ${LANG_ENGLISH} "YaCy is still active. Please stop YaCy first."
|
||||
LangString keepData 0 "Do you want to keep the data?"
|
||||
LangString noAdminForJava 0 "You need Administrator privileges to install Java. Java will now be downloaded to the shared documents folder. YaCy won't run without Java."
|
||||
LangString finishPage 0 "Show how to configure the Windows Firewall for YaCy."
|
||||
LangString yacyNoHd 0 "YaCy should be installed on a hard disk. Continue with selected folder?"
|
||||
LangString yacyNeedSpace 0 "We recommend ${RecommendSpace} GB free space for YaCy. There are only $TempDriveFree GB left. Continue anyway?"
|
||||
LangString yacyNeedOs 0 "Please run Windows 2000 or better (e.g. Windows XP, Vista or Windows 7) for YaCy."
|
||||
|
||||
LangString stillRunning ${LANG_FRENCH} "YaCy is still active. Please stop YaCy first."
|
||||
LangString keepData 0 "Do you want to keep the data?"
|
||||
LangString noAdminForJava 0 "You need Administrator privileges to install Java. Java will now be downloaded to the shared documents folder. YaCy won't run without Java."
|
||||
LangString finishPage 0 "Show how to configure the Windows Firewall for YaCy."
|
||||
LangString yacyNoHd 0 "YaCy should be installed on a hard disk. Continue with selected folder?"
|
||||
LangString yacyNeedSpace 0 "We recommend ${RecommendSpace} GB free space for YaCy. There are only $TempDriveFree GB left. Continue anyway?"
|
||||
LangString yacyNeedOs 0 "Please run Windows 2000 or better (e.g. Windows XP, Vista or Windows 7) for YaCy."
|
||||
|
||||
LangString stillRunning ${LANG_GERMAN} "YaCy ist noch aktiv. Bitte beenden Sie YaCy."
|
||||
LangString keepData 0 "Moechten Sie die Daten behalten?"
|
||||
LangString noAdminForJava 0 "Sie benoetigen Administrator-Rechte um Java zu installieren. Java wird nun in 'Gemeinsame Dokumente' gespeichert. YaCy benoetigt Java zur Ausfuehrung."
|
||||
LangString finishPage 0 "Zeige die Windows Firewall Konfiguration fuer YaCy."
|
||||
LangString yacyNoHd 0 "YaCy sollte auf einer Festplatte installiert werden. Soll der gewaehlte Ordner trotzdem verwendet werden?"
|
||||
LangString yacyNeedSpace 0 "Wir empfehlen ${RecommendSpace} GB fuer YaCy. Es sind noch $TempDriveFree GB frei. Trotzdem fortfahren?"
|
||||
LangString yacyNeedOs 0 "YaCy benoetigt Windows 2000 oder besser (z.B. Windows XP, Vista oder Windows 7)."
|
||||
|
||||
; ----------------------------------------
|
||||
; INSTALLABLE MODULES
|
||||
|
||||
;InstType "Normal"
|
||||
|
||||
Section "YaCy"
|
||||
SectionIn 1 RO
|
||||
SetShellVarContext current ; use system variables (folders) for current user
|
||||
RMDir /r "$INSTDIR\lib" ;remove old libraries in case of update
|
||||
RMDir /r "$SMPROGRAMS\YaCy" ;clear old shortcuts
|
||||
Delete "$QUICKLAUNCH\YaCy-Search.lnk" ;old
|
||||
Delete "$DESKTOP\YaCy-Search.lnk" ;old
|
||||
Delete "$SMSTARTUP\start YaCy (no console).lnk" ;old
|
||||
|
||||
SetOutPath $INSTDIR
|
||||
;set noindex attribute for windows indexing service
|
||||
nsExec::Exec 'attrib +I "$INSTDIR"'
|
||||
nsExec::Exec 'attrib +I "$INSTDIR\*" /S /D'
|
||||
|
||||
File /r "RELEASE\MAIN\*"
|
||||
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "DisplayName" "YaCy"
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||
WriteUninstaller "uninstall.exe"
|
||||
SectionEnd
|
||||
|
||||
Section "Java (Oracle JRE)" Sec_Java_id
|
||||
SectionIn 1 RO
|
||||
SetShellVarContext current
|
||||
Call GetJRE
|
||||
SectionEnd
|
||||
|
||||
Section "Start Menu Group"
|
||||
SectionIn 1
|
||||
SetShellVarContext current
|
||||
CreateDirectory "$SMPROGRAMS\YaCy"
|
||||
CreateShortCut "$SMPROGRAMS\YaCy\YaCy.lnk" "$INSTDIR\startYACY.bat" "" "$INSTDIR\addon\YaCy.ico" "" SW_SHOWMINIMIZED
|
||||
CreateShortCut "$SMPROGRAMS\YaCy\Readme.lnk" "$INSTDIR\readme.txt"
|
||||
CreateShortCut "$SMPROGRAMS\YaCy\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
SectionEnd
|
||||
|
||||
Section "Desktop Icon"
|
||||
SectionIn 1
|
||||
SetShellVarContext current
|
||||
CreateShortCut "$DESKTOP\YaCy.lnk" "$INSTDIR\startYACY.bat" "" "$INSTDIR\addon\YaCy.ico" "" SW_SHOWMINIMIZED
|
||||
SectionEnd
|
||||
|
||||
Section "Configure Firewall" Sec_Firewall_id
|
||||
SectionIn 1
|
||||
SetShellVarContext current
|
||||
call OpenFirewall
|
||||
SectionEnd
|
||||
|
||||
/*
|
||||
Section "YaCy in Startup"
|
||||
SetShellVarContext current
|
||||
CreateShortCut "$SMSTARTUP\YaCy.lnk" "$INSTDIR\startYACY.bat" "" "$INSTDIR\addon\YaCy.ico" "" SW_SHOWMINIMIZED
|
||||
SectionEnd
|
||||
*/
|
||||
|
||||
; ----------------------------------------
|
||||
; UNINSTALLER
|
||||
|
||||
Section "Uninstall"
|
||||
ClearErrors
|
||||
Delete "$INSTDIR\DATA\yacy.running"
|
||||
IfErrors 0 uninstall
|
||||
MessageBox MB_ICONSTOP "$(stillRunning)" /SD IDOK
|
||||
Goto nouninstall
|
||||
|
||||
uninstall:
|
||||
Call un.CloseFirewall
|
||||
SetShellVarContext current
|
||||
|
||||
RMDir /r "$INSTDIR\addon"
|
||||
RMDir /r "$INSTDIR\bin"
|
||||
RMDir /r "$INSTDIR\classes"
|
||||
RMDir /r "$INSTDIR\defaults"
|
||||
RMDir /r "$INSTDIR\htroot"
|
||||
RMDir /r "$INSTDIR\lib"
|
||||
RMDir /r "$INSTDIR\libx"
|
||||
RMDir /r "$INSTDIR\locales"
|
||||
RMDir /r "$INSTDIR\ranking"
|
||||
RMDir /r "$INSTDIR\skins"
|
||||
RMDir /r "$INSTDIR\source"
|
||||
Delete "$INSTDIR\*.*"
|
||||
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "$(keepData)" /SD IDYES IDYES keepdata
|
||||
|
||||
;delete all
|
||||
RMDir /r "$INSTDIR"
|
||||
|
||||
;or jump to this
|
||||
keepdata:
|
||||
RMDir /r "$SMPROGRAMS\YaCy"
|
||||
Delete "$DESKTOP\YaCy.lnk"
|
||||
Delete "$SMSTARTUP\YaCy.lnk"
|
||||
|
||||
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy"
|
||||
nouninstall:
|
||||
SectionEnd
|
||||
|
||||
; ----------------------------------------
|
||||
; FUNCTIONS
|
||||
|
||||
Function .onInit
|
||||
; check Windows-Version, need Win 2000 or higher
|
||||
${If} ${AtMostWinME}
|
||||
MessageBox MB_ICONSTOP "$(yacyNeedOs)"
|
||||
Abort
|
||||
${EndIf}
|
||||
|
||||
; init of JRE section
|
||||
; detect JRE first
|
||||
var /global InstalledJREVersion
|
||||
${If} ${RunningX64}
|
||||
SetRegView 64
|
||||
${EndIf}
|
||||
ReadRegStr $InstalledJREVersion HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVersion"
|
||||
; if right JRE already installed hide and deselect JRE section
|
||||
${If} $InstalledJREVersion = ${JRE_VERSION6}
|
||||
SectionSetText ${Sec_Java_id} ""
|
||||
SectionSetFlags ${Sec_Java_id} 0
|
||||
${EndIf}
|
||||
|
||||
; init of Firewall section, only valid for WindowsXP SP2/SP3 and Vista/Win 7 with Admin
|
||||
var /global FirewallServiceStart
|
||||
IntOp $FirewallServiceStart 3 + 0
|
||||
|
||||
${If} ${IsWinVista}
|
||||
${OrIf} ${IsWin7}
|
||||
StrCpy $WinAddFwRulePort '${WinVistaAddFwRulePort}'
|
||||
StrCpy $WinDelFwRulePort '${WinVistaDelFwRulePort}'
|
||||
ReadRegDWORD $FirewallServiceStart HKLM "SYSTEM\CurrentControlSet\services\MpsSvc" "Start"
|
||||
${EndIf}
|
||||
|
||||
${If} ${IsWinXP}
|
||||
${AndIf} ${AtLeastServicePack} 2
|
||||
StrCpy $WinAddFwRulePort '${WinXPAddFwRulePort}'
|
||||
StrCpy $WinDelFwRulePort '${WinXPDelFwRulePort}'
|
||||
ReadRegDWORD $FirewallServiceStart HKLM "SYSTEM\CurrentControlSet\services\SharedAccess" "Start"
|
||||
${EndIf}
|
||||
|
||||
;need Admin for firewall-config
|
||||
${IfNot} $0 = "Admin"
|
||||
IntOp $FirewallServiceStart 3 + 0
|
||||
${EndIf}
|
||||
|
||||
; hide and deselect Firewall if no proper configuration
|
||||
${If} $FirewallServiceStart > 2
|
||||
SectionSetText ${Sec_Firewall_id} ""
|
||||
SectionSetFlags ${Sec_Firewall_id} 0
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function GetJRE
|
||||
; based on http://nsis.sourceforge.net/Simple_Java_Runtime_Download_Script
|
||||
${If} ${RunningX64}
|
||||
StrCpy $3 ${JRE_64}
|
||||
${Else}
|
||||
StrCpy $3 ${JRE_32}
|
||||
${EndIf}
|
||||
|
||||
;check if admin before download, advise if non
|
||||
userInfo::getAccountType
|
||||
Pop $0
|
||||
|
||||
${IfNot} $0 = "Admin"
|
||||
MessageBox MB_ICONEXCLAMATION "$(noAdminForJava)" /SD IDOK
|
||||
${EndIf}
|
||||
|
||||
SetShellVarContext all
|
||||
StrCpy $2 "$DOCUMENTS\Java Runtime (install for YaCy).exe"
|
||||
SetShellVarContext current
|
||||
nsisdl::download /TIMEOUT=30000 $3 $2
|
||||
Pop $R0 ;Get the return value
|
||||
|
||||
${IfNot} $R0 = "success"
|
||||
MessageBox MB_OK "Download failed: $R0" /SD IDOK
|
||||
Return
|
||||
${EndIf}
|
||||
|
||||
${If} $0 == "Admin"
|
||||
ExecWait "$2 /s"
|
||||
Delete $2
|
||||
${Else}
|
||||
CreateShortCut "$DESKTOP\Install Java for YaCy.lnk" "$2"
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function CheckDriveSpace
|
||||
var /global RootFolder
|
||||
var /global TempDriveFree
|
||||
var /global RootFolderType
|
||||
|
||||
; if "\\Folder" it's a Network-Folder
|
||||
StrCpy $RootFolder $InstDir 2
|
||||
StrCmp $RootFolder "\\" NetworkFolder Driveletter
|
||||
|
||||
Networkfolder:
|
||||
; prepare String for DriveSpace
|
||||
${GetRoot} $RootFolder $InstDir
|
||||
goto NoHDD
|
||||
|
||||
; now check drive-letters
|
||||
Driveletter:
|
||||
StrCpy $RootFolder $InstDir 3
|
||||
|
||||
; prepare for {GetDrives-Loop}
|
||||
StrCpy $RootFolderType "invalid"
|
||||
${GetDrives} "ALL" "CheckDriveType"
|
||||
|
||||
; jump if error
|
||||
StrCmp $RootFolderType "invalid" CheckSpace
|
||||
|
||||
; jump if HDD
|
||||
StrCmp $RootFolderType "HDD" CheckSpace
|
||||
|
||||
NoHDD:
|
||||
; stay on folder-selection if user wants to give another folder, else check free space
|
||||
MessageBox MB_ICONEXCLAMATION|MB_YESNO "$(yacyNoHd)" IDYES NextPage
|
||||
Abort
|
||||
|
||||
CheckSpace:
|
||||
|
||||
ClearErrors
|
||||
${DriveSpace} $RootFolder "/D=F /S=G" $TempDriveFree
|
||||
; if DriveSpace fails for any reason -> jump ahead
|
||||
IfErrors NextPage
|
||||
|
||||
${If} $TempDriveFree < ${RecommendSpace}
|
||||
MessageBox MB_ICONEXCLAMATION|MB_YESNO "$(yacyNeedSpace)" IDYES NextPage
|
||||
Abort
|
||||
${EndIf}
|
||||
|
||||
NextPage:
|
||||
FunctionEnd
|
||||
|
||||
Function CheckDriveType
|
||||
; based on http://nsis.sourceforge.net/GetDrives
|
||||
${If} $9 == $RootFolder
|
||||
StrCpy $RootFolderType $8
|
||||
StrCpy $0 StopGetDrives
|
||||
${EndIf}
|
||||
Push $0
|
||||
FunctionEnd
|
||||
|
||||
Function OpenFirewall
|
||||
var /global ExecErrorCode
|
||||
; run netsh
|
||||
nsExec::ExecToStack '$WinAddFwRulePort'
|
||||
pop $ExecErrorCode
|
||||
; if run without error register for uninstall and clear finish page
|
||||
${If} $ExecErrorCode = "0"
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "DelFwRulePort" '$WinDelFwRulePort'
|
||||
IntOp $FirewallServiceStart 0 + 0
|
||||
${Else}
|
||||
IntOp $FirewallServiceStart 3 + 0
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function SHOW_PageFinish_custom
|
||||
; hide and disable firewall info from wiki if firewall is open
|
||||
${If} $FirewallServiceStart = 0
|
||||
SendMessage $mui.FinishPage.ShowReadme ${BM_SETCHECK} 0 0
|
||||
ShowWindow $mui.FinishPage.ShowReadme ${SW_HIDE}
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function un.CloseFirewall
|
||||
; get string for closing port from registy
|
||||
ReadRegStr '$WinDelFwRulePort' HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "DelFwRulePort"
|
||||
; if found > run netsh to close port
|
||||
${IfNot} '$WinDelFwRulePort' == ''
|
||||
nsExec::ExecToStack '$WinDelFwRulePort'
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
;yacy.nsi
|
||||
; ----------------------------------------
|
||||
;(C) 2004-2006 by Alexander Schier
|
||||
;(C) 2008-2010 by David Wieditz
|
||||
;(C) 2011- by Rene Kluge
|
||||
/*----------------------------------------
|
||||
MANUALS
|
||||
http://nsis.sourceforge.net/Docs/
|
||||
http://nsis.sourceforge.net/Docs/Modern%20UI%202/Readme.html
|
||||
----------------------------------------
|
||||
COMMAND LINE OPTIONS (case sensitive):
|
||||
/S - silent install/uninstall
|
||||
/D="C:\yacy" - installation folder
|
||||
----------------------------------------*/
|
||||
|
||||
; ----------------------------------------
|
||||
; MODERN UI
|
||||
|
||||
!include MUI2.nsh
|
||||
!include x64.nsh
|
||||
!include FileFunc.nsh
|
||||
!include WinVer.nsh
|
||||
|
||||
; ----------------------------------------
|
||||
; GENERAL
|
||||
|
||||
VIProductVersion "@REPL_VERSION@.0.0"
|
||||
VIAddVersionKey "ProductName" "YaCy"
|
||||
VIAddVersionKey "LegalCopyright" "YaCy"
|
||||
VIAddVersionKey "FileVersion" "@REPL_VERSION@"
|
||||
VIAddVersionKey "FileDescription" "YaCy"
|
||||
VIAddVersionKey "OriginalFilename" "yacy_v@REPL_VERSION@_@REPL_DATE@_@REPL_REVISION_NR@.exe"
|
||||
|
||||
Name "YaCy @REPL_VERSION@"
|
||||
OutFile "RELEASE\WINDOWS\yacy_v@REPL_VERSION@_@REPL_DATE@_@REPL_REVISION_NR@.exe"
|
||||
|
||||
;default installation folder
|
||||
InstallDir "$PROFILE\YaCy"
|
||||
InstallDirRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "UninstallString"
|
||||
|
||||
;recommend free space in GB for YaCy
|
||||
!define RecommendSpace "4"
|
||||
|
||||
; commands for firewall config, see http://support.microsoft.com/kb/947709/en-us
|
||||
!define WinXPAddFwRulePort 'netsh firewall add allowedprogram name="YaCy" program="%SystemRoot%\System32\javaw.exe"'
|
||||
!define WinXPDelFwRulePort 'netsh firewall del allowedprogram program="%SystemRoot%\System32\javaw.exe"'
|
||||
!define WinVistaAddFwRulePort 'netsh advfirewall firewall add rule name="YaCy" program="%SystemRoot%\System32\javaw.exe" dir=in action=allow'
|
||||
!define WinVistaDelFwRulePort 'netsh advfirewall firewall del rule name="YaCy"'
|
||||
var WinAddFwRulePort
|
||||
var WinDelFwRulePort
|
||||
|
||||
;requested execution level on Vista / 7
|
||||
RequestExecutionLevel admin
|
||||
|
||||
SetCompressor /SOLID LZMA
|
||||
!insertmacro MUI_RESERVEFILE_LANGDLL ;loads faster
|
||||
|
||||
; ----------------------------------------
|
||||
; JAVA VERSION
|
||||
; http://www.java.com/de/download/manual.jsp BundleId +1 / +2
|
||||
; User-Agent to see the 64bit link: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0)
|
||||
|
||||
; at least we need Java 6
|
||||
!define JRE_VERSION6 "1.6"
|
||||
|
||||
; download link Oracle Java 7 Update 4
|
||||
; 32 bit
|
||||
!define JRE_32 "http://javadl.sun.com/webapps/download/AutoDL?BundleId=63691"
|
||||
; 64 bit
|
||||
!define JRE_64 "http://javadl.sun.com/webapps/download/AutoDL?BundleId=63692"
|
||||
|
||||
;!define JRE_32 "http://yacy.berlios.de/download.php?what=jre&version=32&yacyrevnr=@REPL_REVISION_NR@"
|
||||
;!define JRE_64 "http://yacy.berlios.de/download.php?what=jre&version=64&yacyrevnr=@REPL_REVISION_NR@"
|
||||
|
||||
; ----------------------------------------
|
||||
; GENERAL APPEARANCE
|
||||
|
||||
;BrandingText "yacy.net"
|
||||
|
||||
!define MUI_ICON "RELEASE\MAIN\addon\YaCy.ico"
|
||||
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"
|
||||
|
||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "RELEASE\MAIN\addon\installer\network.bmp"
|
||||
|
||||
!define MUI_HEADERIMAGE
|
||||
!define MUI_HEADERIMAGE_BITMAP "RELEASE\MAIN\addon\installer\logo.bmp"
|
||||
!define MUI_HEADERIMAGE_BITMAP_NOSTRETCH
|
||||
|
||||
!define MUI_ABORTWARNING ;display warning before aborting installation
|
||||
|
||||
; ----------------------------------------
|
||||
; INSTALLER PAGES
|
||||
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
|
||||
!insertmacro MUI_PAGE_LICENSE gpl.txt
|
||||
|
||||
!define MUI_COMPONENTSPAGE_NODESC
|
||||
!insertmacro MUI_PAGE_COMPONENTS
|
||||
ComponentText "YaCy v@REPL_VERSION@ (Build @REPL_DATE@)"
|
||||
|
||||
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE CheckDriveSpace
|
||||
!insertmacro MUI_PAGE_DIRECTORY
|
||||
|
||||
!insertmacro MUI_PAGE_INSTFILES
|
||||
|
||||
!define MUI_PAGE_CUSTOMFUNCTION_SHOW SHOW_PageFinish_custom
|
||||
!define MUI_FINISHPAGE_SHOWREADME http://www.yacy-websuche.de/wiki/index.php/InstallerFinished
|
||||
!define MUI_FINISHPAGE_SHOWREADME_TEXT $(finishPage)
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
; ----------------------------------------
|
||||
; UNINSTALLER PAGES
|
||||
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
|
||||
; ----------------------------------------
|
||||
; LANGUAGES
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
!insertmacro MUI_LANGUAGE "French"
|
||||
!insertmacro MUI_LANGUAGE "German"
|
||||
|
||||
LangString stillRunning ${LANG_ENGLISH} "YaCy is still active. Please stop YaCy first."
|
||||
LangString keepData 0 "Do you want to keep the data?"
|
||||
LangString noAdminForJava 0 "You need Administrator privileges to install Java. Java will now be downloaded to the shared documents folder. YaCy won't run without Java."
|
||||
LangString finishPage 0 "Show how to configure the Windows Firewall for YaCy."
|
||||
LangString yacyNoHd 0 "YaCy should be installed on a hard disk. Continue with selected folder?"
|
||||
LangString yacyNeedSpace 0 "We recommend ${RecommendSpace} GB free space for YaCy. There are only $TempDriveFree GB left. Continue anyway?"
|
||||
LangString yacyNeedOs 0 "Please run Windows 2000 or better (e.g. Windows XP, Vista or Windows 7) for YaCy."
|
||||
|
||||
LangString stillRunning ${LANG_FRENCH} "YaCy is still active. Please stop YaCy first."
|
||||
LangString keepData 0 "Do you want to keep the data?"
|
||||
LangString noAdminForJava 0 "You need Administrator privileges to install Java. Java will now be downloaded to the shared documents folder. YaCy won't run without Java."
|
||||
LangString finishPage 0 "Show how to configure the Windows Firewall for YaCy."
|
||||
LangString yacyNoHd 0 "YaCy should be installed on a hard disk. Continue with selected folder?"
|
||||
LangString yacyNeedSpace 0 "We recommend ${RecommendSpace} GB free space for YaCy. There are only $TempDriveFree GB left. Continue anyway?"
|
||||
LangString yacyNeedOs 0 "Please run Windows 2000 or better (e.g. Windows XP, Vista or Windows 7) for YaCy."
|
||||
|
||||
LangString stillRunning ${LANG_GERMAN} "YaCy ist noch aktiv. Bitte beenden Sie YaCy."
|
||||
LangString keepData 0 "Moechten Sie die Daten behalten?"
|
||||
LangString noAdminForJava 0 "Sie benoetigen Administrator-Rechte um Java zu installieren. Java wird nun in 'Gemeinsame Dokumente' gespeichert. YaCy benoetigt Java zur Ausfuehrung."
|
||||
LangString finishPage 0 "Zeige die Windows Firewall Konfiguration fuer YaCy."
|
||||
LangString yacyNoHd 0 "YaCy sollte auf einer Festplatte installiert werden. Soll der gewaehlte Ordner trotzdem verwendet werden?"
|
||||
LangString yacyNeedSpace 0 "Wir empfehlen ${RecommendSpace} GB fuer YaCy. Es sind noch $TempDriveFree GB frei. Trotzdem fortfahren?"
|
||||
LangString yacyNeedOs 0 "YaCy benoetigt Windows 2000 oder besser (z.B. Windows XP, Vista oder Windows 7)."
|
||||
|
||||
; ----------------------------------------
|
||||
; INSTALLABLE MODULES
|
||||
|
||||
;InstType "Normal"
|
||||
|
||||
Section "YaCy"
|
||||
SectionIn 1 RO
|
||||
SetShellVarContext current ; use system variables (folders) for current user
|
||||
RMDir /r "$INSTDIR\lib" ;remove old libraries in case of update
|
||||
RMDir /r "$SMPROGRAMS\YaCy" ;clear old shortcuts
|
||||
Delete "$QUICKLAUNCH\YaCy-Search.lnk" ;old
|
||||
Delete "$DESKTOP\YaCy-Search.lnk" ;old
|
||||
Delete "$SMSTARTUP\start YaCy (no console).lnk" ;old
|
||||
|
||||
SetOutPath $INSTDIR
|
||||
;set noindex attribute for windows indexing service
|
||||
nsExec::Exec 'attrib +I "$INSTDIR"'
|
||||
nsExec::Exec 'attrib +I "$INSTDIR\*" /S /D'
|
||||
|
||||
File /r /x *.sh "RELEASE\MAIN\*"
|
||||
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "DisplayName" "YaCy"
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||
WriteUninstaller "uninstall.exe"
|
||||
SectionEnd
|
||||
|
||||
Section "Java (Oracle JRE)" Sec_Java_id
|
||||
SectionIn 1 RO
|
||||
SetShellVarContext current
|
||||
Call GetJRE
|
||||
SectionEnd
|
||||
|
||||
Section "Start Menu Group"
|
||||
SectionIn 1
|
||||
SetShellVarContext current
|
||||
CreateDirectory "$SMPROGRAMS\YaCy"
|
||||
CreateShortCut "$SMPROGRAMS\YaCy\YaCy.lnk" "$INSTDIR\startYACY.bat" "" "$INSTDIR\addon\YaCy.ico" "" SW_SHOWMINIMIZED
|
||||
CreateShortCut "$SMPROGRAMS\YaCy\Readme.lnk" "$INSTDIR\readme.txt"
|
||||
CreateShortCut "$SMPROGRAMS\YaCy\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
SectionEnd
|
||||
|
||||
Section "Desktop Icon"
|
||||
SectionIn 1
|
||||
SetShellVarContext current
|
||||
CreateShortCut "$DESKTOP\YaCy.lnk" "$INSTDIR\startYACY.bat" "" "$INSTDIR\addon\YaCy.ico" "" SW_SHOWMINIMIZED
|
||||
SectionEnd
|
||||
|
||||
Section "Configure Firewall" Sec_Firewall_id
|
||||
SectionIn 1
|
||||
SetShellVarContext current
|
||||
call OpenFirewall
|
||||
SectionEnd
|
||||
|
||||
/*
|
||||
Section "YaCy in Startup"
|
||||
SetShellVarContext current
|
||||
CreateShortCut "$SMSTARTUP\YaCy.lnk" "$INSTDIR\startYACY.bat" "" "$INSTDIR\addon\YaCy.ico" "" SW_SHOWMINIMIZED
|
||||
SectionEnd
|
||||
*/
|
||||
|
||||
; ----------------------------------------
|
||||
; UNINSTALLER
|
||||
|
||||
Section "Uninstall"
|
||||
ClearErrors
|
||||
Delete "$INSTDIR\DATA\yacy.running"
|
||||
IfErrors 0 uninstall
|
||||
MessageBox MB_ICONSTOP "$(stillRunning)" /SD IDOK
|
||||
Goto nouninstall
|
||||
|
||||
uninstall:
|
||||
Call un.CloseFirewall
|
||||
SetShellVarContext current
|
||||
|
||||
RMDir /r "$INSTDIR\addon"
|
||||
RMDir /r "$INSTDIR\bin"
|
||||
RMDir /r "$INSTDIR\classes"
|
||||
RMDir /r "$INSTDIR\defaults"
|
||||
RMDir /r "$INSTDIR\htroot"
|
||||
RMDir /r "$INSTDIR\lib"
|
||||
RMDir /r "$INSTDIR\libx"
|
||||
RMDir /r "$INSTDIR\locales"
|
||||
RMDir /r "$INSTDIR\ranking"
|
||||
RMDir /r "$INSTDIR\skins"
|
||||
RMDir /r "$INSTDIR\source"
|
||||
Delete "$INSTDIR\*.*"
|
||||
|
||||
MessageBox MB_YESNO|MB_ICONQUESTION "$(keepData)" /SD IDYES IDYES keepdata
|
||||
|
||||
;delete all
|
||||
RMDir /r "$INSTDIR"
|
||||
|
||||
;or jump to this
|
||||
keepdata:
|
||||
RMDir /r "$SMPROGRAMS\YaCy"
|
||||
Delete "$DESKTOP\YaCy.lnk"
|
||||
Delete "$SMSTARTUP\YaCy.lnk"
|
||||
|
||||
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy"
|
||||
nouninstall:
|
||||
SectionEnd
|
||||
|
||||
; ----------------------------------------
|
||||
; FUNCTIONS
|
||||
|
||||
Function .onInit
|
||||
; check Windows-Version, need Win 2000 or higher
|
||||
${If} ${AtMostWinME}
|
||||
MessageBox MB_ICONSTOP "$(yacyNeedOs)"
|
||||
Abort
|
||||
${EndIf}
|
||||
|
||||
; init of JRE section
|
||||
; detect JRE first
|
||||
var /global InstalledJREVersion
|
||||
${If} ${RunningX64}
|
||||
SetRegView 64
|
||||
${EndIf}
|
||||
ReadRegStr $InstalledJREVersion HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVersion"
|
||||
; if right JRE already installed hide and deselect JRE section
|
||||
${If} $InstalledJREVersion = ${JRE_VERSION6}
|
||||
SectionSetText ${Sec_Java_id} ""
|
||||
SectionSetFlags ${Sec_Java_id} 0
|
||||
${EndIf}
|
||||
|
||||
; init of Firewall section, only valid for WindowsXP SP2/SP3 and Vista/Win 7 with Admin
|
||||
var /global FirewallServiceStart
|
||||
IntOp $FirewallServiceStart 3 + 0
|
||||
|
||||
${If} ${IsWinVista}
|
||||
${OrIf} ${IsWin7}
|
||||
StrCpy $WinAddFwRulePort '${WinVistaAddFwRulePort}'
|
||||
StrCpy $WinDelFwRulePort '${WinVistaDelFwRulePort}'
|
||||
ReadRegDWORD $FirewallServiceStart HKLM "SYSTEM\CurrentControlSet\services\MpsSvc" "Start"
|
||||
${EndIf}
|
||||
|
||||
${If} ${IsWinXP}
|
||||
${AndIf} ${AtLeastServicePack} 2
|
||||
StrCpy $WinAddFwRulePort '${WinXPAddFwRulePort}'
|
||||
StrCpy $WinDelFwRulePort '${WinXPDelFwRulePort}'
|
||||
ReadRegDWORD $FirewallServiceStart HKLM "SYSTEM\CurrentControlSet\services\SharedAccess" "Start"
|
||||
${EndIf}
|
||||
|
||||
;need Admin for firewall-config
|
||||
${IfNot} $0 = "Admin"
|
||||
IntOp $FirewallServiceStart 3 + 0
|
||||
${EndIf}
|
||||
|
||||
; hide and deselect Firewall if no proper configuration
|
||||
${If} $FirewallServiceStart > 2
|
||||
SectionSetText ${Sec_Firewall_id} ""
|
||||
SectionSetFlags ${Sec_Firewall_id} 0
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function GetJRE
|
||||
; based on http://nsis.sourceforge.net/Simple_Java_Runtime_Download_Script
|
||||
${If} ${RunningX64}
|
||||
StrCpy $3 ${JRE_64}
|
||||
${Else}
|
||||
StrCpy $3 ${JRE_32}
|
||||
${EndIf}
|
||||
|
||||
;check if admin before download, advise if non
|
||||
userInfo::getAccountType
|
||||
Pop $0
|
||||
|
||||
${IfNot} $0 = "Admin"
|
||||
MessageBox MB_ICONEXCLAMATION "$(noAdminForJava)" /SD IDOK
|
||||
${EndIf}
|
||||
|
||||
SetShellVarContext all
|
||||
StrCpy $2 "$DOCUMENTS\Java Runtime (install for YaCy).exe"
|
||||
SetShellVarContext current
|
||||
nsisdl::download /TIMEOUT=30000 $3 $2
|
||||
Pop $R0 ;Get the return value
|
||||
|
||||
${IfNot} $R0 = "success"
|
||||
MessageBox MB_OK "Download failed: $R0" /SD IDOK
|
||||
Return
|
||||
${EndIf}
|
||||
|
||||
${If} $0 == "Admin"
|
||||
ExecWait "$2 /s"
|
||||
Delete $2
|
||||
${Else}
|
||||
CreateShortCut "$DESKTOP\Install Java for YaCy.lnk" "$2"
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function CheckDriveSpace
|
||||
var /global RootFolder
|
||||
var /global TempDriveFree
|
||||
var /global RootFolderType
|
||||
|
||||
; if "\\Folder" it's a Network-Folder
|
||||
StrCpy $RootFolder $InstDir 2
|
||||
StrCmp $RootFolder "\\" NetworkFolder Driveletter
|
||||
|
||||
Networkfolder:
|
||||
; prepare String for DriveSpace
|
||||
${GetRoot} $RootFolder $InstDir
|
||||
goto NoHDD
|
||||
|
||||
; now check drive-letters
|
||||
Driveletter:
|
||||
StrCpy $RootFolder $InstDir 3
|
||||
|
||||
; prepare for {GetDrives-Loop}
|
||||
StrCpy $RootFolderType "invalid"
|
||||
${GetDrives} "ALL" "CheckDriveType"
|
||||
|
||||
; jump if error
|
||||
StrCmp $RootFolderType "invalid" CheckSpace
|
||||
|
||||
; jump if HDD
|
||||
StrCmp $RootFolderType "HDD" CheckSpace
|
||||
|
||||
NoHDD:
|
||||
; stay on folder-selection if user wants to give another folder, else check free space
|
||||
MessageBox MB_ICONEXCLAMATION|MB_YESNO "$(yacyNoHd)" IDYES NextPage
|
||||
Abort
|
||||
|
||||
CheckSpace:
|
||||
|
||||
ClearErrors
|
||||
${DriveSpace} $RootFolder "/D=F /S=G" $TempDriveFree
|
||||
; if DriveSpace fails for any reason -> jump ahead
|
||||
IfErrors NextPage
|
||||
|
||||
${If} $TempDriveFree < ${RecommendSpace}
|
||||
MessageBox MB_ICONEXCLAMATION|MB_YESNO "$(yacyNeedSpace)" IDYES NextPage
|
||||
Abort
|
||||
${EndIf}
|
||||
|
||||
NextPage:
|
||||
FunctionEnd
|
||||
|
||||
Function CheckDriveType
|
||||
; based on http://nsis.sourceforge.net/GetDrives
|
||||
${If} $9 == $RootFolder
|
||||
StrCpy $RootFolderType $8
|
||||
StrCpy $0 StopGetDrives
|
||||
${EndIf}
|
||||
Push $0
|
||||
FunctionEnd
|
||||
|
||||
Function OpenFirewall
|
||||
var /global ExecErrorCode
|
||||
; run netsh
|
||||
nsExec::ExecToStack '$WinAddFwRulePort'
|
||||
pop $ExecErrorCode
|
||||
; if run without error register for uninstall and clear finish page
|
||||
${If} $ExecErrorCode = "0"
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "DelFwRulePort" '$WinDelFwRulePort'
|
||||
IntOp $FirewallServiceStart 0 + 0
|
||||
${Else}
|
||||
IntOp $FirewallServiceStart 3 + 0
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function SHOW_PageFinish_custom
|
||||
; hide and disable firewall info from wiki if firewall is open
|
||||
${If} $FirewallServiceStart = 0
|
||||
SendMessage $mui.FinishPage.ShowReadme ${BM_SETCHECK} 0 0
|
||||
ShowWindow $mui.FinishPage.ShowReadme ${SW_HIDE}
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Function un.CloseFirewall
|
||||
; get string for closing port from registy
|
||||
ReadRegStr '$WinDelFwRulePort' HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\YaCy" "DelFwRulePort"
|
||||
; if found > run netsh to close port
|
||||
${IfNot} '$WinDelFwRulePort' == ''
|
||||
nsExec::ExecToStack '$WinDelFwRulePort'
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
+698
-699
File diff suppressed because it is too large.
Load diff
@@ -8,20 +8,20 @@
|
||||
#%env/templates/header.template%#
|
||||
#%env/templates/submenuSearchConfiguration.template%#
|
||||
<h2>Solr Ranking Configuration</h2>
|
||||
<p>These are ranking attributes for Solr. This ranking applies for internal and remote Solr acess.</p>
|
||||
<p>These are ranking attributes for Solr. This ranking applies for internal and remote Solr access.</p>
|
||||
<form class="dsearch" action="RankingSolr_p.html" method="post" enctype="multipart/form-data">
|
||||
<fieldset>
|
||||
<legend>Solr Double Content Detection</legend><p>Double-Content detection is done using a ranking on a 'unique'-Field, named 'fuzzy_signature_unique_b'.
|
||||
This field is set during parsing and is influenced by two attributes for the <a href="http://lucene.apache.org/solr/api-4_0_0-BETA/org/apache/solr/update/processor/TextProfileSignature.html">TextProfileSignature</a> class.</p>
|
||||
<dl>
|
||||
<dt style="width:260px"><label for="minTokenLen">minTokenLen</label></dt>
|
||||
<dd style="width:360px; float:left; display:inline;" id="minTokenLen">
|
||||
<input name="minTokenLen" id="minTokenLen" type="text" align="right" size="10" value="#[minTokenLen]#"><br/>
|
||||
<dd style="width:360px; float:left; display:inline;" id="dd_minTokenLen">
|
||||
<input name="minTokenLen" id="minTokenLen" type="text" align="right" size="10" value="#[minTokenLen]#" /><br />
|
||||
This is the minimum length of a word which shall be considered as element of the signature. Should be either 2 or 3.
|
||||
</dd>
|
||||
<dt style="width:260px"><label for="quantRate">quantRate</label></dt>
|
||||
<dd style="width:360px; float:left; display:inline;" id="quantRate">
|
||||
<input name="quantRate" id="quantRate" type="text" align="right" size="10" value="#[quantRate]#"><br/>
|
||||
<dd style="width:360px; float:left; display:inline;" id="dd_quantRate">
|
||||
<input name="quantRate" id="quantRate" type="text" align="right" size="10" value="#[quantRate]#" /><br />
|
||||
The quantRate is a measurement for the number of words that take part in a signature computation. The higher the number, the less
|
||||
words are used for the signature.
|
||||
For minTokenLen = 2 the quantRate value should not be below 0.24; for minTokenLen = 3 the quantRate value must be not below 0.5.
|
||||
@@ -38,9 +38,9 @@
|
||||
<fieldset>
|
||||
<legend>Solr Boosts</legend>
|
||||
<dl>#{boosts}#
|
||||
<dt style="width:260px"><label for="#[field]#">#[field]#</label></dt>
|
||||
<dt style="width:260px"><label for="boost_#[field]#">#[field]#</label></dt>
|
||||
<dd style="width:360px; float:left; display:inline;" id="boost_dd_#[field]#">
|
||||
<input name="boost_#[field]#" id="boost_#[field]#" type="text" align="right" size="10" value="#[boost]#">
|
||||
<input name="boost_#[field]#" id="boost_#[field]#" type="text" align="right" size="10" value="#[boost]#" />
|
||||
</dd>#{/boosts}#
|
||||
<dt style="width:260px"></dt>
|
||||
<dd style="width:360px; float:left; display:inline;">
|
||||
|
||||
@@ -1,61 +1,61 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>YaCy '#[clientname]#': Quick Crawl Link</title>
|
||||
#%env/templates/metas.template%#
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr><td>
|
||||
<table class="Heading" border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr style="height:36px;">
|
||||
<td width="240">
|
||||
<a href="http://www.yacy.net">
|
||||
<img width="52" height="33" border="0" src="/env/grafics/yacy.gif" align="top" alt="YaCy-Logo" />
|
||||
</a>
|
||||
</td>
|
||||
<td width="50%" align="center">
|
||||
<div class="Headline">#[clientname]#: Firefox Search Plugin</div>
|
||||
</td>
|
||||
<td width="240" align="right">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function addEngine() {
|
||||
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) {
|
||||
window.sidebar.addSearchEngine(
|
||||
"http://#[host]#:#[port]#/YaCySearchPluginFF.src",
|
||||
"http://#[host]#:#[port]#/YaCySearchPluginFF.gif",
|
||||
"YaCy #[name]#",
|
||||
"General");
|
||||
} else {
|
||||
alert("Unable to install the firefox search plugin.");
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<table style="margin-left: auto; margin-right: auto;">
|
||||
<tr>
|
||||
<td>
|
||||
<b>YaCy Firefox Search-Plugin Installation:</b>
|
||||
<p>Simply click on the link shown below to integrate the YaCy Firefox Search-Plugin into your browser.</p>
|
||||
<p>In Mozilla Firefox, you can the Search-Plugin via the search box on the toolbar.<br />In Mozilla (Seamonkey) you can access the Search-Plugin via the Sidebar or the Location Bar.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:addEngine();"><b>Install the YaCy search plugin.</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!--
|
||||
TODO: add a search parameter configuration dialog here ....
|
||||
//-->
|
||||
</body>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>YaCy '#[clientname]#': Quick Crawl Link</title>
|
||||
#%env/templates/metas.template%#
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr><td>
|
||||
<table class="Heading" border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr style="height:36px;">
|
||||
<td width="240">
|
||||
<a href="http://www.yacy.net">
|
||||
<img width="52" height="33" border="0" src="/env/grafics/yacy.png" align="top" alt="YaCy-Logo" />
|
||||
</a>
|
||||
</td>
|
||||
<td width="50%" align="center">
|
||||
<div class="Headline">#[clientname]#: Firefox Search Plugin</div>
|
||||
</td>
|
||||
<td width="240" align="right">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
<br />
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function addEngine() {
|
||||
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) {
|
||||
window.sidebar.addSearchEngine(
|
||||
"http://#[host]#:#[port]#/YaCySearchPluginFF.src",
|
||||
"http://#[host]#:#[port]#/YaCySearchPluginFF.gif",
|
||||
"YaCy #[name]#",
|
||||
"General");
|
||||
} else {
|
||||
alert("Unable to install the firefox search plugin.");
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<table style="margin-left: auto; margin-right: auto;">
|
||||
<tr>
|
||||
<td>
|
||||
<b>YaCy Firefox Search-Plugin Installation:</b>
|
||||
<p>Simply click on the link shown below to integrate the YaCy Firefox Search-Plugin into your browser.</p>
|
||||
<p>In Mozilla Firefox, you can the Search-Plugin via the search box on the toolbar.<br />In Mozilla (Seamonkey) you can access the Search-Plugin via the Sidebar or the Location Bar.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="javascript:addEngine();"><b>Install the YaCy search plugin.</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!--
|
||||
TODO: add a search parameter configuration dialog here ....
|
||||
//-->
|
||||
</body>
|
||||
</html>
|
||||
@@ -4,7 +4,7 @@
|
||||
xmlns:suggestions="http://www.opensearch.org/specifications/opensearch/extensions/suggestions/1.1">
|
||||
<ShortName>#(compareyacy)#::Compare #(/compareyacy)#YaCy/#[clientname]#</ShortName>
|
||||
<LongName>YaCy.net - #[SearchPageGreeting]#</LongName>
|
||||
<Image type="image/gif">http://#[thisaddress]#/env/grafics/yacy.gif</Image>
|
||||
<Image type="image/gif">http://#[thisaddress]#/env/grafics/yacy.png</Image>
|
||||
<Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAAAAAAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////Chiu+fBm+fRq+fRq+fRq+fRq+fRq8ehXMmk////////////////////////////++exjUqGfZsnjYsXbYsXbYsXbZsnjTp2W+fBr///////////////////////////+9exfs2r/69/L58+z58+z58+z59e/z59bChSn///////////////////////////+9fBnnz638+fX69O369e748un38Ob59O3Ll0fVrGz////////////////////////Jk0HJlUjXuYrWt4jVtYPr28T58+r59OzPn1fPnlX////////////////////////Rolu8eRXCiTPEjTvCijbNnlj169359e7Zs3vLlkf////////////////////////UqmrAgSLt3MP27eH1693169327+T59Ozo0rG/gB////////////////////////////+/gCDv4Mn48+v38Of59Oz58+v48+vr2b2+fRv///////////////////////////+9ehXr17n58+z48ejo0bDp07T48+zx49DBhCj///////////////////////////+/fhzjyJ/59Oz59OzQoVvNmU759Oz58+vKlUbXrnH////////////////////////LlkfUqmn59Oz48+vZtHzNm1D48+v59OzPoFjOnlX////////////////////////OnVPOnFL59e348+vq1rnEiC7u38j69vDXsHTIkT3////////////////////////UqWjIkD327+T58+3s2bzAgSLp07T79/Pmzqq+fBn///////////////////////////+/fx7v4Mr7+PTx5NDHkD3kyqP8+vjs2r+9exf///////////////////////////++fBjQoFnVq2zTp2bGjTjJk0LWrW7SpWC+exf////////////////////////////Nm1C6dQy7eBG8eBK9exe8ehS7dxC6dQzLlkj////////////AH///wB8x+sAf///AD/+PwA///8AP///AD///4A9PU+APoz/gB///4AdxvOAHoz/gB3368AfjU/AHT1PwB/+P
|
||||
</Image>
|
||||
<Language>en-us</Language>
|
||||
|
||||
+69
-69
@@ -1,69 +1,69 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>YaCy: Default Page for Individual Peer Content</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="Content-Language" content="English, Englisch">
|
||||
<meta name="keywords" content="yacy individual html content">
|
||||
<meta name="description" content="YaCy www default page">
|
||||
<meta name="copyright" content="Michael Christen">
|
||||
<link rel="stylesheet" media="all" href="/env/style.css">
|
||||
<!-- (C), Architecture and Realisation: Michael Peter Christen; Contact: mc <at> anomic.de -->
|
||||
|
||||
</head>
|
||||
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr><td>
|
||||
<table class="Heading" border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr height="36">
|
||||
<td width="240">
|
||||
<a href="http://www.yacy.net">
|
||||
<img width="52" height="33" border="0" src="/env/grafics/yacy.gif" align="top" alt="YaCy-Logo">
|
||||
</a>
|
||||
</td>
|
||||
<td width="50%" align="center">
|
||||
<div class="Headline">Individual Web Page</div>
|
||||
</td>
|
||||
<td width="240" align="right">
|
||||
<form action="http://#[peerdomain]#.yacy" method="post" accept-charset="UTF-8">
|
||||
<input type="submit" value="#[peername]#'s Console" class="small" class="submitready">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
<br /><br />
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="80"></td>
|
||||
<td>
|
||||
<h2>Welcome to your own web page<br />in the <strong>YaCy Network</strong>!</h2><br />
|
||||
|
||||
<p>
|
||||
THIS IS A DEMONSTRATION PAGE FOR YOUR OWN INDIVIDUAL WEB SERVER!
|
||||
PLEASE REPLACE THIS PAGE BY PUTTING A FILE index.html INTO THE PATH
|
||||
<YaCy-application-home><strong>#[wwwpath]#</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This is peer '<strong>#[peername]#</strong>', running on host <strong>#[hostname]#</strong>.<br />
|
||||
Your are accessing this page from the host '#[clientip]#'.<br />
|
||||
<!--, IP <strong>#[hostip]#</strong>, port <strong>#[port]#</strong>-->
|
||||
Every user of YaCy #[couldcan]# access this page
|
||||
using the URL <a href="http://#[peeraddress]#/www/"><strong>http://#[peeraddress]#/www/</strong></a>
|
||||
or <a href="http://www.#[peerdomain]#.yacy"><strong>http://www.#[peerdomain]#.yacy</strong></a> from within the YaCy network.</p>
|
||||
|
||||
<p>#[seniorinfo]#</p>
|
||||
|
||||
<p>We integrated an easy mechanism for web page authoring
|
||||
which can also be used for simple file-sharing.
|
||||
Please open the sample page <a href="http://share.#[peerdomain]#.yacy"><strong>http://share.#[peerdomain]#.yacy</strong></a>
|
||||
and set upload/download accounts to author and access content on this peer.</p>
|
||||
|
||||
</td>
|
||||
<td width="80"></td>
|
||||
</tr></table>
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>YaCy: Default Page for Individual Peer Content</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="Content-Language" content="English, Englisch">
|
||||
<meta name="keywords" content="yacy individual html content">
|
||||
<meta name="description" content="YaCy www default page">
|
||||
<meta name="copyright" content="Michael Christen">
|
||||
<link rel="stylesheet" media="all" href="/env/style.css">
|
||||
<!-- (C), Architecture and Realisation: Michael Peter Christen; Contact: mc <at> anomic.de -->
|
||||
|
||||
</head>
|
||||
<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr><td>
|
||||
<table class="Heading" border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr height="36">
|
||||
<td width="240">
|
||||
<a href="http://www.yacy.net">
|
||||
<img width="52" height="33" border="0" src="/env/grafics/yacy.png" align="top" alt="YaCy-Logo">
|
||||
</a>
|
||||
</td>
|
||||
<td width="50%" align="center">
|
||||
<div class="Headline">Individual Web Page</div>
|
||||
</td>
|
||||
<td width="240" align="right">
|
||||
<form action="http://#[peerdomain]#.yacy" method="post" accept-charset="UTF-8">
|
||||
<input type="submit" value="#[peername]#'s Console" class="small" class="submitready">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
<br /><br />
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
||||
<tr>
|
||||
<td width="80"></td>
|
||||
<td>
|
||||
<h2>Welcome to your own web page<br />in the <strong>YaCy Network</strong>!</h2><br />
|
||||
|
||||
<p>
|
||||
THIS IS A DEMONSTRATION PAGE FOR YOUR OWN INDIVIDUAL WEB SERVER!
|
||||
PLEASE REPLACE THIS PAGE BY PUTTING A FILE index.html INTO THE PATH
|
||||
<YaCy-application-home><strong>#[wwwpath]#</strong>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This is peer '<strong>#[peername]#</strong>', running on host <strong>#[hostname]#</strong>.<br />
|
||||
Your are accessing this page from the host '#[clientip]#'.<br />
|
||||
<!--, IP <strong>#[hostip]#</strong>, port <strong>#[port]#</strong>-->
|
||||
Every user of YaCy #[couldcan]# access this page
|
||||
using the URL <a href="http://#[peeraddress]#/www/"><strong>http://#[peeraddress]#/www/</strong></a>
|
||||
or <a href="http://www.#[peerdomain]#.yacy"><strong>http://www.#[peerdomain]#.yacy</strong></a> from within the YaCy network.</p>
|
||||
|
||||
<p>#[seniorinfo]#</p>
|
||||
|
||||
<p>We integrated an easy mechanism for web page authoring
|
||||
which can also be used for simple file-sharing.
|
||||
Please open the sample page <a href="http://share.#[peerdomain]#.yacy"><strong>http://share.#[peerdomain]#.yacy</strong></a>
|
||||
and set upload/download accounts to author and access content on this peer.</p>
|
||||
|
||||
</td>
|
||||
<td width="80"></td>
|
||||
</tr></table>
|
||||
</body>
|
||||
</html>
|
||||
+1050
-1050
File diff suppressed because it is too large.
Load diff
@@ -127,7 +127,7 @@ public class yacysearch_location {
|
||||
|
||||
prop.put("kml_date822", HeaderFramework.formatRFC1123(new Date()));
|
||||
prop.put("kml_promoteSearchPageGreeting", promoteSearchPageGreeting);
|
||||
prop.put("kml_rssYacyImageURL", "http://" + hostName + "/env/grafics/yacy.gif");
|
||||
prop.put("kml_rssYacyImageURL", "http://" + hostName + "/env/grafics/yacy.png");
|
||||
prop.put("kml_searchBaseURL", "http://" + hostName + "/yacysearch_location.rss");
|
||||
prop.putXML("kml_rss_query", originalquerystring);
|
||||
prop.put("kml_rss_queryenc", originalquerystring.replace(' ', '+'));
|
||||
|
||||
@@ -231,12 +231,6 @@ public class Response {
|
||||
return docDate;
|
||||
}
|
||||
|
||||
public String language() {
|
||||
// please avoid this method if a condenser document is available, because the condenser has a built-in language detection
|
||||
// this here is only a guess using the TLD
|
||||
return url().language();
|
||||
}
|
||||
|
||||
public CrawlProfile profile() {
|
||||
return this.profile;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,6 @@ public class WordReferenceVars extends AbstractReference implements WordReferenc
|
||||
final Bitfield flags, // attributes to the url and to the word according the url
|
||||
final double termfrequency
|
||||
) {
|
||||
if (language == null || language.length != 2) language = default_language;
|
||||
//final int mddct = MicroDate.microDateDays(updatetime);
|
||||
this.flags = flags;
|
||||
//this.freshUntil = Math.max(0, mddlm + (mddct - mddlm) * 2);
|
||||
|
||||
Reference in new issue
Block a user