Add gkeys
authorKristian Fiskerstrand <kf@sumptuouscapital.com>
Thu, 25 Dec 2014 00:14:15 +0000 (01:14 +0100)
committerKristian Fiskerstrand <kf@sumptuouscapital.com>
Thu, 25 Dec 2014 00:14:15 +0000 (01:14 +0100)
app-crypt/gkeys/Manifest [new file with mode: 0644]
app-crypt/gkeys/gkeys-9999.ebuild [new file with mode: 0644]

diff --git a/app-crypt/gkeys/Manifest b/app-crypt/gkeys/Manifest
new file mode 100644 (file)
index 0000000..7f70bfd
--- /dev/null
@@ -0,0 +1 @@
+EBUILD gkeys-9999.ebuild 1959 SHA256 90c730fb99e6b5bbd912a3efb4a1c63a822cce5d2d37326b767abd821f42e032 SHA512 d3cea706448df93b7da5808d45cae065b58b838e29f5063fd1a2f364e824481452430cae153393d0e97326d049c79948d066214c20dabcb3dda01021f25a47c1 WHIRLPOOL b9e75ad2e242d98b48616289657d2dbebdcb7c8fae8033a3f7c17f4986bad6dace2154d7677e10d8dd5b3277643a4a5e9dfe122299344ef746b187dc28ae3c75
diff --git a/app-crypt/gkeys/gkeys-9999.ebuild b/app-crypt/gkeys/gkeys-9999.ebuild
new file mode 100644 (file)
index 0000000..16fe8e6
--- /dev/null
@@ -0,0 +1,64 @@
+# Copyright 2014-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/gkeys/gkeys-9999.ebuild,v 1.1 2014/12/24 23:31:26 dolsen Exp $
+
+EAPI="5"
+
+PYTHON_COMPAT=(python2_7 python3_3 python3_4)
+
+#EGIT_PROJECT="gentoo-keys.git"
+EGIT_BRANCH="master"
+
+inherit distutils-r1 git-r3
+
+EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/gentoo-keys.git"
+
+DESCRIPTION="A Openpgp/gpg key management program and python libs"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Gentoo-keys"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+KEYWORDS=""
+
+DEPEND="net-misc/curl
+       app-crypt/gentoo-keys
+       app-crypt/gnupg
+       =dev-python/pyGPG-9999[${PYTHON_USEDEP}]
+       =dev-python/ssl-fetch-9999[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}
+       "
+
+S="${WORKDIR}/$P/gkeys"
+
+python_prepare_all() {
+       distutils-r1_python_prepare_all
+       # copy these 2 into our subdir from the master level
+       cp ../LICENSE ./ || die "cp LICENSE failed"
+       cp ../README.md ./ || die "cp README.me failed"
+}
+
+pkg_postinst() {
+       mkdir -p "/var/lib/gentoo/gkeys/seeds"
+       curl "https://api.gentoo.org/gentoo-keys/seeds/gentoodevs.seeds" > /var/lib/gentoo/gkeys/seeds/gentoodevs.seeds
+       curl "https://api.gentoo.org/gentoo-keys/seeds/gentoodevs.seeds.sig" > /var/lib/gentoo/gkeys/seeds/gentoodevs.seeds.sig
+       gkeys verify -C gentoo \
+           -F /var/lib/gentoo/gkeys/seeds/gentoodevs.seeds \
+           -s /var/lib/gentoo/gkeys/seeds/gentoodevs.seeds.sig
+       if [[ $? == "0" ]]; then
+               gkeys installkey -C gentoo-devs
+       fi
+       einfo
+       einfo "This is experimental software."
+       einfo "The API's it installs should be considered unstable"
+       einfo "and are subject to change."
+       einfo
+       einfo "Please file any enhancement requests, or bugs"
+       einfo "at https://bugs.gentoo.org"
+       einfo "We are also on IRC @ #gentoo-keys of the freenode network"
+       einfo
+       ewarn "There may be some python 3 compatibility issues still."
+       ewarn "Please help debug/fix/report them in bugzilla."
+}