fixing bugs in monkeysphere-server diagnostics.
[monkeysphere.git] / packaging / freebsd / Makefile
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
8 PORTNAME=      monkeysphere
9 PORTVERSION=   0.16~pre
10 CATEGORIES=    security
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
14
15 # comment this out to test the port
16 IGNORE=                 this port is not finished yet
17
18 MAINTAINER=    dkg@fifthhorseman.net
19 COMMENT=       use the OpenPGP web of trust to verify ssh connections
20
21 LIB_DEPENDS=    gnutls.26:${PORTSDIR}/security/gnutls
22 RUN_DEPENDS=    base64:${PORTSDIR}/converters/base64 \
23                 gpg:${PORTSDIR}/security/gnupg \
24                 lockfile:${PORTSDIR}/mail/procmail \
25                 getopt:${PORTSDIR}/misc/getopt \
26                 bash:${PORTSDIR}/shells/bash
27
28 MAN1=           monkeysphere.1 openpgp2ssh.1 monkeysphere-ssh-proxycommand.1
29 MAN7=           monkeysphere.7
30 MAN8=           monkeysphere-server.8
31 MANCOMPRESSED= yes
32
33 MAKE_ARGS= ETCPREFIX=/usr/local MANPREFIX=/usr/local/man ETCSUFFIX=.sample
34
35 # get rid of cruft after the patching:
36 post-patch:
37         find . -iname '*.orig' -delete
38
39 post-install:
40         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
41                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
42         fi
43         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf ]; then \
44                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-server.conf ; \
45         fi
46
47 .include <bsd.port.mk>