summaryrefslogtreecommitdiff
path: root/packaging/macports/Portfile
blob: 36c3635edc3b586ce6c6ea0e10b01cce8963cbe6 (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-openssl-rsa \
  23. port:p5-crypt-openssl-bignum \
  24. port:p5-digest-sha1 \
  25. port:procmail \
  26. port:socat
  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 8590532f4702fa44027a6a583657c9ef
  32. use_configure no
  33. post-build {
  34. exec sed -i .tmp -e "s|/etc/monkeysphere|${prefix}/etc/monkeysphere|g" \
  35. ${worksrcpath}/src/share/defaultenv \
  36. ${worksrcpath}/src/transitions/0.23 \
  37. ${worksrcpath}/man/man1/monkeysphere.1 \
  38. ${worksrcpath}/man/man8/monkeysphere-authentication.8 \
  39. ${worksrcpath}/man/man8/monkeysphere-host.8 \
  40. ${worksrcpath}/etc/monkeysphere-authentication.conf
  41. exec sed -i .tmp -e "s|/var/lib/monkeysphere|${prefix}/var/db/monkeysphere|g" \
  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}/src/monkeysphere-host \
  47. ${worksrcpath}/src/monkeysphere-authentication \
  48. ${worksrcpath}/doc/getting-started-admin.mdwn
  49. exec sed -i .tmp -e "s|/usr/share/monkeysphere|${prefix}/share/monkeysphere|g" \
  50. ${worksrcpath}/src/monkeysphere-host \
  51. ${worksrcpath}/src/monkeysphere-authentication \
  52. ${worksrcpath}/src/monkeysphere
  53. exec find ${worksrcpath} -name *.tmp -delete
  54. }
  55. destroot.destdir DESTDIR=${destroot}${prefix}
  56. destroot.args PREFIX=
  57. # variant to use the port version of bash, which may be much newer
  58. # than the one provided by the system
  59. variant port-bash description {use port version of Bash} {
  60. depends_run-append port:bash
  61. }