0.22 release preperation.
[monkeysphere.git] / packaging / freebsd / security / monkeysphere / 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.22~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 MAINTAINER=    dkg@fifthhorseman.net
16 COMMENT=       use the OpenPGP web of trust to verify ssh connections
17
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
24
25 MAN1=           monkeysphere.1 openpgp2ssh.1 monkeysphere-ssh-proxycommand.1
26 MAN7=           monkeysphere.7
27 MAN8=           monkeysphere-server.8
28 MANCOMPRESSED= yes
29
30 MAKE_ARGS= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
31
32 # get rid of cruft after the patching:
33 post-patch:
34         find . -iname '*.orig' -delete
35
36 post-install:
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 ; \
39         fi
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 ; \
42         fi
43         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
44                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
45         fi
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 ; \
48         fi
49 .if !defined(PACKAGE_BUILDING)
50         @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
51 .endif
52
53 post-deinstall:
54         @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
55
56 .include <bsd.port.mk>