From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-admin/pass/Manifest | 7 ++++ app-admin/pass/files/50pass-gentoo.el | 9 +++++ app-admin/pass/metadata.xml | 28 +++++++++++++ app-admin/pass/pass-1.7.1.ebuild | 76 +++++++++++++++++++++++++++++++++++ app-admin/pass/pass-9999.ebuild | 76 +++++++++++++++++++++++++++++++++++ 5 files changed, 196 insertions(+) create mode 100644 app-admin/pass/Manifest create mode 100644 app-admin/pass/files/50pass-gentoo.el create mode 100644 app-admin/pass/metadata.xml create mode 100644 app-admin/pass/pass-1.7.1.ebuild create mode 100644 app-admin/pass/pass-9999.ebuild (limited to 'app-admin/pass') diff --git a/app-admin/pass/Manifest b/app-admin/pass/Manifest new file mode 100644 index 000000000000..dafec283f9a3 --- /dev/null +++ b/app-admin/pass/Manifest @@ -0,0 +1,7 @@ +AUX 50pass-gentoo.el 491 SHA256 1420eb48a178553d6032ee312359fc498b1469d433537c4812dca2f835e5f9e7 SHA512 eaba952f7b080bb44f1a415ee3fa1e71469177a993116b890a0788b177ec70948c1ea6923f17ddddf5f1c01af2fca03e98a71e06a5dff32ff6ebe0b73a79f659 WHIRLPOOL 2030f49e6aaab66dbb507e3b49de371723de334b44afe568392f8fef7d0e0dd43238f636bf462d863de07ec5ff8eb84fd92d3479fe6243d487c2235aa3c5c699 +DIST password-store-1.7.1.tar.xz 62340 SHA256 f6d2199593398aaefeaa55e21daddfb7f1073e9e096af6d887126141e99d9869 SHA512 2ba2ebc80c90454bbab1da3c43c2cfc87135f838f381e2616eef7c36b0c1de01e491cf587a666bb052d6dfd475fa429bc8fd82b0269325bd2b70afbb897b923e WHIRLPOOL 34bcf6aecf7287313a47721b403664667001f4997be2f2f37114708cd64ea67af682176b6991c828802d71de306383f122a3668d388b8d9a68c1563dbb68bc46 +EBUILD pass-1.7.1.ebuild 2037 SHA256 a330c148fa30d66267476eaacd1152ba233e5cc4126bc93f834716bcc29cb992 SHA512 f336adb1a1d51a739a81ef4fcc1a497e4e661101c8ae7568040822ab549d6136f8bac910c936bde804bd502930d00af5301521b5af202bcdaed905e5ec660ff3 WHIRLPOOL 9c58a9d67b9b6535e3f112656741f328b8f75d271e8bf1dcca516072c2e724917e1092bdf37712522670982dbb812d6961e2c95cbf9cbcdcebb846c52db8ab0c +EBUILD pass-9999.ebuild 1992 SHA256 c63ca8b59da414d12789c31ea22c124be1a92b25d0b3e997f5c9ca577d7a49b1 SHA512 3a7e0655b9756e29cba3fb0c9cd88b43ce9e91056ea381d092321591f22e99857c34f484ff7c335be93d62b641bb59b4e09ff142a51b6ed671155483306600d2 WHIRLPOOL 87212371202b00c1d516eb32a2ef3872fd18e475f2469c35e7aa37d26d208dc833010ba335331708496e71aa9613d51672dd4c3a1bfbfa3f5568dd900a5300d8 +MISC ChangeLog 2237 SHA256 9c66d7db22cd20ddccb4bbe6c82d7eaa0018d3f3046d5f46ff95a62cf17bf5a4 SHA512 774af67b0bed6e21af39ebf4828576f944000caa558e9143cf94df19d4c3004eea6cc8be7817adde5b82b87943224d42ab2392cdee6408004419c303810b8ce1 WHIRLPOOL 1f4f39e76f68cc95b4d0155a5efb6210cdc61ac30b4734f07b5b47cae3e19a49faffdac287fb1f96c739a3e3e97ddb0e5b2286d0091f4653e6bb5942267a877e +MISC ChangeLog-2015 4364 SHA256 67be0593368d65ba5663c670a8a96077889b242c7057d853d945f75870c1f18d SHA512 adbb82cbcf8f5fee938636ccf29c176ec06d774cfe6cb6994f2f1a83c7c1a28b2dd6500b0b9fc168982674cf370e541eccebf59c72124ffcd4dc8adb7e3f7ffe WHIRLPOOL 84911d1257cfa48216a9a7106e64d04876fbb58cafa6272aa70df7ff9b38b058c8e9e6fc46ec5d1870c84fc9a553eb10364165ef99bcbc3de11109c220138070 +MISC metadata.xml 881 SHA256 b56d6c5ce3beeb6621187587a34e11f3078dc1fc14e9be468e621eb53368e126 SHA512 49df1e24751818d46a0c23fcdc9e41d965dca29f9964f7d142e4dba9b076b472c860d9b3eafc15b04a983f49d2cd78eb6b529742469549209c7e4160a15f1323 WHIRLPOOL 683607b411e55362c321172eb6de81aa0423d3a43c918170ffb43bd6e7835f0454c385b2dbef29a96dc7ee530342a836e55a3b65d5f825b6c84e72db422776ba diff --git a/app-admin/pass/files/50pass-gentoo.el b/app-admin/pass/files/50pass-gentoo.el new file mode 100644 index 000000000000..122d813af1e7 --- /dev/null +++ b/app-admin/pass/files/50pass-gentoo.el @@ -0,0 +1,9 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'password-store-edit "password-store" nil t) +(autoload 'password-store-copy "password-store" nil t) +(autoload 'password-store-init "password-store" nil t) +(autoload 'password-store-insert "password-store" nil t) +(autoload 'password-store-generate "password-store" nil t) +(autoload 'password-store-remove "password-store" nil t) +(autoload 'password-store-rename "password-store" nil t) +(autoload 'password-store-version "password-store" nil t) diff --git a/app-admin/pass/metadata.xml b/app-admin/pass/metadata.xml new file mode 100644 index 000000000000..97bcbb1882f7 --- /dev/null +++ b/app-admin/pass/metadata.xml @@ -0,0 +1,28 @@ + + + + + zx2c4@gentoo.org + Jason A. Donenfeld + + + Stores, retrieves, generates, and synchronizes passwords securely using gpg, pwgen, and git. + + + + Use x11-misc/xclip to copy passwords to the clipboard. + + + Use dev-vcs/git for password revisions. + + + Enable fish completion support. + + + Add support for x11-misc/dmenu with the 'passmenu' program. + + + Allow importing passwords from other password managers using various contributed scripts. + + + diff --git a/app-admin/pass/pass-1.7.1.ebuild b/app-admin/pass/pass-1.7.1.ebuild new file mode 100644 index 000000000000..627d9ebd3bbf --- /dev/null +++ b/app-admin/pass/pass-1.7.1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit bash-completion-r1 elisp-common + +DESCRIPTION="Stores, retrieves, generates, and synchronizes passwords securely" +HOMEPAGE="https://www.passwordstore.org/" +SRC_URI="https://git.zx2c4.com/password-store/snapshot/password-store-${PV}.tar.xz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="amd64 x86 ~x86-macos" +IUSE="+git X zsh-completion fish-completion emacs dmenu importers elibc_Darwin" + +RDEPEND=" + app-crypt/gnupg + media-gfx/qrencode + >=app-text/tree-1.7.0 + git? ( dev-vcs/git ) + X? ( x11-misc/xclip ) + elibc_Darwin? ( app-misc/getopt ) + zsh-completion? ( app-shells/gentoo-zsh-completions ) + fish-completion? ( app-shells/fish ) + dmenu? ( x11-misc/dmenu x11-misc/xdotool ) + emacs? ( virtual/emacs ) +" + +S="${WORKDIR}/password-store-${PV}" + +src_prepare() { + use elibc_Darwin || return + # use coreutils' + sed -i -e 's/openssl base64/base64/g' src/platform/darwin.sh || die + # host getopt isn't cool, and we aren't brew (rip out brew reference) + sed -i -e '/^GETOPT=/s/=.*$/=getopt-long/' src/platform/darwin.sh || die + # make sure we can find "mount" + sed -i -e 's:mount -t:/sbin/mount -t:' src/platform/darwin.sh || die +} + +src_compile() { + :; +} + +src_install() { + emake install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + BASHCOMPDIR="$(get_bashcompdir)" \ + WITH_BASHCOMP=yes \ + WITH_ZSHCOMP=$(usex zsh-completion) \ + WITH_FISHCOMP=$(usex fish-completion) + use dmenu && dobin contrib/dmenu/passmenu + if use emacs; then + elisp-install ${PN} contrib/emacs/*.el + elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" + fi + if use importers; then + exeinto /usr/share/${PN}/importers + doexe contrib/importers/* + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + if use importers; then + einfo "To import passwords from other password managers, you may use the" + einfo "various importer scripts found in:" + einfo " ${ROOT}usr/share/${PN}/importers/" + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/app-admin/pass/pass-9999.ebuild b/app-admin/pass/pass-9999.ebuild new file mode 100644 index 000000000000..a476bc8e22b6 --- /dev/null +++ b/app-admin/pass/pass-9999.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit bash-completion-r1 git-2 elisp-common + +DESCRIPTION="Stores, retrieves, generates, and synchronizes passwords securely" +HOMEPAGE="https://www.passwordstore.org/" +EGIT_REPO_URI="https://git.zx2c4.com/password-store" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="" +IUSE="+git X zsh-completion fish-completion emacs dmenu importers elibc_Darwin" + +RDEPEND=" + app-crypt/gnupg + media-gfx/qrencode + >=app-text/tree-1.7.0 + git? ( dev-vcs/git ) + X? ( x11-misc/xclip ) + elibc_Darwin? ( app-misc/getopt ) + zsh-completion? ( app-shells/gentoo-zsh-completions ) + fish-completion? ( app-shells/fish ) + dmenu? ( x11-misc/dmenu x11-misc/xdotool ) + emacs? ( virtual/emacs ) +" + +S="${WORKDIR}/password-store-${PV}" + +src_prepare() { + use elibc_Darwin || return + # use coreutils' + sed -i -e 's/openssl base64/base64/g' src/platform/darwin.sh || die + # host getopt isn't cool, and we aren't brew (rip out brew reference) + sed -i -e '/^GETOPT=/s/=.*$/=getopt-long/' src/platform/darwin.sh || die + # make sure we can find "mount" + sed -i -e 's:mount -t:/sbin/mount -t:' src/platform/darwin.sh || die +} + +src_compile() { + :; +} + +src_install() { + emake install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + BASHCOMPDIR="$(get_bashcompdir)" \ + WITH_BASHCOMP=yes \ + WITH_ZSHCOMP=$(usex zsh-completion) \ + WITH_FISHCOMP=$(usex fish-completion) + use dmenu && dobin contrib/dmenu/passmenu + if use emacs; then + elisp-install ${PN} contrib/emacs/*.el + elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" + fi + if use importers; then + exeinto /usr/share/${PN}/importers + doexe contrib/importers/* + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen + if use importers; then + einfo "To import passwords from other password managers, you may use the" + einfo "various importer scripts found in:" + einfo " ${ROOT}usr/share/${PN}/importers/" + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} -- cgit v1.2.3