init
[portage-overlay.git] / app-crypt / monkeysphere / monkeysphere-0.36.ebuild
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6 inherit base
7
8 DESCRIPTION="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
9 HOMEPAGE="http://web.monkeysphere.info/"
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 KEYWORDS="~x86 ~amd64"
14 IUSE=""
15
16 if [[ ${PV} == "9999" ]]
17         then
18                 EGIT_REPO_URI="git://git.monkeysphere.info/${PN}"
19                 inherit git-2
20         else
21                 SRC_URI="http://archive.${PN}.info/debian/pool/${PN}/${PN::1}/${PN}/${PN}_${PV}.orig.tar.gz"
22 fi
23
24 DEPEND=""
25 RDEPEND="${DEPEND}
26 app-crypt/gnupg
27 dev-perl/Crypt-OpenSSL-RSA
28 dev-perl/Digest-SHA1
29 app-misc/lockfile-progs"
30
31 src_prepare()
32 {
33         sed -i "s#share/doc/monkeysphere#share/doc/${PF}#" Makefile
34 }
35
36 pkg_setup()
37 {
38         ebegin "Creating named group and user"
39         enewgroup monkeysphere
40         enewuser monkeysphere -1 /bin/sh /var/lib/monkeysphere monkeysphere
41         chown root:root /var/lib/monkeysphere
42         chmod 751 /var/lib/monkeysphere
43         eend ${?}
44 }
45
46 DOCS=(README Changelog COPYING)