summaryrefslogtreecommitdiff
path: root/packaging/freebsd/security/monkeysphere/Makefile
blob: 5f3c3863e71769d235f3a9b4a49518f6e1e47f85 (plain)
  1. # New ports collection makefile for: monkeysphere
  2. # Date created: 2008-09-11 23:38:27-0400
  3. # Whom: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  4. #
  5. # $FreeBSD$
  6. #
  7. PORTNAME= monkeysphere
  8. PORTVERSION= 0.26
  9. CATEGORIES= security
  10. MASTER_SITES= http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
  11. # hack for debian orig tarballs
  12. DISTFILES= ${PORTNAME}_${DISTVERSION}.orig.tar.gz
  13. MAINTAINER= dkg@fifthhorseman.net
  14. COMMENT= Use the OpenPGP web of trust to verify ssh connections
  15. RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg1 \
  16. lockfile:${PORTSDIR}/mail/procmail \
  17. bash:${PORTSDIR}/shells/bash \
  18. ${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/RSA.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
  19. ${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA
  20. MAN1= monkeysphere.1 openpgp2ssh.1 pem2openpgp.1
  21. MAN7= monkeysphere.7
  22. MAN8= monkeysphere-host.8 monkeysphere-authentication.8
  23. MANCOMPRESSED= yes
  24. MAKE_ARGS= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
  25. # use proper system paths for FreeBSD instead of debian's:
  26. post-patch:
  27. @${REINPLACE_CMD} -e 's|/etc/monkeysphere|/usr/local/etc/monkeysphere|g' \
  28. ${WRKSRC}/src/share/defaultenv \
  29. ${WRKSRC}/src/transitions/0.23 \
  30. ${WRKSRC}/man/man1/monkeysphere.1 \
  31. ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
  32. ${WRKSRC}/man/man8/monkeysphere-host.8 \
  33. ${WRKSRC}/etc/monkeysphere-authentication.conf
  34. @${REINPLACE_CMD} -e 's|/var/lib/monkeysphere|/var/monkeysphere|g' \
  35. ${WRKSRC}/src/transitions/0.23 \
  36. ${WRKSRC}/man/man1/monkeysphere.1 \
  37. ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
  38. ${WRKSRC}/man/man8/monkeysphere-host.8 \
  39. ${WRKSRC}/src/monkeysphere-host \
  40. ${WRKSRC}/src/monkeysphere-authentication \
  41. ${WRKSRC}/doc/getting-started-admin.mdwn
  42. @${REINPLACE_CMD} -e 's|/usr/share/monkeysphere|/usr/local/share/monkeysphere|g' \
  43. ${WRKSRC}/src/monkeysphere-host \
  44. ${WRKSRC}/src/monkeysphere-authentication \
  45. ${WRKSRC}/src/monkeysphere
  46. # and clean up cruft from the sed replacements:
  47. ${FIND} ${WRKSRC} -name '*.bak' -delete
  48. post-install:
  49. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
  50. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
  51. fi
  52. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ]; then \
  53. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ; \
  54. fi
  55. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ]; then \
  56. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ; \
  57. fi
  58. .if !defined(PACKAGE_BUILDING)
  59. @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
  60. .endif
  61. post-deinstall:
  62. @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
  63. .include <bsd.port.mk>