freebsd-ports/security/monkeysphere/Makefile
Rene Ladan 6ea3691c99 security/monkeysphere: update to 0.4.1
- use gpg 2.* now
- add LICENSE
- use ${CC} instead of gcc (no gcc in default base after 9.x)
- fix bogus *-e files (artifact of incorrect sed -i in old patch)

PR:		215527
Submitted by:	John Hein (z7dr6ut7gs@snkmail.com)
Approved by:	maintainer timeout (anarcat@koumbit.org 17 days)
2017-01-11 21:51:26 +00:00

63 lines
2.2 KiB
Makefile

# Created by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
# $FreeBSD$
PORTNAME= monkeysphere
PORTVERSION= 0.41
CATEGORIES= security
MASTER_SITES= http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/
# hack for debian orig tarballs
DISTFILES= ${PORTNAME}_${DISTVERSION}.orig${EXTRACT_SUFX}
MAINTAINER= anarcat@koumbit.org
COMMENT= Use the OpenPGP web of trust to verify ssh connections
LICENSE= GPLv3
LIB_DEPENDS= libassuan.so:security/libassuan \
libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error
RUN_DEPENDS= gpg2:security/gnupg \
lockfile:mail/procmail \
bash:shells/bash \
p5-Crypt-OpenSSL-RSA>=0:security/p5-Crypt-OpenSSL-RSA \
p5-Digest-SHA1>=0:security/p5-Digest-SHA1
USES= gmake shebangfix
SHEBANG_FILES= src/share/checkperms src/transitions/0.23 \
src/transitions/0.28 src/share/keytrans
USERS= monkeysphere
GROUPS= monkeysphere
MAKE_ARGS+= ETCPREFIX=${PREFIX} MANPREFIX=${PREFIX}/man ETCSUFFIX=.sample
OPTIONS_DEFINE= DOCS
# use proper system paths for FreeBSD instead of debian's:
post-patch:
@${REINPLACE_CMD} -i '' 's|/etc/monkeysphere|${PREFIX}/etc/monkeysphere|g' \
${WRKSRC}/src/share/defaultenv \
${WRKSRC}/src/transitions/0.23 \
${WRKSRC}/man/man1/monkeysphere.1 \
${WRKSRC}/man/man8/monkeysphere-authentication.8 \
${WRKSRC}/man/man8/monkeysphere-host.8 \
${WRKSRC}/etc/monkeysphere-authentication.conf
@${REINPLACE_CMD} -i '' 's|/var/lib/monkeysphere|/var/monkeysphere|g' \
${WRKSRC}/src/transitions/0.23 \
${WRKSRC}/man/man1/monkeysphere.1 \
${WRKSRC}/man/man8/monkeysphere-authentication.8 \
${WRKSRC}/man/man8/monkeysphere-host.8 \
${WRKSRC}/src/monkeysphere-host \
${WRKSRC}/src/monkeysphere-authentication
@${REINPLACE_CMD} -i '' 's|/usr/share/monkeysphere|${PREFIX}/share/monkeysphere|g' \
${WRKSRC}/src/monkeysphere-host \
${WRKSRC}/src/monkeysphere-authentication \
${WRKSRC}/src/monkeysphere
# and clean up cruft from any patches or sed replacements:
${FIND} ${WRKSRC} \( -name \*.bak -o -name \*.orig \) -delete
@${REINPLACE_CMD} 's|gcc|${CC}|g' ${WRKSRC}/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/agent-transfer
.include <bsd.port.mk>