Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix paths in repo to point to bsdpot #50

Merged
merged 2 commits into from
Dec 28, 2023
Merged

Conversation

grembo
Copy link
Contributor

@grembo grembo commented Dec 21, 2023

This is tested locally to work fine.

@grembo
Copy link
Contributor Author

grembo commented Dec 22, 2023

Once changed, we can make use of it in the release to 0.10.0 next week. I reworked the port skeleton to make use the more modern GO_MODULE approach, which greatly reduces the effort to maintain the port:

PORTNAME=	nomad-pot-driver
DISTVERSIONPREFIX=	v
DISTVERSION=	0.10.0
CATEGORIES=	sysutils

MAINTAINER=	pizzamig@FreeBSD.org
COMMENT=	Nomad driver to support pot jails
WWW=		https://www.nomadproject.io

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	nomad:sysutils/nomad \
		pot:sysutils/pot

USES=		go:modules
GO_MODULE=	github.com/bsdpot/nomad-pot-driver
GO_TARGET=	:${PREFIX}/libexec/nomad/plugins/nomad-pot-driver

SUB_FILES=	pkg-message
PLIST_FILES=	${PREFIX}/libexec/nomad/plugins/nomad-pot-driver

.include <bsd.port.mk>

We should probably also start adding minimum versions of tools (at least of pot to it).

@pizzamig @ebarriosjr In case you want to test the port, the Makefile below builds based on the previous release + patches:

PORTNAME=	nomad-pot-driver
DISTVERSIONPREFIX=	v
DISTVERSION=	0.9.1
PORTREVISION=	3
CATEGORIES=	sysutils

PATCH_SITES=	https://github.com/bsdpot/nomad-pot-driver/commit/
PATCHFILES=	1fa712fa57fec850093ace28b1d4f1c9f610e8e0.patch:-p1 \
		fe7449345b3e0f9e3941c348d7b8f741df8f3097.patch:-p1 \
		bb01064baa76f54bc8a9dad28aedb7e7ab54ea2c.patch:-p1

MAINTAINER=	pizzamig@FreeBSD.org
COMMENT=	Nomad driver to support pot jails
WWW=		https://www.nomadproject.io

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	nomad:sysutils/nomad \
		pot:sysutils/pot

USES=		go:modules
GO_MODULE=	github.com/bsdpot/nomad-pot-driver
GO_TARGET=	:${PREFIX}/libexec/nomad/plugins/nomad-pot-driver

SUB_FILES=	pkg-message
PLIST_FILES=	${PREFIX}/libexec/nomad/plugins/nomad-pot-driver

.include <bsd.port.mk>

As this will be the next release
@grembo grembo merged commit 85d82e9 into bsdpot:master Dec 28, 2023
@grembo
Copy link
Contributor Author

grembo commented Dec 28, 2023

I merged this, please let me know if you see anything wrong with it (will do release 0.10.0 on the weekend).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant