summaryrefslogtreecommitdiff
path: root/net/rosenpass/Makefile
blob: 39bbe3338d117906326ac3391c6e9d330c605a0b (plain)
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
33
34
35
36
37
38
PORTNAME=	rosenpass
DISTVERSIONPREFIX=	v
DISTVERSION=	0.2.0
PORTREVISION=	1
CATEGORIES=	net net-vpn security

MAINTAINER=	fuz@FreeBSD.org
COMMENT=	Wireguard-based post-quantum VPN
WWW=		https://rosenpass.eu/

LICENSE=	MIT APACHE20
LICENSE_COMB=	dual
LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT

LIB_DEPENDS=	libsodium.so:security/libsodium
RUN_DEPENDS=	bash:shells/bash \
		wireguard>0:net/wireguard

USES=		cargo llvm:build pkgconfig shebangfix
USE_GITHUB=	yes

PLIST_FILES=	bin/rosenpass \
		bin/rp \
		man/man1/rosenpass.1.gz \
		man/man1/rp.1.gz

pre-configure:
	${REINPLACE_CMD} -e 's,%%BASH%%,${LOCALBASE}/bin/bash,' ${WRKSRC}/rp

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/rp ${STAGEDIR}${PREFIX}/bin/
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rosenpass
.for man in rp.1 rosenpass.1
	${INSTALL_MAN} ${WRKSRC}/doc/${man} ${STAGEDIR}${MANPREFIX}/man/man${man:E}/${man}
.endfor

.include <bsd.port.mk>