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>
11 MASTER_SITES= http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
12 # hack for debian orig tarballs
13 DISTFILES= ${PORTNAME}_${DISTVERSION}.orig.tar.gz
15 MAINTAINER= dkg@fifthhorseman.net
16 COMMENT= use the OpenPGP web of trust to verify ssh connections
18 LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls
19 RUN_DEPENDS= base64:${PORTSDIR}/converters/base64 \
20 gpg:${PORTSDIR}/security/gnupg1 \
21 lockfile:${PORTSDIR}/mail/procmail \
22 /usr/local/bin/getopt:${PORTSDIR}/misc/getopt \
23 bash:${PORTSDIR}/shells/bash
25 MAN1= monkeysphere.1 openpgp2ssh.1 monkeysphere-ssh-proxycommand.1
27 MAN8= monkeysphere-server.8
30 MAKE_ARGS= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
32 # get rid of cruft after the patching:
34 find . -iname '*.orig' -delete
37 @if [ ! -f ${PREFIX}/etc/monkeysphere/gnupg-host.conf ]; then \
38 ${CP} -p ${PREFIX}/etc/monkeysphere/gnupg-host.conf.sample ${PREFIX}/etc/monkeysphere/gnupg-host.conf ; \
40 @if [ ! -f ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf ]; then \
41 ${CP} -p ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf.sample ${PREFIX}/etc/monkeysphere/gnupg-authentication.conf ; \
43 @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
44 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
46 @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf ]; then \
47 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf ; \
49 .if !defined(PACKAGE_BUILDING)
50 @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
54 @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
56 .include <bsd.port.mk>