# Created by: Yuri Victorovich # $FreeBSD$ PORTNAME= cjdns PORTVERSION= 20 DISTVERSIONPREFIX= cjdns-v CATEGORIES= net security MAINTAINER= yuri@rawbw.com COMMENT= Routing engine designed for security, scalability, speed LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= node:www/node \ bash:shells/bash USE_GITHUB= yes GH_ACCOUNT= cjdelisle USES= gmake python USE_RC_SUBR= cjdns SUB_FILES= cjdns pkg-message SUB_LIST= LOCALBASE=${LOCALBASE} PLIST_FILES= bin/cjdroute bin/run-cjdroute man/man5/cjdroute.conf.5.gz post-patch: @${REINPLACE_CMD} -i '' -e 's|/etc/|${LOCALBASE}/etc/|g' \ ${WRKSRC}/contrib/sh/run-cjdroute.sh do-build: cd ${WRKSRC} && ./do do-install: ${INSTALL_PROGRAM} ${WRKSRC}/cjdroute ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/contrib/sh/run-cjdroute.sh ${STAGEDIR}${PREFIX}/bin/run-cjdroute ${INSTALL_MAN} ${WRKSRC}/doc/man/cjdroute.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5 do-test: ${WRKSRC}/cjdroute --bench .include