tis-keepass

2.45-1
Password Manager KeePass2
26085 downloads
Download

  Description 

  • package : tis-keepass
  • version : 2.45-1
  • architecture : all
  • categories :
  • maintainer : Simon Fonteneau
  • description : Password Manager KeePass2
  • locale : all
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.6
  • sources :
  • installed_size :
  • impacted_process : KeePass.exe
  • description_fr : Gestionnaire de mot de passe KeePass2
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Dominik Reichl
  • licence : GPLv2
  • signature_date : 2020-05-11T08:51:33.618000
  • Homepage : https://keepass.info/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    print('installing keepass')
    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed('KeePass-%s-Setup.exe' % versionpaquet,silentflags='/VERYSILENT',key='KeePassPasswordSafe2_is1',min_version=versionpaquet,killbefore=['KeePass.exe'])

    keysoftinfo=installed_softwares('KeePassPasswordSafe2_is1')
    for info in keysoftinfo :
        installlocation = info['install_location']

    for lf in glob.glob('*.lngx'):
        if isfile(makepath(installlocation,'Languages',lf)):
            remove_file(makepath(installlocation,'Languages',lf))
        filecopyto(lf,makepath(installlocation,'Languages'))



def session_setup():

    if not isdir(makepath(application_data,'KeePass')):
        mkdirs(makepath(application_data,'KeePass'))

    config=makepath(application_data,'KeePass','KeePass.config.xml')

    loc = get_language().lower()
    if loc in list_locales:
        LanguageFile = ur"""
		<LanguageFile>%s</LanguageFile>      """ % (list_locales[loc])
    else:
        LanguageFile = ''


    if not isfile(config):
        data = ur"""<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Meta>
		<PreferUserConfiguration>false</PreferUserConfiguration>
		<OmitItemsWithDefaultValues>true</OmitItemsWithDefaultValues>
	</Meta>
	<Application>%s
		<LastUpdateCheck>2017-06-13T19:44:53Z</LastUpdateCheck>
		<LastUsedFile>
			<Path />
			<CredProtMode>Obf</CredProtMode>
			<CredSaveMode>NoSave</CredSaveMode>
		</LastUsedFile>
		<MostRecentlyUsed>
			<MaxItemCount>12</MaxItemCount>
			<Items />
		</MostRecentlyUsed>
		<WorkingDirectories />
		<Start>
			<CheckForUpdate>false</CheckForUpdate>
			<CheckForUpdateConfigured>true</CheckForUpdateConfigured>
		</Start>
		<FileOpening />
		<FileClosing />
		<TriggerSystem>
			<Triggers />
		</TriggerSystem>
	</Application>
	<Logging />
	<MainWindow>
		<X>309</X>
		<Y>81</Y>
		<Width>662</Width>
		<Height>513</Height>
		<SplitterHorizontalFrac>0.8333</SplitterHorizontalFrac>
		<SplitterVerticalFrac>0.25</SplitterVerticalFrac>
		<Layout>Default</Layout>
		<ToolBar />
		<EntryView />
		<TanView />
		<EntryListColumnCollection>
			<Column>
				<Type>Title</Type>
				<Width>90</Width>
			</Column>
			<Column>
				<Type>UserName</Type>
				<Width>90</Width>
			</Column>
			<Column>
				<Type>Password</Type>
				<Width>90</Width>
				<HideWithAsterisks>true</HideWithAsterisks>
			</Column>
			<Column>
				<Type>Url</Type>
				<Width>90</Width>
			</Column>
			<Column>
				<Type>Notes</Type>
				<Width>90</Width>
			</Column>
		</EntryListColumnCollection>
		<EntryListColumnDisplayOrder>0 1 2 3 4</EntryListColumnDisplayOrder>
		<ListSorting>
			<Order>Ascending</Order>
		</ListSorting>
	</MainWindow>
	<UI>
		<TrayIcon />
		<Hiding />
		<StandardFont>
			<Family>Microsoft Sans Serif</Family>
			<Size>8.25</Size>
			<GraphicsUnit>Point</GraphicsUnit>
			<Style>Regular</Style>
			<OverrideUIDefault>false</OverrideUIDefault>
		</StandardFont>
		<PasswordFont>
			<Family>Courier New</Family>
			<Size>8.25</Size>
			<GraphicsUnit>Point</GraphicsUnit>
			<Style>Regular</Style>
			<OverrideUIDefault>false</OverrideUIDefault>
		</PasswordFont>
		<BannerStyle>WinVistaBlack</BannerStyle>
		<DataEditorFont>
			<Family>Microsoft Sans Serif</Family>
			<Size>8.25</Size>
			<GraphicsUnit>Point</GraphicsUnit>
			<Style>Regular</Style>
			<OverrideUIDefault>false</OverrideUIDefault>
		</DataEditorFont>
		<UIFlags>0</UIFlags>
		<KeyCreationFlags>0</KeyCreationFlags>
		<KeyPromptFlags>0</KeyPromptFlags>
	</UI>
	<Security>
		<WorkspaceLocking>
			<LockAfterTime>0</LockAfterTime>
			<LockAfterGlobalTime>0</LockAfterGlobalTime>
		</WorkspaceLocking>
		<Policy />
		<MasterPassword>
			<MinimumLength>0</MinimumLength>
			<MinimumQuality>0</MinimumQuality>
		</MasterPassword>
	</Security>
	<Native />
	<PasswordGenerator>
		<AutoGeneratedPasswordsProfile>
			<GeneratorType>CharSet</GeneratorType>
			<Length>20</Length>
			<CharSetRanges>ULD_______</CharSetRanges>
		</AutoGeneratedPasswordsProfile>
		<LastUsedProfile>
			<GeneratorType>CharSet</GeneratorType>
			<Length>20</Length>
			<CharSetRanges>ULD_______</CharSetRanges>
		</LastUsedProfile>
		<UserProfiles />
	</PasswordGenerator>
	<Defaults>
		<OptionsTabIndex>4</OptionsTabIndex>
		<SearchParameters>
			<ComparisonMode>InvariantCultureIgnoreCase</ComparisonMode>
		</SearchParameters>
		<KeySources />
	</Defaults>
	<Integration>
		<HotKeyGlobalAutoType>393281</HotKeyGlobalAutoType>
		<HotKeySelectedAutoType>0</HotKeySelectedAutoType>
		<HotKeyShowWindow>393291</HotKeyShowWindow>
		<HotKeyEntryMenu>0</HotKeyEntryMenu>
		<UrlSchemeOverrides>
			<BuiltInOverridesEnabled>1</BuiltInOverridesEnabled>
			<CustomOverrides />
		</UrlSchemeOverrides>
		<AutoTypeAbortOnWindows />
		<ProxyType>System</ProxyType>
		<ProxyAuthType>Auto</ProxyAuthType>
	</Integration>
	<Custom />
</Configuration>""" % LanguageFile
    else:

        fichier = open(config, "r")
        data = fichier.read()
        fichier.close()

         #force french
        if not '<LanguageFile>' in data:
            languagefile=ur"""<Application>%s""" % LanguageFile
            data = data.replace('<Application>',languagefile)

        # disable update
        if '<CheckForUpdate>true</CheckForUpdate>' in data :
            data = data.replace('<CheckForUpdate>true</CheckForUpdate>','<CheckForUpdate>false</CheckForUpdate>')

    fichier = open(config, "w")
    fichier.write(data)
    fichier.close()


