f625db6da27049ff5eba4696079ea1d810deb7f4
[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.24
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 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
23
24 MAN1=           monkeysphere.1 openpgp2ssh.1 pem2openpgp.1
25 MAN7=           monkeysphere.7
26 MAN8=           monkeysphere-host.8 monkeysphere-authentication.8
27 MANCOMPRESSED= yes
28
29 MAKE_ARGS= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
30
31 # get rid of cruft after the patching:
32 post-patch:
33         find . -iname '*.orig' -delete
34
35 post-install:
36         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
37                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
38         fi
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 ; \
41         fi
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 ; \
44         fi
45 .if !defined(PACKAGE_BUILDING)
46         @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
47 .endif
48
49 post-deinstall:
50         @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
51
52 .include <bsd.port.mk>