summaryrefslogtreecommitdiff
path: root/packaging/macports/Portfile
blob: 75c8e113216e2e82e5864e21f6dea89dbb45f6e0 (plain)
  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. PortSystem 1.0
  4. name monkeysphere
  5. version 0.26
  6. categories net security
  7. maintainers nomaintainer
  8. description use the OpenPGP web of trust to verify ssh connections
  9. long_description SSH key-based authentication is tried-and-true, \
  10. but it lacks a true Public Key Infrastructure for \
  11. key certification, revocation and expiration. \
  12. Monkeysphere is a framework that uses the OpenPGP \
  13. web of trust for these PKI functions. It can be \
  14. used in both directions: for users to get \
  15. validated host keys, and for hosts to authenticate \
  16. users.
  17. homepage http://web.monkeysphere.info/
  18. platforms darwin
  19. depends_run bin:ssh:openssh \
  20. port:gnupg \
  21. port:p5-crypt-openssl-rsa \
  22. port:p5-digest-sha \
  23. port:procmail
  24. master_sites http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
  25. distname ${name}_${version}
  26. extract.suffix .orig.tar.gz
  27. worksrcdir ${name}-${version}
  28. checksums md5 f0e5fe66a9affd951e601ea5d6188972
  29. use_configure no
  30. post-build {
  31. # update paths to SYS*DIRs
  32. exec sed -i .tmp -e "s|/etc/monkeysphere|${prefix}/etc/monkeysphere|g" \
  33. ${worksrcpath}/src/share/defaultenv \
  34. ${worksrcpath}/src/transitions/0.23 \
  35. ${worksrcpath}/man/man1/monkeysphere.1 \
  36. ${worksrcpath}/man/man8/monkeysphere-authentication.8 \
  37. ${worksrcpath}/man/man8/monkeysphere-host.8 \
  38. ${worksrcpath}/etc/monkeysphere-authentication.conf
  39. exec sed -i .tmp -e "s|/var/lib/monkeysphere|${prefix}/var/db/monkeysphere|g" \
  40. ${worksrcpath}/src/transitions/0.23 \
  41. ${worksrcpath}/man/man1/monkeysphere.1 \
  42. ${worksrcpath}/man/man8/monkeysphere-authentication.8 \
  43. ${worksrcpath}/man/man8/monkeysphere-host.8 \
  44. ${worksrcpath}/src/monkeysphere-host \
  45. ${worksrcpath}/src/monkeysphere-authentication \
  46. ${worksrcpath}/doc/getting-started-admin.mdwn
  47. exec sed -i .tmp -e "s|/usr/share/monkeysphere|${prefix}/share/monkeysphere|g" \
  48. ${worksrcpath}/src/monkeysphere-host \
  49. ${worksrcpath}/src/monkeysphere-authentication \
  50. ${worksrcpath}/src/monkeysphere
  51. # fix perl shebang line to point to macports perl install
  52. exec sed -i .tmp -e "s|^#!/usr/bin/perl -T$|#!/opt/local/bin/perl -T|" \
  53. ${worksrcpath}/src/share/keytrans \
  54. ${worksrcpath}/src/share/checkperms
  55. # remove leftover sed cruft
  56. exec find ${worksrcpath} -name *.tmp -delete
  57. }
  58. destroot.destdir DESTDIR=${destroot}${prefix}
  59. destroot.args PREFIX=
  60. # variant to use the port version of bash, which may be much newer
  61. # than the one provided by the system
  62. variant port-bash description {use port version of Bash} {
  63. depends_run-append port:bash
  64. }