3af2aed074
with wireguard-go, which is no longer in ports; newer wireguard-tools works with wg(4) in the base OS instead. OK jasper@
45 lines
812 B
Makefile
45 lines
812 B
Makefile
COMMENT = tools for use with WireGuard VPN
|
|
|
|
DISTNAME = wireguard-tools-1.0.20210914
|
|
EPOCH = 0
|
|
REVISION = 0
|
|
|
|
CATEGORIES = net security
|
|
|
|
HOMEPAGE = https://www.wireguard.com/
|
|
|
|
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
|
|
|
# GPLv2 only
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += c
|
|
|
|
MASTER_SITES = https://git.zx2c4.com/wireguard-tools/snapshot/
|
|
|
|
EXTRACT_SUFX = .tar.xz
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
# Uses __builtin_bswap* on big-endian archs
|
|
COMPILER = base-clang ports-gcc
|
|
RUN_DEPENDS = shells/bash
|
|
|
|
MAKE_FLAGS = WITH_WGQUICK=yes \
|
|
WITH_BASHCOMPLETION=yes \
|
|
V=1
|
|
FAKE_FLAGS = MANDIR=${PREFIX}/man \
|
|
PREFIX=${PREFIX}
|
|
USE_GMAKE = Yes
|
|
|
|
NO_TEST = Yes
|
|
|
|
WRKSRC = ${WRKDIST}/src
|
|
|
|
ALL_TARGET = wg
|
|
|
|
post-extract:
|
|
sed -i 's/install -v /install /g' ${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.mk>
|