1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/net/cjdns/Makefile
Matthias Fechner f4ffcdfe61 */*: use new nodejs USES flag
Simply define which nodejs version is required using the nodejs USES flag.

PR:                     259783
Differential Revision:	https://reviews.freebsd.org/D32790
2021-11-12 06:54:51 +01:00

41 lines
1014 B
Makefile

# Created by: Yuri Victorovich <yuri@rawbw.com>
PORTNAME= cjdns
DISTVERSIONPREFIX= cjdns-v
DISTVERSION= 21.1
PORTREVISION= 1
CATEGORIES= net security
MAINTAINER= yuri@FreeBSD.org
COMMENT= Routing engine designed for security, scalability, speed
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash
USES= gmake nodejs:build python
USE_GITHUB= yes
GH_ACCOUNT= cjdelisle
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 <bsd.port.mk>