From nobody Sun Nov 13 05:38:03 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N91SC6VvHz4hZXd; Sun, 13 Nov 2022 05:38:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N91SC63vGz3JHm; Sun, 13 Nov 2022 05:38:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668317883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5xmP2ddD2iL0B8wV3dPjSvPZbx05eH3j+QSnmN5BxbE=; b=VlfMiW4DML0BZ8YVCVDEaFawNQOKIzOr2tR3df7Hh4ra5mL0QGDkCUjef33DSSNSqOiGll vjWcFRvbHl8Ze6GZ7g5QaAx/h0Nc1+F1kxJxGk7QJNIS3OEkvI9SdxI/HmtXEtKYkAI5cK ovXeMHfizraKCg/S+vX6sCwOgtvRm+oS4Ml62195Sjqb93mUFUpbRV9DHBSqHq+b/jK5aZ rYM6nOwU/uOvkjHHfJ/Q01BRxMO074kuAZ2FsfOlUcIJVnldcwa8pOhlRXtc6arorNBmCj CcaKDRxT5kQ9CPe6EBN5HCtniUmWTKh4gmJ/wW8yvB8m4u11oIpdLQYSym85Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668317883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5xmP2ddD2iL0B8wV3dPjSvPZbx05eH3j+QSnmN5BxbE=; b=Fb5BOx4rO+ZORw81WiYm7bIdk4N7ops29f0fK2RyWauoc0ELxG/G9hjkrNj5WbjgkErn12 YaqkdF5RI8qxFpEGY5tFLcHYJVLEARXxnTQkF1gclnrnumLNtXdicdvCiwdK8MEViLZxgC RrTyEn8bCmCg8Y2YGpS1cSghXZK5cClG6I6nthr11F6FmTsogsTbzBnG5LePxCECIGDQcp YDOs145ib0asWDzSkzvm9Od0sLbJ7hUKBzlxUo2f7mjFWeJ1XVGSBJpbFBno0ICYelYq26 ftbegAv6MAxlEgS9AE2esyykB5Uc6SJFdMCfDlKsC+AB8oG8ZNnU0frswp3nuw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668317883; a=rsa-sha256; cv=none; b=CdIbnjiBwSUzYAnUy5vrXUS6wwprfu40OmAjbWN6Y4T6IMxJQN8Mx3yWsraPu+wEojsCpC RaAc7Q4+tIlSiokg2rHlQj7vQZo500fLw9hJUPALPggPwn1Y/gOwEvV3xknb3fMu8iWvoO exm/n6CLCIm0/3c1ThTqag+8ThQyd8alsQAtBsVrUNChfV1t+HVQz08N+H3CjzeLRoGVFP ixcKQrpaZY7zv01CSltzZ5bWDLzbLO9EWVxMx34eAzYM9Rk7HsVX0WeakWHFHj4AntURjp D1btmCrq+nIN5++OMqUTv2HFiENROiLWz/3r3CN3JCWHqTxWbT+yGxoDszkXIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N91SC34YFzrWP; Sun, 13 Nov 2022 05:38:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AD5c3GV096542; Sun, 13 Nov 2022 05:38:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AD5c3Ba096541; Sun, 13 Nov 2022 05:38:03 GMT (envelope-from git) Date: Sun, 13 Nov 2022 05:38:03 GMT Message-Id: <202211130538.2AD5c3Ba096541@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: cd1ebf9c7ee8 - stable/13 - usr.bin: hook wg(8) up to the build List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cd1ebf9c7ee83efc2bcbc3e7a1fe40869698b3f9 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=cd1ebf9c7ee83efc2bcbc3e7a1fe40869698b3f9 commit cd1ebf9c7ee83efc2bcbc3e7a1fe40869698b3f9 Author: Kyle Evans AuthorDate: 2022-10-29 03:04:56 +0000 Commit: Kyle Evans CommitDate: 2022-11-13 05:37:05 +0000 usr.bin: hook wg(8) up to the build wg(8) is used to manage WireGuard interfaces; see wg(4) and wg(8) both for more details and usage examples. (cherry picked from commit 0283826706706c598fff86e16c42604841c1a05a) --- usr.bin/Makefile | 1 + usr.bin/wg/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/usr.bin/Makefile b/usr.bin/Makefile index fc6b94adf4c2..cd0e6730d568 100644 --- a/usr.bin/Makefile +++ b/usr.bin/Makefile @@ -177,6 +177,7 @@ SUBDIR= alias \ w \ wall \ wc \ + wg \ what \ whereis \ which \ diff --git a/usr.bin/wg/Makefile b/usr.bin/wg/Makefile new file mode 100644 index 000000000000..55cf5fccf53a --- /dev/null +++ b/usr.bin/wg/Makefile @@ -0,0 +1,41 @@ + +PROG= wg +MAN= wg.8 + +LIBADD= nv + +.PATH: ${SRCTOP}/contrib/wireguard-tools +.PATH: ${SRCTOP}/contrib/wireguard-tools/man + +SRCS+= wg.c + +SRCS+= config.c +SRCS+= encoding.c +SRCS+= ipc.c +SRCS+= terminal.c + +SRCS+= curve25519.c + +# Subcommands +SRCS+= show.c +SRCS+= showconf.c +SRCS+= set.c +SRCS+= setconf.c +SRCS+= genkey.c +SRCS+= pubkey.c + +# Base should pull RUNSTATEDIR from paths.h, _PATH_VARRUN +CFLAGS+= -include paths.h +CFLAGS+= -DRUNSTATEDIR="_PATH_VARRUN" + +# Not going to change this one. +CWARNFLAGS.curve25519.c+= -Wno-shadow + +# sockaddr{,_in} alignment +CWARNFLAGS.config.c+= -Wno-cast-align +CWARNFLAGS.ipc.c+= -Wno-cast-align + +# qsort comparator +CWARNFLAGS.show.c+= -Wno-cast-qual + +.include