summaryrefslogtreecommitdiff
path: root/packaging/freebsd/security/monkeysphere/Makefile
blob: 984bc8757ca30eef2458ed639b3b1ca8e954e0e7 (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.19
  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. LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls
  16. RUN_DEPENDS= base64:${PORTSDIR}/converters/base64 \
  17. gpg:${PORTSDIR}/security/gnupg1 \
  18. lockfile:${PORTSDIR}/mail/procmail \
  19. /usr/local/bin/getopt:${PORTSDIR}/misc/getopt \
  20. bash:${PORTSDIR}/shells/bash
  21. MAN1= monkeysphere.1 openpgp2ssh.1 monkeysphere-ssh-proxycommand.1
  22. MAN7= monkeysphere.7
  23. MAN8= monkeysphere-server.8
  24. MANCOMPRESSED= yes
  25. MAKE_ARGS= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
  26. # get rid of cruft after the patching:
  27. post-patch:
  28. find . -iname '*.orig' -delete
  29. post-install:
  30. @if [ ! -f ${PREFIX}/etc/monkeysphere/gnupg-host.conf ]; then \
  31. ${CP} -p ${PREFIX}/etc/monkeysphere/gnupg-host.conf.sample ${PREFIX}/etc/monkeysphere/gnupg-host.conf ; \
  32. fi
  33. @if [ ! -f ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf ]; then \
  34. ${CP} -p ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf.sample ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf ; \
  35. fi
  36. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
  37. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
  38. fi
  39. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf ]; then \
  40. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf ; \
  41. fi
  42. .if !defined(PACKAGE_BUILDING)
  43. @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
  44. .endif
  45. post-deinstall:
  46. @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
  47. .include <bsd.port.mk>