app-crypt/monkeysphere: Use debian mirror form thirpartymirror
[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 eutils user
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 IUSE=""
14 SRC_URI="mirror://debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${PV}.orig.tar.gz"
15 DEPEND=""
16 KEYWORDS="~amd64 ~x86"
17
18 DOCS=( README Changelog )
19
20 RDEPEND="app-crypt/gnupg:0=
21         || ( net-analyzer/netcat:0= net-misc/socat:0= )
22         dev-perl/Crypt-OpenSSL-RSA:0=
23         dev-perl/Digest-SHA1:0=
24         app-misc/lockfile-progs:0="
25
26 pkg_setup()
27 {
28         einfo "Creating named group and user"
29         enewgroup monkeysphere
30         enewuser monkeysphere -1 -1 /var/lib/monkeysphere monkeysphere
31 }
32
33 src_prepare()
34 {
35         epatch "${FILESDIR}/${P}_default_shell.patch"
36         epatch "${FILESDIR}/${P}_non_default_port.patch"
37         epatch "${FILESDIR}/${P}_userid_empty_line.patch"
38         sed -i "s#share/doc/monkeysphere#share/doc/${PF}#" Makefile || die
39 }
40
41 src_install()
42 {
43         default
44         dodir /var/lib/monkeysphere
45         fowners root:monkeysphere /var/lib/monkeysphere
46         fperms 751 /var/lib/monkeysphere
47 }
48
49 pkg_postinst()
50 {
51         monkeysphere-authentication setup || die
52 }