macports: attempt at something that would 'patch' in the correct SYS..DIR variables
[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.24
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:perl5.10 \
24                     port:p5-crypt-rsa \
25                     port:p5-digest-sha1 \
26                     port:procmail
27
28 master_sites        http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
29 distname            ${name}_${version}
30 extract.suffix      .orig.tar.gz
31 worksrcdir          ${name}-${version}
32 checksums           md5 8590532f4702fa44027a6a583657c9ef
33
34 patch.dir           ${worksrcpath}
35 patch.cmd           make
36 patch.args          -f Makefile \
37                     WRKSRC=${worksrcpath} \
38                     SYSETCDIR=${destroot}${prefix}/etc/monkeysphere \
39                     SYSDATADIR=${destroot}${prefix}/var/db/monkeysphere \
40                     SYSSHAREDIR=${destroot}${prefix}/share/monkeysphere \
41                     post-patch
42
43 use_configure       no
44
45 destroot.destdir    DESTDIR=${destroot}${prefix}
46 destroot.args       PREFIX=
47
48 # variant to use the port version of bash, which may be much newer
49 # than the one provided by the system
50 variant port-bash description {use port version of Bash} {
51     depends_run-append port:bash
52 }