tis-keepass

2.45-14
KeePass Password Safe is a free and open-source password manager
26079 downloads
Download

  Description 

  • package : tis-keepass
  • version : 2.45-14
  • architecture : all
  • categories : Security,Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
  • description : KeePass Password Safe is a free and open-source password manager
  • locale : all
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.7
  • sources : https://sourceforge.net/projects/keepass/
  • installed_size :
  • impacted_process : KeePass
  • description_fr : KeePass Password Safe est un gestionnaire de mots de passe publié sous licence libre
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Dominik Reichl
  • licence : GPLv2
  • signature_date : 2020-07-10T18:15:09.617000
  • Homepage : https://keepass.info/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import time
import requests
import urlparse
import platform

uninstallkey = []


def install():
    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 = r"""
        <LanguageFile>%s</LanguageFile>      """ % (list_locales[loc])
    else:
        LanguageFile = ''


    if not isfile(config):
        data = r"""<?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():
    print('Download/Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

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


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

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

    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=proxy)
    else:
        print('Already up to date, skipped')

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

    # Changing version of the package
    pe = PackageEntry().load_control_from_wapt('.')
    pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
    pe.save_control_to_wapt('.')
    print('Changing version to ' + pe.version + ' in WAPT\\control')
    print('Update package done. You can now build-upload your package')

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

    for line in wgets('https://keepass.info/translations.html',proxies=proxy).splitlines():
        if 'KeePass-%s' % version[: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=proxy)
                    except:
                        # Try Again
                        wget(lfd,lfd.rsplit('/',1)[1],connect_timeout=30,proxies=proxy)

                    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
}




										

  Changelog 


Changelog software url : https://keepass.info/news/news_all.html

No changelog
  manifest.sha256 
[["Czech.lngx","1b6abfcff84cb5decb70a5357d40da7b181bf10e72187214fed0f9a5e904fce5"],["Serbian_Latin.lngx","0ae6c59cf7967acc235e18c8d4e8eb01926b7ab4eb19a643c7a21c8dca128391"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["Russian.lngx","0f54c87864e22bf95bca6dd94340959f841ea0f04a81f42c6617e7ee944ae430"],["Finnish.lngx","9932fc15c29ed897222e2ef1cffa9015a89b492a77ca2bc167394cd7b181c04f"],["Arabic.lngx","7f2d2d3e8a68aa288cd283032f419d91193d71428065ac379f51f529c399e531"],["Turkish.lngx","54bd704521729bc297a2b2d5dabe141e87ed7f25aaffca29c7095d0702820caa"],["Dutch.lngx","0275c06bc99021f80f606b650a5004f922ff30ead49fbc0d2d2168d06d561bfe"],["French.lngx","33722dd73c03b60a06dcc2f77680c8c595ce5ab129c1543d48cb9db9aa70019f"],["KeePass-2.45-Setup.exe","9058cc9d44129e8c2c902e21f8678974b789ecd8f9d6add81c98fbeaf9794e23"],["Indonesian.lngx","f2480ea0741985a553eeed0fa6be620f4101e9fe2c446d105df86e15a446a249"],["Spanish.lngx","5e43f3cacd43bb734855b162281352bd14ccab40f8c235240eefab663eb39bf2"],["WAPT/control","df41a09aba10302e391c0b2e4f066886e919296253695f11b8b962c3042b45a3"],["Croatian.lngx","eb958eca18e1d01c8537c4fd34ed1a1dac4d8e50983972be98a53fe11c30238f"],["Vietnamese.lngx","fa1cdda387e6551ce564effe8c8153bc8b8316233cc3290c160781b20ecce478"],["Estonian.lngx","c7cd1dd7628b787b7abef6d53f8ab81f014f65904a600ce13bb0fdcf5f3562f7"],["Chinese_Simplified.lngx","a6200d1f1543572b67837621d4d2fbe0b0e99316beb86e33831eab09c50652ce"],["Korean.lngx","e6f0a111447ae44f5cbd98f973798bf06cb985bd08f7ef93a9b71c2f38bccc5e"],["Ukrainian.lngx","7253201eb03ceaebe5899eb41c6ad7988ab253d8da2da7c56de76456ec9c06d2"],["Norwegian_NB.lngx","4075164fc135482f377c1261329536c23f3535f4b4d8bb4671d4eb79d6d86544"],["Hungarian.lngx","183c789e9eef7c6e9418833818c5ec29ebe9698ea06efe76e3603ac43022d6e1"],["Chinese_Traditional.lngx","d0ae46ee9600c8a55e6ff80976946e38c825306e71481bd9dfcb0dae91b0e7bc"],["Persian.lngx","71a104f8c146802be164a7b2c562d1946d8eca33bde3cab355c1548274418077"],["WAPT/icon.png","9855b4f581d2abce7c7418d436092535d7e01d4da9096bcdbae39edc9c7d9f1f"],["Italian.lngx","a69a7926ef7bcf53724cc0a8a9d61d859c1ca3569792771653980fa4e60d9d03"],["Romanian.lngx","930d5de1af9ee238465097b391bd928df442bd494ef6531ff570d488dc79ec0e"],["Icelandic.lngx","e207a38c6b2116af8a70b3e0d9517f6a76ebb590701236489f55068f724210ea"],["Polish.lngx","33ebeb186dd365a84207e12189b720c2b841d5b9506b4a4c721042d319085f3d"],["Swedish.lngx","b07b01dbc6ddbdce6cf9c01132646ad610aa7cfe44181defccd1532146c678ec"],["Portuguese_PT.lngx","e579a8e2a97dc776b2b91b7fa2398eb36bbf1699b0c93ed0f36a485ea4fb2558"],["Pashto.lngx","1a77908455ff975ff57455c750f063e0a8de404d7c9af36df0724bc73e49ac9f"],["Latvian.lngx","e7172c11570936ae0cfe04aecd25036bf25c7b874f1c0598d3bac8250ec484b5"],["setup.py","e402361b86620d56940b528592d381ed0d5198a85217f79cb16fb42f3cd0645e"],["Japanese.lngx","11c27c07c7c15aaa5173e4a995c0f93e3b379400db42438301fafb0ad8ca152d"],["Lithuanian.lngx","3e92fc3901e7bbd45c1a76f89f2fdf0266cb3d71639d332011bb41b3a4269d1f"],["Greek.lngx","7a8e120d243b525f92ef9bdd71f1bcacf82ea7d58fc00fd8cccb7c3e385042b4"],["Serbian_Cyrillic.lngx","1766fbea61b9389c80779bf6a13caf608dc714709e3a155fbb7cf879d1e70365"],["Latin.lngx","1de9a47dddbb6d154d86a7fbd72df882d5fbe58f213639c1ed2615742fc2e570"],["Slovak.lngx","8dc9e46f1310f49d82a91e3134efacf85a364a48ac12a0e3a4ee5bd88793db6a"],["German.lngx","d1e5c81270ab7f47cde7cf3c6861da9a7d9cdd98df1f95b8c645d4e5cf9247d0"],["Bulgarian.lngx","edfeb46a6907d6e6ecd3121feecb99dda7f2fdad72be19c71933236186771c03"],["Danish.lngx","3648ffcf7fe6be12e18a8238f6615c012234ef5ad6061b9264e86283a9f22a89"],["Catalan.lngx","110f1a3cff2f381eede72d51e7be777ebdeb9334e65a4a37192260710babaf11"],["Slovenian.lngx","f77ebe5a42958e563ecab85a018fe8e6fa999a8d3cebf9f93c43634b3ed94796"],["Hebrew.lngx","816963442e02504b509d97061255ae7254532ba50e3f8ecceb849e064b21f062"]]