summaryrefslogtreecommitdiff
path: root/packaging/freebsd/security/monkeysphere/Makefile
blob: f625db6da27049ff5eba4696079ea1d810deb7f4 (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. # get rid of cruft after the patching:
  26. post-patch:
  27. find . -iname '*.orig' -delete
  28. post-install:
  29. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
  30. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
  31. fi
  32. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ]; then \
  33. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ; \
  34. fi
  35. @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ]; then \
  36. ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ; \
  37. fi
  38. .if !defined(PACKAGE_BUILDING)
  39. @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
  40. .endif
  41. post-deinstall:
  42. @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
  43. .include <bsd.port.mk>