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