First version of the package
This commit is contained in:
parent
04618bca32
commit
2cc98a59cc
32
WAPT/control
Normal file
32
WAPT/control
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
package : fws-tightvnc-server
|
||||||
|
version : 2.8.11-1
|
||||||
|
architecture : all
|
||||||
|
section : base
|
||||||
|
priority : optional
|
||||||
|
maintainer : Daniel Berteaud <daniel@firewall-services.com>
|
||||||
|
description : TightVNC Server
|
||||||
|
depends :
|
||||||
|
conflicts : fws-ultravnc,fws-vnc,fws-vncrestricted
|
||||||
|
maturity : DEV
|
||||||
|
locale : all
|
||||||
|
target_os : windows
|
||||||
|
min_os_version : 5.0
|
||||||
|
max_os_version :
|
||||||
|
min_wapt_version : 1.5
|
||||||
|
sources :
|
||||||
|
installed_size :
|
||||||
|
impacted_process :
|
||||||
|
description_fr :
|
||||||
|
description_pl :
|
||||||
|
description_de :
|
||||||
|
description_es :
|
||||||
|
audit_schedule : 4w
|
||||||
|
editor :
|
||||||
|
keywords :
|
||||||
|
licence : GPLv2+
|
||||||
|
homepage : http://www.tightvnc.com
|
||||||
|
package_uuid : 07598ec3-0553-4f60-8e28-19f2058402e0
|
||||||
|
signer : Daniel Berteaud
|
||||||
|
signer_fingerprint:
|
||||||
|
signature_date :
|
||||||
|
signed_attributes :
|
295
WAPT/wapt.psproj
Normal file
295
WAPT/wapt.psproj
Normal file
|
@ -0,0 +1,295 @@
|
||||||
|
[PyScripter]
|
||||||
|
Version=3.3.2.0
|
||||||
|
|
||||||
|
[Project]
|
||||||
|
ClassName=TProjectRootNode
|
||||||
|
StoreRelativePaths=TRUE
|
||||||
|
ShowFileExtensions=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0]
|
||||||
|
ClassName=TProjectFilesNode
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0]
|
||||||
|
ClassName=TProjectFolderNode
|
||||||
|
Name=wapt
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node0]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\common.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node1]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\setuphelpers.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node2]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\wapt-get.ini
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node3]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes\Node4]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=C:\Program Files (x86)\wapt\waptpackage.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node0\ChildNodes]
|
||||||
|
Count=5
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node1]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=$[Project-Path]changelog.txt
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node2]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=$[Project-Path]control
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes\Node3]
|
||||||
|
ClassName=TProjectFileNode
|
||||||
|
FileName=$[Project-Path]..\setup.py
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node0\ChildNodes]
|
||||||
|
Count=4
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1]
|
||||||
|
ClassName=TProjectRunConfiguationsNode
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node0]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=install
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node0\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=install "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node0\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node1]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=remove
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node1\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=remove "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node1\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node2]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=session-setup
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node2\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=session-setup "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node2\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node3]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=update
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node3\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=update
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node3\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node4]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=upgrade
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node4\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=-f upgrade
|
||||||
|
WorkingDir=$[ActiveScript-Dir]
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node4\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node5]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=-i build-upload
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node5\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=-i build-upload "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node5\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node6]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=svn update
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node6\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=sources "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node6\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node7]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=uninstall
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node7\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=uninstall "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node7\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[Project-Path]..
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node8]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=update-package-sources
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node8\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=update-package-sources "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node8\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node9]
|
||||||
|
ClassName=TProjectRunConfiguationNode
|
||||||
|
Name=audit
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node9\RunConfig]
|
||||||
|
ScriptName=C:\Program Files (x86)\wapt\wapt-get.py
|
||||||
|
EngineType=peRemote
|
||||||
|
ReinitializeBeforeRun=TRUE
|
||||||
|
Parameters=audit "$[Project-Path].."
|
||||||
|
WorkingDir=$[Project-Path]..
|
||||||
|
WriteOutputToFile=FALSE
|
||||||
|
OutputFileName=$[ActiveScript-NoExt].log
|
||||||
|
AppendToFile=FALSE
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes\Node9\RunConfig\ExternalRun]
|
||||||
|
Caption=External Run
|
||||||
|
Description=Run script using an external Python Interpreter
|
||||||
|
ApplicationName=$[PythonExe-Short]
|
||||||
|
Parameters=$[ActiveScript-Short]
|
||||||
|
WorkingDirectory=$[ActiveScript-Dir]
|
||||||
|
ShortCut=0
|
||||||
|
MessagesFormat=$[FileName] $[LineNumber]
|
||||||
|
|
||||||
|
[Project\ChildNodes\Node1\ChildNodes]
|
||||||
|
Count=10
|
||||||
|
|
||||||
|
[Project\ChildNodes]
|
||||||
|
Count=2
|
||||||
|
|
||||||
|
[Project\ExtraPythonPath]
|
||||||
|
Count=0
|
||||||
|
|
46
setup.py
Normal file
46
setup.py
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from setuphelpers import *
|
||||||
|
from cryptography.fernet import Fernet
|
||||||
|
import json
|
||||||
|
import re
|
||||||
|
|
||||||
|
uninstallkey = []
|
||||||
|
|
||||||
|
variables = {
|
||||||
|
#'vnc_pass': 's3cr3t',
|
||||||
|
#'vnc_admin_pass': 'p@ssw0rd',
|
||||||
|
#'vnc_allowed_ip': ['1.2.3.4','192.168.2.1-192.168.2.10']
|
||||||
|
}
|
||||||
|
|
||||||
|
# Read local variables file if available
|
||||||
|
if isfile(makepath(programfiles32,'wapt','private','symetric.txt')) and isfile(makepath(programfiles32,'wapt','private','variables.txt')):
|
||||||
|
print('Reading local encrypted variables file')
|
||||||
|
f = Fernet(open(makepath(programfiles32,'wapt','private','symetric.txt'),'r').read())
|
||||||
|
variables.update(json.loads(f.decrypt(open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read())))
|
||||||
|
|
||||||
|
def install():
|
||||||
|
print('Installing TightVNC Server')
|
||||||
|
version = control['version'].split('-',1)[0]
|
||||||
|
if iswin64():
|
||||||
|
msi = 'tightvnc-%s-gpl-setup-64bit.msi' % version
|
||||||
|
else:
|
||||||
|
msi = 'tightvnc-%s-gpl-setup-32bit.msi' % version
|
||||||
|
|
||||||
|
props = {
|
||||||
|
'ADDLOCAL': 'Server',
|
||||||
|
'SET_ACCEPTHTTPCONNECTIONS': 0,
|
||||||
|
'SET_LOGLEVEL': 3,
|
||||||
|
'SET_REMOVEWALLPAPER': 0
|
||||||
|
}
|
||||||
|
if 'vnc_allowed_ip' in variables:
|
||||||
|
props['SET_IPACCESSCONTROL'] =','.join( '%s-%s:0' % (ip,ip) if not re.search('\-',ip) else '%s:0' % ip for ip in ensure_list(variables['vnc_allowed_ip']) )
|
||||||
|
|
||||||
|
if 'vnc_pass' in variables:
|
||||||
|
props['SET_PASSWORD'] = variables['vnc_pass']
|
||||||
|
props['SET_USEVNCAUTHENTICATION'] = 1
|
||||||
|
|
||||||
|
if 'vnc_admin_pass' in variables:
|
||||||
|
props['SET_CONTROLPASSWORD'] = variables['vnc_admin_pass']
|
||||||
|
props['SET_USECONTROLAUTHENTICATION'] = 1
|
||||||
|
|
||||||
|
install_msi_if_needed(msi,min_version=version,properties=props)
|
Loading…
Reference in New Issue
Block a user