From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- .../files/keepass-2.20-xsl-path-detection.patch | 45 ++++++++++++++++++++++ app-admin/keepass/files/keepass.xml | 9 +++++ 2 files changed, 54 insertions(+) create mode 100644 app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch create mode 100644 app-admin/keepass/files/keepass.xml (limited to 'app-admin/keepass/files') diff --git a/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch b/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch new file mode 100644 index 000000000000..d3805feb0d98 --- /dev/null +++ b/app-admin/keepass/files/keepass-2.20-xsl-path-detection.patch @@ -0,0 +1,45 @@ +KeePass looks for some resources (XSL files) in the executable directory, +however under UNIX system this not a good idea, so we look into the +CommonApplicationData SpecialFolder, which usually maps to "/usr/share/". +So the final search path should be "/usr/share/KeePass/XSL/". + +diff --git a/KeePass/Forms/AboutForm.cs b/KeePass/Forms/AboutForm.cs +index 8a04c87..6083c00 100644 +--- a/KeePass/Forms/AboutForm.cs ++++ b/KeePass/Forms/AboutForm.cs +@@ -31,9 +31,11 @@ using KeePass.UI; + using KeePass.Resources; + using KeePass.Util; + using KeePass.DataExchange; ++using KeePass.Native; + + using KeePassLib; + using KeePassLib.Utility; ++using KeePassLib.Native; + + namespace KeePass.Forms + { +@@ -92,8 +94,21 @@ namespace KeePass.Forms + m_lvComponents.Items.Add(lvi); + + lvi = new ListViewItem(KPRes.XslStylesheetsKdbx); +- string strPath = WinUtil.GetExecutable(); +- strPath = UrlUtil.GetFileDirectory(strPath, true, false); ++ ++ string strPath; ++ if (NativeLib.IsUnix()) ++ { ++ strPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData); ++ strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); ++ strPath += PwDefs.ShortProductName.ToLower(); ++ strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); ++ } ++ else ++ { ++ strPath = WinUtil.GetExecutable(); ++ strPath = UrlUtil.GetFileDirectory(strPath, true, false); ++ } ++ + strPath += AppDefs.XslFilesDir; + strPath = UrlUtil.EnsureTerminatingSeparator(strPath, false); + bool bInstalled = File.Exists(strPath + AppDefs.XslFileHtmlLite); diff --git a/app-admin/keepass/files/keepass.xml b/app-admin/keepass/files/keepass.xml new file mode 100644 index 000000000000..5e3d80dcae7b --- /dev/null +++ b/app-admin/keepass/files/keepass.xml @@ -0,0 +1,9 @@ + + + + KeePass database + + + + + -- cgit v1.2.3-65-gdbad