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.
This commit is contained in:
parent
adf3764857
commit
0283826706
@ -171,6 +171,7 @@ SUBDIR= alias \
|
||||
w \
|
||||
wall \
|
||||
wc \
|
||||
wg \
|
||||
what \
|
||||
whereis \
|
||||
which \
|
||||
|
41
usr.bin/wg/Makefile
Normal file
41
usr.bin/wg/Makefile
Normal file
@ -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 <bsd.prog.mk>
|
Loading…
Reference in New Issue
Block a user