fix monkeysphere-authentication man page reference to AuthorizedKeysFile for sshd_config
[monkeysphere.git] / packaging / macports / Portfile
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
2 # $Id$
3
4 PortSystem          1.0
5 name                monkeysphere
6 version             0.26
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 \
17                     users.
18 homepage            http://web.monkeysphere.info/
19 platforms           darwin
20
21 depends_run         bin:ssh:openssh \
22                     port:gnupg \
23                     port:p5-crypt-openssl-rsa \
24                     port:p5-digest-sha \
25                     port:procmail
26
27 master_sites        http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
28 distname            ${name}_${version}
29 extract.suffix      .orig.tar.gz
30 worksrcdir          ${name}-${version}
31 checksums           md5 f0e5fe66a9affd951e601ea5d6188972
32
33 use_configure       no
34
35 post-build {
36     # update paths to SYS*DIRs
37     exec sed -i .tmp -e "s|/etc/monkeysphere|${prefix}/etc/monkeysphere|g" \
38         ${worksrcpath}/src/share/defaultenv \
39         ${worksrcpath}/src/transitions/0.23 \
40         ${worksrcpath}/man/man1/monkeysphere.1 \
41         ${worksrcpath}/man/man8/monkeysphere-authentication.8 \
42         ${worksrcpath}/man/man8/monkeysphere-host.8 \
43         ${worksrcpath}/etc/monkeysphere-authentication.conf
44     exec sed -i .tmp -e "s|/var/lib/monkeysphere|${prefix}/var/db/monkeysphere|g" \
45         ${worksrcpath}/src/transitions/0.23 \
46         ${worksrcpath}/man/man1/monkeysphere.1 \
47         ${worksrcpath}/man/man8/monkeysphere-authentication.8 \
48         ${worksrcpath}/man/man8/monkeysphere-host.8 \
49         ${worksrcpath}/src/monkeysphere-host \
50         ${worksrcpath}/src/monkeysphere-authentication \
51         ${worksrcpath}/doc/getting-started-admin.mdwn
52     exec sed -i .tmp -e "s|/usr/share/monkeysphere|${prefix}/share/monkeysphere|g" \
53         ${worksrcpath}/src/monkeysphere-host \
54         ${worksrcpath}/src/monkeysphere-authentication \
55         ${worksrcpath}/src/monkeysphere
56
57     # fix perl shebang line to point to macports perl install
58     exec sed -i .tmp -e "s|^#!/usr/bin/perl -T$|#!/opt/local/bin/perl -T|" \
59         ${worksrcpath}/src/share/keytrans \
60         ${worksrcpath}/src/share/checkperms
61
62     # remove leftover sed cruft
63     exec find ${worksrcpath} -name *.tmp -delete
64 }
65
66 destroot.destdir    DESTDIR=${destroot}${prefix}
67 destroot.args       PREFIX=
68
69 # variant to use the port version of bash, which may be much newer
70 # than the one provided by the system
71 variant port-bash description {use port version of Bash} {
72     depends_run-append port:bash
73 }