Tuesday, June 04, 2019

Re: [NEW] net/dnscontrol 2.9

# $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://stackexchange.github.io/dnscontrol/

# MIT
PERMIT_PACKAGE = Yes

WANTLIB = c pthread

MODULES = lang/go

MODGO_FLAGS += -tags nosystemd
MODGO_TEST_FLAGS += -provider BIND

do-build:
cd ${WRKSRC} && ${MODGO_CMD} generate
cd ${WRKSRC} && ${MODGO_CMD} build
cd ${WRKSRC}/cmd/convertzone && ${MODGO_CMD} build

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dnscontrol ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/cmd/convertzone/convertzone ${PREFIX}/bin/

do-test:
cd ${WRKSRC}/integrationTest && ${MODGO_TEST_CMD}

.include <bsd.port.mk>
On Tue, Jun 04, 2019 at 12:00:46PM +0100, Stuart Henderson wrote:
> Ah thanks, that's much tidier.
Yes, but `do-install' wasn't quite right. Attached is a version that
actually works (with wxallowed /tmp/): builds, installs and tests fine.

> There's no restriction on writing to /tmp during builds, all sorts of
> things will break if that is blocked.
>
> Seems go does this as standard, so it's probably a good idea to figure
> out how to tell it to place the go-build directory inside WRKDIR (maybe
> it's possible to use WRKBUILD) but that said, it shouldn't block an
> individual port when pretty much all the go ports in-tree already do
> this.
Yeah, we can try this in a different diff.

Also, simply setting SEPARATE_BUILD=no will also break, so leaving this
untouched as well.

OK kn

No comments:

Post a Comment