File:  [cvs.NetBSD.org] / pkgsrc / security / cfssl / Makefile
Revision 1.9: download - view: text, annotated - select for diffs
Sun Oct 15 12:04:29 2023 UTC (13 months, 3 weeks ago) by bsiegert
Branches: MAIN
CVS tags: HEAD
Revbump all Go packages after go120 security update

# $NetBSD: Makefile,v 1.9 2023/10/15 12:04:29 bsiegert Exp $

DISTNAME=	cfssl-1.6.4
PKGREVISION=	5
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_GITHUB:=cloudflare/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	iquiw@NetBSD.org
HOMEPAGE=	https://cfssl.org/
COMMENT=	CloudFlare PKI toolkit
LICENSE=	mit

EXTRACT_USING=	bsdtar

.include "go-modules.mk"

CHECK_RELRO_SKIP+=	bin/cfssl
CHECK_RELRO_SKIP+=	bin/cfssl-bundle
CHECK_RELRO_SKIP+=	bin/cfssl-certinfo
CHECK_RELRO_SKIP+=	bin/cfssl-newkey
CHECK_RELRO_SKIP+=	bin/cfssl-scan
CHECK_RELRO_SKIP+=	bin/cfssljson
CHECK_RELRO_SKIP+=	bin/mkbundle
CHECK_RELRO_SKIP+=	bin/multirootca

INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	share/doc/cfssl share/doc/cfssl/api share/doc/cfssl/cmd

GO_XFLAG_PREFIX=	-X github.com/cloudflare/cfssl/cli/version
GO_LDFLAGS+=		${GO_XFLAG_PREFIX}.version=${PKGVERSION_NOREV}

do-build:
	${RUN}${_ULIMIT_CMD} cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} \
		${GO} install -v -ldflags ${GO_LDFLAGS:Q} ./cmd/...

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/.gopath/bin/* ${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/cfssl
	${INSTALL_DATA} ${WRKSRC}/doc/*.sample ${DESTDIR}${PREFIX}/share/doc/cfssl
	${INSTALL_DATA} ${WRKSRC}/doc/api/*.txt ${DESTDIR}${PREFIX}/share/doc/cfssl/api
	${INSTALL_DATA} ${WRKSRC}/doc/cmd/*.txt ${DESTDIR}${PREFIX}/share/doc/cfssl/cmd

.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>