summaryrefslogtreecommitdiff
path: root/packaging/macports/Portfile
blob: 290edfdd84d0f045962432445009923b1008b0e2 (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.24
  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:perl5.10 \
  22. port:p5-crypt-rsa \
  23. port:p5-digest-sha1 \
  24. port:procmail
  25. master_sites http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
  26. distname ${name}_${version}
  27. extract.suffix .orig.tar.gz
  28. worksrcdir ${name}-${version}
  29. checksums md5 8590532f4702fa44027a6a583657c9ef
  30. use_configure no
  31. post-build {
  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. exec find ${worksrcpath} -name *.tmp -delete
  52. }
  53. destroot.destdir DESTDIR=${destroot}${prefix}
  54. destroot.args PREFIX=
  55. # variant to use the port version of bash, which may be much newer
  56. # than the one provided by the system
  57. variant port-bash description {use port version of Bash} {
  58. depends_run-append port:bash
  59. }