tis-keepass

2.44-1
Password Manager KeePass2
26083 downloads
Download

  Description 

  • package : tis-keepass
  • version : 2.44-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-02-27T21:34:16.267827
  • 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","bc533a56dc08e3cacd4928c4ca43475f5337bc19dc4564a1f0d8f2214c0f0a1e"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","252b70e9f3a4939df417f84432ee839ac8069089be2041c45a7348db28fc2ea0"],["Russian.lngx","627cd329d4b4492421c8dcdc6c9fe3bb9f38c8d4eeb787edc8aa9c6ad24532aa"],["Finnish.lngx","2d63c905e32136f1b5929663a7a0ce4d683cd040c6c8ca86fd6a612c5f015e42"],["Arabic.lngx","7f2d2d3e8a68aa288cd283032f419d91193d71428065ac379f51f529c399e531"],["Turkish.lngx","8393779f398c730ebca06fed8ffc4d33d8c7028218dd9f08e3d0ebac6658355e"],["Dutch.lngx","631f731c545019b9fc53be1803517f3358df1c778039a2925d00304c090be98a"],["French.lngx","dfa37216656776aadf027b58585324fefbb3746c7a21020d0af3f069a585ab7a"],["Indonesian.lngx","f2480ea0741985a553eeed0fa6be620f4101e9fe2c446d105df86e15a446a249"],["Spanish.lngx","9547609af962503f4e95fdeed99fc0658d65f6b7845eb4a2d3d0fa7a75d91328"],["WAPT/control","56075f72ee21198cb2697b885b6396734fa4379db0c3a5094fae18a1c873d200"],["Jenkinsfile","023e2bdc94cd8e66d6dac9da416de955471e24dc1a41be416d0ee5979dbec5f2"],["Croatian.lngx","eb958eca18e1d01c8537c4fd34ed1a1dac4d8e50983972be98a53fe11c30238f"],["Vietnamese.lngx","99ffd7fb9ff37c80b0c93a9ae0502296f2b521facfec2c7b6e2b9c3e27fda65a"],["Estonian.lngx","c7cd1dd7628b787b7abef6d53f8ab81f014f65904a600ce13bb0fdcf5f3562f7"],["Chinese_Simplified.lngx","577079699e51650f807527915bcbf8ea7b99fc68c0029efadfc0169a7ce7ad61"],["Korean.lngx","e6f0a111447ae44f5cbd98f973798bf06cb985bd08f7ef93a9b71c2f38bccc5e"],["Ukrainian.lngx","a72aa1059c57b513309accf8c9bf6a9ff18bbcedb6945ecf0d534c715f38b857"],["Norwegian_NB.lngx","4075164fc135482f377c1261329536c23f3535f4b4d8bb4671d4eb79d6d86544"],["Hungarian.lngx","70ee9ba407251a85bc324a0dc36f34c293701e33ec9fb4bb6762049b8c587faf"],["Chinese_Traditional.lngx","4de3b4b2d4458185291c39e6607411263c03dcdff482d53ec9923317cd1c1d8b"],["Persian.lngx","71a104f8c146802be164a7b2c562d1946d8eca33bde3cab355c1548274418077"],["WAPT/icon.png","a2ecc1ccd99ee0adbb67cef1219d7a379577057f1c7fdb68284d3ffa4a8cfc81"],["Italian.lngx","1080170b19eb5f43b09487933565004a0b8cabd951456d50337702c731e797c1"],["Romanian.lngx","930d5de1af9ee238465097b391bd928df442bd494ef6531ff570d488dc79ec0e"],["Icelandic.lngx","d715587f40f42dc7f32cbe896c38115fc6a8947dfa555b206f5e5d45d76cc577"],["Polish.lngx","66f9433af76b358d2e21eb429ef604b30f2ce2966add0619ea2d08fc016376c7"],["Swedish.lngx","b07b01dbc6ddbdce6cf9c01132646ad610aa7cfe44181defccd1532146c678ec"],["Portuguese_PT.lngx","6807283840909f39ce35cfd80f7a8c5c111945e3a197641de64d8b6e99846215"],["Pashto.lngx","1a77908455ff975ff57455c750f063e0a8de404d7c9af36df0724bc73e49ac9f"],["KeePass-2.44-Setup.exe","7a05107a61106c7fa8fbe9982111a32f9690e9e84d17a2dece61938ef16fe1e7"],["Latvian.lngx","a7159421c288b868f0c714a8a02da354ede80a604889c13abaec833980098fef"],["setup.py","5750f5ec508b90a2e2b626447ae45dfb8bbc3b9dc9472a7e74b28b80ac539e66"],["README.md","e06f0b589f9c213ae502f9ce1e84959e578f281348f00250d9cf189a16e8a179"],["Japanese.lngx","669654d12a1e3fb4c5e8775c723ef64bda2160f9d7b8a0c4307054261409ca15"],["Lithuanian.lngx","3e92fc3901e7bbd45c1a76f89f2fdf0266cb3d71639d332011bb41b3a4269d1f"],["Greek.lngx","f422ae7892b3c1eb6be4103b5db6af68bd5fd1160535f7dc5e1da5c7ca3189db"],["Serbian_Cyrillic.lngx","4433e747f3d52279f79b2fed9eccf593b649dc0ece69c8dc5d12bd0d142df4de"],["Latin.lngx","1de9a47dddbb6d154d86a7fbd72df882d5fbe58f213639c1ed2615742fc2e570"],["Slovak.lngx","24204da749d386f8beddfbfa7636c2d2c1c65edb82d8f1052d0867ea071b7454"],["German.lngx","9f51a2fe1323f0f6c15c4872aa22a90c3e7030cd02548d170b8d6af554215d75"],["Bulgarian.lngx","10d18844ad958530a3212a8a651d24b46a6cfeab8c77f4c571c641757cf9b3f0"],["Danish.lngx","a57ea936f205d0c8f5490bf354bab28e890f65f0fbec0900cc393ad5ca54b3bd"],["Catalan.lngx","d8b9713b41b9c4cad09b2603d42674eeda3daa6039a27dd73d2141af7807e50a"],["Slovenian.lngx","f77ebe5a42958e563ecab85a018fe8e6fa999a8d3cebf9f93c43634b3ed94796"],["Hebrew.lngx","816963442e02504b509d97061255ae7254532ba50e3f8ecceb849e064b21f062"]]