diff --git a/app-admin/keepass/ChangeLog b/app-admin/keepass/ChangeLog new file mode 100644 index 00000000..96a31340 --- /dev/null +++ b/app-admin/keepass/ChangeLog @@ -0,0 +1,98 @@ +# ChangeLog for app-admin/keepass +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/keepass/ChangeLog,v 1.19 2015/06/09 19:01:15 kensington Exp $ + + 09 Jun 2015; Michael Palimaka metadata.xml: + Update upstream bugs URL. + + 27 May 2015; Agostino Sarubbo keepass-2.28.ebuild: + Stable for x86, wrt bug #549016 + + 27 May 2015; Agostino Sarubbo keepass-2.28.ebuild: + Stable for amd64, wrt bug #549016 + +*keepass-2.29 (23 May 2015) + + 23 May 2015; Ian Delaney +keepass-2.29.ebuild: + bump; closes bug #549094 by maintainer + +*keepass-2.28 (12 Oct 2014) + + 12 Oct 2014; Michael Palimaka +keepass-2.28.ebuild, + -keepass-2.26.ebuild: + Version bump wrt bug #525050. Remove old. + +*keepass-2.27 (15 Jul 2014) + + 15 Jul 2014; Michael Palimaka +keepass-2.27.ebuild, + -keepass-2.24.ebuild, -keepass-2.25.ebuild: + Version bump wrt bug #516516. Remove old. + +*keepass-2.26 (19 Apr 2014) + + 19 Apr 2014; Michael Palimaka +keepass-2.26.ebuild: + Version bump wrt bug #507564. + +*keepass-2.25 (14 Feb 2014) + + 14 Feb 2014; Michael Palimaka +keepass-2.25.ebuild, + -keepass-2.23.ebuild: + Version bump wrt bug #501126. Remove old. + +*keepass-2.24 (12 Nov 2013) + + 12 Nov 2013; Michael Palimaka +keepass-2.24.ebuild, + -keepass-2.21.ebuild, -keepass-2.22.ebuild: + Version bump wrt bug #490818. Remove old. + +*keepass-2.23 (23 Oct 2013) + + 23 Oct 2013; Tom Wijsman +keepass-2.23.ebuild, + metadata.xml: + Version bump to 2.23, fixes bug #472764 and bug #486936. Still has an + unhandled exception when closing the window that still needs to be resolved, + see bug #489120. Proxied commit for Alessandro Di Federico. + +*keepass-2.22 (09 Apr 2013) + + 09 Apr 2013; Michael Palimaka +keepass-2.22.ebuild, + -keepass-2.20.1.ebuild: + Version bump wrt bug #465098. Remove old. + + 04 Mar 2013; Michael Palimaka metadata.xml: + Add proxy-maintainers as backup herd. + +*keepass-2.21 (04 Feb 2013) + + 04 Feb 2013; Michael Palimaka +keepass-2.21.ebuild, + -keepass-2.20-r1.ebuild: + Version bump wrt bug #455322. Remove old. + +*keepass-2.20.1 (08 Oct 2012) + + 08 Oct 2012; Michael Palimaka +keepass-2.20.1.ebuild, + -files/keepass-2.19-skip-sgen-if-unix.patch, + -files/keepass-2.19-xsl-path-detection.patch, -keepass-2.19.ebuild, + -keepass-2.20.ebuild: + Version bump. Remove old. + +*keepass-2.20-r1 (26 Sep 2012) + + 26 Sep 2012; Michael Palimaka +keepass-2.20-r1.ebuild: + Fix crashes when AOT USE flag is enabled, thanks to Alessandro Di Federico + . Closes bug #435860. + +*keepass-2.20 (11 Sep 2012) + + 11 Sep 2012; Michael Palimaka + +files/keepass-2.20-xsl-path-detection.patch, +keepass-2.20.ebuild: + Version bump by Alessandro Di Federico . + +*keepass-2.19 (04 Aug 2012) + + 04 Aug 2012; Michael Palimaka + +files/keepass-2.19-skip-sgen-if-unix.patch, + +files/keepass-2.19-xsl-path-detection.patch, +files/keepass.xml, + +keepass-2.19.ebuild, +metadata.xml: + Initial import for bug #371723. Ebuild by Alessandro Di Federico + . diff --git a/app-admin/keepass/Manifest b/app-admin/keepass/Manifest new file mode 100644 index 00000000..02282b8c --- /dev/null +++ b/app-admin/keepass/Manifest @@ -0,0 +1,6 @@ +AUX keepass-2.20-xsl-path-detection.patch 1596 SHA256 6b95ac5786824424781dc12bb031e22c5ec8cd91ab406231ae4b09de07f42c42 SHA512 6aa8ee88e0dcb09f2394432ea49953c582127a38c75bb86ce24e9f4f979b5dc673a534dac550793bcb3bc337aa218aa71edc22d79aa7eb6bde204cd6981f2976 WHIRLPOOL 62b0e8438195f7ebe7fa3136fb26b95723c55a6cc1e71f9586f95b27225bdf60e28a1b7f67abefda86ca05eeee237369e734f93b8f17c7b4b5b41e68cc1237bf +AUX keepass.xml 275 SHA256 14e15149e0b9177008cc1fb67e57ef83e2c8663846403dfdf2411c77ebb3ee3f SHA512 a6055604ff4ff9e905012b5f8448540ea3b3fa8527ce1fd247fe4e5329e6861e5e7a01ea5ed907c41c073d81ee02452392ea0b0d61bf1119dadd300911a450fb WHIRLPOOL d0ee272ae608241ca67a0a2d1365d37e19b86ce4a7baede55f7094f8b1b58671935a753fa3f9859777c0bef2ee47a36b418165e5e6c894bfa6e634f965abd57e +DIST KeePass-2.30-Source.zip 4767753 SHA256 4a3c3c217bc05b13bf903612b89a09b67ed1df68fdecd83324f2ef372313e9e4 SHA512 05404f273f6a7df33887b036aa0dba335124a7b2ae30b61957f8dc9c959cdd3342fdfa22a7d59ba5e9180f039fed5ecbac0a3154eb9d342a5a3a8a057d763182 WHIRLPOOL 4ddec9e592724b60724a2deaaf959dacc91f77d1ae97dd07af940f8efd882a008b4424ba68a4fcbd9ebe8d75c2b8a9a644ff7144ed593cfb3f0e361c0364a780 +EBUILD keepass-2.30.ebuild 2811 SHA256 41c79bd446dbefd6bc848235ebf123a5d1795cb5708dfd806d6d015e112f9299 SHA512 709b29ba1b18d874cc9b409919f02ce9b0ea218ff8e866651b68d441ccb5dbce199d5708a8bd0852d81b31bd6f7ccdebf7fe9783a1a1a53b3ebd514b7d8f1cae WHIRLPOOL 90834bcd52cbd5ea1f08bfb91b822145c9d4b779778870dbe36eb29863aea45c7aba2730512a4e08d855dca43db6dc9ad73a97d8ee4883a50ec6265eb19d7c49 +MISC ChangeLog 3407 SHA256 634db193f86f7ccd6253c9a1e835cfac555c1849e8fee09a61f37e9ec1c3ea61 SHA512 614843ebf42b19a145f6962b9bc54c55700471165acbd2a2e009e6af833f29cf82865743c9905a6967eb1068ff01e93dc1b4542be91ca0c06ff08b5f721f88e3 WHIRLPOOL 70e5a29adee5527c7b00bdd8a433ba979aa4ffd45e428e406f4522caba9fabfc866bf564ce1641ca518cdcb57e59210031e21bddd618e55f1858f73bb8b56a5c +MISC metadata.xml 661 SHA256 72fda0400c126ef85b7ad4d7c5e763b1d08f9e6bd86087e9e44f882c63943bc1 SHA512 d769e469e96f53a38cfe24c32d011fcbfde75cda8396baf74b0c2a0deeb3a3220fa94a5530f3689993f2442f3bda20b4458f1cbf8c21c587b4bc6a67adb862c3 WHIRLPOOL f981cf6108b8a88a3da772433abec6ae26651f49ac6c3fa940bc1518f6e5686e658a67df9d94b95f3fcf70939e919574f6057de92e1f79ab6437d4a221b25245 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 00000000..d3805feb --- /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 00000000..5e3d80dc --- /dev/null +++ b/app-admin/keepass/files/keepass.xml @@ -0,0 +1,9 @@ + + + + KeePass database + + + + + diff --git a/app-admin/keepass/keepass-2.30.ebuild b/app-admin/keepass/keepass-2.30.ebuild new file mode 100644 index 00000000..723512c6 --- /dev/null +++ b/app-admin/keepass/keepass-2.30.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/keepass/keepass-2.29.ebuild,v 1.1 2015/05/23 03:05:22 idella4 Exp $ + +EAPI=5 + +inherit eutils fdo-mime gnome2-utils mono-env multilib + +MY_PN="KeePass" +DESCRIPTION="A free, open source, light-weight and easy-to-use password manager" +HOMEPAGE="http://keepass.info/" +SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-Source.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="aot" + +COMMON_DEPEND=">=dev-lang/mono-2.10.5" +RDEPEND="${COMMON_DEPEND} + dev-dotnet/libgdiplus[cairo]" +DEPEND="${COMMON_DEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + # Remove Windows-specific things + pushd Build > /dev/null || die + . PrepMonoDev.sh || die + popd > /dev/null || die + + # KeePass looks for some XSL files in the same folder as the executable, + # we prefer to have it in /usr/share/KeePass + epatch "${FILESDIR}/${PN}-2.20-xsl-path-detection.patch" +} + +src_compile() { + # Build with Release target + xbuild /target:KeePass /property:Configuration=Release || die + + # Run Ahead Of Time compiler on the binary + if use aot; then + cp Ext/KeePass.exe.config Build/KeePass/Release/ + mono --aot -O=all Build/KeePass/Release/KeePass.exe || die + fi +} + +src_install() { + # Wrapper script to launch mono + make_wrapper ${PN} "mono /usr/$(get_libdir)/${PN}/KeePass.exe" + + # Some XSL files + insinto /usr/share/${PN}/XSL + doins Ext/XSL/* + + insinto /usr/$(get_libdir)/${PN}/ + exeinto /usr/$(get_libdir)/${PN}/ + doins Ext/KeePass.exe.config + # Default configuration, simply says to use user-specific configuration + doins Ext/KeePass.config.xml + + # The actual executable + doexe Build/KeePass/Release/KeePass.exe + + # Copy the AOT compilation result + if use aot; then + doexe Build/KeePass/Release/KeePass.exe.so + fi + + # Prepare the icons + newicon -s 256 Ext/Icons/Finals/plockb.png "${PN}.png" + newicon -s 256 -t gnome -c mimetypes Ext/Icons/Finals/plockb.png "application-x-${PN}2.png" + + # Create a desktop entry and associate it with the KeePass mime type + make_desktop_entry ${PN} ${MY_PN} ${PN} "System;Security" "MimeType=application/x-keepass2;" + + # MIME descriptor for .kdbx files + insinto /usr/share/mime/packages/ + doins "${FILESDIR}/${PN}.xml" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + + if ! has_version x11-misc/xdotool ; then + elog "Optional dependencies:" + elog " x11-misc/xdotool (enables autotype)" + fi + + elog "Some systems may experience issues with copy and paste operations." + elog "If you encounter this, please install x11-misc/xsel." +} + +pkg_postrm() { + gnome2_icon_cache_update + fdo-mime_mime_database_update + fdo-mime_desktop_database_update +} diff --git a/app-admin/keepass/metadata.xml b/app-admin/keepass/metadata.xml new file mode 100644 index 00000000..b9e748b5 --- /dev/null +++ b/app-admin/keepass/metadata.xml @@ -0,0 +1,20 @@ + + + + + ale@clearmind.me + Maintainer. Assign bugs to him. + + + kensington@gentoo.org + Proxy maintainer. CC him on bugs. + + proxy-maintainers + + Generate native code at build time, rather than runtime. + + + keepass + http://sourceforge.net/p/keepass/bugs/ + +