def update_package():
    import time
    import requests,urlparse

    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    url = requests.head('https://sourceforge.net/projects/keepass/files/latest/download?source=files',proxies=proxies).headers['Location']
    dstzip = requests.head(url,proxies=proxies).headers['Location']
    filename = urlparse.unquote(dstzip.rsplit('/',1)[1])


    print(filename)
    vers = filename.replace('KeePass-','').replace('.zip','')

    filenameexe = "KeePass-%s-Setup.exe" %vers
    dstexe = dstzip.replace(filename,filenameexe)
    print ("Latest Version : " + vers)

    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != filenameexe:
            remove_file(fn)

    if not isfile(filenameexe):
        print('Downloading %s '%(filenameexe))
        wget(dstexe,filenameexe,proxies=proxies)
    else:
        print('Already up to date, skipped')

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = vers + '-0'
    pe.save_control_to_wapt(os.getcwd())

    for lngx in glob.glob('*.lngx'):
        remove_file(lngx)

    for line in wgets('https://keepass.info/translations.html',proxies=proxies).splitlines():
        if 'KeePass-%s' % vers[:2] in line :
            lfd = line.replace('<td><a href="','').replace('" target="_blank">','')
            if not '-Help-' in lfd.rsplit('/',1)[1] :
                #BUG
                if not 'Portuguese_BR' in lfd.rsplit('/',1)[1] :
                    try:
                        print('Try Download %s' % lfd)
                        wget(lfd,lfd.rsplit('/',1)[1],connect_timeout=30,proxies=proxies)
                    except:
                        # Try Again
                        wget(lfd,lfd.rsplit('/',1)[1],connect_timeout=30,proxies=proxies)

                    unzip(lfd.rsplit('/',1)[1],target='.')

                    remove_file(lfd.rsplit('/',1)[1])

                    time.sleep(2)


