1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
7 categories net security
8 maintainers nomaintainer
9 description use the OpenPGP web of trust to verify ssh connections
10 long_description SSH key-based authentication is tried-and-true, \
11 but it lacks a true Public Key Infrastructure for \
12 key certification, revocation and expiration. \
13 Monkeysphere is a framework that uses the OpenPGP \
14 web of trust for these PKI functions. It can be \
15 used in both directions: for users to get \
16 validated host keys, and for hosts to authenticate \
18 homepage http://web.monkeysphere.info/
21 depends_run bin:ssh:openssh \
24 port:p5-crypt-openssl-rsa \
25 port:p5-crypt-openssl-bignum \
30 master_sites http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
31 distname ${name}_${version}
32 extract.suffix .orig.tar.gz
33 worksrcdir ${name}-${version}
34 checksums md5 8590532f4702fa44027a6a583657c9ef
39 # update paths to SYS*DIRs
40 exec sed -i .tmp -e "s|/etc/monkeysphere|${prefix}/etc/monkeysphere|g" \
41 ${worksrcpath}/src/share/defaultenv \
42 ${worksrcpath}/src/transitions/0.23 \
43 ${worksrcpath}/man/man1/monkeysphere.1 \
44 ${worksrcpath}/man/man8/monkeysphere-authentication.8 \
45 ${worksrcpath}/man/man8/monkeysphere-host.8 \
46 ${worksrcpath}/etc/monkeysphere-authentication.conf
47 exec sed -i .tmp -e "s|/var/lib/monkeysphere|${prefix}/var/db/monkeysphere|g" \
48 ${worksrcpath}/src/transitions/0.23 \
49 ${worksrcpath}/man/man1/monkeysphere.1 \
50 ${worksrcpath}/man/man8/monkeysphere-authentication.8 \
51 ${worksrcpath}/man/man8/monkeysphere-host.8 \
52 ${worksrcpath}/src/monkeysphere-host \
53 ${worksrcpath}/src/monkeysphere-authentication \
54 ${worksrcpath}/doc/getting-started-admin.mdwn
55 exec sed -i .tmp -e "s|/usr/share/monkeysphere|${prefix}/share/monkeysphere|g" \
56 ${worksrcpath}/src/monkeysphere-host \
57 ${worksrcpath}/src/monkeysphere-authentication \
58 ${worksrcpath}/src/monkeysphere
60 # fix perl shebang line to point to macports perl install
61 exec sed -i .tmp -e "s|^#!/usr/bin/perl -T$|#!/opt/local/bin/perl -T|" \
62 ${worksrcpath}/src/share/keytrans
64 # remove leftover sed cruft
65 exec find ${worksrcpath} -name *.tmp -delete
68 destroot.destdir DESTDIR=${destroot}${prefix}
71 # variant to use the port version of bash, which may be much newer
72 # than the one provided by the system
73 variant port-bash description {use port version of Bash} {
74 depends_run-append port:bash