# $OpenBSD$
COMMENT = manage DNS configuration across any number of DNS hosts
GH_ACCOUNT = StackExchange
GH_PROJECT = dnscontrol
GH_TAGNAME = v2.9
CATEGORIES = net
HOMEPAGE = https://github.com/StackExchange/dnscontrol
# MIT
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c pthread
MODULES = lang/go
do-build:
cd ${WRKSRC} && GOMAXPROCS=${MAKE_JOBS} GOCACHE=${MODGO_GOCACHE} \
GOPATH=${MODGO_WORKSPACE} \
go generate -tags nosystemd
cd ${WRKSRC} && GOMAXPROCS=${MAKE_JOBS} GOCACHE=${MODGO_GOCACHE} \
GOPATH=${MODGO_WORKSPACE} \
go build -tags nosystemd
cd ${WRKSRC}/cmd/convertzone && GOMAXPROCS=${MAKE_JOBS} GOCACHE=${MODGO_GOCACHE} \
GOPATH=${MODGO_WORKSPACE} \
go build -tags nosystemd
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dnscontrol ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cmd/convertzone/convertzone ${PREFIX}/bin
do-test:
cd ${WRKSRC}/integrationTest && GOCACHE=${MODGO_GOCACHE} \
GOPATH=${MODGO_WORKSPACE} \
go test -v -verbose -provider BIND
.include <bsd.port.mk>
Thank you, Stuart, for the prompt reply.
> Diff below tidies the Makefile a bit. Build fails though:
Can you please try with attached Makefile? I've added GOCACHE and GOPATH
environment variables to the Makefile.
Kind regards,
Karlis
No comments:
Post a Comment