aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/reticulum/Makefile
blob: 7eafb2188db4950287095f6d1ef361952f4a5367 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PORTNAME=	reticulum
DISTVERSION=	0.6.2
CATEGORIES=	net-p2p
MASTER_SITES=	PYPI
DISTNAME=	rns-${DISTVERSION}

MAINTAINER=	cs@FreeBSD.org
COMMENT=	Self-configuring, encrypted and resilient mesh networking stack
WWW=		https://reticulum.network/

LICENSE=	MIT

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}netifaces>=0:net/py-netifaces@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pyserial>0:comms/py-pyserial@${PY_FLAVOR}

USES=		python
USE_PYTHON=	cryptography distutils
USE_RC_SUBR=	reticulum
GROUPS=		_reticulum
USERS=		_reticulum
SUB_LIST=	USERS="${USERS}" \
		GROUPS="${GROUPS}" \
		PYTHON=${PYTHON_CMD}
PLIST_SUB=	USERS="${USERS}" GROUPS="${GROUPS}"

NO_ARCH=	yes

post-install:
	@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/db/reticulum ${STAGEDIR}/var/run/reticulum ${STAGEDIR}/var/log/reticulum
	${INSTALL_DATA} ${PATCHDIR}/config.sample ${STAGEDIR}${ETCDIR}/config.sample

.include <bsd.port.mk>