fix up notes about how to prepare a release
[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.26
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/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA
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 # use proper system paths for FreeBSD instead of debian's:
32 post-patch:
33         @${REINPLACE_CMD} -e 's|/etc/monkeysphere|/usr/local/etc/monkeysphere|g' \
34           ${WRKSRC}/src/share/defaultenv \
35           ${WRKSRC}/src/transitions/0.23 \
36           ${WRKSRC}/man/man1/monkeysphere.1 \
37           ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
38           ${WRKSRC}/man/man8/monkeysphere-host.8 \
39           ${WRKSRC}/etc/monkeysphere-authentication.conf
40         @${REINPLACE_CMD} -e 's|/var/lib/monkeysphere|/var/monkeysphere|g' \
41           ${WRKSRC}/src/transitions/0.23 \
42           ${WRKSRC}/man/man1/monkeysphere.1 \
43           ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
44           ${WRKSRC}/man/man8/monkeysphere-host.8 \
45           ${WRKSRC}/src/monkeysphere-host \
46           ${WRKSRC}/src/monkeysphere-authentication \
47           ${WRKSRC}/doc/getting-started-admin.mdwn
48         @${REINPLACE_CMD} -e 's|/usr/share/monkeysphere|/usr/local/share/monkeysphere|g' \
49           ${WRKSRC}/src/monkeysphere-host \
50           ${WRKSRC}/src/monkeysphere-authentication \
51           ${WRKSRC}/src/monkeysphere
52         # and clean up cruft from the sed replacements:
53         ${FIND} ${WRKSRC} -name '*.bak' -delete
54
55 post-install:
56         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
57                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
58         fi
59         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ]; then \
60                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ; \
61         fi
62         @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ]; then \
63                 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ; \
64         fi
65 .if !defined(PACKAGE_BUILDING)
66         @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
67 .endif
68
69 post-deinstall:
70         @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
71
72 .include <bsd.port.mk>