b3775fab025739ae08bcceeb5ddd832d208bc187
[portage-overlay.git] / app-crypt / msva-perl / msva-perl-0.9.2.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
7 inherit perl-module
8
9 SRC_URI="http://archive.monkeysphere.info/debian/pool/monkeysphere/m/msva-perl/msva-perl_${PV}.orig.tar.gz"
10
11 DESCRIPTION="Monkeysphere public key validation daemon"
12 HOMEPAGE="http://web.monkeysphere.info/validation-agent/"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 IUSE=""
17 DEPEND="virtual/perl-Module-Build"
18
19 KEYWORDS="~amd64 ~x86"
20
21 RDEPEND="
22         dev-perl/Crypt-X509
23         dev-perl/File-HomeDir
24         dev-perl/File-ShareDir
25         dev-perl/GnuPG-Interface
26         dev-perl/HTTP-Server-Simple
27         dev-perl/HTTP-Message
28         dev-perl/JSON
29         dev-perl/config-general
30         dev-perl/libwww-perl
31         dev-perl/net-server
32         dev-perl/regexp-common
33         "
34
35 src_prepare()
36 {
37         sed -i -e "s|^VERSION :=.*|VERSION=${PV}|" \
38                -e "s|^DEBIAN_VERSION=.*|DEBIAN_VERSION=${PV}|" Makefile || die
39 }
40
41 src_install()
42 {
43         insinto ${SITE_LIB}/Crypt/Monkeysphere
44         insopts -m444
45         doins Crypt/Monkeysphere/*.pm
46         
47         insinto ${SITE_LIB}/Crypt/Monkeysphere/MSVA
48         doins Crypt/Monkeysphere/MSVA/*.pm
49         
50         insinto ${SITE_LIB}/Net/Server
51         doins Net/Server/MSVA.pm
52         
53         dobin msva-perl
54         doman msva-perl.1
55         dobin msva-query-agent
56         doman msva-query-agent.1
57
58         dodir "/etc/profile.d"
59         insinto "/etc/profile.d"
60         insopts -m755
61         doins "${FILESDIR}/10-msva-perl.sh"
62 }