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>
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 WRKSRC= work/${PORTNAME}-${DISTVERSION}
17 MAINTAINER= dkg@fifthhorseman.net
18 COMMENT= Use the OpenPGP web of trust to verify ssh connections
20 RUN_DEPENDS= gpg:${PORTSDIR}/security/gnupg1 \
21 lockfile:${PORTSDIR}/mail/procmail \
22 bash:${PORTSDIR}/shells/bash \
23 ${SITE_PERL}/${PERL_ARCH}/Crypt/OpenSSL/RSA.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-RSA \
24 ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1
26 MAN1= monkeysphere.1 openpgp2ssh.1 pem2openpgp.1
28 MAN8= monkeysphere-host.8 monkeysphere-authentication.8
31 MAKE_ARGS= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
33 # use proper system paths for FreeBSD instead of debian's:
35 @${REINPLACE_CMD} -e 's|/etc/monkeysphere|/usr/local/etc/monkeysphere|g' \
36 ${WRKSRC}/src/share/defaultenv \
37 ${WRKSRC}/src/transitions/0.23 \
38 ${WRKSRC}/man/man1/monkeysphere.1 \
39 ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
40 ${WRKSRC}/man/man8/monkeysphere-host.8 \
41 ${WRKSRC}/etc/monkeysphere-authentication.conf
42 @${REINPLACE_CMD} -e 's|/var/lib/monkeysphere|/var/monkeysphere|g' \
43 ${WRKSRC}/src/transitions/0.23 \
44 ${WRKSRC}/man/man1/monkeysphere.1 \
45 ${WRKSRC}/man/man8/monkeysphere-authentication.8 \
46 ${WRKSRC}/man/man8/monkeysphere-host.8 \
47 ${WRKSRC}/src/monkeysphere-host \
48 ${WRKSRC}/src/monkeysphere-authentication \
49 ${WRKSRC}/doc/getting-started-admin.mdwn
50 @${REINPLACE_CMD} -e 's|/usr/share/monkeysphere|/usr/local/share/monkeysphere|g' \
51 ${WRKSRC}/src/monkeysphere-host \
52 ${WRKSRC}/src/monkeysphere-authentication \
53 ${WRKSRC}/src/monkeysphere
54 # and clean up cruft from the sed replacements:
55 find ${WRKSRC} -name '*.bak' -delete
58 @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere.conf ]; then \
59 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere.conf ; \
61 @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ]; then \
62 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-host.conf ; \
64 @if [ ! -f ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ]; then \
65 ${CP} -p ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf.sample ${PREFIX}/etc/monkeysphere/monkeysphere-authentication.conf ; \
67 .if !defined(PACKAGE_BUILDING)
68 @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
72 @${SETENV} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
74 .include <bsd.port.mk>