network/verm: Fix build with newer google-go-lang.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-01-09 10:41:48 +13:00 committed by Willy Sudiarto Raharjo
parent 6b0a60c740
commit 2eec721841
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=verm
VERSION=${VERSION:-1.5.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -89,6 +89,7 @@ export GOPATH="$SRCDIR"
mkdir -p src/github.com/willbryant
( cd src/github.com/willbryant && ln -s "$GOPATH" verm)
export GO111MODULE="off"
go build -ldflags "-X main.compiled_version=$VERSION -X main.compiled_root_data_directory=/var/lib/verm" "github.com/willbryant/verm"
mkdir -p $PKG/usr/bin