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 RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg1 \
19 lockfile:${PORTSDIR}/mail/procmail \
20 bash:${PORTSDIR}/shells/bash \
21 ${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/RSA.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
22 ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1
24 MAN1= monkeysphere.1 openpgp2ssh.1 pem2openpgp.1
26 MAN8= monkeysphere-host.8 monkeysphere-authentication.8
29 MAKE_ARGS= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
31 # get rid of cruft after the patching:
33 find . -iname '*.orig' -delete
36 @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
37 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
39 @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ]; then \
40 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ; \
42 @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ]; then \
43 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ; \
45 .if !defined(PACKAGE_BUILDING)
46 @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
50 @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
52 .include <bsd.port.mk>