list_locales = {
    "ar":'Arabic.lngx', # Arabic
    "ca":'Catalan.lngx', # Catalan
    "zh":'Chinese_Simplified.lngx',# Chinese - Simplified
    "zh":'Chinese_Traditional.lngx',# Chinese - Traditional
    "co":"French.lngx", # Corsican - France
    "hr":'Croatian.lngx', # Croatian
    "cs":'Czech.lngx', # Czech
    "da":'Danish.lngx', # Danish
    "nl":'Dutch.lngx', # Dutch
    "et":'Estonian.lngx', # Estonian
    "fi":'Finnish.lngx', # Finnish
    "fr":'French.lngx', # French
    "de":'German.lngx', # German - Germany
    "el":'Greek.lngx', # Greek
    "he":'Hebrew.lngx', # Hebrew
    "hu":'Hungarian', # Hungarian
    "is":'Icelandic.lngx', # Icelandic
    "id":'Indonesian.lngx', # Indonesian
    "it":'Italian.lngx', # Italian - Italy
    "ja":'Japanese.lngx', # Japanese
    "ko":'Korean.lngx', # Korean
    "lv":'Latvian.lngx', # Latvian
    "lt":'Lithuanian.lngx', # Lithuanian
    "dsb":'German.lngx',# Lower Sorbian - Germany
    "nb":'Norwegian_NB.lngx', # Norwegian - Bokmal
    "nn":'Norwegian_NB.lngx', # Norwegian - Nynorsk
    "ps":'Pashto.lngx', # Pashto - Afghanistan
    "fa":'Persian.lngx', # Persian
    "pl":'Polish.lngx', # Polish
    "pt":'Portuguese_PT.lngx', # Portuguese - Brazil
    "ro":'Romanian.lngx', # Romanian - Romania
    "ru":'Russian.lngx', # Russian
    "sr":'Serbian_Cyrillic.lngx', # Serbian
    "sk":'Slovak.lngx', # Slovak
    "sl":'Slovenian.lngx', # Slovenian
    "es":'Spanish.lngx', # Spanish - Spain
    "sv":'Swedish.lngx', # Swedish
    "tr":'Turkish.lngx', # Turkish
    "ug":'Arabic.lngx', # Arabic
    "uk":'Ukrainian.lngx', # Ukrainian
    "wen":'German.lngx',# Upper Sorbian - Germany
    "vi":'Vietnamese.lngx', # Vietnamese
}

if __name__ == '__main__':
    update_package()




										

  Changelog 


No changelog
  manifest.sha256 
