1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/net/wireguard/Makefile
2020-08-30 07:14:40 +00:00

33 lines
764 B
Makefile

# $FreeBSD$
PORTNAME= wireguard
PORTVERSION= 1.0.20200827
CATEGORIES= net net-vpn
MASTER_SITES= https://git.zx2c4.com/wireguard-tools/snapshot/
DISTNAME= wireguard-tools-${PORTVERSION}
MAINTAINER= decke@FreeBSD.org
COMMENT= Fast, modern and secure VPN Tunnel
LICENSE= GPLv2
LICENSE_FILE= ${WRKDIR}/${DISTNAME}/COPYING
RUN_DEPENDS= bash:shells/bash \
wireguard-go:net/wireguard-go
USES= gmake tar:xz
USE_RC_SUBR= ${PORTNAME}
WRKSRC= ${WRKDIR}/${DISTNAME}/src
MAKE_ARGS= WITH_WGQUICK=yes WITH_BASHCOMPLETION=yes
MAKE_ENV+= MANDIR="${MANPREFIX}/man" \
SYSCONFDIR="${PREFIX}/etc"
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/completion/wg-quick.bash-completion \
${WRKSRC}/wg-quick/freebsd.bash
.include <bsd.port.mk>