summaryrefslogtreecommitdiff
path: root/packaging/freebsd/security/monkeysphere/Makefile
blob: 46a1d01fd0178fdb51bd0f0e11634c995c261e41 (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. 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/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1
  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. post-install:
  43. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
  44. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
  45. fi
  46. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ]; then \
  47. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ; \
  48. fi
  49. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ]; then \
  50. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ; \
  51. fi
  52. .if !defined(PACKAGE_BUILDING)
  53. @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
  54. .endif
  55. post-deinstall:
  56. @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
  57. .include <bsd.port.mk>