[["Czech.lngx","1b6abfcff84cb5decb70a5357d40da7b181bf10e72187214fed0f9a5e904fce5"],["Serbian_Latin.lngx","0ae6c59cf7967acc235e18c8d4e8eb01926b7ab4eb19a643c7a21c8dca128391"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","252b70e9f3a4939df417f84432ee839ac8069089be2041c45a7348db28fc2ea0"],["Russian.lngx","0f54c87864e22bf95bca6dd94340959f841ea0f04a81f42c6617e7ee944ae430"],["Finnish.lngx","9932fc15c29ed897222e2ef1cffa9015a89b492a77ca2bc167394cd7b181c04f"],["Arabic.lngx","7f2d2d3e8a68aa288cd283032f419d91193d71428065ac379f51f529c399e531"],["Turkish.lngx","54bd704521729bc297a2b2d5dabe141e87ed7f25aaffca29c7095d0702820caa"],["Dutch.lngx","0275c06bc99021f80f606b650a5004f922ff30ead49fbc0d2d2168d06d561bfe"],["French.lngx","73f7beeec29b6c4e64de6db58f31ad2fb17302ef31e2c0d93dc09120e85c15f0"],["Korean.lngx","e6f0a111447ae44f5cbd98f973798bf06cb985bd08f7ef93a9b71c2f38bccc5e"],["Indonesian.lngx","f2480ea0741985a553eeed0fa6be620f4101e9fe2c446d105df86e15a446a249"],["Spanish.lngx","5e43f3cacd43bb734855b162281352bd14ccab40f8c235240eefab663eb39bf2"],["WAPT/control","d0bdbf73f4aec853acebe3480e4a0e524d781313584a8e09a8ead3d83956d1ca"],["Jenkinsfile","023e2bdc94cd8e66d6dac9da416de955471e24dc1a41be416d0ee5979dbec5f2"],["Croatian.lngx","eb958eca18e1d01c8537c4fd34ed1a1dac4d8e50983972be98a53fe11c30238f"],["Vietnamese.lngx","99ffd7fb9ff37c80b0c93a9ae0502296f2b521facfec2c7b6e2b9c3e27fda65a"],["Estonian.lngx","c7cd1dd7628b787b7abef6d53f8ab81f014f65904a600ce13bb0fdcf5f3562f7"],["Chinese_Simplified.lngx","dd5828c1319ea9fa0a0c2668227e1e7dc58e389d38feb3a705cbd0a873ae42d7"],["KeePass-2.45-Setup.exe","9058cc9d44129e8c2c902e21f8678974b789ecd8f9d6add81c98fbeaf9794e23"],["Ukrainian.lngx","7125e929ca174ccb5a9f0911cda5583edf55f778e631f192f33951b5fe6b9a2d"],["Norwegian_NB.lngx","4075164fc135482f377c1261329536c23f3535f4b4d8bb4671d4eb79d6d86544"],["Hungarian.lngx","183c789e9eef7c6e9418833818c5ec29ebe9698ea06efe76e3603ac43022d6e1"],["Chinese_Traditional.lngx","d0ae46ee9600c8a55e6ff80976946e38c825306e71481bd9dfcb0dae91b0e7bc"],["Persian.lngx","71a104f8c146802be164a7b2c562d1946d8eca33bde3cab355c1548274418077"],["WAPT/icon.png","a2ecc1ccd99ee0adbb67cef1219d7a379577057f1c7fdb68284d3ffa4a8cfc81"],["Italian.lngx","a69a7926ef7bcf53724cc0a8a9d61d859c1ca3569792771653980fa4e60d9d03"],["Romanian.lngx","930d5de1af9ee238465097b391bd928df442bd494ef6531ff570d488dc79ec0e"],["Icelandic.lngx","e207a38c6b2116af8a70b3e0d9517f6a76ebb590701236489f55068f724210ea"],["Polish.lngx","33ebeb186dd365a84207e12189b720c2b841d5b9506b4a4c721042d319085f3d"],["Swedish.lngx","b07b01dbc6ddbdce6cf9c01132646ad610aa7cfe44181defccd1532146c678ec"],["Portuguese_PT.lngx","e579a8e2a97dc776b2b91b7fa2398eb36bbf1699b0c93ed0f36a485ea4fb2558"],["Pashto.lngx","1a77908455ff975ff57455c750f063e0a8de404d7c9af36df0724bc73e49ac9f"],["Latvian.lngx","a7159421c288b868f0c714a8a02da354ede80a604889c13abaec833980098fef"],["setup.py","5750f5ec508b90a2e2b626447ae45dfb8bbc3b9dc9472a7e74b28b80ac539e66"],["README.md","e06f0b589f9c213ae502f9ce1e84959e578f281348f00250d9cf189a16e8a179"],["Japanese.lngx","11c27c07c7c15aaa5173e4a995c0f93e3b379400db42438301fafb0ad8ca152d"],["Lithuanian.lngx","3e92fc3901e7bbd45c1a76f89f2fdf0266cb3d71639d332011bb41b3a4269d1f"],["Greek.lngx","7a8e120d243b525f92ef9bdd71f1bcacf82ea7d58fc00fd8cccb7c3e385042b4"],["Serbian_Cyrillic.lngx","1766fbea61b9389c80779bf6a13caf608dc714709e3a155fbb7cf879d1e70365"],["Latin.lngx","1de9a47dddbb6d154d86a7fbd72df882d5fbe58f213639c1ed2615742fc2e570"],["Slovak.lngx","24204da749d386f8beddfbfa7636c2d2c1c65edb82d8f1052d0867ea071b7454"],["German.lngx","d1e5c81270ab7f47cde7cf3c6861da9a7d9cdd98df1f95b8c645d4e5cf9247d0"],["Bulgarian.lngx","edfeb46a6907d6e6ecd3121feecb99dda7f2fdad72be19c71933236186771c03"],["Danish.lngx","3648ffcf7fe6be12e18a8238f6615c012234ef5ad6061b9264e86283a9f22a89"],["Catalan.lngx","110f1a3cff2f381eede72d51e7be777ebdeb9334e65a4a37192260710babaf11"],["Slovenian.lngx","f77ebe5a42958e563ecab85a018fe8e6fa999a8d3cebf9f93c43634b3ed94796"],["Hebrew.lngx","816963442e02504b509d97061255ae7254532ba50e3f8ecceb849e064b21f062"]]