On 2019/06/03 12:10, [email protected] wrote:
> Hello,
>
> Please find attached port for DNSControl latest stable version:
> "DNSControl is a system for maintaining DNS zones. It has two parts: a
> domain specific language (DSL) for describing DNS zones plus software
> that processes the DSL and pushes the resulting zones to DNS providers
> such as Route53, Cloudflare, and Gandi. It can talk to Microsoft Active
> Directory and it generates the most beautiful BIND zone files ever."
>
>
> Kind regards,
> Karlis
Diff below tidies the Makefile a bit. Build fails though:
$ make
===> dnscontrol-2.9 depends on: go-=1.12.5 -> go-1.12.5
===> dnscontrol-2.9 depends on: ccache-* -> ccache-3.7.1
===> Verifying specs: c pthread
===> found c.95.1 pthread.26.1
===> Checking files for dnscontrol-2.9
`/y/Download/ftp/pub/OpenBSD/distfiles/dnscontrol-2.9.tar.gz' is up to date.
>> (SHA256) dnscontrol-2.9.tar.gz: OK
===> Extracting for dnscontrol-2.9
===> Patching for dnscontrol-2.9
===> Compiler link: clang -> ccache /usr/bin/clang
===> Compiler link: clang++ -> ccache /usr/bin/clang++
===> Compiler link: cc -> ccache /usr/bin/cc
===> Compiler link: c++ -> ccache /usr/bin/c++
===> Generating configure for dnscontrol-2.9
===> Configuring for dnscontrol-2.9
===> Building for dnscontrol-2.9
cd /usr/obj/ports/dnscontrol-2.9/go/src/github.com/StackExchange/dnscontrol &&
go generate -tags nosystemd
build/generate/featureMatrix.go:9:2: cannot find package
"github.com/StackExchange/dnscontrol/providers" in any of:
/usr/local/go/src/github.com/StackExchange/dnscontrol/providers (from $GOROOT)
/home/sthen/go/src/github.com/StackExchange/dnscontrol/providers (from
$GOPATH)
build/generate/featureMatrix.go:10:2: cannot find package
"github.com/StackExchange/dnscontrol/providers/_all" in any
of:
/usr/local/go/src/github.com/StackExchange/dnscontrol/providers/_all (from
$GOROOT)
/home/sthen/go/src/github.com/StackExchange/dnscontrol/providers/_all (from
$GOPATH)
build/generate/generate.go:6:2: cannot find package
"github.com/mjibson/esc/embed" in any of:
/usr/local/go/src/github.com/mjibson/esc/embed (from $GOROOT)
/home/sthen/go/src/github.com/mjibson/esc/embed (from $GOPATH)
main.go:14: running "go": exit status 1
*** Error 1 in . (Makefile:23 'do-build')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2811
'/usr/obj/ports/dnscontrol-2.9/build-amd64/.build_done
')
*** Error 1 in /usr/ports/mystuff/net/dnscontrol
(/usr/ports/infrastructure/mk/bsd.port.mk:2481 'all')
diff --git a/Makefile b/Makefile
index 7843c5b..2845ffb 100644
--- a/Makefile
+++ b/Makefile
@@ -2,22 +2,20 @@
COMMENT = manage DNS configuration across any number of DNS hosts
-VERSION = 2.9
-DISTNAME = dnscontrol-${VERSION}
GH_ACCOUNT = StackExchange
GH_PROJECT = dnscontrol
-GH_TAGNAME = v${VERSION}
+GH_TAGNAME = v2.9
CATEGORIES = net
HOMEPAGE = https://github.com/StackExchange/dnscontrol
-# The MIT License
+# MIT
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c pthread
-MODULES= lang/go
+MODULES = lang/go
do-build:
cd ${WRKSRC} && ${MODGO_ENV} go generate -tags nosystemd
@@ -25,10 +23,11 @@ do-build:
cd ${WRKSRC}/cmd/convertzone && ${MODGO_ENV} go build -tags nosystemd
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${GH_PROJECT} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/dnscontrol ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/cmd/convertzone/convertzone ${PREFIX}/bin
do-test:
- cd ${WRKSRC}/integrationTest && GOPATH=${MODGO_WORKSPACE} go test -v
-verbose -provider BIND
+ cd ${WRKSRC}/integrationTest && \
+ GOPATH=${MODGO_WORKSPACE} go test -v -verbose -provider BIND
.include <bsd.port.mk>