summaryrefslogtreecommitdiff
path: root/packaging/freebsd/security/monkeysphere/Makefile
blob: b6cacaf91e217a1f1c4461917d2e59b4c2f04e6c (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. WRKSRC= work/${PORTNAME}-${DISTVERSION}
  15. MAINTAINER= dkg@fifthhorseman.net
  16. COMMENT= Use the OpenPGP web of trust to verify ssh connections
  17. RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg1 \
  18. lockfile:${PORTSDIR}/mail/procmail \
  19. bash:${PORTSDIR}/shells/bash \
  20. ${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/RSA.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
  21. ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1
  22. MAN1= monkeysphere.1 openpgp2ssh.1 pem2openpgp.1
  23. MAN7= monkeysphere.7
  24. MAN8= monkeysphere-host.8 monkeysphere-authentication.8
  25. MANCOMPRESSED= yes
  26. MAKE_ARGS= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
  27. # use proper system paths for FreeBSD instead of debian's:
  28. post-patch:
  29. @${REINPLACE_CMD} -e 's|/etc/monkeysphere|/usr/local/etc/monkeysphere|g' \
  30. ${WRKSRC}/src/share/defaultenv \
  31. ${WRKSRC}/src/transitions/0.23 \
  32. ${WRKSRC}/man/man1/monkeysphere.1 \
  33. ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
  34. ${WRKSRC}/man/man8/monkeysphere-host.8 \
  35. ${WRKSRC}/etc/monkeysphere-authentication.conf
  36. @${REINPLACE_CMD} -e 's|/var/lib/monkeysphere|/var/monkeysphere|g' \
  37. ${WRKSRC}/src/transitions/0.23 \
  38. ${WRKSRC}/man/man1/monkeysphere.1 \
  39. ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
  40. ${WRKSRC}/man/man8/monkeysphere-host.8 \
  41. ${WRKSRC}/src/monkeysphere-host \
  42. ${WRKSRC}/src/monkeysphere-authentication \
  43. ${WRKSRC}/doc/getting-started-admin.mdwn
  44. @${REINPLACE_CMD} -e 's|/usr/share/monkeysphere|/usr/local/share/monkeysphere|g' \
  45. ${WRKSRC}/src/monkeysphere-host \
  46. ${WRKSRC}/src/monkeysphere-authentication \
  47. ${WRKSRC}/src/monkeysphere
  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>