FreeBSD packaging: use tabs for variable declarations in Makefile
[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 DISTNAME=       ${PORTNAME}_${DISTVERSION}
14 EXTRACT_SUFX=   .orig.tar.gz
15
16 MAINTAINER=     dkg@fifthhorseman.net
17 COMMENT=        Use the OpenPGP web of trust to verify ssh connections
18
19 RUN_DEPENDS=    gpg:${PORTSDIR}/security/gnupg1 \
20                 lockfile:${PORTSDIR}/mail/procmail \
21                 bash:${PORTSDIR}/shells/bash \
22                 ${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/RSA.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
23                 ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1
24
25 MAN1=           monkeysphere.1 openpgp2ssh.1 pem2openpgp.1
26 MAN7=           monkeysphere.7
27 MAN8=           monkeysphere-host.8 monkeysphere-authentication.8
28 MANCOMPRESSED=  yes
29
30 MAKE_ARGS=      ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
31
32 # use proper system paths for FreeBSD instead of debian's:
33 post-patch:
34         @${REINPLACE_CMD} -e 's|/etc/monkeysphere|/usr/local/etc/monkeysphere|g' \
35           ${WRKSRC}/src/share/defaultenv \
36           ${WRKSRC}/src/transitions/0.23 \
37           ${WRKSRC}/man/man1/monkeysphere.1 \
38           ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
39           ${WRKSRC}/man/man8/monkeysphere-host.8 \
40           ${WRKSRC}/etc/monkeysphere-authentication.conf
41         @${REINPLACE_CMD} -e 's|/var/lib/monkeysphere|/var/monkeysphere|g' \
42           ${WRKSRC}/src/transitions/0.23 \
43           ${WRKSRC}/man/man1/monkeysphere.1 \
44           ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
45           ${WRKSRC}/man/man8/monkeysphere-host.8 \
46           ${WRKSRC}/src/monkeysphere-host \
47           ${WRKSRC}/src/monkeysphere-authentication \
48           ${WRKSRC}/doc/getting-started-admin.mdwn
49         @${REINPLACE_CMD} -e 's|/usr/share/monkeysphere|/usr/local/share/monkeysphere|g' \
50           ${WRKSRC}/src/monkeysphere-host \
51           ${WRKSRC}/src/monkeysphere-authentication \
52           ${WRKSRC}/src/monkeysphere
53
54 post-install:
55         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
56                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
57         fi
58         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ]; then \
59                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ; \
60         fi
61         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ]; then \
62                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ; \
63         fi
64 .if !defined(PACKAGE_BUILDING)
65         @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
66 .endif
67
68 post-deinstall:
69         @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
70
71 .include <bsd.port.mk>